|
@@ -189,6 +189,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.task.id = this.$route.query.id;
|
|
this.task.id = this.$route.query.id;
|
|
|
|
|
+ this.type = this.$route.query.type
|
|
|
this.queryInfoById(this.task.id);
|
|
this.queryInfoById(this.task.id);
|
|
|
this.getTask(this.task.id);
|
|
this.getTask(this.task.id);
|
|
|
},
|
|
},
|
|
@@ -310,6 +311,9 @@ export default {
|
|
|
this.spinningAdd = true;
|
|
this.spinningAdd = true;
|
|
|
let httpUrl = this.url.importData.replaceAll("taskId", this.task.id);
|
|
let httpUrl = this.url.importData.replaceAll("taskId", this.task.id);
|
|
|
let params = this.dataSource;
|
|
let params = this.dataSource;
|
|
|
|
|
+ for (let i in params){
|
|
|
|
|
+ params[i].type = this.type
|
|
|
|
|
+ }
|
|
|
let method = 'POST';
|
|
let method = 'POST';
|
|
|
let that = this;
|
|
let that = this;
|
|
|
// 发送请求
|
|
// 发送请求
|