|
@@ -122,10 +122,9 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getAllTypes();
|
|
|
const _this=this;
|
|
|
setTimeout(function() {
|
|
|
- _this.getDataList();
|
|
|
+ _this.getAllTypes()
|
|
|
},100);
|
|
|
},
|
|
|
watch:{
|
|
@@ -156,11 +155,13 @@
|
|
|
if(localStorage.getItem("qcModuleTypes")){
|
|
|
this.hisTypes = JSON.parse(localStorage.getItem("qcHospitalTypes"));
|
|
|
this.fieldTypes = JSON.parse(localStorage.getItem("qcModuleTypes"));
|
|
|
+ this.getDataList();
|
|
|
return ;
|
|
|
}
|
|
|
//获取枚举信息
|
|
|
api.getQcTypes().then((res)=>{
|
|
|
if(res.data.code==="0"){
|
|
|
+ this.getDataList();
|
|
|
const data = res.data.data;
|
|
|
localStorage.setItem("qcFieldTypes",JSON.stringify(data[11]));
|
|
|
localStorage.setItem("qcModuleTypes",JSON.stringify(data[12]));
|