提交 3a9afebc 编写于 作者: tao.wu's avatar tao.wu

no message

上级 899c68ee
...@@ -179,9 +179,11 @@ ...@@ -179,9 +179,11 @@
wechatPatientNum: 0, wechatPatientNum: 0,
messagePatientNum: 0, messagePatientNum: 0,
totalNumber: 0, totalNumber: 0,
activeResourceId: '',
} }
}, },
props: { props: {
resourceId: String,
standedTimeNodeList: Array, standedTimeNodeList: Array,
patientIdList: Array, patientIdList: Array,
checkForm: Boolean, checkForm: Boolean,
...@@ -192,6 +194,7 @@ ...@@ -192,6 +194,7 @@
this.getConstData(); this.getConstData();
}, },
mounted(){ mounted(){
console.log(this.resourceId)
if(!this.planId){//新建计划 if(!this.planId){//新建计划
this.initNewForm(); this.initNewForm();
} }
...@@ -205,6 +208,23 @@ ...@@ -205,6 +208,23 @@
this.$forceUpdate(); this.$forceUpdate();
} }
}, },
resourceId(val){
console.log('props=',val)
console.log('activeResourceId=',this.activeResourceId)
if(parseFloat(val) >= 0){
if(val!==this.activeResourceId){
this.activeTab = 0 + '';
this.setTimeNodeList = this.standedTimeNodeList;
this.$forceUpdate();
if(this.isStandedTemplate){// 系统固定模板
}else{//自定义模板
this.initNewForm();
}
}
}
},
setTimeNodeList(val){ setTimeNodeList(val){
this.setTimeNodeList = val; this.setTimeNodeList = val;
if(this.setTimeNodeList.length > 0){ if(this.setTimeNodeList.length > 0){
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
<div class="edit-plan-content" v-show="activeTab === 'second'"> <div class="edit-plan-content" v-show="activeTab === 'second'">
<set-time-node <set-time-node
:resourceId="resourceId"
:standedTimeNodeList="standedTimeNodeList" :standedTimeNodeList="standedTimeNodeList"
:isStandedTemplate="isStandedTemplate" :isStandedTemplate="isStandedTemplate"
:patientIdList="baseInfo.patientIdList" :patientIdList="baseInfo.patientIdList"
...@@ -277,8 +278,8 @@ ...@@ -277,8 +278,8 @@
this.noChoice = false this.noChoice = false
} }
if (valid) { if (valid) {
// console.log('当前选择的随访模板id为',this.baseInfo.resourceId) console.log('当前选择的随访模板id为',this.baseInfo.resourceId)
this.resourceId = this.baseInfo.resourceId this.resourceId = String(this.baseInfo.resourceId)
// console.log( this.baseInfo.resourceId) // console.log( this.baseInfo.resourceId)
if(this.baseInfo.resourceId){ if(this.baseInfo.resourceId){
getFollowupTableTemplate(this.baseInfo.resourceId).then(res=>{ getFollowupTableTemplate(this.baseInfo.resourceId).then(res=>{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册