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

no message

上级 7ea9e0bd
...@@ -130,6 +130,9 @@ export default { ...@@ -130,6 +130,9 @@ export default {
// context.commit('GET_PLAN_OPTION', data); // context.commit('GET_PLAN_OPTION', data);
}); });
}, },
getTimeNodeList(context, payload){
context.commit('SET_TIME_NODE_LIST', payload);
},
async getPlanList(context, payload) { async getPlanList(context, payload) {
await getPlanList({ await getPlanList({
...payload ...payload
......
...@@ -133,11 +133,13 @@ ...@@ -133,11 +133,13 @@
}, },
} }
}, },
props: {}, props: {
setTimeNodeList: Array
},
computed: { computed: {
...mapState('planManage',{ // ...mapState('planManage',{
setTimeNodeList: state => state.setTimeNodeList, // setTimeNodeList: state => state.setTimeNodeList,
}), // }),
setTimeNodeList1(){ setTimeNodeList1(){
return this.sortKey(this.setTimeNodeList,'followupTime') return this.sortKey(this.setTimeNodeList,'followupTime')
}, },
...@@ -192,6 +194,7 @@ ...@@ -192,6 +194,7 @@
this.timeForm = _.cloneDeep(timeFormInit); this.timeForm = _.cloneDeep(timeFormInit);
this.timeForm.formRef = this.getNowTime(); this.timeForm.formRef = this.getNowTime();
this.timeForm.isDisabled = true; this.timeForm.isDisabled = true;
this.$emit('setTimeNodeListOnCom',this.setTimeNodeList)
} else { } else {
return; return;
} }
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</div> </div>
<div class="edit-plan-content" v-if="activeTab === 'second'"> <div class="edit-plan-content" v-if="activeTab === 'second'">
<set-time-node ref="getTimeNodeList"></set-time-node> <set-time-node ref="getTimeNodeList" :setTimeNodeList="setTimeNodeList" @setTimeNodeListOnCom="setTimeNodeListOnCom"></set-time-node>
</div> </div>
</div> </div>
...@@ -163,7 +163,10 @@ ...@@ -163,7 +163,10 @@
}) })
}, },
methods: { methods: {
// ...mapActions('planManage', ['getResidentList', 'getGroupList']), ...mapActions('planManage', ['getTimeNodeList']),
setTimeNodeListOnCom(val){
this.getTimeNodeList(val)
},
selectPatientHandler() { selectPatientHandler() {
this.isShowSelectPatient = true; this.isShowSelectPatient = true;
}, },
...@@ -221,8 +224,10 @@ ...@@ -221,8 +224,10 @@
this.activeTab = 'first'; this.activeTab = 'first';
}, },
saveEdit() { saveEdit() {
console.log('保存setTimeNodeList1',this.$refs.getTimeNodeList.setTimeNodeList1) // console.log('保存setTimeNodeList1',this.$refs.getTimeNodeList.setTimeNodeList1)
console.log('保存timeForm',this.$refs.getTimeNodeList.timeForm)
// console.log('保存timeForm',this.$refs.getTimeNodeList.timeForm)
// 各种校验通过后,提交编辑内容,toast提示 // 各种校验通过后,提交编辑内容,toast提示
this.$notify.success({ this.$notify.success({
title: '', title: '',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册