Commit cb023e75 authored by tianfen's avatar tianfen

pref: 站点管理修改

parent 9b94ed67
Pipeline #21958 skipped with stages
...@@ -270,11 +270,14 @@ const SiteManage = props => { ...@@ -270,11 +270,14 @@ const SiteManage = props => {
const handleDel = index => { const handleDel = index => {
let { GroupId, userID } = selectList[index]; let { GroupId, userID } = selectList[index];
let outerIndex = dataList.findIndex(item => item.GroupId === GroupId); let outerIndex = dataList.findIndex(item => item.GroupId === GroupId);
let innerIndex = dataList[outerIndex].Users.findIndex( if (outerIndex > -1) {
item => item.userID === userID, let innerIndex = dataList[outerIndex].Users.findIndex(
); item => item.userID === userID,
dataList[outerIndex].Users[innerIndex].isChecked = false; );
dataList[outerIndex].isChecked = isAllChecked(outerIndex); dataList[outerIndex].Users[innerIndex].isChecked = false;
dataList[outerIndex].isChecked = isAllChecked(outerIndex);
}
selectList.splice(index, 1); selectList.splice(index, 1);
setSelectList(lodash.cloneDeep(selectList)); setSelectList(lodash.cloneDeep(selectList));
setdataList(lodash.cloneDeep(dataList)); setdataList(lodash.cloneDeep(dataList));
......
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