作者 庄敏学

合并分支 'test' 到 'master'

Test



查看合并请求 !8
不能预览此文件类型
@@ -56,21 +56,22 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) @@ -56,21 +56,22 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error)
56 if len(item) > 4 && item[4] != "" { 56 if len(item) > 4 && item[4] != "" {
57 taskName = item[4] 57 taskName = item[4]
58 } else { 58 } else {
59 - taskName = "" 59 + taskName = "填写自评反馈"
60 } 60 }
61 form.Task = taskName 61 form.Task = taskName
62 //权重 62 //权重
63 if len(item) > 6 && item[6] != "" { 63 if len(item) > 6 && item[6] != "" {
64 weightName = item[6] 64 weightName = item[6]
65 - } else {  
66 - weightName = "/"  
67 } 65 }
68 form.Weight = weightName 66 form.Weight = weightName
69 //标准 67 //标准
70 if len(item) > 7 && item[7] != "" { 68 if len(item) > 7 && item[7] != "" {
71 standardName = item[7] 69 standardName = item[7]
72 - } else {  
73 - standardName = "" 70 + }
  71 + if key < len(rows)-1 {
  72 + if len(rows[key+1]) > 1 && rows[key+1][1] != "" {
  73 + standardName = ""
  74 + }
74 } 75 }
75 form.Standard = standardName 76 form.Standard = standardName
76 formRows = append(formRows, form) 77 formRows = append(formRows, form)