合并分支 'dev' 到 'test'
fix:修改默认栏目设置 查看合并请求 !25
正在显示
4 个修改的文件
包含
29 行增加
和
2 行删除
@@ -157,7 +157,7 @@ func (columnSettingService *ColumnSettingService) ListColumnSetting(listColumnSe | @@ -157,7 +157,7 @@ func (columnSettingService *ColumnSettingService) ListColumnSetting(listColumnSe | ||
157 | 157 | ||
158 | /** | 158 | /** |
159 | * @Author SteveChan | 159 | * @Author SteveChan |
160 | - * @Description //TODO 删除用户时移除栏目设置 | 160 | + * @Description // 删除用户时移除栏目设置 |
161 | * @Date 23:14 2021/1/26 | 161 | * @Date 23:14 2021/1/26 |
162 | * @Param | 162 | * @Param |
163 | * @return | 163 | * @return |
@@ -963,7 +963,6 @@ func (service OrderInfoService) ListOrderForExcel(listOrderQuery query.ListOrder | @@ -963,7 +963,6 @@ func (service OrderInfoService) ListOrderForExcel(listOrderQuery query.ListOrder | ||
963 | var resultMaps []map[string]string | 963 | var resultMaps []map[string]string |
964 | for i := range ordersData { | 964 | for i := range ordersData { |
965 | t, _ := time.ParseInLocation("2006-01-02 15:04:05", ordersData[i].SaleDate, time.Local) | 965 | t, _ := time.ParseInLocation("2006-01-02 15:04:05", ordersData[i].SaleDate, time.Local) |
966 | - fmt.Print(t, "\n") | ||
967 | m := map[string]string{ | 966 | m := map[string]string{ |
968 | //"num": fmt.Sprint(i + 1), | 967 | //"num": fmt.Sprint(i + 1), |
969 | //"order_code": ordersData[i].OrderCode, | 968 | //"order_code": ordersData[i].OrderCode, |
@@ -159,6 +159,13 @@ func (controller *ColumnSettingController) ResetColumn() { | @@ -159,6 +159,13 @@ func (controller *ColumnSettingController) ResetColumn() { | ||
159 | controller.ServeJSON() | 159 | controller.ServeJSON() |
160 | } | 160 | } |
161 | 161 | ||
162 | +/** | ||
163 | + * @Author SteveChan | ||
164 | + * @Description // 获取栏目列表 | ||
165 | + * @Date 14:03 2021/2/1 | ||
166 | + * @Param | ||
167 | + * @return | ||
168 | + **/ | ||
162 | func (controller *ColumnSettingController) ListColumnSetting() { | 169 | func (controller *ColumnSettingController) ListColumnSetting() { |
163 | columnSettingService := service.NewColumnSettingService(nil) | 170 | columnSettingService := service.NewColumnSettingService(nil) |
164 | listColumnSettingQuery := &query.ListColumnSettingQuery{} | 171 | listColumnSettingQuery := &query.ListColumnSettingQuery{} |
@@ -176,3 +183,23 @@ func (controller *ColumnSettingController) ListColumnSetting() { | @@ -176,3 +183,23 @@ func (controller *ColumnSettingController) ListColumnSetting() { | ||
176 | controller.Data["json"] = response | 183 | controller.Data["json"] = response |
177 | controller.ServeJSON() | 184 | controller.ServeJSON() |
178 | } | 185 | } |
186 | + | ||
187 | +/** | ||
188 | + * @Author SteveChan | ||
189 | + * @Description //返回默认栏目设置 | ||
190 | + * @Date 14:06 2021/2/1 | ||
191 | + * @Param | ||
192 | + * @return | ||
193 | + **/ | ||
194 | +func (controller *ColumnSettingController) ListDefaultColumnSetting() { | ||
195 | + data := map[string]interface{}{ | ||
196 | + "orderBaseColumns": map[string]interface{}{ | ||
197 | + "selected": domain.DefaultColumns, | ||
198 | + "unselected": domain.DefaultInvalidColumns, | ||
199 | + }, | ||
200 | + } | ||
201 | + var response utils.JsonResponse | ||
202 | + response = utils.ResponseData(controller.Ctx, data) | ||
203 | + controller.Data["json"] = response | ||
204 | + controller.ServeJSON() | ||
205 | +} |
@@ -47,6 +47,7 @@ func init() { | @@ -47,6 +47,7 @@ func init() { | ||
47 | beego.NSRouter("/actual/updateColumn", &controllers.ColumnSettingController{}, "POST:UpdateColumnSetting"), // 更新栏目设置 | 47 | beego.NSRouter("/actual/updateColumn", &controllers.ColumnSettingController{}, "POST:UpdateColumnSetting"), // 更新栏目设置 |
48 | beego.NSRouter("/actual/resetColumn", &controllers.ColumnSettingController{}, "POST:ResetColumn"), // 重置栏目设置 | 48 | beego.NSRouter("/actual/resetColumn", &controllers.ColumnSettingController{}, "POST:ResetColumn"), // 重置栏目设置 |
49 | beego.NSRouter("/actual/createColumn", &controllers.ColumnSettingController{}, "POST:CreateColumnSetting"), // 创建栏目设置,测试用 | 49 | beego.NSRouter("/actual/createColumn", &controllers.ColumnSettingController{}, "POST:CreateColumnSetting"), // 创建栏目设置,测试用 |
50 | + beego.NSRouter("/actual/listDefaultColumn", &controllers.ColumnSettingController{}, "POST:ListDefaultColumnSetting"), // 返回默认栏目设置 | ||
50 | ), | 51 | ), |
51 | beego.NSNamespace("/common", | 52 | beego.NSNamespace("/common", |
52 | beego.NSRouter("/partner", &controllers.CommonController{}, "POST:GetPartnerList"), | 53 | beego.NSRouter("/partner", &controllers.CommonController{}, "POST:GetPartnerList"), |
-
请 注册 或 登录 后发表评论