From a51e058558bde8526a33e179e2c486119326a131 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Tue, 24 Mar 2026 12:57:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:[=E5=A1=AB=E6=8A=A5=E8=A1=A8=E5=8D=95]?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/study/comp/tbbd/Bj.vue | 17 +++++++++-------- src/views/business/study/comp/tbbd/Jq.vue | 13 +++++++++---- src/views/business/study/comp/tbbdList.vue | 1 + 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue index d8628f4..1176686 100644 --- a/src/views/business/study/comp/tbbd/Bj.vue +++ b/src/views/business/study/comp/tbbd/Bj.vue @@ -63,7 +63,7 @@ - + @@ -563,6 +563,11 @@ export default { this.getCcwz() }, methods: { + validForm() { + this.$refs["form"].validate(valid => { + if (valid) { } + }) + }, getCcwz() { listData({ pageNum: 1, @@ -889,13 +894,9 @@ export default { cancelSave() { try { // 类型1试验,5非试验表单,10麻精药表单 - if (this.form.studyType == 1) { - EventBus.$emit('onRefreshStudyTbbdList', {}); - } else if (this.form.studyType == 5) { - EventBus.$emit('onRefreshNonTrialTbbdList', {}); - } else if (this.form.studyType == 10) { - EventBus.$emit('onRefreshDrugTbbdList', {}); - } + EventBus.$emit('onRefreshStudyTbbdList', {}); + EventBus.$emit('onRefreshNonTrialTbbdList', {}); + EventBus.$emit('onRefreshDrugTbbdList', {}); let key = caesarDecipher(this.$route.params.key) let data = JSON.parse(key) if (data && data != undefined && data != '') { diff --git a/src/views/business/study/comp/tbbd/Jq.vue b/src/views/business/study/comp/tbbd/Jq.vue index 8e90acd..cb00571 100644 --- a/src/views/business/study/comp/tbbd/Jq.vue +++ b/src/views/business/study/comp/tbbd/Jq.vue @@ -3,11 +3,11 @@ -
+
- + @@ -36,7 +36,7 @@ - @@ -85,7 +85,7 @@ export default { }, computed: { ...mapGetters([ - 'nickName','name' + 'nickName', 'name' ]), }, created() { @@ -108,6 +108,11 @@ export default { this.form.id = row.id this.open = true }, + validForm() { + this.$refs["form"].validate(valid => { + if (valid) { } + }) + }, save() { this.$refs["form"].validate(valid => { if (valid) { diff --git a/src/views/business/study/comp/tbbdList.vue b/src/views/business/study/comp/tbbdList.vue index bec7404..b9efeaa 100644 --- a/src/views/business/study/comp/tbbdList.vue +++ b/src/views/business/study/comp/tbbdList.vue @@ -228,6 +228,7 @@ export default { }, mounted() { EventBus.$on('onRefreshStudyTbbdList', (data) => { + debugger this.getList() }); },