Browse Source

模板修改

zhangxc 5 years atrás
parent
commit
aaf53bf355
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/components/qualityControl/AddQualityControlTemp.vue

+ 4 - 3
src/components/qualityControl/AddQualityControlTemp.vue

@@ -123,6 +123,8 @@ export default {
         this.getAllTypes();
         const {isCopy, isEdit, data } = this.$route.params
         if(isEdit || isCopy) {
+            this.form.hospital = ''+data.hospitalId
+            this.form.moduleName = ''+data.modeId
             if(isEdit){
                 this.isEdit = isEdit;
                 this.id = data.id
@@ -140,10 +142,9 @@ export default {
                  this.form.moduleType=""
                  this.form.example=""
             }
-            this.form.hospital = ''+data.hospitalId
-            this.form.moduleName = ''+data.modeId
-         
             
+         
+            console.log( ' this.form',this.form)
             const moduleDetail = data.moduleDetail
             const keysList = Object.keys(moduleDetail)
             for(let i = 0; i < keysList.length; i++){