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

no message

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