正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
@@ -39,7 +39,7 @@ type PerformanceTarget struct { | @@ -39,7 +39,7 @@ type PerformanceTarget struct { | ||
39 | 39 | ||
40 | func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) { | 40 | func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) { |
41 | formRows := make([]*PerformanceApplicationForm, 0) | 41 | formRows := make([]*PerformanceApplicationForm, 0) |
42 | - var dimensionName, moduleName, taskName, weightName, standardName, evaluator string | 42 | + var dimensionName, moduleName, taskName, weightName, standardName, evaluator, indicatorType string |
43 | required := "是" | 43 | required := "是" |
44 | for key, item := range rows { | 44 | for key, item := range rows { |
45 | if key < 3 { | 45 | if key < 3 { |
@@ -99,6 +99,12 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) | @@ -99,6 +99,12 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) | ||
99 | } | 99 | } |
100 | form.Evaluator = evaluator | 100 | form.Evaluator = evaluator |
101 | 101 | ||
102 | + // 指标类型 | ||
103 | + if len(item) > 11 && item[11] != "" { | ||
104 | + indicatorType = strings.TrimSpace(item[11]) | ||
105 | + } | ||
106 | + form.IndicatorType = indicatorType | ||
107 | + | ||
102 | formRows = append(formRows, form) | 108 | formRows = append(formRows, form) |
103 | } | 109 | } |
104 | dimensions := make([]*PerformanceDimension, 0) | 110 | dimensions := make([]*PerformanceDimension, 0) |
-
请 注册 或 登录 后发表评论