Commit 2c9c52a8 authored by 皮倩雯's avatar 皮倩雯

fix: '角色管理界面优化'

parent 1152a441
Pipeline #60967 waiting for manual action with stages
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
} }
.imgg { .imgg {
position: relative; position: relative;
top: -80px; top: -95px;
left: -9px; left: -9px;
height: 104px; height: 104px;
width: 104px; width: 104px;
......
...@@ -25,6 +25,7 @@ import { ...@@ -25,6 +25,7 @@ import {
const ManagementDataBase = () => { const ManagementDataBase = () => {
const [autoCheckList, setAutoCheckList] = useState([]); // 自动列表 const [autoCheckList, setAutoCheckList] = useState([]); // 自动列表
const [autoCheck, setAutoCheck] = useState([]);
const [checkList, setCheckList] = useState([]); // 手动列表 const [checkList, setCheckList] = useState([]); // 手动列表
const [logList, setLogList] = useState([]); // 日志列表 const [logList, setLogList] = useState([]); // 日志列表
const [checkFlag, setCheckFlag] = useState(1); const [checkFlag, setCheckFlag] = useState(1);
...@@ -100,6 +101,7 @@ const ManagementDataBase = () => { ...@@ -100,6 +101,7 @@ const ManagementDataBase = () => {
console.log(data); console.log(data);
setKeepValue(res.RepairTypeList); setKeepValue(res.RepairTypeList);
setRepairTypeList(data); setRepairTypeList(data);
setAutoCheck(arr);
setAutoCheckList(arr); setAutoCheckList(arr);
setCheckList(arr2); setCheckList(arr2);
} }
...@@ -413,6 +415,16 @@ const ManagementDataBase = () => { ...@@ -413,6 +415,16 @@ const ManagementDataBase = () => {
const onChange = e => { const onChange = e => {
console.log(e); console.log(e);
console.log(autoCheckList);
let aa = [...autoCheck];
let data = [];
aa.map(i => {
if (e.indexOf(i.Type) != -1) {
data.push(i);
}
});
console.log(data);
setAutoCheckList(data);
setKeepValue(e); setKeepValue(e);
}; };
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
} }
.cardBoxR { .cardBoxR {
height: calc(100% - 36px); height: calc(100% - 3px);
min-width: 870px; min-width: 870px;
overflow-y: scroll; overflow-y: scroll;
......
...@@ -246,22 +246,23 @@ const NewSelectUser = props => { ...@@ -246,22 +246,23 @@ const NewSelectUser = props => {
destroyOnClose destroyOnClose
centered centered
> */} > */}
{/* 头部搜索框 */}
<div className={styles.searchHeader}>
<Input.Search
value={searchName}
placeholder="请输入部门或用户"
onChange={searchChange}
onSearch={onSearch}
enterButton
style={{ width: '300px', marginRight: '15px' }}
allowClear
/>
<Button onClick={onFinish} type="primary" htmlType="submit">
提交
</Button>
</div>
<div className={styles.pushTestContent}> <div className={styles.pushTestContent}>
<div className={styles.leftContent}> <div className={styles.leftContent}>
{/* 头部搜索框 */}
<div className={styles.searchHeader}>
<Input.Search
value={searchName}
placeholder="请输入部门或用户"
onChange={searchChange}
onSearch={onSearch}
enterButton
style={{ width: '300px', marginRight: '15px' }}
/>
<Button type="primary" htmlType="submit" onClick={onReset}>
重置
</Button>
</div>
{/* 复选框模块 */} {/* 复选框模块 */}
<div className={styles.checkScrollBox}> <div className={styles.checkScrollBox}>
{/* <Spin spinning={loading}> */} {/* <Spin spinning={loading}> */}
...@@ -285,7 +286,7 @@ const NewSelectUser = props => { ...@@ -285,7 +286,7 @@ const NewSelectUser = props => {
<div className={styles.tableRight}> <div className={styles.tableRight}>
<Table <Table
bordered bordered
style={{ width: '400px', height: '100%', overflowX: 'hidden' }} style={{ width: '400px', height: '100%' }}
rowKey={record => record.value} rowKey={record => record.value}
columns={columns} columns={columns}
dataSource={checkList} dataSource={checkList}
...@@ -304,13 +305,11 @@ const NewSelectUser = props => { ...@@ -304,13 +305,11 @@ const NewSelectUser = props => {
defaultCurrent={1} defaultCurrent={1}
current={currentPage} current={currentPage}
onChange={paginationChange} onChange={paginationChange}
style={{ marginBottom: '10px' }} style={{ marginBottom: '10px', width: '70%' }}
size="small" size="small"
showQuickJumper showQuickJumper
/> />
<Button onClick={onFinish} type="primary" htmlType="submit" style={{ float: 'right' }}>
提交
</Button>
{/* </Modal> */} {/* </Modal> */}
</> </>
); );
......
.searchHeader {
display: flex;
justify-content: space-between;
}
.pushTestContent { .pushTestContent {
.ant-table-body {
height: calc(100vh - 225px) !important;
}
display: flex; display: flex;
height: calc(100% - 75px); height: calc(100% - 40px);
.searchHeader {
display: flex;
}
.checkScrollBox { .checkScrollBox {
overflow-y: scroll; overflow-y: scroll;
height: calc(100% - 82px); height: calc(100% - 25px);
margin: 20px 0; margin: 10px 0px 0px 0px;
padding-right: 5px; padding-right: 5px;
.checkContainer { .checkContainer {
...@@ -69,16 +71,16 @@ ...@@ -69,16 +71,16 @@
.tableRight { .tableRight {
margin-left: 10px; margin-left: 10px;
height: 100%; margin-top:10px;
.ant-spin-nested-loading { .ant-spin-nested-loading {
height: 100%;
.ant-table { .ant-table {
height: 100%;
.ant-table-container { .ant-table-container {
height: 100%;
} }
} }
} }
......
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