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
   components: {
44
   components: {
45
     showModel,
45
     showModel,
46
   },
46
   },
@@ -150,6 +150,9 @@ export default {
150
     },
150
     },
151
     // 弹窗
151
     // 弹窗
152
     showModal(item) {
152
     showModal(item) {
153
+      if(this.noClick){
154
+        return;
155
+      }
153
       console.log(item)
156
       console.log(item)
154
       this.modelsData = item;
157
       this.modelsData = item;
155
       this.hcData = {
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
   components: {
44
   components: {
45
     showModel,
45
     showModel,
46
   },
46
   },
@@ -189,6 +189,9 @@ export default {
189
     // },
189
     // },
190
     // 弹窗
190
     // 弹窗
191
     showModal(item) {
191
     showModal(item) {
192
+      if(this.noClick){
193
+        return;
194
+      }
192
       console.log(item)
195
       console.log(item)
193
       this.modelsData = item;
196
       this.modelsData = item;
194
       this.gsData = {
197
       this.gsData = {