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

no message

上级 a835491b
......@@ -3,7 +3,7 @@
<div class="form-template">
<BreadCrumb
:curmbFirst="'随访管理'"
:curmbSecond="'录入管理'"
:curmbSecond="breadTxt"
:curmbThird="'录入量表'"
:jumPathThird="jumPathThird"
/>
......@@ -46,11 +46,12 @@
export default {
data(){
return {
breadTxt: '录入管理',
jumPathThird: '/followup/record-manage/record-list',
checkStart: false,
showBtn: '1',
resourceId: '',
saveWay: 1,
jumPathThird: '/followup/record-manage/record-list'
}
},
components: {
......@@ -73,7 +74,18 @@
this.showBtn = String(this.$route.query.showBtn);
}
// 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>
......@@ -81,7 +93,7 @@
@import '../../../style/followup/followup-common';
@import '../../../style/followup/element-reset.css';
.form-show-scrollY{
width: 100%; height: 100%; overflow: hidden; overflow-y: scroll;
&::-webkit-scrollbar{
......
......@@ -161,9 +161,8 @@
created(){
this.instance = axios.create({
headers:{
// sysCode: 17,
token: '7B74969E396C4041A4DFCAC75711AA71',
// token: localStorage.getItem('storageToken')
// token: '7B74969E396C4041A4DFCAC75711AA71',
token: localStorage.getItem('storageToken')
},
timeout: 45000,
});
......@@ -240,30 +239,29 @@
data: JSON.stringify(this.formData),
}).then(res=>{
this.formData = res.data.data
for(let i=0;i<this.addComponents.length;i++){
let formName = this.addComponents[i].formName;
if(this.formData[formName]){
let investigationState = this.formData[formName].investigationState;
if( ( investigationState === '失访' || investigationState === '死亡' ) ){
this.showModule = false;
}
this.addComponents[i].formObject = this.formData[formName];
}else{
console.log(123)
}
let keysList = Object.keys(this.formData);
if(keysList.length > 0){
for(let i=0;i<this.addComponents.length;i++){
let formName = this.addComponents[i].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();
if(this.formData[formName]){
let investigationState = this.formData[formName].investigationState;
if( ( investigationState === '失访' || investigationState === '死亡' ) ){
this.showModule = false;
}
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 @@
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}})
}else {
this.$message.warning('暂不支持录入量表!')
this.$message.warning('暂量表!')
}
// 不区分量表列表长度问题,直接调试量表录入
// this.$router.push({
......
......@@ -224,7 +224,7 @@ export default {
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}})
}else {
this.$message.warning('暂不支持录入量表!')
this.$message.warning('暂量表!')
}
},
changeFollowStatus(row) {
......@@ -347,7 +347,7 @@ export default {
color: #666;
margin-top: 15px;
}
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册