|
|
@ -102,7 +102,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var notice = angular.copy($scope.notice);
|
|
|
|
var notice = angular.copy($scope.notice);
|
|
|
|
if (notice.end_time) {
|
|
|
|
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.merchants_type == 1) {
|
|
|
|
if (notice.send_clients.length == 0) {
|
|
|
|
if (notice.send_clients.length == 0) {
|
|
|
@ -189,7 +189,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
|
|
|
|
$scope.saveNoticeResult = false;
|
|
|
|
$scope.saveNoticeResult = false;
|
|
|
|
commonDialog.alert({title: 'Success', content: 'Send a notice successfully', type: 'success'});
|
|
|
|
commonDialog.alert({title: 'Success', content: 'Send a notice successfully', type: 'success'});
|
|
|
|
$scope.$close();
|
|
|
|
$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) {
|
|
|
|
}, function (resp) {
|
|
|
|
$scope.saveNoticeResult = false;
|
|
|
|
$scope.saveNoticeResult = false;
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
@ -220,7 +220,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var notice = angular.copy($scope.notice);
|
|
|
|
var notice = angular.copy($scope.notice);
|
|
|
|
if (notice.end_time) {
|
|
|
|
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 {
|
|
|
|
} else {
|
|
|
|
if (notice.status == '1') {
|
|
|
|
if (notice.status == '1') {
|
|
|
|
$scope.notice.status = '0';
|
|
|
|
$scope.notice.status = '0';
|
|
|
|