|
|
|
@ -142,11 +142,7 @@ export default { |
|
|
|
|
], |
|
|
|
|
options:[], |
|
|
|
|
visible:false, |
|
|
|
|
options:[], |
|
|
|
|
activeIndex:'1', |
|
|
|
|
second:[// 二级卡数组 |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
myTable: { |
|
|
|
|
247: { |
|
|
|
|
prop: 'username', |
|
|
|
@ -207,13 +203,65 @@ export default { |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable) |
|
|
|
|
}, |
|
|
|
|
submitForm() { |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
this.visible = true; |
|
|
|
|
const parentId = '0,5,27,226' |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime) |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable) |
|
|
|
|
// let tmpIndex = 100; |
|
|
|
|
// for(const key in this.myTable2) { |
|
|
|
|
// const { prop, type } = this.myTable2[key] |
|
|
|
|
// if(this.form[prop]){ |
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// for(const key in this.myTable) { |
|
|
|
|
// const { prop, type } = this.myTable[key] |
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
// } |
|
|
|
|
// let params= { |
|
|
|
|
// parentId, |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
// 因为没说emptyOne是多少 |
|
|
|
|
// let tmpIndex = 100; |
|
|
|
|
// for(const key in this.myTable2) { |
|
|
|
|
// const { prop, type } = this.myTable[key] |
|
|
|
|
// if(this.form[prop]){ |
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// for(const key in this.myTable) { |
|
|
|
|
// const { prop, type } = this.myTable[key] |
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
// } |
|
|
|
|
// let params= { |
|
|
|
|
// parentId, |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
}, this.$refs)); |
|
|
|
|
}, |
|
|
|
|
ismoney: ismoney, |
|
|
|
|