topicMessage.js
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* Created by cjl on 2018/4/23.
*/
(function () {
"user strict";
var topicMessageController = function($scope,$modal,$http,$interval,dialogService,railwayService){
$scope.settingShow = 9;
$scope.vm = {
totalCount : 0,
pageNumber : 1,
pageSize : 10,
userId : ''
}
// $scope.doDelete = function(id){
// var dialogDefaults = {
// size:"sm"
// };
// var dialogOptions = {
// closeButtonText: "取消",
// actionButtonText: "删除",
// headerText: "删除",
// bodyText: "您确定要删除吗?",
// callback: function () {
// railwayService.deleteSafeMessage({id:id}).success(function (data) {
// if (data.errors == null || data.errors.length > 0) {
// dialogService.tip(data.errors, null, null);
// } else {
// dialogService.tip([{message:"删除成功!"}],"/admin/safeMessage/index.htm",1000);
// }
// });
// }
// };
// dialogService.confirm(dialogDefaults, dialogOptions);
// };
}
angular.module("xn.page", ["xn.directive.form"])
.controller("TopicMessageController",["$scope","$modal","$http","$interval","dialogService","RailwayService",topicMessageController])
})();