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() }); },