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

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

Loading…
Cancel
Save