|
|
|
@ -36,7 +36,7 @@
|
|
|
|
|
const isUpdate = ref(true)
|
|
|
|
|
const loading = ref(false)
|
|
|
|
|
const rowId = ref('')
|
|
|
|
|
const linkId = ref('')
|
|
|
|
|
const orgId = ref('')
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
|
|
|
|
|
labelWidth: 100,
|
|
|
|
@ -48,7 +48,7 @@
|
|
|
|
|
resetFields()
|
|
|
|
|
setModalProps({ confirmLoading: false, loading: true })
|
|
|
|
|
isUpdate.value = !!data?.isUpdate
|
|
|
|
|
linkId.value = data.linkId ? data.linkId : ''
|
|
|
|
|
orgId.value = data.orgId ? data.orgId : ''
|
|
|
|
|
if (unref(isUpdate)) {
|
|
|
|
|
rowId.value = data.record.id ? data.record.id : data.record.value
|
|
|
|
|
const res: API.DataResult = await getOrgAuthInfo({ id: unref(rowId) })
|
|
|
|
@ -77,7 +77,7 @@
|
|
|
|
|
try {
|
|
|
|
|
const values = await validate()
|
|
|
|
|
setModalProps({ confirmLoading: true, loading: true })
|
|
|
|
|
values.linkId = values.linkId ? values.linkId : linkId.value
|
|
|
|
|
values.orgId = values.orgId ? values.orgId : orgId.value
|
|
|
|
|
if (values.status) {
|
|
|
|
|
values.status = 0
|
|
|
|
|
} else {
|
|
|
|
|