소스 검색

no message

linwenxin 5 달 전
부모
커밋
f418f58964
1개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. 15 3
      src/views/userManagement/masterManagement/index.vue

+ 15 - 3
src/views/userManagement/masterManagement/index.vue

@@ -707,7 +707,7 @@ export default {
                 {
                   columnAttributes: {
                     label: '附件',
-                    prop: 'policyUrl',
+                    prop: 'policyUrls',
                     'min-width': '440px'
                   },
                   render: (h, { row, column, index }) => {
@@ -862,7 +862,13 @@ export default {
                     url: item.imgUrl
                   }))?.[1] || []
             }
-          ]
+          ],
+          workerPolicies: res.data?.workerPolicies?.map(item => {
+            return {
+              ...item,
+              policyUrls: item.policyUrl.split(',').map(url => ({ url }))
+            }
+          })
         }
         cb?.()
       })
@@ -1062,7 +1068,13 @@ export default {
             imgName: '高空证反面',
             imgUrl: this.formData?.workerImgsCp?.find(item => item.type == 'HIGHT')?.negative?.[0]?.url || ''
           }
-        ]
+        ],
+        workerPolicies: this.formData?.workerPolicies?.map(item => {
+          return {
+            ...item,
+            policyUrl: item.policyUrls?.map(v => v.url)?.join(',')
+          }
+        })
       }
     },
     submit() {