xjj 1 rok pred
rodič
commit
a6215cdbf2

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

@@ -650,6 +650,12 @@ const ContractModal = (props) => {
                 name="dep_id"
                 label="所属部门:"
                 initialValue={data?.dep_id}
+                rules={[
+                  {
+                    required: true,
+                    message: '请选择所属部门',
+                  },
+                ]}
               >
                 <TreeSelect
                   style={{ width: '100%' }}