Browse Source

no message

linwenxin 5 months ago
parent
commit
e895f2574f

+ 5 - 3
src/views/setting/workContactLetter/workContactLetterPage/index.vue

@@ -789,7 +789,7 @@ export default {
           render: (h, { props, onInput }) => {
             return (
               <div>
-                <ImageUpload fileList={this.formData1.appealUrl} limit={1} isEdit={this.openType == 1} />
+                <ImageUpload fileList={this.formData1.appealUrl} limit={100} isEdit={this.openType == 1} />
               </div>
             )
           }
@@ -1002,7 +1002,9 @@ export default {
         if (this.openType == 2 && res1.data.leLetterItems?.[0]) {
           this.formData1 = {
             ...res1.data.leLetterItems?.[0],
-            appealUrl: res1.data.leLetterItems?.[0]?.appealUrl ? res1.data.leLetterItems?.[0]?.appealUrl.split(',') : []
+            appealUrl: res1.data.leLetterItems?.[0]?.appealUrl
+              ? res1.data.leLetterItems?.[0]?.appealUrl.split(',').map(url => ({ url }))
+              : []
           }
         }
         // 查看详情数据转换
@@ -1013,7 +1015,7 @@ export default {
               ? this.formData.leLetterItems.map(item => {
                   return {
                     ...item,
-                    appealUrl: item?.appealUrl ? item?.appealUrl.split(',') : []
+                    appealUrl: item?.appealUrl ? item?.appealUrl.split(',').map(url => ({ url })) : []
                   }
                 })
               : []