|
|
@ -1,9 +1,11 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import type { MatrixQuery } from 'apis/matrix' |
|
|
|
import { list } from 'apis/point' |
|
|
|
import { list, reset } from 'apis/point' |
|
|
|
import FtButton from 'components/common/FTButton/index.vue' |
|
|
|
import Edit from 'components/point/Edit/index.vue' |
|
|
|
|
|
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
import { FtMessage } from 'libs/message' |
|
|
|
import { useSystemStore } from 'stores/useSystemStore' |
|
|
|
import { onMounted, ref } from 'vue' |
|
|
|
|
|
|
@ -59,23 +61,22 @@ const editHandle = () => { |
|
|
|
addVisible.value = true |
|
|
|
} |
|
|
|
|
|
|
|
// const delHandle = async () => { |
|
|
|
// const ids = selectedData.value.map((item: any) => item.id) |
|
|
|
// ElMessageBox.confirm('确认删除?', '提示', { |
|
|
|
// type: 'warning', |
|
|
|
// confirmButtonText: '确定', |
|
|
|
// cancelButtonText: '取消', |
|
|
|
// showCancelButton: true, |
|
|
|
// showClose: false, |
|
|
|
// closeOnClickModal: false, |
|
|
|
// closeOnPressEscape: false, |
|
|
|
// closeOnHashChange: false, |
|
|
|
// }).then(async () => { |
|
|
|
// await del(ids.join(',')) |
|
|
|
// FtMessage.success('删除成功') |
|
|
|
// await getList() |
|
|
|
// }) |
|
|
|
// } |
|
|
|
const resetHandle = async () => { |
|
|
|
ElMessageBox.confirm('重置后所有坐标数据都将恢复默认值, 确认?', '提示', { |
|
|
|
type: 'warning', |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
showCancelButton: true, |
|
|
|
showClose: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnPressEscape: false, |
|
|
|
closeOnHashChange: false, |
|
|
|
}).then(async () => { |
|
|
|
await reset() |
|
|
|
FtMessage.success('重置成功') |
|
|
|
await getList() |
|
|
|
}) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
@ -90,6 +91,9 @@ const editHandle = () => { |
|
|
|
<FtButton v-if="systemStore.isDebug" :disabled="selectedData.length !== 1" @click="editHandle"> |
|
|
|
编辑 |
|
|
|
</FtButton> |
|
|
|
<FtButton v-if="systemStore.isDebug" @click="resetHandle"> |
|
|
|
重置 |
|
|
|
</FtButton> |
|
|
|
<!-- <FtButton :disabled="selectedData.length === 0" @click="delHandle"> --> |
|
|
|
<!-- 删除 --> |
|
|
|
<!-- </FtButton> --> |
|
|
|