소스 검색

复选框处理

xuzhancheng 1 일 전
부모
커밋
2605770299
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      yudao-ui-admin-vue3/src/components/DynamicReport/SpreadViewer.vue

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

@@ -266,6 +266,8 @@ const initPreview = async () => {
                 // sheetData[i.colCode] = null;
               } else if (trimmed.startsWith('{') || trimmed.startsWith('[')) {
                 try { sheetData[i.colCode] = JSON.parse(val); } catch { sheetData[i.colCode] = val; }
+              } else if (val == 'false' || val == 'true') {
+                sheetData[i.colCode] = val == 'true' ? 'true' : null;
               } else {
                 sheetData[i.colCode] = val;
               }
@@ -326,6 +328,8 @@ const initPreview = async () => {
               } catch {
                 sheetData[i.colCode] = val;
               }
+            } else if (val == 'false' || val == 'true') {
+              sheetData[i.colCode] = val == 'true' ? 'true' : null;
             } else {
               sheetData[i.colCode] = val;
             }