Browse Source

导出报表输出的进行切割 只保留public\*

pull/40/head
zhangxin 3 years ago
parent
commit
8ce3362d10
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      grmi/export.go

+ 6
- 1
grmi/export.go View File

@ -6,6 +6,7 @@ import (
"fmt"
"github.com/360EntSecGroup-Skylar/excelize/v2"
"reflect"
"strings"
)
/******************************************************************************
@ -97,5 +98,9 @@ func SaveExcelFile(list []interface{}, titleList []string, sheetName string, pre
if err != nil {
return "", err
}
return filepath, nil
pathLi := strings.Split(filepath, "web\\")
if len(pathLi) != 2 {
return "", errors.New("导出失败,请重试")
}
return pathLi[1], nil
}

Loading…
Cancel
Save