|
@ -808,12 +808,10 @@ export default { |
|
|
this.listQuery.templateId = this.id |
|
|
this.listQuery.templateId = this.id |
|
|
this.form.templateId = this.id |
|
|
this.form.templateId = this.id |
|
|
this.formLabelAlign.templateId = this.id |
|
|
this.formLabelAlign.templateId = this.id |
|
|
console.log(this.id, 6666) |
|
|
|
|
|
if (this.id) { |
|
|
if (this.id) { |
|
|
this.loadFormData(this.index) |
|
|
this.loadFormData(this.index) |
|
|
this.getList() |
|
|
this.getList() |
|
|
} else { |
|
|
} else { |
|
|
console.log(this.formTemplate, 5454242) |
|
|
|
|
|
this.$refs['formTemplate'].resetFields() |
|
|
this.$refs['formTemplate'].resetFields() |
|
|
this.clearForm() |
|
|
this.clearForm() |
|
|
} |
|
|
} |
|
@ -1074,7 +1072,14 @@ export default { |
|
|
species: species |
|
|
species: species |
|
|
} |
|
|
} |
|
|
}).then((data) => { |
|
|
}).then((data) => { |
|
|
this.nblbList = data |
|
|
switch (type) { |
|
|
|
|
|
case 'jylb': |
|
|
|
|
|
this.jylbList = data |
|
|
|
|
|
break |
|
|
|
|
|
case 'nblb': |
|
|
|
|
|
this.nblbList = data |
|
|
|
|
|
break |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
loadFormData(index) { |
|
|
loadFormData(index) { |
|
@ -1109,10 +1114,8 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
methods = 'post' |
|
|
methods = 'post' |
|
|
} |
|
|
} |
|
|
console.log(this.neibuleibie) |
|
|
|
|
|
this.formTemplate.neibuleibie = JSON.stringify(this.neibuleibie) |
|
|
this.formTemplate.neibuleibie = JSON.stringify(this.neibuleibie) |
|
|
this.formTemplate.shebeipinzhongdaima = JSON.stringify(this.shebeipinzhongdaima) |
|
|
this.formTemplate.shebeipinzhongdaima = JSON.stringify(this.shebeipinzhongdaima) |
|
|
console.log(this.formTemplate) |
|
|
|
|
|
this.api({ |
|
|
this.api({ |
|
|
url: '/template', |
|
|
url: '/template', |
|
|
method: methods, |
|
|
method: methods, |
|
|