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

no message

上级 a835491b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="form-template"> <div class="form-template">
<BreadCrumb <BreadCrumb
:curmbFirst="'随访管理'" :curmbFirst="'随访管理'"
:curmbSecond="'录入管理'" :curmbSecond="breadTxt"
:curmbThird="'录入量表'" :curmbThird="'录入量表'"
:jumPathThird="jumPathThird" :jumPathThird="jumPathThird"
/> />
...@@ -46,11 +46,12 @@ ...@@ -46,11 +46,12 @@
export default { export default {
data(){ data(){
return { return {
breadTxt: '录入管理',
jumPathThird: '/followup/record-manage/record-list',
checkStart: false, checkStart: false,
showBtn: '1', showBtn: '1',
resourceId: '', resourceId: '',
saveWay: 1, saveWay: 1,
jumPathThird: '/followup/record-manage/record-list'
} }
}, },
components: { components: {
...@@ -73,7 +74,18 @@ ...@@ -73,7 +74,18 @@
this.showBtn = String(this.$route.query.showBtn); this.showBtn = String(this.$route.query.showBtn);
} }
// 0003 脑卒中、0002 糖尿病、0001 高血压 // 0003 脑卒中、0002 糖尿病、0001 高血压
} },
beforeRouteEnter (to, from, next) {
next(vm=>{
if(from.name=='planDetail'){
vm.breadTxt = '计划管理';
vm.jumPathThird = '/followup/plan-manage/plan-list'
}else{
vm.breadTxt = '录入管理';
vm.jumPathThird = '/followup/record-manage/record-list'
}
})
},
} }
</script> </script>
...@@ -81,7 +93,7 @@ ...@@ -81,7 +93,7 @@
@import '../../../style/followup/followup-common'; @import '../../../style/followup/followup-common';
@import '../../../style/followup/element-reset.css'; @import '../../../style/followup/element-reset.css';
.form-show-scrollY{ .form-show-scrollY{
width: 100%; height: 100%; overflow: hidden; overflow-y: scroll; width: 100%; height: 100%; overflow: hidden; overflow-y: scroll;
&::-webkit-scrollbar{ &::-webkit-scrollbar{
......
...@@ -161,9 +161,8 @@ ...@@ -161,9 +161,8 @@
created(){ created(){
this.instance = axios.create({ this.instance = axios.create({
headers:{ headers:{
// sysCode: 17, // token: '7B74969E396C4041A4DFCAC75711AA71',
token: '7B74969E396C4041A4DFCAC75711AA71', token: localStorage.getItem('storageToken')
// token: localStorage.getItem('storageToken')
}, },
timeout: 45000, timeout: 45000,
}); });
...@@ -240,30 +239,29 @@ ...@@ -240,30 +239,29 @@
data: JSON.stringify(this.formData), data: JSON.stringify(this.formData),
}).then(res=>{ }).then(res=>{
this.formData = res.data.data this.formData = res.data.data
for(let i=0;i<this.addComponents.length;i++){ let keysList = Object.keys(this.formData);
let formName = this.addComponents[i].formName; if(keysList.length > 0){
if(this.formData[formName]){ for(let i=0;i<this.addComponents.length;i++){
let investigationState = this.formData[formName].investigationState; let formName = this.addComponents[i].formName;
if( ( investigationState === '失访' || investigationState === '死亡' ) ){
this.showModule = false;
}
this.addComponents[i].formObject = this.formData[formName];
}else{
console.log(123)
}
}
this.canRender = true; if(this.formData[formName]){
this.$forceUpdate(); let investigationState = this.formData[formName].investigationState;
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证 if( ( investigationState === '失访' || investigationState === '死亡' ) ){
for(let i=0;i<this.addComponents.length;i++){ this.showModule = false;
if(this.$refs['form' + i].length > 0){ }
this.$refs['form' + i][0].resetFields(); this.addComponents[i].formObject = this.formData[formName];
}
}
this.canRender = true;
this.$forceUpdate();
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证
for(let i=0;i<this.addComponents.length;i++){
if(this.$refs['form' + i].length > 0){
this.$refs['form' + i][0].resetFields();
}
} }
} }
}) })
}, },
// 提交量表 // 提交量表
......
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.fuPlanPatientTimesId,planTimesId : row.fuPlanTimesId, showBtn: 1}}) query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.fuPlanPatientTimesId,planTimesId : row.fuPlanTimesId, showBtn: 1}})
}else { }else {
this.$message.warning('暂不支持录入量表!') this.$message.warning('暂量表!')
} }
// 不区分量表列表长度问题,直接调试量表录入 // 不区分量表列表长度问题,直接调试量表录入
// this.$router.push({ // this.$router.push({
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.planPatientTimesId, showBtn: 1}}) query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.planPatientTimesId, showBtn: 1}})
}else { }else {
this.$message.warning('暂不支持录入量表!') this.$message.warning('暂量表!')
} }
}, },
changeFollowStatus(row) { changeFollowStatus(row) {
...@@ -347,7 +347,7 @@ export default { ...@@ -347,7 +347,7 @@ export default {
color: #666; color: #666;
margin-top: 15px; margin-top: 15px;
} }
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册