Pārlūkot izejas kodu

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

Renxy 2 gadi atpakaļ
vecāks
revīzija
a3976477a1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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,