Commit 535e759b authored by zhkwei's avatar zhkwei

Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql

parents 644254da 01764c35
...@@ -2443,7 +2443,7 @@ ...@@ -2443,7 +2443,7 @@
//加载用户权限list //加载用户权限list
loadUserRoleList(org.id); loadUserRoleList(org.id);
generalSelectCompanyText(); generalSelectCompanyText();
cancelWebChange();
}); });
......
...@@ -125,6 +125,14 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -125,6 +125,14 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
} }
} }
//事业部
if ($scope.selectBusinessUnit) {
editModel.businessUnitID = $scope.selectBusinessUnit.ID;
}
//区域
if ($scope.componentSelectedArea) {
editModel.areaID = $scope.selectedAreaId;
}
if ($scope.isAdd) { if ($scope.isAdd) {
editModel.isActive = true; editModel.isActive = true;
orgService.addOrg(editModel).success(function (orgId) { orgService.addOrg(editModel).success(function (orgId) {
...@@ -158,7 +166,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -158,7 +166,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
return; return;
} }
} }
editModel.isActive = !editModel.isActive; // editModel.isActive = !editModel.isActive;
orgService.updateOrg(editModel).success(function (data) { orgService.updateOrg(editModel).success(function (data) {
if (data && !data.result) { if (data && !data.result) {
//SweetAlert.info("Disable", orgId); //SweetAlert.info("Disable", orgId);
...@@ -338,7 +346,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -338,7 +346,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
return; return;
} }
}; };
editModel.isActive = !editModel.isActive; // editModel.isActive = !editModel.isActive;
orgService.updateOrg(editModel).success(function (data) { orgService.updateOrg(editModel).success(function (data) {
if (data && !data.result) { if (data && !data.result) {
//SweetAlert.info("Disable", orgId); //SweetAlert.info("Disable", orgId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment