|
|
|
@ -288,7 +288,7 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
|
|
|
|
|
$scope.article = article.data;
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('cmsAppStyleListCtrl', ['$scope', '$http', '$uibModal', function ($scope, $http, $uibModal) {
|
|
|
|
|
app.controller('cmsAppStyleListCtrl', ['$scope', '$http', '$uibModal', 'commonDialog', function ($scope, $http, $uibModal, commonDialog) {
|
|
|
|
|
$scope.pagination = {};
|
|
|
|
|
$scope.appStyleGroupList = function (page) {
|
|
|
|
|
var params = $scope.queryParams || {};
|
|
|
|
@ -298,6 +298,13 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
|
|
|
|
|
$scope.pagination = resp.data.pagination;
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.updateStyleIdStatus = function (style_id, is_valid) {
|
|
|
|
|
$http.put('/app/cms/app_style/style_group/' + style_id + "/" + is_valid).then(function (resp) {
|
|
|
|
|
commonDialog.alert({type: 'success', title: 'success', content: "切换状态成功!"})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({type: 'error', title: 'Error', content: resp.data.message})
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.appStyleGroupList(1);
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|