|
|
|
@ -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'});
|
|
|
|
|
});
|
|
|
|
|