|
@@ -48,6 +48,23 @@ func (this *ExcelInfoController) GetTableDetail() {
|
|
|
if data, err1 := utils.Rc.RedisBytes(key); err1 == nil {
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
if err == nil && resp != nil {
|
|
|
+ // 配置项
|
|
|
+ config := response.ExcelTableDetailConfigResp{
|
|
|
+ FontSize: 9,
|
|
|
+ }
|
|
|
+ // 获取配置的字体大小
|
|
|
+ confName := models.FromSceneMap[fromScene]
|
|
|
+ if confName != `` {
|
|
|
+ busConf, err := models.GetBusinessConfByKey(confName)
|
|
|
+ if err == nil {
|
|
|
+ sizeDeci, err := decimal.NewFromString(busConf.ConfVal)
|
|
|
+ if err == nil {
|
|
|
+ config.FontSize = int(sizeDeci.IntPart())
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ resp.Config = config
|
|
|
+
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|