|
|
|
@ -363,7 +363,7 @@ export default { |
|
|
|
onFillCallback(data) { |
|
|
|
console.log("data:" + JSON.stringify(data)) |
|
|
|
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) |
|
|
|
if (data.type == 'fieldChanged' ) { |
|
|
|
if (data.type == 'fieldChanged') { |
|
|
|
studyFormFill_updateBdnr( |
|
|
|
{ |
|
|
|
id: this.form.id, |
|
|
|
@ -426,6 +426,8 @@ export default { |
|
|
|
this.form = response.data |
|
|
|
this.form.qmyy = this.$t('page.business.study.studyFormFill.zztjyzbd') |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
const obj = Object.assign({}, this.$route, { title: this.form.bdmc }) |
|
|
|
this.$tab.updatePage(obj); |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} else { |
|
|
|
@ -434,6 +436,8 @@ export default { |
|
|
|
study_info({ id: params.studyId }).then(response => { |
|
|
|
this.form = _.merge({}, this.form, { stydyId: params.studyId, resourceStudy: response.data.resource, sftb: 1 }) |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
const obj = Object.assign({}, this.$route, { title: this.form.bdmc }) |
|
|
|
this.$tab.updatePage(obj); |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
|