zhouna 5 yıl önce
ebeveyn
işleme
a67716455f

+ 3 - 2
src/components/qualityControl/BaseFieldList.vue

@@ -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]));