Renxy 1 rok pred
rodič
commit
0df16c0837

+ 2 - 2
.umirc.ts

@@ -40,8 +40,8 @@ export default defineConfig({
   proxy: {
     '/api': {
       // target: 'http://47.96.12.136:8888/',
-      target: 'http://47.96.12.136:8895/',
-      // target: 'https://work.greentech.com.cn/',
+      // target: 'http://47.96.12.136:8895/',
+      target: 'https://work.greentech.com.cn/',
       changeOrigin: true,
     },
   },

+ 6 - 2
src/pages/ContractManager/component/Modal.jsx

@@ -304,12 +304,16 @@ const ContractModal = (props) => {
     },
   );
 
+  useEffect(() => {
+    setCompanyDepList(depList);
+  }, [depList]);
+
   useEffect(() => {
     if (!visible) {
       setIsPass(1);
       setDealDisable(false);
       setAuditList([]);
-      setCompanyDepList([]);
+      // setCompanyDepList([]);
       setArchivesDepList([]);
     } else {
       userListRun();
@@ -659,7 +663,7 @@ const ContractModal = (props) => {
               <Form.Item
                 name="dep_id"
                 label="所属部门:"
-                initialValue={getDepItemById(data?.dep_id)?.Name}
+                initialValue={data?.dep_id}
                 rules={[
                   {
                     required: true,