|
|
@ -7,11 +7,13 @@ const DepModal = (props) => { |
|
|
|
const { visible, onVisibleChange, onConfirm, depModalType, depData, data } = props; |
|
|
|
const formRef = useRef(); |
|
|
|
const onFinish = (values) => { |
|
|
|
console.log('values:',values); |
|
|
|
if (onConfirm) { |
|
|
|
if (depModalType === 'edit') { |
|
|
|
let value = { |
|
|
|
name: values.name, |
|
|
|
depId: data.id |
|
|
|
depId: data.id, |
|
|
|
dependence:values.dependence |
|
|
|
} |
|
|
|
onConfirm(value) |
|
|
|
} else { |
|
|
|