作者 庄敏学

fixed

不能预览此文件类型
... ... @@ -56,22 +56,23 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error)
if len(item) > 4 && item[4] != "" {
taskName = item[4]
} else {
taskName = ""
taskName = "填写自评反馈"
}
form.Task = taskName
//权重
if len(item) > 6 && item[6] != "" {
weightName = item[6]
} else {
weightName = "/"
}
form.Weight = weightName
//标准
if len(item) > 7 && item[7] != "" {
standardName = item[7]
} else {
}
if key < len(rows)-1 {
if len(rows[key+1]) > 1 && rows[key+1][1] != "" {
standardName = ""
}
}
form.Standard = standardName
formRows = append(formRows, form)
}
... ...
... ... @@ -2,14 +2,12 @@ package routers
import (
"github.com/beego/beego/v2/server/web"
"github.com/linmadan/egglib-go/web/beego/filters"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/controllers"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/middlewares"
)
func init() {
ns := web.NewNamespace("/v1/import",
web.NSBefore(filters.AllowCors(), middlewares.CheckAdminToken()),
//web.NSBefore(filters.AllowCors(), middlewares.CheckAdminToken()),
web.NSRouter("/", &controllers.ImportController{}, "Post:Import"),
)
web.AddNamespace(ns)
... ...