wjx před 1 měsícem
rodič
revize
94874878c6

+ 1 - 0
src/pages/weComTask/API/chatRecordManage/index.ts

@@ -13,6 +13,7 @@ export interface GetChatMessageListProps {
     chatName?: string
     senderName?: string
     riskLevel?: number
+    msgType?: string[]
 }
 
 /**

+ 15 - 1
src/pages/weComTask/page/chatRecordManage/chatRecord/index.tsx

@@ -9,7 +9,7 @@ import { api_corpUser_allOfUser } from '@/API/global';
 import { useAjax } from '@/Hook/useAjax';
 import { useForm } from 'antd/es/form/Form'
 import moment from 'dayjs'
-import tableConfig from './tableConfig';
+import tableConfig, { obj } from './tableConfig';
 const { RangePicker } = DatePicker;
 
 const ChatRecord: React.FC = () => {
@@ -134,6 +134,20 @@ const ChatRecord: React.FC = () => {
                                     }
                                 ]}
                             />
+                            <Select
+                                style={{ minWidth: 125 }}
+                                placeholder='消息类型'
+                                allowClear
+                                autoClearSearchValue={false}
+                                mode='multiple'
+                                maxTagCount={2}
+                                onChange={(e) => { setQueryForm({ ...queryForm, msgType: e, pageNum: 1 }) }}
+                                value={queryForm?.msgType}
+                                filterOption={(input, option) =>
+                                    ((option?.label ?? '') as any).toLowerCase().includes(input.toLowerCase())
+                                }
+                                options={Object.keys(obj).map((item) => ({ label: obj[item], value: item }))}
+                            />
                             <Select
                                 style={{ minWidth: 125 }}
                                 placeholder='风险等级'

+ 1 - 1
src/pages/weComTask/page/chatRecordManage/chatRecord/tableConfig.tsx

@@ -130,7 +130,7 @@ function replaceEmojis(text) {
         return emoji ? `<img src="https://zx-web-dev-01.oss-cn-hangzhou.aliyuncs.com/apk/emo/${emojiName}.png" style="width:20px" alt="${emojiName}" class="emoji" />` : match;
     });
 }
-const obj = {
+export const obj = {
     "text": <div style={{ color: '#059669', backgroundColor: '#d1fae5', padding: '1px 6px', fontSize: 12, borderRadius: '15px', display: 'inline-flex', alignItems: 'center', gap: 2 }}><FileTextOutlined />文本</div>,
     "voice": <div style={{ color: '#0e7490', backgroundColor: '#a5f3fc', padding: '1px 6px', fontSize: 12, borderRadius: '15px', display: 'inline-flex', alignItems: 'center', gap: 2 }}><AudioOutlined />语音</div>,
     "file": <div style={{ color: '#ea580c', backgroundColor: '#fed7aa', padding: '1px 6px', fontSize: 12, borderRadius: '15px', display: 'inline-flex', alignItems: 'center', gap: 2 }}><FileWordOutlined />文件</div>,

+ 0 - 2
src/pages/weComTask/page/chatRecordManage/riskWord/AddModify.tsx

@@ -21,8 +21,6 @@ const AddModify: React.FC<Props> = ({ corpList, initialValues, visible, onClose,
     const updataKeywordNews = useAjax((params) => updateKeywordApi(params))
     /*******************************/
 
-    console.log(initialValues)
-
 
     const handleOk = () => {
         form.validateFields().then(valid => {

+ 11 - 0
src/pages/weComTask/page/chatRecordManage/riskWord/tableConfig.tsx

@@ -4,6 +4,17 @@ import { ColumnsType } from "antd/es/table";
 export function TableConfig(edit: (row: any, isCopy?: boolean) => void, del: (value: any) => void, taskPause: (pause: boolean, taskId: number[]) => void): ColumnsType<any> {
 
     let arr: ColumnsType<any> = [
+        {
+            title: '企业名称',
+            dataIndex: 'corpUserVO',
+            key: 'corpUserVO',
+            align: 'center',
+            width: 100,
+            ellipsis: true,
+            render(value) {
+                return value?.[0]?.corpName
+            },
+        },
         {
             title: '企业ID',
             dataIndex: 'corpId',