Commit a1553a9a authored by frank.xa.zhang's avatar frank.xa.zhang

fixed role module -- frank

parent f72fcce9
...@@ -1080,7 +1080,7 @@ ...@@ -1080,7 +1080,7 @@
{ {
dataField: "id", dataField: "id",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width:250, width: 250,
caption: $translate.instant('operation'), caption: $translate.instant('operation'),
cellTemplate: function (container, options) { cellTemplate: function (container, options) {
try { try {
...@@ -1180,7 +1180,7 @@ ...@@ -1180,7 +1180,7 @@
}); });
}; };
var gridHeight =180; var gridHeight = 180;
$scope.orgShareholdersGridOptions = { $scope.orgShareholdersGridOptions = {
bindingOptions: { bindingOptions: {
dataSource: 'orgShareholdersDatasource' dataSource: 'orgShareholdersDatasource'
......
...@@ -779,7 +779,7 @@ ...@@ -779,7 +779,7 @@
} }
.data-grid-border { .data-grid-border {
width: 32%; width: 31%;
border: 1px solid #e4e4e4; border: 1px solid #e4e4e4;
} }
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}; };
$scope.$watch('addExistOrgOperateType', function (newValue, oldValue) { $scope.$watch('addExistOrgOperateType', function (newValue, oldValue) {
if (newValue==null&&oldValue==constant.Operation.Add) { if (newValue==null&&oldValue===constant.Operation.Add) {
$scope.getOrgRoleListView(); $scope.getOrgRoleListView();
} }
}); });
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
var dimensionValueUpdateModel = {}; var dimensionValueUpdateModel = {};
$scope.selectedDimensionValueList.forEach(function (item) { $scope.selectedDimensionValueList.forEach(function (item) {
if ($scope.originalDVlist == undefined || $scope.originalDVlist.indexOf(item) < 0) { if ($scope.originalDVlist === undefined || $scope.originalDVlist.indexOf(item) < 0) {
addedDimensions.push(item); addedDimensions.push(item);
} }
}); });
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
return item.parentID == null; return item.parentID == null;
}); });
if (invalidItems.length == addedDimensions.length) { if (invalidItems.length === addedDimensions.length) {
SweetAlert.warning($translate.instant('addDimensionValueFirstWarn')); SweetAlert.warning($translate.instant('addDimensionValueFirstWarn'));
} else { } else {
...@@ -252,14 +252,14 @@ ...@@ -252,14 +252,14 @@
//$scope.roleList = roleData; //$scope.roleList = roleData;
var selectedUserRole; var selectedUserRole;
if (enumSettingType == 1) { if (enumSettingType === 1) {
//当前维度行 //当前维度行
selectedUserRole = _.find($scope.dimensionRoleList, function (item) { selectedUserRole = _.find($scope.dimensionRoleList, function (item) {
return item.dimensionID == row.dimensionID && item.dimensionValueID == row.dimensionValueID; return item.dimensionID === row.dimensionID && item.dimensionValueID === row.dimensionValueID;
}); });
} else { } else {
selectedUserRole = _.find($scope.orgRoleList, function (item) { selectedUserRole = _.find($scope.orgRoleList, function (item) {
return item.orgID == row.orgID; return item.orgID === row.orgID;
}); });
} }
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
roleData.forEach(function (roleItem) { roleData.forEach(function (roleItem) {
var selectedRole = _.find(roleInfoList, function (item) { var selectedRole = _.find(roleInfoList, function (item) {
return item.roleID == roleItem.id; return item.roleID === roleItem.id;
}); });
if (selectedRole) { if (selectedRole) {
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
//为事业部的值(其他维度的值)添加用户角色 //为事业部的值(其他维度的值)添加用户角色
$scope.setRoleToDimensionValue = function () { $scope.setRoleToDimensionValue = function () {
if ($scope.enumSettingType == 1) { if ($scope.enumSettingType === 1) {
saveUpdateRoleDimensionValue(); saveUpdateRoleDimensionValue();
} else { } else {
saveUpateRoleOrg(); saveUpateRoleOrg();
...@@ -456,7 +456,7 @@ ...@@ -456,7 +456,7 @@
//获取全部的权限 //获取全部的权限
//前端选中该节点 //前端选中该节点
$scope.selectedRoleID = roleID; $scope.selectedRoleID = roleID;
if (roleID == '0') { if (roleID === '0') {
getAllPermissionsByRoleIDList(); getAllPermissionsByRoleIDList();
} else { } else {
$scope.getDevTreePermissionsByRoleID($scope.selectedRoleID, $scope.serviceType); $scope.getDevTreePermissionsByRoleID($scope.selectedRoleID, $scope.serviceType);
...@@ -563,7 +563,7 @@ ...@@ -563,7 +563,7 @@
}, function (isConfirm) { }, function (isConfirm) {
if (isConfirm) { if (isConfirm) {
if (role.roleID == '0') { if (role.roleID === '0') {
var roleIDList = _.map($scope.roleInfoList, function (item) { var roleIDList = _.map($scope.roleInfoList, function (item) {
return item.roleID; return item.roleID;
}); });
...@@ -715,7 +715,7 @@ ...@@ -715,7 +715,7 @@
} }
row.extraRoleList = _.filter(row.roleList, function (item) { row.extraRoleList = _.filter(row.roleList, function (item) {
return item.roleSource == constant.roleSource.DimensionLevel; return item.roleSource === constant.roleSource.DimensionLevel;
}); });
}); });
...@@ -1060,7 +1060,7 @@ ...@@ -1060,7 +1060,7 @@
var selectedArr = []; var selectedArr = [];
var allOrgInfo = _.filter($scope.allOrgInfo, function (item) { var allOrgInfo = _.filter($scope.allOrgInfo, function (item) {
return item.organizationID == data.entity.orgID; return item.organizationID === data.entity.orgID;
}); });
if (allOrgInfo && allOrgInfo.length > 0) { if (allOrgInfo && allOrgInfo.length > 0) {
......
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