Browse Source

fix:创建实例的modal初始化问题解决

pull/86/head
肖晋飞 3 weeks ago
parent
commit
4085803c04
  1. 20
      src/views/run/instant/CreateModal.vue

20
src/views/run/instant/CreateModal.vue

@ -20,15 +20,25 @@ const props = defineProps({
default: true,
}
})
const current = ref<number>(0)
const {createMessage} = useMessage()
const {t} = useI18n()
const state = reactive<any>({
selectedRowKeys: [],
selectedData: [],
pointInfo: [],
type: false,
})
const [registerCreateModal, {setModalProps, closeModal}] = useModalInner(async (data) => {
resetFields()
current.value=0;
state.selectedRowKeys=[];
state.selectedData=[];
setModalProps({destroyOnClose: true, showCancelBtn: false, showOkBtn: false})
})
const current = ref<number>(0)
function next() {
current.value++
@ -85,12 +95,6 @@ watch(() => props.isDisabled, (newVal) => {
}
}, {immediate: true}) // immediatetrue
const state = reactive<any>({
selectedRowKeys: [],
selectedData: [],
pointInfo: [],
type: false,
})
async function updatempName(selectedRowKeys, selectedRows) {
console.log(selectedRowKeys)

Loading…
Cancel
Save