Commit 4ff2023e authored by 皮倩雯's avatar 皮倩雯

fix: '表字段形态'

parent e163b3ff
Pipeline #53883 passed with stages
......@@ -27,6 +27,7 @@ import {
reloadTableFields,
removeFields,
loadUnattachedTables,
LoadLedgers,
} from '@/services/tablemanager/tablemanager';
import { useHistory } from 'react-router-dom';
import FieldEditor from './fieldEditor';
......@@ -61,6 +62,7 @@ const AddModal = props => {
const [deleteUserVisible, setDeleteUserVisible] = useState(false); // 批量删除
const [checkStrictly, setCheckStrictly] = useState(false);
const [selectGroup, setSelectGroup] = useState([]);
const [keepStandingBook, setKeepStandingBook] = useState([]);
const editor = record => {
console.log(record);
......@@ -300,6 +302,17 @@ const AddModal = props => {
},
},
];
useEffect(() => {
LoadLedgers().then(res => {
if (res.code === 0) {
let data = [];
res.data.root.map(i => {
data.push(i.name);
});
setKeepStandingBook(data);
}
});
}, []);
useEffect(() => {
console.log(props);
......@@ -724,6 +737,7 @@ const AddModal = props => {
treeData={treeData}
keepTreeFirst={keepTreeFirst}
callBackSubmit={Submit}
keepStandingBook={keepStandingBook}
/>
{visible && type === 'affiliateAdd' && (
<AffiliateAdd
......
......@@ -7,7 +7,7 @@
* @Description:
* @Author: leizhe
* @Date: 2022-04-06 11:38:46
* @LastEditTime: 2022-05-23 10:49:46
* @LastEditTime: 2022-06-22 13:53:09
* @LastEditors: leizhe
*/
import React, { useState, useEffect } from 'react';
......@@ -119,8 +119,8 @@ const DrawBoardManage = () => {
const updateTrees = e => {
setTreeLoading(true);
typeList().then(res => {
setTreeLoading(false);
if (res.code === 0) {
setTreeLoading(false);
if (e) {
let aa = res.data.find(i => i.name === e);
setPickItem(aa);
......
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