zhangjie 1 éve
szülő
commit
ba290011b2

+ 2 - 2
src/pages/sop/delay-warning/delay-detail.vue

@@ -15,7 +15,7 @@
           </u-form-item>
           </u-form-item>
 
 
           <u-form-item label="附件说明" :border-bottom="false">
           <u-form-item label="附件说明" :border-bottom="false">
-            <upload-image :config="{ length: 3 }" @get-lists="fileChange"> </upload-image>
+            <upload-image :config="{ length: 3 }" @change="fileChange"> </upload-image>
           </u-form-item>
           </u-form-item>
         </u-form>
         </u-form>
       </view>
       </view>
@@ -105,7 +105,7 @@
     },
     },
     methods: {
     methods: {
       dateFormat,
       dateFormat,
-      fileChange(value) {
+      fileChange({ value }) {
         this.formData.attachmentIds = value.map((item) => item.id).join(',')
         this.formData.attachmentIds = value.map((item) => item.id).join(',')
       },
       },
       async submitHandle() {
       async submitHandle() {

+ 2 - 2
src/pages/sop/violation-registration/violation-detail.vue

@@ -13,7 +13,7 @@
           </u-form-item>
           </u-form-item>
 
 
           <u-form-item label="附件说明" :border-bottom="false">
           <u-form-item label="附件说明" :border-bottom="false">
-            <upload-image :config="{ length: 3 }" @get-lists="fileChange"> </upload-image>
+            <upload-image :config="{ length: 3 }" @change="fileChange"> </upload-image>
           </u-form-item>
           </u-form-item>
         </u-form>
         </u-form>
       </view>
       </view>
@@ -102,7 +102,7 @@
     },
     },
     methods: {
     methods: {
       dateFormat,
       dateFormat,
-      fileChange(value) {
+      fileChange({ value }) {
         this.formData.attachmentIds = value.map((item) => item.id).join(',')
         this.formData.attachmentIds = value.map((item) => item.id).join(',')
       },
       },
       async submitHandle() {
       async submitHandle() {