wjx 3 weeks ago
parent
commit
72141ab869

+ 3 - 0
src/pages/weComTask/components/filterUser/filterUserText.ts

@@ -5,6 +5,7 @@ const targetingData = [
     { key: 'msgTagIds', name: '智能标签' },
     { key: 'msgExcludeTagIds', name: '排除智能标签' },
     { key: 'platformKey', name: '书城' },
+    { key: 'sysExternalExcludeTagNames', name: '排除标签' },
     { key: 'lastBookNameList', name: '最近阅读书籍' },
     { key: 'lastChapterNameList', name: '最近阅读章节' },
     { key: 'platformUserId', name: '书城用户ID' },
@@ -36,6 +37,7 @@ interface ContentProps {
     msgTagIds?: { [x: string]: string }[], // 智能标签
     msgExcludeTagIds?: { [x: string]: string }[], // 排除智能标签
     platformKey?: string,   // 书城
+    sysExternalExcludeTagNames?: string[],   // 书城
     lastBookNameList?: string[],
     lastChapterNameList?: string[],
     platformUserId?: string,// 书城用户ID
@@ -193,6 +195,7 @@ const FilterUserText = ({ data, configName, configType = 'USER_GROUP', bookCityL
     return (configName ? configName + '\n' : '') +
     (content?.msgTagIds ? `智能标签:${content?.msgTagIds?.['business'] ? `业务:${businessPlanData.find(i => i.value === content?.msgTagIds['business'])?.label}` : ''}--${content?.msgTagIds?.['bookCity'] ? `书城:${bookPlatForm.find(i => i.id === content?.msgTagIds['bookCity'])?.platformName}` : ''}--${content?.msgTagIds?.['product'] ? `产品:${bookList.find(i => i.id === content?.msgTagIds['product'])?.bookName}\n` : ''}` : '') + 
     (content?.msgExcludeTagIds ? `排除智能标签:${content?.msgExcludeTagIds?.['business'] ? `业务:${businessPlanData.find(i => i.value === content?.msgExcludeTagIds['business'])?.label}` : ''}--${content?.msgExcludeTagIds?.['bookCity'] ? `书城:${bookPlatForm.find(i => i.id === content?.msgExcludeTagIds['bookCity'])?.platformName}` : ''}--${content?.msgExcludeTagIds?.['product'] ? `产品:${bookList.find(i => i.id === content?.msgExcludeTagIds['product'])?.bookName}\n` : ''}` : '') + 
+    (content?.sysExternalExcludeTagNames ? `排除标签:${content?.sysExternalExcludeTagNames.join('、') || '--'}\n` : '') +
     (content?.platformKey ? `书城:${bookCityList?.find(item => item.value === content?.platformKey)?.label || '--'}\n` : '') +
     (content?.lastBookNameList ? `最近阅读书籍:${content?.lastBookNameList?.join('、') || '--'}\n` : '') +
     (content?.lastChapterNameList ? `最近阅读章节:${content?.lastChapterNameList?.join('、') || '--'}\n` : '') +

+ 5 - 0
src/pages/weComTask/components/filterUser/filterUserTooltip.tsx

@@ -8,6 +8,7 @@ const targetingData = [
     { key: 'msgTagIds', name: '智能标签' },
     { key: 'msgExcludeTagIds', name: '排除智能标签' },
     { key: 'platformKey', name: '书城' },
+    { key: 'sysExternalExcludeTagNames', name: '排除标签' },
     { key: 'lastBookNameList', name: '最近阅读书籍' },
     { key: 'lastChapterNameList', name: '最近阅读章节' },
     { key: 'platformUserId', name: '书城用户ID' },
@@ -44,6 +45,7 @@ interface ContentProps {
     msgTagIds?: { [x: string]: string }[], // 智能标签
     msgExcludeTagIds?: { [x: string]: string }[], // 排除智能标签
     platformKey?: string,   // 书城
+    sysExternalExcludeTagNames?: string[],   // 排除标签
     lastBookNameList?: string[],
     lastChapterNameList?: string[],
     platformUserId?: string,// 书城用户ID
@@ -219,6 +221,9 @@ const FilterUserTooltip: React.FC<Props> = (props) => {
         {content?.msgExcludeTagIds && <div>
             <strong>排除智能标签:</strong><span>{`${content?.msgExcludeTagIds?.['business'] ? `业务:${businessPlanData.find(i => i.value == content?.msgExcludeTagIds['business'])?.label}` : ''}--${content?.msgExcludeTagIds?.['bookCity'] ? `书城:${bookPlatForm.find(i => i.id == content?.msgExcludeTagIds['bookCity'])?.platformName}` : ''}--${content?.msgExcludeTagIds?.['product'] ? `产品:${bookList.find(i => i.id == content?.msgExcludeTagIds['product'])?.bookName}` : ''}`}</span>
         </div>}
+        {content?.sysExternalExcludeTagNames && <div>
+            <strong>排除标签:</strong><span>{content?.sysExternalExcludeTagNames.join('、') || '--'}</span>
+        </div>}
         {content?.platformKey && <div>
             <strong>书城:</strong><span>{bookCityList?.find(item => item.value === content?.platformKey)?.label || '--'}</span>
         </div>}

+ 16 - 2
src/pages/weComTask/components/filterUser/newFiterUser.tsx

@@ -1,8 +1,8 @@
-import { App, Button, Card, Checkbox, DatePicker, Form, Input, InputNumber, Modal, Radio, Select, Space } from 'antd';
+import { App, Button, Card, Checkbox, DatePicker, Form, Input, InputNumber, Modal, Select, Space } from 'antd';
 import React, { useEffect, useState } from 'react';
 import style from './index.less'
 import { useAjax } from '@/Hook/useAjax';
-import { GENDER_TYPE } from '../../page/businessPlan/create/const';
+import { GENDER_TYPE, sysExternalExcludeTagList } from '../../page/businessPlan/create/const';
 import { addSiftPopulationConfigApi, updateSiftPopulationConfigApi } from '../../API/businessPlan/filterUser';
 import dayjs from 'dayjs';
 import MindTags from '../mindTags';
@@ -261,6 +261,20 @@ const NewFilterUser: React.FC<NewFilterUserProps> = ({ bookCityList, configType
                         </Card>
                     </Form.Item>
                 </div>
+                <div className={style.newSpace}>
+                    <Form.Item name="sysExternalExcludeTagNames" label={<strong>排除标签</strong>} style={{ marginBottom: 0 }}>
+                        <Select
+                            placeholder='请选择排除标签'
+                            allowClear
+                            mode='multiple'
+                            filterOption={(input, option) =>
+                                (option?.label as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
+                            }
+                            showSearch
+                            options={sysExternalExcludeTagList.map(item => ({ value: item, label: item }))}
+                        />
+                    </Form.Item>
+                </div>
                 <div className={style.newSpace}>
                     <Form.Item name="platformKey" label={<strong>书城</strong>} style={{ marginBottom: 0 }}>
                         <Select

+ 7 - 1
src/pages/weComTask/page/businessPlan/create/const.tsx

@@ -609,4 +609,10 @@ export const headerJsMustStyle = {
         left: { style: 'thin', color: { argb: 'FFFFFF' } },
         right: { style: 'thin', color: { argb: 'FFFFFF' } }
     }
-};
+};
+
+// 排除标签    
+export const sysExternalExcludeTagList = [
+    'QC_智能_移出',
+    'QC_投诉客户'
+]