作者 庄敏学

fixed

不能预览此文件类型
@@ -55,16 +55,22 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) @@ -55,16 +55,22 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error)
55 //指标任务 55 //指标任务
56 if len(item) > 4 && item[4] != "" { 56 if len(item) > 4 && item[4] != "" {
57 taskName = item[4] 57 taskName = item[4]
  58 + } else {
  59 + taskName = ""
58 } 60 }
59 form.Task = taskName 61 form.Task = taskName
60 //权重 62 //权重
61 if len(item) > 6 && item[6] != "" { 63 if len(item) > 6 && item[6] != "" {
62 weightName = item[6] 64 weightName = item[6]
  65 + } else {
  66 + weightName = "/"
63 } 67 }
64 form.Weight = weightName 68 form.Weight = weightName
65 //标准 69 //标准
66 if len(item) > 7 && item[7] != "" { 70 if len(item) > 7 && item[7] != "" {
67 standardName = item[7] 71 standardName = item[7]
  72 + } else {
  73 + standardName = ""
68 } 74 }
69 form.Standard = standardName 75 form.Standard = standardName
70 formRows = append(formRows, form) 76 formRows = append(formRows, form)