seimin %!s(int64=2) %!d(string=hai) anos
pai
achega
65012c9a1b

+ 4 - 1
src/components/ConsumableMaterial/index.vue

@@ -40,7 +40,7 @@ export default {
40 40
       },
41 41
     };
42 42
   },
43
-  props: ["model", "id", "summaryId", "incidentId"],
43
+  props: ["model", "id", "summaryId", "incidentId", "noClick"],
44 44
   components: {
45 45
     showModel,
46 46
   },
@@ -150,6 +150,9 @@ export default {
150 150
     },
151 151
     // 弹窗
152 152
     showModal(item) {
153
+      if(this.noClick){
154
+        return;
155
+      }
153 156
       console.log(item)
154 157
       this.modelsData = item;
155 158
       this.hcData = {

+ 4 - 1
src/components/WorkHourManagement/index.vue

@@ -40,7 +40,7 @@ export default {
40 40
       },
41 41
     };
42 42
   },
43
-  props: ["model", "id", "summaryId", "incidentId", "summaryObj"],
43
+  props: ["model", "id", "summaryId", "incidentId", "summaryObj", "noClick"],
44 44
   components: {
45 45
     showModel,
46 46
   },
@@ -189,6 +189,9 @@ export default {
189 189
     // },
190 190
     // 弹窗
191 191
     showModal(item) {
192
+      if(this.noClick){
193
+        return;
194
+      }
192 195
       console.log(item)
193 196
       this.modelsData = item;
194 197
       this.gsData = {