...
|
...
|
@@ -16,6 +16,7 @@ import ( |
|
|
"golang.org/x/text/transform"
|
|
|
"io"
|
|
|
"io/ioutil"
|
|
|
"math"
|
|
|
"mime/multipart"
|
|
|
"os"
|
|
|
"path"
|
...
|
...
|
@@ -168,7 +169,7 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf |
|
|
nodeContents = append(nodeContents, nc)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
weightTotal = math.Round(weightTotal*100) / 100
|
|
|
// 权重总数不等于100%,提示报错
|
|
|
if weightTotal != 100 {
|
|
|
sprintf := fmt.Sprintf("当前导入的总权重值为:%s%%(必须等于100%%)", utils.FormatFloatDecimal(weightTotal, 2))
|
...
|
...
|
|