xuzhancheng hai 5 días
pai
achega
d5e1b628a6

+ 0 - 8
yudao-ui-admin-vue3/src/components/DynamicReport/SpreadViewer.vue

@@ -329,14 +329,6 @@ const initPreview = async () => {
             } else {
               sheetData[i.colCode] = val;
             }
-            // 后端已将图片路径值处理为背景图片,跳过避免文字覆盖
-            if (trimmed.endsWith('.jpg') || trimmed.endsWith('.png')) {
-              sheetData[i.colCode] = null;
-            } else if (trimmed.startsWith('{') || trimmed.startsWith('[')) {
-              try { sheetData[i.colCode] = JSON.parse(val); } catch { sheetData[i.colCode] = val; }
-            } else {
-              sheetData[i.colCode] = val;
-            }
           } else {
             sheetData[i.colCode] = val;
           }

+ 1 - 0
yudao-ui-admin-vue3/src/utils/reportUtil.ts

@@ -118,6 +118,7 @@ export const editReport = async (sheet, res?, imgCol?, isPdf: boolean = false) =
                 imgX += imgW
               }
             }
+            cell.value("")
           }
           if (imgCol && imgCol.includes(sheet.getBindingPath(i, j))) {
             if (cellValue && cellValue.startsWith('[') && cellValue.endsWith(']')) {