Răsfoiți Sursa

fix: 展示公式值并支持条件格式

ldong 7 luni în urmă
părinte
comite
41529ffacc

+ 1 - 1
src/views/datasheet_manage/components/BalanceTable.vue

@@ -155,7 +155,7 @@
                         :data-datacindex="cell_index"
                         :data-key="cell.Uid"
                       >
-                        {{isShowDecimal(cell)?showDecimalValue(cell):isShowFormat(cell.ShowStyle)?cell.ShowFormatValue:cell.DataTime?cell.ShowValue:[7,5].includes(cell.DataType)?cell.ShowValue:cell.Value}}
+                        {{isShowDecimal(cell)?showDecimalValue(cell):isShowFormat(cell.ShowStyle)?cell.ShowFormatValue:cell.DataTime?cell.ShowValue:[7,6,5].includes(cell.DataType)?cell.ShowValue:cell.Value}}
                       </span>
 
                       <span

+ 2 - 1
src/views/datasheet_manage/components/MixedTable.vue

@@ -125,7 +125,7 @@
                 :data-datacindex="cell_index"
                 :data-key="cell.Uid"
               >
-                {{isShowDecimal(cell)?showDecimalValue(cell):isShowFormat(cell.ShowStyle)?cell.ShowFormatValue:cell.DataTime?cell.ShowValue:[7,5].includes(cell.DataType)?cell.ShowValue:cell.Value}}
+                {{isShowDecimal(cell)?showDecimalValue(cell):isShowFormat(cell.ShowStyle)?cell.ShowFormatValue:cell.DataTime?cell.ShowValue:[7,6,5].includes(cell.DataType)?cell.ShowValue:cell.Value}}
               </span>
 
               <span
@@ -1480,6 +1480,7 @@ export default {
 
     /* 要支持复制粘贴把公式也带过去 公式单元格类型为6 其余就正常复制文本 */
     copyCellHandle(e,cell) {
+      console.log(cell)
       this.copyCellItem = cell;
       // 阻止默认的复制操作
       e.preventDefault();