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

no message

上级 55ace172
......@@ -11,7 +11,7 @@
<el-col :span="20">心脑血管病危险因素
社区、乡镇人群随访表
</el-col>
<el-col :span="4" v-if="showBtn==1">
<el-col :span="4" v-if="showBtn=='1'">
<el-button class="button-white" size="small" plain @click="formSubmit(2)">暂存</el-button>
<el-button type="primary" size="small" @click="formSubmit(1)">提交</el-button>
</el-col>
......@@ -22,17 +22,11 @@
<h2>(适用于社区、乡镇脑卒中高危人群满6个月、12个月时随访和中危人群满12个月时随访使用)</h2>
</div>
<!--<el-row :gutter="24" class="patient-base-info">-->
<!--<el-col :span="4"><div class="grid-content bg-purple">居民:戴家康</div></el-col>-->
<!--<el-col :span="12"><div class="grid-content bg-purple">身份证号:31021212121212121212</div></el-col>-->
<!--<el-col :span="8"><div class="grid-content bg-purple">随访计划名称:2018年河北省脑卒中随访</div></el-col>-->
<!--</el-row>-->
<!--模板页面除了显示居民基本信息,将病种展示作为组件引入-->
<div class="form-container">
<!--脑卒中-->
<stroke v-if="resourceId=='SCALE0003'" :checkStart="checkStart" @checkEnd="checkEnd" :saveWay="saveWay" />
<stroke v-if="resourceId=='SCALE0003'" :showBtn="showBtn" :checkStart="checkStart" @checkEnd="checkEnd" :saveWay="saveWay" />
</div>
......@@ -50,7 +44,7 @@
data(){
return {
checkStart: false,
showBtn: 1,
showBtn: '1',
resourceId: '',
saveWay: 1
}
......@@ -69,12 +63,10 @@
}
},
created(){
// this.showBtn = false;
// console.log(this.$route.query);
this.resourceId = this.$route.query.resourceId;
this.resourceId = 'SCALE0003'
if(this.$route.query.showBtn=='0'){
this.showBtn = this.$route.query.showBtn;
this.showBtn = String(this.$route.query.showBtn);
}
// 0003 脑卒中、0002 糖尿病、0001 高血压
}
......
......@@ -183,7 +183,7 @@ export default ($this) => {
dateType: 'year',
type: 'date',
rules: [{required: true, message: '手术时间', trigger: 'submit'}],
spanNum: 6,
spanNum: 12,
},
......
......@@ -88,7 +88,8 @@
},
props: {
checkStart: Boolean,
saveWay: Number
saveWay: Number,
showBtn: String,
},
watch: {
......@@ -168,8 +169,11 @@
if(res.data.code=='000000'){
this.domain = res.data.data
this.getFormModules();
if(this.showBtn!='0'){
this.getFormDetail();
}
}
})
},
// 动态开启验证开关
......@@ -218,14 +222,18 @@
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;
}
}
if(this.formData[formName]){
this.addComponents[i].formObject = this.formData[formName];
}
if( ( investigationState === '失访' || investigationState === '死亡' ) ){
this.showModule = false;
}
}
this.canRender = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册