diff --git a/package.json b/package.json index fd4abbd..89ca309 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "relation-graph": "^2.2.11", - "zy-react-library": "^1.1.10" + "zy-react-library": "^1.1.24" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", diff --git a/src/api/enterprise/index.js b/src/api/enterprise/index.js index dc9ba65..427d845 100644 --- a/src/api/enterprise/index.js +++ b/src/api/enterprise/index.js @@ -2,7 +2,7 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime"; export const corpInfoList = declareRequest( "enterpriseLoading", - "Post > @/basicInfo/corpInfo/list", + "Post > @/basicInfo/corpInfo/basicList", ); export const corpInfoDetails = declareRequest( "enterpriseLoading", diff --git a/src/components/OrgChartModal/index.js b/src/components/OrgChartModal/index.js index 9adcda7..573c705 100644 --- a/src/components/OrgChartModal/index.js +++ b/src/components/OrgChartModal/index.js @@ -3,7 +3,7 @@ import RelationGraph from "relation-graph/react"; import { MySwitch } from "./RGDemoComponents/MyUIComponents"; const ExpandAnimation = (departmentData) => { - console.log(departmentData); + const graphRef = useRef(null); const [relayout, setRelayout] = useState(true); diff --git a/src/pages/Container/BusinessLicense/index.js b/src/pages/Container/BusinessLicense/index.js index 3a14edc..8631e90 100644 --- a/src/pages/Container/BusinessLicense/index.js +++ b/src/pages/Container/BusinessLicense/index.js @@ -181,6 +181,7 @@ function AddModalComponent(props) { }; return ( { return ( { return ( ( - {" "} - { - props.permission("zgszhgl-edit") - && ( - - ) - } + {/* { */} + {/* props.permission("zgszhgl-edit") */} + {/* && ( */} + + {/* */} + {/* ) */} + {/* } */} { props.permission("zgszhgl-editName") && ( @@ -373,19 +374,32 @@ function AddModalComponent(props) { const onSubmit = async (values) => { if (props.openType === "editName") { values.id = props.currentId; - await props.requestChangeCompanyName(values); + await props.requestChangeCompanyName(values).then((res) => { + if (res.success) { + message.success("修改成功"); + onCancel(); + props.getData(); + } + }); } + if (props.openType === "edit") { values.id = props.currentId; - await props.requestEdit(values).then(() => { - onCancel(); - props.getData(); + await props.requestEdit(values).then((res) => { + if (res.success) { + message.success("编辑成功"); + onCancel(); + props.getData(); + } }); } if (props.openType === "add") { - await props.requestAdd(values).then(() => { - onCancel(); - props.getData(); + await props.requestAdd(values).then((res) => { + if (res.success) { + message.success("新增成功"); + onCancel(); + props.getData(); + } }); } }; @@ -452,6 +466,7 @@ function AddModalComponent(props) { }; return ( diff --git a/src/pages/Container/Supervision/BranchCompany/EnterpriseInfo/View/index.js b/src/pages/Container/Supervision/BranchCompany/EnterpriseInfo/View/index.js index 0ecf733..2090eec 100644 --- a/src/pages/Container/Supervision/BranchCompany/EnterpriseInfo/View/index.js +++ b/src/pages/Container/Supervision/BranchCompany/EnterpriseInfo/View/index.js @@ -299,6 +299,7 @@ function View(props) { {isModalOpen && ( { setAddModalOpen(false); setCurrentId(""); @@ -405,11 +406,14 @@ function AddModalComponent(props) { }; return ( { return ( ( + record.flowFlag === 1 ? "流动人员" : record.flowFlag === 0 ? "非流动人员" : "" + ), }, { @@ -243,6 +247,7 @@ function AddModalComponent(props) { return ( <> (
{ - getLabelName({ status: String(record.employmentFlag), list: employmentFlagData, @@ -442,6 +441,7 @@ function AddModalComponent(props) { <>