Ver código fonte

有公式的表格无法渲染的问题 index是必须项不能漏

Karsa 1 ano atrás
pai
commit
4d4912afec

+ 1 - 1
src/views/datasheet_manage/customAnalysis/addAnalysisSheet.vue

@@ -281,7 +281,7 @@ export default {
         this.getCellData(sheets)
       }else {
         this.sheetConfig.data = sheets.map((_,index) => ({
-          // index: _.Sort, //工作表索引
+          index: _.Index, //工作表id
           order: _.Sort, //工作表的下标
           name: _.SheetName,
           calcChain: JSON.parse(_.CalcChain),

+ 2 - 2
src/views/datasheet_manage/customAnalysis/list.vue

@@ -704,14 +704,14 @@ export default {
         continue
       }
       
-      //数据继续加载或渲染表格
+      //数据继续加载或渲染表格.
       if(this.sheetDataPage < this.dataToalPage) {
         this.sheetDataPage++;
         this.getCellData(sheets)
       }else {
         console.log(this.sheetAllcellData)
         this.sheetConfigOpt.data = sheets.map((_,index) => ({
-          index: _.Sort, //工作表索引
+          index: _.Index, //工作表id
           order: _.Sort, //工作表的下标
           name: _.SheetName,
           calcChain: _.CalcChain?JSON.parse(_.CalcChain):[],