Explorar el Código

禅道bug修改

liuzhen %!s(int64=5) %!d(string=hace) años
padre
commit
f38396cf69

+ 5 - 0
fuwaiCallCenterWeb.UI/src/views/order/orderCreate/index.vue

@@ -139,6 +139,11 @@ export default {
139 139
           required: true,
140 140
           trigger: 'blur',
141 141
           validator: validateTelRule
142
+        }],
143
+        content: [{
144
+          required: true,
145
+          message: '请输入工单内容',
146
+          trigger: 'blur'
142 147
         }]
143 148
       },
144 149
       loading: false

+ 59 - 3
fuwaiCallCenterWeb.UI/src/views/outbound/allot/index.vue

@@ -20,7 +20,7 @@
20 20
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
21 21
     </div>
22 22
 
23
-    <el-tabs v-model="activeName" @tab-click="handleClick">
23
+    <el-tabs v-model="activeName" @tab-click="handleClick" v-if="flag">
24 24
       <el-tab-pane v-for="item in tabMapOptions" :key="item.key" :name="item.key">
25 25
         <span slot="label">{{ item.label }}<span :class="item.listclass">({{ item.num }})</span></span>
26 26
         <tabAllot v-if="activeName===item.key" ref="tabtask" :search-datas="searchDatas" @getTotalNums="getTotalNum"/>
@@ -35,7 +35,9 @@ import {
35 35
   pickerOptions
36 36
 } from '@/utils'
37 37
 import tabAllot from './components/tabAllot'
