|
|
@ -77,6 +77,9 @@ define(['angular', 'uiRouter'], function (angular) {
|
|
|
|
$scope.onoff = function (servant) {
|
|
|
|
$scope.onoff = function (servant) {
|
|
|
|
var param = {onoff:servant.onoff};
|
|
|
|
var param = {onoff:servant.onoff};
|
|
|
|
$http.put('/sys/openim/servant/'+servant.manager_id+'/onoff',param).then(function (resp) {
|
|
|
|
$http.put('/sys/openim/servant/'+servant.manager_id+'/onoff',param).then(function (resp) {
|
|
|
|
|
|
|
|
if(!servant.password){
|
|
|
|
|
|
|
|
$scope.loadServants();
|
|
|
|
|
|
|
|
}
|
|
|
|
},function (resp) {
|
|
|
|
},function (resp) {
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
});
|
|
|
|
});
|
|
|
|