소스 검색

修改所属部门只展示部门编号问题

Renxy 2 년 전
부모
커밋
a3976477a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/pages/ContractManager/component/Modal.jsx

+ 1 - 1
src/pages/ContractManager/component/Modal.jsx

@@ -649,7 +649,7 @@ const ContractModal = (props) => {
               <Form.Item
                 name="dep_id"
                 label="所属部门:"
-                initialValue={data?.dep_id}
+                initialValue={getDepItemById(data?.dep_id)?.Name}
                 rules={[
                   {
                     required: true,