qinhouyu преди 11 месеца
родител
ревизия
0cd2d2ed47
променени са 2 файла, в които са добавени 3 реда и са изтрити 16 реда
  1. 2 8
      src/views/zdsz/engineeringGY/index.vue
  2. 1 8
      src/views/zdsz/engineeringIndustry/index.vue

+ 2 - 8
src/views/zdsz/engineeringGY/index.vue

@@ -783,15 +783,9 @@ export default {
       })
     },
     enginNodeStatusExecuted(item) {
+      console.log(item)
       try {
-          // for (let i = 0; i < this.comprehensiveList.length; i++) {
-          //   if (this.comprehensiveList[i].nodeReViewStateList.state=='1'){
-          //     if (item.nodeReViewStateList[j].Type==this.nodeList[i].dictLabel){
-          //       console.log('123333333333333333333331')
-          //       return true;
-          //     }
-          //   }
-          // }
+        return this.form.nodeReViewStateList.find(o => o.Type == item.dictLabel).state == '1';
       } catch (error) {
         return false
       }

+ 1 - 8
src/views/zdsz/engineeringIndustry/index.vue

@@ -754,14 +754,7 @@ export default {
     },
     enginNodeStatusExecuted(item) {
       try {
-          // for (let i = 0; i < this.comprehensiveList.length; i++) {
-          //   if (this.comprehensiveList[i].nodeReViewStateList.state=='1'){
-          //     if (item.nodeReViewStateList[j].Type==this.nodeList[i].dictLabel){
-          //       console.log('123333333333333333333331')
-          //       return true;
-          //     }
-          //   }
-          // }
+         return this.form.nodeReViewStateList.find(o => o.Type == item.dictLabel).state == '1';
       } catch (error) {
         return false
       }