|
|
@ -89,6 +89,9 @@ define(['angular', 'uiRouter'], function (angular) {
|
|
|
|
var param = {nick:servant.nick};
|
|
|
|
var param = {nick:servant.nick};
|
|
|
|
$http.put('/sys/openim/servant/'+servant.manager_id+'/nick',param).then(function (resp) {
|
|
|
|
$http.put('/sys/openim/servant/'+servant.manager_id+'/nick',param).then(function (resp) {
|
|
|
|
$scope.ctrl.nick[servant.display_name] = false;
|
|
|
|
$scope.ctrl.nick[servant.display_name] = false;
|
|
|
|
|
|
|
|
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'});
|
|
|
|
});
|
|
|
|
});
|
|
|
|