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

no message

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