|
|
|
@ -196,14 +196,6 @@ export default { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.showIndex = 2 |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPre_bc(this.form).then(response => { |
|
|
|
this.form = response.data |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
this.showIndex = 2 |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -212,6 +204,7 @@ export default { |
|
|
|
this.form.templateMc = val.name |
|
|
|
this.form.bdmc = val.name |
|
|
|
this.form.templateSn = val.sn |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
}, |
|
|
|
cancel() { |
|
|
|
this.$emit('close') |
|
|
|
@ -243,7 +236,6 @@ export default { |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPre_info({ id: row.id }).then(response => { |
|
|
|
this.form = response.data |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
this.form.qmyy = this.$t('page.business.study.studyFormPre.zztjyzbd') |
|
|
|
this.$modal.closeLoading() |
|
|
|
}).finally(() => { |
|
|
|
@ -253,6 +245,7 @@ export default { |
|
|
|
this.showIndex = 1 |
|
|
|
this.form = _.merge({}, this.form, row) |
|
|
|
} |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
}, |
|
|
|
save() { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
|