Zhenxing.Lu 19 hours ago
parent
commit
b778124f9a

+ 30 - 0
src/views/wechat/contact/contact.data.ts

@@ -113,6 +113,18 @@ export const columns: BasicColumn[] = [
       return sexMap[text] || '未知';
     },
   },
+  {
+    title: '微信类型',
+    dataIndex: 'ctype',
+    width: 120,
+    customRender: ({ record }) => {
+      const typeMap = {
+        1: '个微',
+        3: '企微'
+      };
+      return typeMap[record.ctype] || '-';
+    }
+  },
 ];
 
 export const searchFormSchema: FormSchema[] = [
@@ -156,6 +168,24 @@ export const searchFormSchema: FormSchema[] = [
     component: 'Input',
     colProps: { span: 8 },
   },
+  {
+    field: 'ctype',
+    label: '微信类型',
+    component: 'Select',
+    componentProps: {
+      options: [
+        {
+          label: '个微',
+          value: 1,
+        },
+        {
+          label: '企微',
+          value: 3,
+        },
+      ],
+    },
+    colProps: { span: 8 },
+  },
 ];
 
 export const formSchema: FormSchema[] = [

+ 2 - 0
src/views/wechat/contact/index.vue

@@ -43,10 +43,12 @@
               {
                 label: record.isInBlockList == true ? '转 AI' : '转人工',
                 onClick: handleIsInBlockList.bind(null, record),
+                ifShow: record.ctype !== 3,
               },
               {
                 label: '发信息',
                 onClick: handleMsg.bind(null, record),
+                ifShow: record.ctype !== 3,
               },
               {
                 label: '编辑标签',

+ 18 - 0
src/views/wechat/wx/index.vue

@@ -413,6 +413,24 @@
         colProps: { span: 8 },
         ifShow: () => permCode.value === '001',
       },
+      {
+        field: 'ctype',
+        label: '微信类型',
+        component: 'Select',
+        componentProps: {
+          options: [
+            {
+              label: '个微',
+              value: 1,
+            },
+            {
+              label: '企微',
+              value: 3,
+            },
+          ],
+        },
+        colProps: { span: 8 },
+      },
     ];
   });
   function actionsOptions(record) {

+ 12 - 0
src/views/wechat/wx/wx.data.ts

@@ -88,6 +88,18 @@ export const columns: BasicColumn[] = [
       return record.totalTokens
     },
   },
+  {
+    title: '微信类型',
+    dataIndex: 'ctype',
+    width: 120,
+    customRender: ({ record }) => {
+      const typeMap = {
+        1: '个微',
+        3: '企微'
+      };
+      return typeMap[record.ctype] || '-';
+    }
+  },
 ]
 
  export const searchFormSchema: FormSchema[] = [