|
|
@ -7,9 +7,6 @@ import { BasicForm, useForm } from '@/components/Form' |
|
|
|
import { BasicModal, useModalInner } from '@/components/Modal' |
|
|
|
import { getWarn, updateWarn } from '@/api/alert/warn/index' |
|
|
|
|
|
|
|
import { getModelVersionList } from '@/api/alert/run/model/index' |
|
|
|
import { getCalcGroupList } from '@/api/alert/run/calcgroup/index' |
|
|
|
|
|
|
|
defineOptions({ name: 'WarnUpdateModal' }) |
|
|
|
|
|
|
|
const emit = defineEmits(['success', 'register']) |
|
|
@ -17,7 +14,7 @@ const { t } = useI18n() |
|
|
|
const { createMessage } = useMessage() |
|
|
|
const isUpdate = ref(true) |
|
|
|
|
|
|
|
const [registerForm, { updateSchema, setFieldsValue, resetFields, validate }] = useForm({ |
|
|
|
const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ |
|
|
|
labelWidth: 120, |
|
|
|
baseColProps: { span: 24 }, |
|
|
|
schemas: updateWarnForm, |
|
|
|