...
|
...
|
@@ -160,7 +160,7 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs |
|
|
headerMap := map[string]string{}
|
|
|
// 获取已经填报的内容
|
|
|
changeableRows := map[string]map[string]string{}
|
|
|
tableSort := []string{} //确定列表数据的顺序
|
|
|
tableSort := []string{} //确定列表行数据的顺序
|
|
|
for i, v := range contentList {
|
|
|
name := fmt.Sprintf("%s-%s", v.Category, v.ContentName)
|
|
|
key := fmt.Sprintf("k%d", i)
|
...
|
...
|
@@ -181,6 +181,12 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs |
|
|
}
|
|
|
list := []map[string]string{}
|
|
|
for _, v := range tableSort {
|
|
|
for _, v2 := range changeableHeader {
|
|
|
if _, ok := changeableRows[v][v2.Key]; ok {
|
|
|
continue
|
|
|
}
|
|
|
changeableRows[v][v2.Key] = ""
|
|
|
}
|
|
|
list = append(list, changeableRows[v])
|
|
|
}
|
|
|
result := adapter.ListUserAssessContent{
|
...
|
...
|
|