Renxy 1 anno fa
parent
commit
b8e82187be
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 0
      src/app.tsx
  2. 2 3
      src/pages/Cad/components/CreateModal.js

+ 1 - 0
src/app.tsx

@@ -62,6 +62,7 @@ export const layout: RunTimeLayoutConfig = (initialState) => {
     logo: logo,
   };
 };
+//修改交给 react-dom 渲染时的根组件
 export function rootContainer(container) {
   return React.createElement(ConfigProvider, { prefixCls: 'antd5' }, container);
 }

+ 2 - 3
src/pages/Cad/components/CreateModal.js

@@ -53,7 +53,6 @@ const CreateModal = ({
     labelCol: { span: 6 },
     wrapperCol: { span: 16 },
   };
-  console.log('-[-------------------', dirList);
   const [upLoading, setUpLoading] = useState([]);
   const [auditCheck, setAuditCheck] = useState([]);
   const [approvalProcess, setApprovalProcess] = useState([]);
@@ -126,7 +125,7 @@ const CreateModal = ({
     form.validateFields().then((values) => {
       if (values.project_id)
         values.project_name = projectList.find(
-          (item) => (item.value = values.project_id),
+          (item) => item.value == values.project_id,
         )?.label;
       if (values.dir_id) values.dir_name = values.dir_id.join(',');
       values.dir_id = 0;
@@ -224,7 +223,7 @@ const CreateModal = ({
             <Button icon={<CloudUploadOutlined />}>Upload</Button>
           </Upload> */}
             </Form.Item>
-            <Form.Item name="doc" label="备注:">
+            <Form.Item name="remark" label="备注:">
               <Input.TextArea />
             </Form.Item>
           </Form>