From f93a5719f77508aae2eb45eaa7e68bd447d607e2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 28 二月 2024 09:39:09 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/system/role/components/scope.jsx | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/zy-asrs-flow/src/pages/system/role/components/scope.jsx b/zy-asrs-flow/src/pages/system/role/components/scope.jsx
index 45c834b..4ec3862 100644
--- a/zy-asrs-flow/src/pages/system/role/components/scope.jsx
+++ b/zy-asrs-flow/src/pages/system/role/components/scope.jsx
@@ -3,6 +3,7 @@
ProForm,
ProFormDigit,
} from '@ant-design/pro-components';
+import { DownOutlined } from '@ant-design/icons';
import { Col, Form, Modal, Row, Checkbox, Skeleton, Tree, Drawer, Space, Button, Card } from 'antd';
import Http from '@/utils/http';
import { transformTreeData, getTreeAllKeys } from '@/utils/tree-util'
@@ -51,14 +52,13 @@
}
const handleFinish = async (values) => {
- console.log({ ...values, menuIds }); return
props.onSubmit({ ...values, menuIds });
}
return (
<>
<Drawer
- title={`鍒嗛厤鏉冮檺 - ${name?name:'-'}`}
+ title={`鍒嗛厤鏉冮檺 - ${name ? name : '-'}`}
width={640}
forceRender
destroyOnClose
@@ -94,10 +94,9 @@
<ProForm.Item
name="deptIds"
- label="鑿滃崟鏉冮檺"
+ label="鏉冮檺鑿滃崟"
colProps={{ md: 24, xl: 24 }}
>
-
<Row gutter={[16, 16]}>
<Col md={24}>
<Checkbox.Group
@@ -113,9 +112,9 @@
setMenuExpandedKeys([]);
}
if (values.includes('checkAll')) {
-
+ setMenuIds(menuTreeAllKeys)
} else {
-
+ setMenuIds([]);
}
}} />
</Col>
@@ -124,7 +123,10 @@
<Skeleton active />
) : (
<Tree
+ showLine
+ blockNode
checkable
+ switcherIcon={<DownOutlined />}
treeData={menuTreeData}
expandedKeys={menuExpandedKeys}
onExpand={(expandedKeys) => {
@@ -137,12 +139,10 @@
halfChecked: checkInfo.halfCheckedKeys // 鐖惰妭鐐�
});
}}
- // defaultCheckedKeys={onSelect}
/>
)}
</Col>
</Row>
-
</ProForm.Item>
</ProForm>
</Card>
--
Gitblit v1.9.1