diff --git a/src/views/business/study/comp/jhbd/Bj.vue b/src/views/business/study/comp/jhbd/Bj.vue index 4a6935d..b6a657e 100644 --- a/src/views/business/study/comp/jhbd/Bj.vue +++ b/src/views/business/study/comp/jhbd/Bj.vue @@ -192,7 +192,7 @@ export default { onPlanCallback(data) { console.log("data:" + JSON.stringify(data)) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) - if (data.type == 'fieldChanged') { + if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') { studyFormPlan_updateBdnr( { id: this.form.id, diff --git a/src/views/business/study/comp/sqbd/Bj.vue b/src/views/business/study/comp/sqbd/Bj.vue index 9f44184..d812424 100644 --- a/src/views/business/study/comp/sqbd/Bj.vue +++ b/src/views/business/study/comp/sqbd/Bj.vue @@ -192,7 +192,7 @@ export default { onApplyCallback(data) { console.log("data:" + JSON.stringify(data)) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) - if (data.type == 'fieldChanged') { + if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') { studyFormApply_updateBdnr( { id: this.form.id, diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue index 2114e84..836a061 100644 --- a/src/views/business/study/comp/tbbd/Bj.vue +++ b/src/views/business/study/comp/tbbd/Bj.vue @@ -359,7 +359,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'&&data.newRecord&&data.newRecord!='') { studyFormFill_updateBdnr( { id: this.form.id, @@ -512,7 +512,10 @@ export default { this.$modal.loading() studyFormFill_bcOnly(this.form).then(response => { this.form = response.data + this.templateData = deepClone(this.form) this.showIndex = 2 + const obj = Object.assign({}, this.$route, { title: this.form.bdmc }) + this.$tab.updatePage(obj); }).finally(() => { this.$modal.closeLoading() }) diff --git a/src/views/business/study/comp/ytbd/Bj.vue b/src/views/business/study/comp/ytbd/Bj.vue index 49267a8..8b22944 100644 --- a/src/views/business/study/comp/ytbd/Bj.vue +++ b/src/views/business/study/comp/ytbd/Bj.vue @@ -199,7 +199,7 @@ export default { onPreCallback(data) { console.log("data:" + JSON.stringify(data)) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) - if (data.type == 'fieldChanged') { + if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') { studyFormPre_updateBdnr( { id: this.form.id,