瀏覽代碼

feat: 添加AI相关环境变量并删除冗余文件

闪电 10 月之前
父節點
當前提交
de9d5c25a5

+ 4 - 0
src/store/commonSelect/common.js

@@ -14,6 +14,7 @@ const useSelectStore = defineStore('common', {
14 14
         knowledgeTypeTree:[],
15 15
         workordertypeListData: [],
16 16
         categoryListData: [],
17
+        areaTree: [],
17 18
         roleList: [],//角色
18 19
         postList: [],//岗位
19 20
         dictList: [],//字典
@@ -38,6 +39,9 @@ const useSelectStore = defineStore('common', {
38 39
             this.userListData = getUserSelcet(userResult.data, 'nickName', 'userName')
39 40
             this.workorderUserList = workorderGlvUserList(userResult.data)
40 41
 
42
+            const areaResult = await getPageListData('/system/area/treeselect')
43
+            this.areaTree = areaResult.data || [];
44
+
41 45
             const deptUserResult = await getPageListData('/common/work/type/treeselect')  //  /common/worker/type/treeselect    
42 46
             this.deptUserTree = filterTreeData(deptUserResult.data) ;//filterTreeData(workordertypeResult.data)
43 47
             const workordertypeResult = await getPageListData('/common/work/type/treeselect')  //  /common/worker/type/treeselect    

+ 4 - 3
src/views/main/telephone/callRecord/config/content.config.js

@@ -2,9 +2,10 @@ export const contentTableConfig = {
2 2
   title: '通话记录',
3 3
   contentTableHeader: true,
4 4
   propList: [
5
-    { prop: 'caller', label: '电话号码', slotName: 'recordCallHandler'},
6
-    { prop: 'callerAgent', label: '坐席工号', slotName: 'recordAgentHandler', customSlot: true },
7
-    { prop: 'callerAgent', label: '坐席分机号', slotName: 'recordCallerHandler', customSlot: true },
5
+    // { prop: 'caller', label: '电话号码', slotName: 'recordCallHandler'},
6
+    // { prop: 'callerAgent', label: '坐席工号', slotName: 'recordAgentHandler', customSlot: true },
7
+    // { prop: 'callerAgent', label: '坐席分机号', slotName: 'recordCallerHandler', customSlot: true },
8
+    { prop: 'agent', label: '坐席'},
8 9
     { prop: 'callState', label: '呼叫状态' ,slotName: 'recordCallStateHandler', customSlot: true},
9 10
     { prop: 'recordPath', label: '录音路径', slotName: 'audioPlayerHandler' },
10 11
     { prop: 'answerTime', label: '通话开始时间' },

+ 38 - 12
src/views/main/telephone/callRecord/config/search.config.js

@@ -1,24 +1,23 @@
1 1
 export const searchFormConfig = {
2 2
   labelWidth: '120px',
3 3
   itemStyle: {
4
-    padding: '0px'
4
+    padding: '0px',
5 5
   },
6 6
   colLayout: {
7
-    span: 6
7
+    span: 6,
8 8
   },
9 9
   formItems: [
10
-    
11 10
     {
12 11
       field: 'caller',
13 12
       type: 'input',
14 13
       label: '主叫号码',
15
-      placeholder: '请输入来电号码'
14
+      placeholder: '请输入来电号码',
16 15
     },
17 16
     {
18 17
       field: 'callee',
19 18
       type: 'input',
20 19
       label: '被叫号码',
21
-      placeholder: '请输入来电号码'
20
+      placeholder: '请输入来电号码',
22 21
     },
23 22
     {
24 23
       field: 'callType',
@@ -28,8 +27,8 @@ export const searchFormConfig = {
28 27
       clearable: true,
29 28
       options: [
30 29
         { title: '呼入', value: 1 },
31
-        { title: '呼出', value: 2 }
32
-      ]
30
+        { title: '呼出', value: 2 },
31
+      ],
33 32
     },
34 33
     {
35 34
       field: 'isAnswer',
@@ -39,8 +38,35 @@ export const searchFormConfig = {
39 38
       clearable: true,
40 39
       options: [
41 40
         { title: '未接通', value: 0 },
42
-        { title: '已接通', value: 1 }
43
-      ]
44
-    }
45
-  ]
46
-}
41
+        { title: '已接通', value: 1 },
42
+      ],
43
+    },
44
+    {
45
+      field: 'agent',
46
+      type: 'input',
47
+      label: '工号',
48
+      placeholder: '请输入工号',
49
+    },
50
+    {
51
+      field: 'agent',
52
+      type: 'input',
53
+      label: '工号',
54
+      placeholder: '请输入工号',
55
+    },
56
+    {
57
+      field: 'timeRange',
58
+      type: 'datepicker',
59
+      label: '操作时间',
60
+      placeholder: '请选择时间',
61
+      otherOptions: {
62
+        'range-separator': '至',
63
+        type: 'datetimerange',
64
+        'value-format': 'YYYY-MM-DD HH:mm:ss',
65
+      },
66
+      fieldArray: ['startTime', 'endTime'],
67
+      resFormat: (time) => {
68
+        return moment(time).format('YYYY-MM-DD HH:mm:ss');
69
+      },
70
+    },
71
+  ],
72
+};