liuyifan vor 5 Jahren
Ursprung
Commit
c28759978e

+ 7 - 2
CallCenterWeb.UI/src/views/outbound/automaticOutbound/components/addOrEdit.vue

@@ -88,8 +88,8 @@ export default {
88 88
       rules: {
89 89
         F_TaskUser: [{
90 90
           required: true,
91
-          trigger: 'blur',
92
-          message: '请输入任务人',
91
+          trigger: 'change',
92
+          message: '请选择任务人',
93 93
         }],
94 94
         F_State: [{
95 95
           required: true,
@@ -175,6 +175,11 @@ export default {
175 175
           this.ruleForm.F_State = res.F_State + "" //任务状态
176 176
           this.ruleForm.F_Type = res.F_Type + "" //外呼类型
177 177
           this.ruleForm.F_Content = res.F_Content //外呼内容
178
+          if (res.F_Type == 2) {
179
+            this.displayContent = false
180
+          } else if (res.F_Type == 1) {
181
+            this.displayContent = true
182
+          }
178 183
         }
179 184
       })
180 185
     },

+ 1 - 1
CallCenterWeb.UI/src/views/outbound/outboundCallRecords/index.vue

@@ -61,7 +61,7 @@
61 61
           <span>{{ scope.row.EndTime | timesFilter }}</span>
62 62
         </template>
63 63
       </el-table-column>
64
-      <el-table-column prop="TalkLongTime" label="录音时长" align="center" min-width />
64
+      <el-table-column prop="TalkLongTime" label="通话时长" align="center" min-width />
65 65
       <el-table-column prop="RelayNumber" label="中继号码" align="center" min-width />
66 66
     </el-table>
67 67
     <pagination

+ 24 - 2
CallCenterWeb.UI/src/views/systemSetup/roleSetting/userManage/addOrEdit.vue

@@ -33,10 +33,11 @@
33 33
               v-model="parentids"
34 34
               :options="departmentDropDatas"
35 35
               :props="props"
36
-              placeholder="请选择部门"
36
+              :placeholder="departmentPlaceholder"
37 37
               clearable
38 38
               filterable
39 39
               change-on-select
40
+              :class="{form_cascader: is_form_cascader}"
40 41
               @change="handledepartment"
41 42
               style="width: 100%">
42 43
             </el-cascader>
@@ -414,6 +415,8 @@ export default {
414 415
         value: 'id',
415 416
         label: 'text'
416 417
       },
418
+      departmentPlaceholder: '请选择部门', //部门提示
419
+      is_form_cascader: false
417 420
     }
418 421
   },
419 422
   computed: {
@@ -429,6 +432,7 @@ export default {
429 432
       .then(() => {
430 433
         if (this.rowid) {
431 434
           this.ruleForm.userid = this.rowid
435
+          this.is_form_cascader = true
432 436
           this.getDetail(this.rowid)
433 437
         }
434 438
       })
@@ -514,7 +518,7 @@ export default {
514 518
           this.ruleForm.headimg = res.F_HeadImg // 头像大图
515 519
           // this.ruleForm.head_small_img = res.head_small_img // 头像缩略图
516 520
           this.ruleForm.remark = res.F_Remark
517
-
521
+          this.departmentPlaceholder = res.F_Dept
518 522
           // 话务相关
519 523
           this.ruleForm.seatflag = res.F_SeatFlag.toString() // 话务标志
520 524
           this.seatFlag = res.F_SeatFlag
@@ -653,4 +657,22 @@ export default {
653 657
 			height: 100px;
654 658
 		}
655 659
 	}
660
+  .form_cascader {
661
+    ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
662
+        color: #606266;
663
+        font-size: 14px;
664
+    }
665
+    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
666
+        color: #606266;
667
+        font-size: 14px;
668
+    }
669
+    ::-moz-placeholder { /* Mozilla Firefox 19+ */
670
+        color: #606266;
671
+        font-size: 14px;
672
+    }
673
+    :-ms-input-placeholder { /* Internet Explorer 10-11 */
674
+        color: #606266;
675
+        font-size: 14px;
676
+    }
677
+  }
656 678
 </style>

+ 13 - 7
CallCenterWeb.UI/src/views/trafficData/callRecord/add.vue

@@ -93,10 +93,7 @@
93 93
 </template>
94 94
 
95 95
 <script>
96
-import {
97
-  getTaskLists,
98
-  addOutboundNumberLists,
99
-} from "@/api/outbound/automaticOutbound";
96
+import { getTaskLists, addOutboundNumberLists } from "@/api/outbound/automaticOutbound";
100 97
 import { validateTel } from "@/utils/validate";
101 98
 import { filterContent, pickerOptions } from "@/utils";
102 99
 import { getUserAccountLists } from '@/api/systemSetup/roleSetting/userManage';
@@ -177,8 +174,8 @@ export default {
177 174
         F_TaskUser: [
178 175
           {
179 176
             required: true,
180
-            trigger: "blur",
181
-            message: "请输入任务人",
177
+            trigger: "change",
178
+            message: "请选择任务人",
182 179
           },
183 180
         ],
184 181
         F_State: [
@@ -211,7 +208,6 @@ export default {
211 208
     this.getListTask();
212 209
     Promise.all([]).then(() => {
213 210
       if (this.rowData) {
214
-        console.log("this.rowData", this.rowData);
215 211
       }
216 212
     });
217 213
   },
@@ -222,6 +218,7 @@ export default {
222 218
           this.ruleForm.F_StartTime = this.ruleForm.F_Time[0];
223 219
           this.ruleForm.F_EndTime = this.ruleForm.F_Time[1];
224 220
           for (let i = 0; i < this.rowData.length; i++) {
221
+            this.autoDialsList = [];
225 222
             let data = {
226 223
               F_Parentid: "",
227 224
               F_CallUser: "",
@@ -289,6 +286,7 @@ export default {
289 286
       if (this.outboundTaskRadio == "1") {
290 287
         this.displayOutboundTask = true;
291 288
       } else if (this.outboundTaskRadio == "2") {
289
+        this.resetForm()
292 290
         this.displayOutboundTask = false;
293 291
       }
294 292
     },
@@ -302,6 +300,11 @@ export default {
302 300
       this.ruleForm.F_State = currentRow.F_State + ""; //任务状态
303 301
       this.ruleForm.F_Type = currentRow.F_Type + ""; //外呼类型
304 302
       this.ruleForm.F_Content = currentRow.F_Content; //外呼内容
303
+      if (currentRow.F_Type == 2) {
304
+        this.displayContent = false
305
+      } else if (currentRow.F_Type == 1) {
306
+        this.displayContent = true
307
+      }
305 308
     },
306 309
     handleChangeType(val) {
307 310
       if (val === "2") {
@@ -318,6 +321,9 @@ export default {
318 321
         }
319 322
       })
320 323
     },
324
+    resetForm() {
325
+      this.$refs.ruleForm.resetFields();
326
+    }
321 327
   },
322 328
 };
323 329
 </script>