dedsudiyu пре 4 месеци
родитељ
комит
b2236cc514
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/views/safetyCheck/components/snapshotInfo.vue

+ 5 - 0
src/views/safetyCheck/components/snapshotInfo.vue

@@ -333,6 +333,11 @@
       securityCheckOptionList(){
       securityCheckOptionList(){
         securityCheckOptionList({}).then( response => {
         securityCheckOptionList({}).then( response => {
           this.$set(this,'options',this.listChildrenDel(response.data));
           this.$set(this,'options',this.listChildrenDel(response.data));
+          for(let i=0;i<response.data.length;i++){
+            if(response.data[i].code == '6'){
+              this.$set(this.addForm,'hazardCheckId',response.data[i].id);
+            }
+          }
           this.getCascaderData(this.options)
           this.getCascaderData(this.options)
         });
         });
       },
       },