From df901c874509012ffbf6d69ab6c26b9a19089eee Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Tue, 27 Mar 2018 18:22:32 +0800 Subject: [PATCH 1/2] fix bug --- .../com/royalpay/payment/manage/notice/beans/NoticeInfo.java | 2 +- src/main/ui/static/config/notice/notice.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/notice/beans/NoticeInfo.java b/src/main/java/au/com/royalpay/payment/manage/notice/beans/NoticeInfo.java index 210d25ce4..2fd7e88a8 100644 --- a/src/main/java/au/com/royalpay/payment/manage/notice/beans/NoticeInfo.java +++ b/src/main/java/au/com/royalpay/payment/manage/notice/beans/NoticeInfo.java @@ -13,7 +13,7 @@ import java.text.SimpleDateFormat; * 后台消息 */ public class NoticeInfo { - private final DateFormat format = new SimpleDateFormat("yyyyMMdd"); + private final DateFormat format = new SimpleDateFormat("yyyy-MM-dd"); @NotNull private String title; private String desc; diff --git a/src/main/ui/static/config/notice/notice.js b/src/main/ui/static/config/notice/notice.js index a0ff19ace..76278cfa3 100644 --- a/src/main/ui/static/config/notice/notice.js +++ b/src/main/ui/static/config/notice/notice.js @@ -102,7 +102,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', ' } var notice = angular.copy($scope.notice); if (notice.end_time) { - notice.end_time = $filter('date')(notice.end_time, 'yyyyMMdd') + notice.end_time = $filter('date')(notice.end_time, 'yyyy-MM-dd') } if (notice.merchants_type == 1) { if (notice.send_clients.length == 0) { @@ -220,7 +220,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', ' } var notice = angular.copy($scope.notice); if (notice.end_time) { - notice.end_time = $filter('date')(notice.end_time, 'yyyyMMdd') + notice.end_time = $filter('date')(notice.end_time, 'yyyy-MM-dd') } else { if (notice.status == '1') { $scope.notice.status = '0'; From 3d7bddfc92e492bb51b1df333fbe0edb8e221dc9 Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Tue, 27 Mar 2018 18:50:42 +0800 Subject: [PATCH 2/2] modify html --- src/main/ui/static/config/notice/notice.js | 2 +- src/main/ui/static/config/notice/templates/notice_add.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/ui/static/config/notice/notice.js b/src/main/ui/static/config/notice/notice.js index 76278cfa3..49f8d8aae 100644 --- a/src/main/ui/static/config/notice/notice.js +++ b/src/main/ui/static/config/notice/notice.js @@ -189,7 +189,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', ' $scope.saveNoticeResult = false; commonDialog.alert({title: 'Success', content: 'Send a notice successfully', type: 'success'}); $scope.$close(); - $state.go('notice.detail', {notice_id: $scope.notice.notice_id}) + $state.go('^.detail', {notice_id: $scope.notice.notice_id},{reload:true}) }, function (resp) { $scope.saveNoticeResult = false; commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); diff --git a/src/main/ui/static/config/notice/templates/notice_add.html b/src/main/ui/static/config/notice/templates/notice_add.html index 03fa909a9..469c281cb 100644 --- a/src/main/ui/static/config/notice/templates/notice_add.html +++ b/src/main/ui/static/config/notice/templates/notice_add.html @@ -127,6 +127,7 @@
+