-
+
-
@@ -22,16 +22,36 @@ export default {
}
}
},
+ watch:{
+ study: {
+ immediate: true,
+ handler(v) {
+ this.studyInfo = {
+ studyId:v.id,
+ studyLeader:v.leader,
+ studySubjectId:''
+ }
+ }
+ },
+ },
components: {sbject,tbbdList},
computed: {},
filters: {},
data() {
return {
- showDetail:false
+ showDetail:false,
+ studyInfo:{
+ studyId:this.study.id,
+ studyLeader:this.study.leader,
+ studySubjectId:''
+ }
}
},
created() {},
methods: {
+ changeSubject(val){
+ this.studyInfo.studySubjectId = val
+ },
showDetailCallback(val){
this.showDetail=val
this.$emit('showDetail',val)
diff --git a/src/views/business/study/comp/tbbdList.vue b/src/views/business/study/comp/tbbdList.vue
index 6d9ea14..f83d5e0 100644
--- a/src/views/business/study/comp/tbbdList.vue
+++ b/src/views/business/study/comp/tbbdList.vue
@@ -129,7 +129,8 @@ export default {
watch: {
study: {
handler(newVal) {
- this.searchForm.studyId = newVal.id
+ this.searchForm.studyId = newVal.studyId
+ this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
this.search()
},
diff --git a/src/views/business/study/comp/ytbd.vue b/src/views/business/study/comp/ytbd.vue
index 18d8db4..b864e4c 100644
--- a/src/views/business/study/comp/ytbd.vue
+++ b/src/views/business/study/comp/ytbd.vue
@@ -1,10 +1,10 @@
-
+
-
@@ -22,16 +22,36 @@ export default {
}
}
},
+ watch:{
+ study: {
+ immediate: true,
+ handler(v) {
+ this.studyInfo = {
+ studyId:v.id,
+ studyLeader:v.leader,
+ studySubjectId:''
+ }
+ }
+ },
+ },
components: {sbject,ytbdList},
computed: {},
filters: {},
data() {
return {
- showDetail:false
+ showDetail:false,
+ studyInfo:{
+ studyId:this.study.id,
+ studyLeader:this.study.leader,
+ studySubjectId:''
+ }
}
},
created() {},
methods: {
+ changeSubject(val){
+ this.studyInfo.studySubjectId = val
+ },
showDetailCallback(val){
this.showDetail=val
this.$emit('showDetail',val)
diff --git a/src/views/business/study/comp/ytbdList.vue b/src/views/business/study/comp/ytbdList.vue
index 1dadb2b..610c06d 100644
--- a/src/views/business/study/comp/ytbdList.vue
+++ b/src/views/business/study/comp/ytbdList.vue
@@ -128,7 +128,8 @@ export default {
watch: {
study: {
handler(newVal) {
- this.searchForm.studyId = newVal.id
+ this.searchForm.studyId = newVal.studyId
+ this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
this.search()
},