38
-
38
+import {
39
+  getPlanLists
40
+} from '@/api/outbound/plan'
39 41
 export default {
40 42
   name: 'Allot',
41 43
   components: {
@@ -75,6 +77,12 @@ export default {
75 77
         keyword: '', // 计划名称
76 78
         isallot: ''
77 79
       },
80
+      pageParams: {
81
+        pageindex: 1, // 当前第几页
82
+        pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
83
+        total: 0 // 总共多少数据
84
+      },
85
+      flag:false,//表头数据展示
78 86
       activeName: 'first',
79 87
       tabMapOptions: [{
80 88
         label: '全部',
@@ -97,6 +105,9 @@ export default {
97 105
       ]
98 106
     }
99 107
   },
108
+  created() {
109
+    this.getCurrentList()
110
+  },
100 111
   mounted() {
101 112
     document.onkeyup = (e) => {
102 113
       if (e.keyCode === 13) {
@@ -131,7 +142,52 @@ export default {
131 142
       this.tabMapOptions[0].num = value.totalcount // 全部
132 143
       this.tabMapOptions[1].num = value.wfpcount // 待分配
133 144
       this.tabMapOptions[2].num = value.fpcount // 已分配
134
-    }
145
+    },
146
+    getCurrentList() {
147
+      return new Promise(resolve => {
148
+        const params = {
149
+          pageindex: this.pageParams.pageindex, // 第几页
150
+          pagesize: this.pageParams.pagesize, // 每页几条信息
151
+          key: this.searchDatas.keyword.replace(/\s+/g, ""), //	否	string	任务名称,可模糊查询
152
+          taskstate: this.searchDatas.sc_state, //	否	int	任务状态 (不传值时查询所有状态)
153
+          stime: this.searchDatas.searchDate && this.searchDatas.searchDate[0], //	否	string	开始时间
154
+          etime: this.searchDatas.searchDate && this.searchDatas.searchDate[1], //	否	string	结束时间
155
+          isallot: this.searchDatas.isallot //	否	int	分配状态 (不传值时查询所有状态)
156
+        }
157
+        getPlanLists(params).then(response => {
158
+          if (response.state.toLowerCase() === 'success') {
159
+            switch (this.searchDatas.isallot) {
160
+              case '':
161
+                this.pageParams.total = response.totalcount
162
+                break
163
+              case 0:
164
+                this.pageParams.total = response.wfpcount
165
+                break
166
+              case 1:
167
+                this.pageParams.total = response.fpcount
168
+                break
169
+              default:
170
+                break
171
+            }
172
+            console.log(this.dataLists)
173
+            if (response.total >= 100) {
174
+              response.total = '99+'
175
+            }
176
+            if (response.wfpcount >= 100) {
177
+              response.wfpcount = '99+'
178
+            }
179
+            if (response.fpcount >= 100) {
180
+              response.fpcount = '99+'
181
+            }
182
+            this.tabMapOptions[0].num = response.totalcount // 全部
183
+            this.tabMapOptions[1].num = response.wfpcount // 待分配
184
+            this.tabMapOptions[2].num = response.fpcount // 已分配
185
+            this.flag = true
186
+          }
187
+        })
188
+        resolve()
189
+      })
190
+    },
135 191
   }
136 192
 }
137 193
 </script>

+ 57 - 2
fuwaiCallCenterWeb.UI/src/views/outbound/myTask/index.vue

@@ -19,7 +19,7 @@
19 19
       <el-input v-model="searchDatas.keyword" placeholder="请输入计划名称" class="filter-item"/>
20 20
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
21 21
     </div>
22
-    <el-tabs v-model="activeName" @tab-click="handleClick">
22
+    <el-tabs v-model="activeName" @tab-click="handleClick" v-if="flag">
23 23
       <el-tab-pane v-for="item in tabMapOptions" :key="item.key" :name="item.key">
24 24
         <span slot="label">{{ item.label }}<span :class="item.listclass">({{ item.num }})</span></span>
25 25
         <tabMyTask v-if="activeName===item.key" ref="tabtask" :search-datas="searchDatas" @getTotalNums="getTotalNum"/>
@@ -38,6 +38,7 @@ import {
38 38
   getSeatLists
39 39
 } from '@/api/telCall/seatMonitor'
40 40
 import tabMyTask from './components/tabMyTask'
41
+import {getTaskLists} from '@/api/outbound/tasks'
41 42
 
42 43
 export default {
43 44
   name: 'MyTask',
@@ -78,6 +79,12 @@ export default {
78 79
         keyword: '', // 计划名称
79 80
         ishistory: 0
80 81
       },
82
+      pageParams: {
83
+        pageindex: 1, // 当前第几页
84
+        pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
85
+        total: 0 // 总共多少数据
86
+      },
87
+      flag:false,//表头数据展示
81 88
       activeName: 'first',
82 89
       tabMapOptions: [{
83 90
         label: '全部',
@@ -100,6 +107,9 @@ export default {
100 107
       ]
101 108
     }
102 109
   },
110
+  created() {
111
+    this.getCurrentList()
112
+  },
103 113
   mounted() {
104 114
     document.onkeyup = (e) => {
105 115
       if (e.keyCode === 13) {
@@ -134,7 +144,52 @@ export default {
134 144
       this.tabMapOptions[0].num = value.totalcount // 全部
135 145
       this.tabMapOptions[1].num = value.wfpcount // 当前任务
136 146
       this.tabMapOptions[2].num = value.fpcount // 历史任务
137
-    }
147
+    },
148
+    getCurrentList() {
149
+      return new Promise(resolve => {
150
+        const params = {
151
+          pageindex: this.pageParams.pageindex, // 第几页
152
+          pagesize: this.pageParams.pagesize, // 每页几条信息
153
+          infokind: this.searchDatas.ishistory, // 否	int	查询类型(为0或不传时获取全部,为1时获取当前任务,为2时获取历史任务)
154
+          isstart: this.searchDatas.sc_state, //	否	int	任务状态 (不传值时查询所有状态)
155
+          stime: this.searchDatas.searchDate && this.searchDatas.searchDate[0], //	否	string	开始时间
156
+          etime: this.searchDatas.searchDate && this.searchDatas.searchDate[1], //	否	string	结束时间
157
+          agentid: this.usercode, // 否	string	坐席工号(不传值查询全部坐席)
158
+          taskname: this.searchDatas.keyword //	否	string	计划名称,可模糊查询
159
+        }
160
+        getTaskLists(params).then(response => {
161
+          if (response.state.toLowerCase() === 'success') {
162
+            switch (this.searchDatas.ishistory) {
163
+              case 0:
164
+                this.pageParams.total = response.total
165
+                break
166
+              case 1:
167
+                this.pageParams.total = response.dqnum
168
+                break
169
+              case 2:
170
+                this.pageParams.total = response.lsnum
171
+                break
172
+              default:
173
+                break
174
+            }
175
+            if (response.total >= 100) {
176
+              response.total = '99+'
177
+            }
178
+            if (response.dqnum >= 100) {
179
+              response.dqnum = '99+'
180
+            }
181
+            if (response.lsnum >= 100) {
182
+              response.lsnum = '99+'
183
+            }
184
+            this.tabMapOptions[0].num = response.total // 全部
185
+            this.tabMapOptions[1].num = response.dqnum // 当前任务
186
+            this.tabMapOptions[2].num = response.lsnum // 历史任务
187
+            this.flag = true
188
+          }
189
+        })
190
+        resolve()
191
+      })
192
+    },
138 193
   }
139 194
 }
140 195
 </script>

+ 2 - 1
fuwaiCallCenterWeb.UI/src/views/telCall/blackList/addOrEditBlackList.vue

@@ -126,7 +126,8 @@ export default {
126 126
       })
127 127
     },
128 128
     resetForm() {
129
-      this.$refs.ruleForm.resetFields()
129
+      this.$refs.ruleForm.resetFields();
130
+      this.ruleForm.rangTimes='';
130 131
     },
131 132
     // 获取详情
132 133
     getDetail(rid) {

+ 1 - 0
fuwaiCallCenterWeb.UI/src/views/telCall/restDay/addOrEdit.vue

@@ -152,6 +152,7 @@ export default {
152 152
     },
153 153
     resetForm() {
154 154
       this.$refs.ruleForm.resetFields()
155
+      this.ruleForm.rangeTime='';
155 156
     },
156 157
     // 获取详情
157 158
     getDetail() {