diff --git a/src/views/business/comps/select/SelectTemplate.vue b/src/views/business/comps/select/SelectTemplate.vue
index 7725941..abb42e7 100644
--- a/src/views/business/comps/select/SelectTemplate.vue
+++ b/src/views/business/comps/select/SelectTemplate.vue
@@ -37,6 +37,10 @@ export default {
type: Number,
default: null
},
+ selectedDeptId: {
+ type: Number,
+ default: null
+ },
},
watch: {
value: {
@@ -50,7 +54,7 @@ export default {
handler(v) {
this.selected.name=v || ''
}
- },
+ }
},
data() {
return {
@@ -65,7 +69,7 @@ export default {
methods: {
showSelectTemplate(){
if(!this.disabled){
- this.$refs.selectTemplateDialog.show({needPre:this.needPre,studyType:this.studyType,studyFormType:this.studyFormType})
+ this.$refs.selectTemplateDialog.show({needPre:this.needPre,studyType:this.studyType,studyFormType:this.studyFormType,selectedDeptId:this.selectedDeptId})
}
},
handleChange(obj) {
diff --git a/src/views/business/comps/select/SelectTemplateDialog.vue b/src/views/business/comps/select/SelectTemplateDialog.vue
index 75adb57..cf2bc07 100644
--- a/src/views/business/comps/select/SelectTemplateDialog.vue
+++ b/src/views/business/comps/select/SelectTemplateDialog.vue
@@ -81,6 +81,7 @@ export default {
this.selectedId = row.id
},
show(val) {
+ this.searchForm.deptId=val.selectedDeptId
this.searchForm = _.merge({}, this.searchForm, val)
this.selectedId = null
this.search()
diff --git a/src/views/business/form/drug/comp/tbbdList.vue b/src/views/business/form/drug/comp/tbbdList.vue
index 85b9f52..30aeaf0 100644
--- a/src/views/business/form/drug/comp/tbbdList.vue
+++ b/src/views/business/form/drug/comp/tbbdList.vue
@@ -188,6 +188,7 @@ import SelectDeptUserDialog from '@/views/business/comps/select/SelectDeptUserDi
import { caesarCipher } from "@/utils/index";
import { mapGetters } from 'vuex'
import moment from "moment";
+import { EventBus } from "@/utils/eventBus";
export default {
name: 'YtbdList',
props: {
@@ -251,6 +252,15 @@ export default {
}
},
created() { this.getIsQa() },
+ mounted() {
+ EventBus.$on('onRefreshDrugTbbdList',(data) => {
+ this.getList()
+ });
+ },
+ beforeDestroy() {
+ // 记得移除监听,避免内存泄漏
+ EventBus.$off('onRefreshDrugTbbdList');
+ },
methods: {
checkPermi,
checkRole,
diff --git a/src/views/business/form/nonTrial/comp/tbbdList.vue b/src/views/business/form/nonTrial/comp/tbbdList.vue
index da38b8c..5dbaacf 100644
--- a/src/views/business/form/nonTrial/comp/tbbdList.vue
+++ b/src/views/business/form/nonTrial/comp/tbbdList.vue
@@ -195,6 +195,7 @@ import SelectDeptUserDialog from '@/views/business/comps/select/SelectDeptUserDi
import { caesarCipher } from "@/utils/index";
import { mapGetters } from 'vuex'
import moment from "moment";
+import { EventBus } from "@/utils/eventBus";
export default {
name: 'YtbdList',
props: {
@@ -259,6 +260,15 @@ export default {
}
},
created() { this.getIsQa() },
+ mounted() {
+ EventBus.$on('onRefreshNonTrialTbbdList',(data) => {
+ this.getList()
+ });
+ },
+ beforeDestroy() {
+ // 记得移除监听,避免内存泄漏
+ EventBus.$off('onRefreshNonTrialTbbdList');
+ },
methods: {
checkPermi,
checkRole,
diff --git a/src/views/business/study/comp/jhbd/Fh.vue b/src/views/business/study/comp/jhbd/Fh.vue
index cb68cb4..1eb129c 100644
--- a/src/views/business/study/comp/jhbd/Fh.vue
+++ b/src/views/business/study/comp/jhbd/Fh.vue
@@ -49,7 +49,8 @@