master
kira 6 years ago
parent 78a1455350
commit 1305007264

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

Loading…
Cancel
Save