瀏覽代碼

预览判空调整

xy 1 周之前
父節點
當前提交
8cf33ba8f3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      yudao-ui-admin-vue3/src/components/DynamicReport/SpreadViewer.vue

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

@@ -376,7 +376,7 @@ const openPdf = async () => {
   const rules = []
   previewSpread.sheets.forEach((sheet) => {
     sheet.conditionalFormats.getRules().forEach(rule => {
-      if (rule.condition().formula() == 'TRUE') {
+      if (rule.condition() && rule.condition().formula() == 'TRUE') {
         console.log(rule)
         rules.push({
           sheet,