|
|
@ -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 |
|
|
|
} |