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

no message

上级 322d1f5e
......@@ -12,7 +12,8 @@
<div class="add-time-content">
<div class="time-line-scroll special-control-class">
<el-tabs v-model="activeTab" type="card" @tab-remove="deleteTimeNode" :closable="tabClosable()" :before-leave="checkHasChoseComent">
<el-tabs v-model="activeTab" type="card" @tab-remove="deleteTimeNode" :closable="tabClosable()" >
<!--:before-leave="checkHasChoseComent"-->
<el-tab-pane
v-for="(itemTimeForm, index) in setTimeNodeList"
......@@ -174,7 +175,7 @@
type: [{ required: true, message: '请选择随访方式', trigger: 'change' }],
},
isSelectCartoon: false,
activeTab: 0,
activeTab: '0',
activeComentId: '',
markOptions: [],
followTypeList: [],
......@@ -187,7 +188,7 @@
activeResourceId: '',
errMsg: '',
timeIsRepeat: false,
getData: false,
hasData: false,
}
},
props: {
......@@ -211,7 +212,7 @@
// 初始化 固定模板或者修改计划 的时间节点
standedTimeNodeList(val){
if(this.isStandedTemplate || this.planId){
this.activeTab = 0 + '';
// this.activeTab = '0';
this.setTimeNodeList = val;
this.$forceUpdate();
}
......@@ -221,7 +222,7 @@
// console.log('activeResourceId=',this.activeResourceId)
if(parseFloat(val) >= 0){
if(val!==this.activeResourceId){
this.activeTab = 0 + '';
this.activeTab = '0';
this.setTimeNodeList = this.standedTimeNodeList;
this.$forceUpdate();
if(this.isStandedTemplate){// 系统固定模板
......@@ -276,15 +277,14 @@
}
this.setTimeNodeList[index].formRef = 'form' + index;
});
this.$forceUpdate();
this.choseTimeUit(this.setTimeNodeList[0].timeUnit);
if(!this.getData){
if(!this.hasData){
this.$nextTick(()=>{
this.activeTab = this.setTimeNodeList.length - 1 + '';
this.hasData = true;
})
this.getData = true;
}
this.$forceUpdate();
// this.activeTab = this.setTimeNodeList.length - 1 + '';
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册