modify html

master
yuan 7 years ago
parent 75bdedc6f9
commit 3d7bddfc92

@ -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'});

@ -127,6 +127,7 @@
</div>
<div class="btn-group margin-bottom margin-top">
<button class="btn btn-success" type="button" ng-click="save(noticeForm)">Save</button>
<button class="btn btn-warning" type="button" ui-sref="notice">Cancel</button>
<!--<button ng-if="notice.status=='0'|| notice.status==null" class="btn btn-danger" type="button"-->
<!--ng-click="notice.status='1';save(noticeForm)">Send-->
<!--</button>-->

Loading…
Cancel
Save