Kaynağa Gözat

问题修改

liuyifan 5 yıl önce
ebeveyn
işleme
c28759978e

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

88
       rules: {
88
       rules: {
89
         F_TaskUser: [{
89
         F_TaskUser: [{
90
           required: true,
90
           required: true,
91
-          trigger: 'blur',
92
-          message: '请输入任务人',
91
+          trigger: 'change',
92
+          message: '请选择任务人',
93
         }],
93
         }],
94
         F_State: [{
94
         F_State: [{
95
           required: true,
95
           required: true,
175
           this.ruleForm.F_State = res.F_State + "" //任务状态
175
           this.ruleForm.F_State = res.F_State + "" //任务状态
176
           this.ruleForm.F_Type = res.F_Type + "" //外呼类型
176
           this.ruleForm.F_Type = res.F_Type + "" //外呼类型
177
           this.ruleForm.F_Content = res.F_Content //外呼内容
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
           <span>{{ scope.row.EndTime | timesFilter }}</span>
61
           <span>{{ scope.row.EndTime | timesFilter }}</span>
62
         </template>
62
         </template>
63
       </el-table-column>
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
       <el-table-column prop="RelayNumber" label="中继号码" align="center" min-width />
65
       <el-table-column prop="RelayNumber" label="中继号码" align="center" min-width />
66
     </el-table>
66
     </el-table>
67
     <pagination
67
     <pagination

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

33
               v-model="parentids"
33
               v-model="parentids"
34
               :options="departmentDropDatas"
34
               :options="departmentDropDatas"
35
               :props="props"
35
               :props="props"
36
-              placeholder="请选择部门"
36
+              :placeholder="departmentPlaceholder"
37
               clearable
37
               clearable
38
               filterable
38
               filterable
39
               change-on-select
39
               change-on-select
40
+              :class="{form_cascader: is_form_cascader}"
40
               @change="handledepartment"
41
               @change="handledepartment"
41
               style="width: 100%">
42
               style="width: 100%">
42
             </el-cascader>
43
             </el-cascader>
414
         value: 'id',
415
         value: 'id',
415
         label: 'text'
416
         label: 'text'
416
       },
417
       },
418
+      departmentPlaceholder: '请选择部门', //部门提示
419
+      is_form_cascader: false
417
     }
420
     }
418
   },
421
   },
419
   computed: {
422
   computed: {
429
       .then(() => {
432
       .then(() => {
430
         if (this.rowid) {
433
         if (this.rowid) {
431
           this.ruleForm.userid = this.rowid
434
           this.ruleForm.userid = this.rowid
435
+          this.is_form_cascader = true
432
           this.getDetail(this.rowid)
436
           this.getDetail(this.rowid)
433
         }
437
         }
434
       })
438
       })
514
           this.ruleForm.headimg = res.F_HeadImg // 头像大图
518
           this.ruleForm.headimg = res.F_HeadImg // 头像大图
515
           // this.ruleForm.head_small_img = res.head_small_img // 头像缩略图
519
           // this.ruleForm.head_small_img = res.head_small_img // 头像缩略图
516
           this.ruleForm.remark = res.F_Remark
520
           this.ruleForm.remark = res.F_Remark
517
-
521
+          this.departmentPlaceholder = res.F_Dept
518
           // 话务相关
522
           // 话务相关
519
           this.ruleForm.seatflag = res.F_SeatFlag.toString() // 话务标志
523
           this.ruleForm.seatflag = res.F_SeatFlag.toString() // 话务标志
520
           this.seatFlag = res.F_SeatFlag
524
           this.seatFlag = res.F_SeatFlag
653
 			height: 100px;
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
 </style>
678
 </style>

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

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