Quellcode durchsuchen

任务书修改申请提示优化

梁世豪 vor 4 Monaten
Ursprung
Commit
5be26f022e

+ 4 - 3
src/main/java/com/liang/controller/PrjSubtopicController.java

@@ -169,11 +169,12 @@ public class PrjSubtopicController extends BaseController {
169 169
     public String forUpdate(Model model, @PathVariable Integer id) {
170 170
         PrjSubtopic subtopic = prjSubtopicService.queryById(id);
171 171
         List<Map<String, Object>> projectDate = prjSubtopicService.queryProjectDate(subtopic.getXm());
172
-        SimpleDateFormat format = new SimpleDateFormat("YYYY-MM-dd");
172
+        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
173
+        dateFormat.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
173 174
         Date rq = (Date) projectDate.get(0).get("WC");
174 175
         Date qs = (Date) projectDate.get(0).get("QS");
175
-        String wcrq = format.format(rq);
176
-        String qsrq = format.format(qs);
176
+        String wcrq = dateFormat.format(rq);
177
+        String qsrq = dateFormat.format(qs);
177 178
         model.addAttribute("qsrq", qsrq);
178 179
         model.addAttribute("wcrq", wcrq);
179 180
         model.addAttribute("subtopic", subtopic);

+ 4 - 4
src/main/resources/templates/prjproject/xg_update.html

@@ -1657,10 +1657,10 @@
1657 1657
                                             url: AjaxUtil.ctx + "prjApproverecord/doUpdatPrjProject",
1658 1658
                                             data: project,
1659 1659
                                             success: function (res) {
1660
-                                                Message.success('修改申请提交成功,可在审批列表中查看审批进度.', 2000);
1660
+                                                Message.success('修改申请提交成功,可在审批列表中查看审批进度.', 2500);
1661 1661
                                                 setTimeout(function () {
1662 1662
                                                     parent.layer.close(parent.layer.getFrameIndex(window.name)); // 关闭子窗口
1663
-                                                }, 1000);
1663
+                                                }, 2500);
1664 1664
                                             },
1665 1665
                                             error: function (error) {
1666 1666
                                             }
@@ -1691,10 +1691,10 @@
1691 1691
                                 url: AjaxUtil.ctx + "prjApproverecord/doUpdatPrjProject",
1692 1692
                                 data: project,
1693 1693
                                 success: function (res) {
1694
-                                    Message.success('修改申请提交成功,可在审批列表中查看审批进度.', 2000);
1694
+                                    Message.success('修改申请提交成功,可在审批列表中查看审批进度.', 2500);
1695 1695
                                     setTimeout(function () {
1696 1696
                                         parent.layer.close(parent.layer.getFrameIndex(window.name)); // 关闭子窗口
1697
-                                    }, 3000);
1697
+                                    }, 2500);
1698 1698
                                 },
1699 1699
                                 error: function (error) {
1700 1700
                                 }