Browse Source

fix:增加时间序列excel默认尺寸

zqbao 4 months ago
parent
commit
f41ef5f1f7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      controllers/data_manage/excel/excel_info.go

+ 5 - 0
controllers/data_manage/excel/excel_info.go

@@ -1857,6 +1857,11 @@ func (c *ExcelInfoController) GetFirstEdbData() {
 			dataList[i], dataList[j] = dataList[j], dataList[i]
 		}
 	}
+	// 修改数据默认高度和宽度
+	for i := range dataList {
+		dataList[i].Width = 140
+		dataList[i].Height = 35
+	}
 
 	sourceNameList, sourceNameEnList, err := excel2.GetEdbSourceByEdbInfoIdList([]int{edbInfoId})
 	if err != nil {