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

no message

上级 5c291830
...@@ -75,17 +75,17 @@ ...@@ -75,17 +75,17 @@
} }
// 0003 脑卒中、0002 糖尿病、0001 高血压 // 0003 脑卒中、0002 糖尿病、0001 高血压
}, },
beforeRouteEnter (to, from, next) { // beforeRouteEnter (to, from, next) {
next(vm=>{ // next(vm=>{
if(from.name=='planDetail'){ // if(from.name=='planDetail'){
vm.breadTxt = '计划管理'; // vm.breadTxt = '计划管理';
vm.jumPathThird = '/followup/plan-manage/plan-list' // vm.jumPathThird = '/followup/plan-manage/plan-list'
}else{ // }else{
vm.breadTxt = '录入管理'; // vm.breadTxt = '录入管理';
vm.jumPathThird = '/followup/record-manage/record-list' // vm.jumPathThird = '/followup/record-manage/record-list'
} // }
}) // })
}, // },
} }
</script> </script>
......
...@@ -130,7 +130,13 @@ ...@@ -130,7 +130,13 @@
} }
} }
if(this.valid){ if(this.valid){
this.dataSubmit(); this.dataSubmit(()=>{
updateScalesStatus({
fuPlanPatientTimesId: this.planPatientsTimesId,
planTimesId: this.planTimesId,
resourceId: this.scaleNo
})
});
} }
this.$emit('checkEnd',false); this.$emit('checkEnd',false);
}else{ }else{
...@@ -251,7 +257,7 @@ ...@@ -251,7 +257,7 @@
}) })
}, },
// 提交量表 // 提交量表
dataSubmit(){ dataSubmit(callback){
// if(this.valid){ // if(this.valid){
// console.log(this.formData) // console.log(this.formData)
this.formData.doctorId = parseFloat(this.doctorId); this.formData.doctorId = parseFloat(this.doctorId);
...@@ -267,13 +273,9 @@ ...@@ -267,13 +273,9 @@
message: doMsg, message: doMsg,
type: 'success' type: 'success'
}); });
if(callback){
updateScalesStatus({ callback();
fuPlanPatientTimesId: this.planPatientsTimesId, }
planTimesId: this.planTimesId,
resourceId: this.scaleNo
});
setTimeout(()=>{ setTimeout(()=>{
this.$router.push({ this.$router.push({
path: '/followup/record-manage/record-list' path: '/followup/record-manage/record-list'
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册