Commit 837f551e authored by Maofei94's avatar Maofei94

fix: 人员选择

parent 03d16e7a
......@@ -7,7 +7,7 @@ import SiteConfig from './SiteConfig';
import MenuConfig from './menuconfig/MenuConfig';
const { TabPane } = Tabs;
const MobileConfigPage = props => {
const [activeKey, setActiveKey] = useState('1'); // tabs活动页
const [activeKey, setActiveKey] = useState('0'); // tabs活动页
const [miniTitle, setMiniTitle] = useState('');
const [flag, setFlag] = useState(1);
useEffect(() => {
......
.contentContainer{
// min-height: calc(100vh - 194px);
min-height: calc(100vh - 300px);
display: flex;
.menuContainer{
min-width: 300px;
......
......@@ -10,9 +10,7 @@ const MenuConfig = props => {
<ProCard colSpan="400px">
<LeftPart />
</ProCard>
<ProCard>
<AddForm />
</ProCard>
<ProCard>{/* <AddForm /> */}</ProCard>
</ProCard>
);
};
......
......@@ -67,11 +67,13 @@ const SiteManage = () => {
// });
// }, [flag]);
useEffect(() => {
setSpinLoading(true);
getUserRelationList({
userID: 82,
_version: 9999,
_dc: Date.now(),
}).then(res => {
setSpinLoading(false);
let arr = res.roleList;
let arr2 = transTree2(arr);
console.log(arr2, 'arr2');
......@@ -229,6 +231,8 @@ const SiteManage = () => {
onSelect={e => handleTreeSelect(e)}
treeData={treeData}
blockNode
autoExpandParent
defaultExpandAll
/>
</Spin>
<AddModal
......@@ -250,8 +254,8 @@ const SiteManage = () => {
/>
</Card>
</Col>
<Col lg={18} md={24}>
<Card className={styles.cardBox}>
<Col lg={18}>
<Card style={{ marginBottom: '10px' }}>
<Row align="middle">
<Col span={1}>搜索</Col>
<Col span={8}>
......@@ -264,6 +268,8 @@ const SiteManage = () => {
/>
</Col>
</Row>
</Card>
<Card className={styles.cardBoxR}>
{ouid && (
<ListCard
ouid={ouid}
......
.cardBox{
min-height: calc(100vh - 200px);
max-height: calc(100vh - 200px);
overflow-y: scroll;
}
.ant-tree-node-content-wrapper-open{
display: flex;
......@@ -22,4 +24,9 @@
// flex-wrap: wrap;
justify-content: space-around;
align-items: center;
}
.cardBoxR{
min-height: calc(100vh - 292px);
max-height: calc(100vh - 292px);
overflow-y: scroll;
}
\ No newline at end of file
......@@ -207,7 +207,7 @@ const SiteManage = () => {
<PageContainer>
<GridContent>
<Row gutter={12}>
<Col lg={6} sm={6}>
<Col lg={6}>
<Card className={styles.cardBox}>
<Spin
tip="loading...."
......@@ -235,7 +235,7 @@ const SiteManage = () => {
/>
</Card>
</Col>
<Col lg={18} sm={18}>
<Col lg={18}>
<Card style={{ marginBottom: '10px' }}>
<Row align="middle">
<Col span={1}>搜索</Col>
......
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