|
|
|
@ -9,7 +9,7 @@ import {BasicModal, useModalInner} from '@/components/Modal' |
|
|
|
import {BasicForm, useForm} from '@/components/Form' |
|
|
|
import {getModelVersionList} from '@/api/alert/run/model/index' |
|
|
|
import {getCalcGroupList} from '@/api/alert/run/calcgroup/index' |
|
|
|
import {createInstant} from '@/api/alert/run/instant/index' |
|
|
|
import {createInstant, InstantVO} from '@/api/alert/run/instant/index' |
|
|
|
import {useMessage} from '@/hooks/web/useMessage' |
|
|
|
|
|
|
|
const emit = defineEmits(['success']) |
|
|
|
@ -134,7 +134,8 @@ async function updatempName(selectedRowKeys, selectedRows) { |
|
|
|
const calcGroupList = [] as any |
|
|
|
// // 组名下拉框问题 |
|
|
|
calcGroupData.forEach((item) => { |
|
|
|
calcGroupList.push({label: item.groupName, value: item.id}) |
|
|
|
console.log(item) |
|
|
|
calcGroupList.push({label: item.groupName, value: item.groupId}) |
|
|
|
}) |
|
|
|
|
|
|
|
// 将数据放入下拉框中 |
|
|
|
@ -167,7 +168,7 @@ async function CompleteCreate() { |
|
|
|
// 由于自定义按钮的,所以confirmLoading失效 |
|
|
|
setModalProps({confirmLoading: true, loading: true}) |
|
|
|
|
|
|
|
const values = await validate() |
|
|
|
const values = await validate() |
|
|
|
console.log(values) |
|
|
|
// if (unref(isUpdate)) { |
|
|
|
// await updateDemo02Category(values) |
|
|
|
|