Commit 17110ee5 authored by 庞志远's avatar 庞志远

代码优化

parent 87560f8e
......@@ -207,7 +207,7 @@
<h2 v-if="patientType==3">预警级别</h2>
<el-row v-if="patientType==3">
<el-col :span="8">
<el-col :span="24">
<el-form-item label="预警级别(单选):" prop="warningLevel">
<el-radio-group v-model="detailForm.warningLevel">
<el-radio :label="1">轻度</el-radio>
......@@ -530,7 +530,7 @@
<el-checkbox :label="1">青霉素</el-checkbox>
<el-checkbox :label="2">头孢</el-checkbox>
</el-checkbox-group>
<el-checkbox v-model="detailForm.otherAllergies">其他</el-checkbox>
<el-checkbox v-model="detailForm.otherAllergies" :label="1">其他</el-checkbox>
<span v-if="detailForm.otherAllergies==1" class="padding-left-20">更多过敏史:磺胺药、阿司匹林、保泰松</span>
</el-form-item>
</el-col>
......@@ -591,6 +591,7 @@
name: "detail",
data() {
return {
resData:'',
patientType:'',//1.胸痛;2.卒中;3.创伤,4烧伤
associationId:'',
detailForm:{
......@@ -630,12 +631,21 @@
}
queryDetail(params).then((res) => {
if (res.msg == 201) {
this.detailForm = res.respData
this.resData = res.respData
this.resData.fastEDScoreList ? '': this.resData.fastEDScoreList = []
this.resData.conditionAssessmentTwoList ? '': this.resData.conditionAssessmentTwoList = []
this.resData.pastHistoryList ? '': this.resData.pastHistoryList = []
this.resData.allergiesList ? '': this.resData.allergiesList = []
this.resData.firstAidMeasuresList ? '': this.resData.firstAidMeasuresList = []
this.detailForm =Object.assign({},this.resData)
} else {
this.$message.error(res.content)
}
})
},
dealNull(data){
if(data && data!=='null'){}else {data=[]}
},
goBack(){
this.$router.go(-1)
}
......
......@@ -239,7 +239,6 @@ export default {
associationId:row.associationId
}
})
console.log(row,8899)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment