Commit 7d3ca512 authored by 张烨's avatar 张烨

feat: 功能选择器

parent d1f80bf8
...@@ -143,6 +143,7 @@ const ListCardItem = props => { ...@@ -143,6 +143,7 @@ const ListCardItem = props => {
<span <span
className={classnames({ className={classnames({
[styles.boldLabel]: isCurrentGroup, [styles.boldLabel]: isCurrentGroup,
[styles.isSearch]: searchWord && text.includes(searchWord),
})} })}
> >
{text} {text}
......
...@@ -100,7 +100,7 @@ const ListCard = props => { ...@@ -100,7 +100,7 @@ const ListCard = props => {
{true && !loading && dataList && ( {true && !loading && dataList && (
<Button <Button
type="primary" type="primary"
onClick={() => onCommit()} onClick={() => onCommit(valueList)}
style={{ marginTop: '20px' }} style={{ marginTop: '20px' }}
> >
提交 提交
......
...@@ -182,6 +182,7 @@ const SiteManage = () => { ...@@ -182,6 +182,7 @@ const SiteManage = () => {
setSubList(valueObj); setSubList(valueObj);
}; };
const handleCommit = value => { const handleCommit = value => {
console.log(value);
let arr = Object.values(subList); let arr = Object.values(subList);
setMenuToRole( setMenuToRole(
qs.stringify({ qs.stringify({
......
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