|
|
@@ -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>
|