Commit e41f5166 authored by 皮倩雯's avatar 皮倩雯

fix: '修改角色管理复选框问题'

parent fb74cd23
Pipeline #46288 passed with stages
in 6 minutes 54 seconds
...@@ -44,6 +44,7 @@ const ListCard = props => { ...@@ -44,6 +44,7 @@ const ListCard = props => {
// 首次进入处理数据后续不触发 // 首次进入处理数据后续不触发
useEffect(() => { useEffect(() => {
console.log(checkList);
let aa = dataList let aa = dataList
.map(l => checkChildrenByCondition(l, it => [getId(it)], true, 'map').flat(Infinity)) .map(l => checkChildrenByCondition(l, it => [getId(it)], true, 'map').flat(Infinity))
.flat(Infinity) .flat(Infinity)
......
...@@ -188,14 +188,15 @@ const SiteManage = () => { ...@@ -188,14 +188,15 @@ const SiteManage = () => {
list.push({ ...defaultConfig, ...item }); list.push({ ...defaultConfig, ...item });
}); });
const finalList = buildMap(list); const finalList = buildMap(list);
// if (finalList[0].text == '地图组件') { if (finalList[0].text == '地图组件') {
// if (finalList[0].children.find(i => i.isChecked == false)) { if (finalList[0].children.find(i => i.isChecked == false)) {
// finalList[0].isChecked = false; finalList[0].isChecked = false;
// } else { } else {
// finalList[0].isChecked = true; finalList[0].isChecked = true;
// } }
// } finalList[0].id = 1;
// console.log(finalList); }
console.log(finalList);
setdataList(finalList); setdataList(finalList);
setValueList( setValueList(
finalList finalList
......
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