Commit 3b8c25ca authored by 皮倩雯's avatar 皮倩雯

fix: '数据库升级优化'

parent 4e1e7a5c
Pipeline #62589 passed with stages
......@@ -41,7 +41,6 @@ const ManagementDataBase = () => {
const [checkSql, setCheckSql] = useState('');
const [sqlVisible, setSqlVisible] = useState(false);
const [repairTypeList, setRepairTypeList] = useState([]);
const [keepValue, setKeepValue] = useState([]);
const [list, setlist] = useState(['表', '字段', '主外键', '主键', '索引', '复合索引']);
const [selectedRowKeys, setSelectedRowKeys] = useState([]); // 保存已选自动升级表键值
const [keepCheckList, setKeepChecklist] = useState([]); // 保存已选自动升级表值
......@@ -116,9 +115,6 @@ const ManagementDataBase = () => {
}
console.log(datalist); // 所有数据的key
setKeepData(data);
setSelectedRowKeys(datalist);
setKeepChecklist(arr);
setKeepValue(res.RepairTypeList);
console.log(data); // 分类数组
let aa = [];
if (data.length > 0) {
......@@ -212,6 +208,8 @@ const ManagementDataBase = () => {
setCheckFlag(checkFlag + 1);
setUpFlag(upFlag + 1);
if (res.code === 0) {
setKeepChecklist([]);
setSelectedRowKeys([]);
setFilteredValue([]);
notification.success({
message: '通知',
......@@ -466,8 +464,8 @@ const ManagementDataBase = () => {
// 复选框
const rowSelection = {
selectedRowKeys,
columnTitle: ' ',
hideDefaultSelections: true,
// columnTitle: ' ',
// hideDefaultSelections: true,
onChange: (RowKeys, Rows) => {
// 找到勾选/取消勾选项的Type
let aa = [];
......@@ -625,7 +623,7 @@ const ManagementDataBase = () => {
<div className={styles.tableTitle}>
<div style={{ display: 'inline-block' }}>
<span style={{ marginRight: '100px' }}>升级详情</span>
{repairTypeList.length > 0 && (
{/* {repairTypeList.length > 0 && (
<>
<Checkbox
checked={allchecked}
......@@ -646,7 +644,7 @@ const ManagementDataBase = () => {
))}
</div>
</>
)}
)} */}
</div>
<div style={{ display: 'inline-block' }}>
<strong>
......
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