|
|
|
@ -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}) // immediate设置为true,确保组件初始化时也会执行一次 |
|
|
|
|
|
|
|
const state = reactive<any>({ |
|
|
|
selectedRowKeys: [], |
|
|
|
selectedData: [], |
|
|
|
pointInfo: [], |
|
|
|
type: false, |
|
|
|
}) |
|
|
|
|
|
|
|
async function updatempName(selectedRowKeys, selectedRows) { |
|
|
|
console.log(selectedRowKeys) |
|
|
|
|