|
@@ -126,6 +126,7 @@
|
|
|
swal('服务请求失败','','error');
|
|
swal('服务请求失败','','error');
|
|
|
}).catch(swal.noop);
|
|
}).catch(swal.noop);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
$scope.DisabledEmailBroadcast= function() {
|
|
$scope.DisabledEmailBroadcast= function() {
|
|
|
if($scope.Settings.DisabledEmailBroadcast=="true") {
|
|
if($scope.Settings.DisabledEmailBroadcast=="true") {
|
|
|
$scope.Settings.DisabledEmailBroadcast="false";
|
|
$scope.Settings.DisabledEmailBroadcast="false";
|
|
@@ -133,6 +134,7 @@
|
|
|
$scope.Settings.DisabledEmailBroadcast="true";
|
|
$scope.Settings.DisabledEmailBroadcast="true";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
$scope.CloseSite= function() {
|
|
$scope.CloseSite= function() {
|
|
|
if($scope.Settings.CloseSite=="true") {
|
|
if($scope.Settings.CloseSite=="true") {
|
|
|
$scope.Settings.CloseSite="false";
|
|
$scope.Settings.CloseSite="false";
|
|
@@ -154,6 +156,28 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ $scope.DataReadonly= function() {
|
|
|
|
|
+ if($scope.Settings.DataReadonly=="true") {
|
|
|
|
|
+ $scope.Settings.DataReadonly="false";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ swal({
|
|
|
|
|
+ title: '确定要开启站点写保护么?',
|
|
|
|
|
+ text: "一旦开启,前台所有表单数据将无法被提交!",
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ showCancelButton: true,
|
|
|
|
|
+ confirmButtonColor: '#3085d6',
|
|
|
|
|
+ cancelButtonColor: '#d33',
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ }).then(function(isConfirm) {
|
|
|
|
|
+ if (isConfirm) {
|
|
|
|
|
+ $scope.Settings.DataReadonly = "true";
|
|
|
|
|
+ $scope.$apply();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}]);
|
|
}]);
|
|
|
myApp.controller("log", ["$scope", "$http", function ($scope, $http) {
|
|
myApp.controller("log", ["$scope", "$http", function ($scope, $http) {
|
|
|
window.hub.stop();
|
|
window.hub.stop();
|