被检设备监测点
This commit is contained in:
@@ -104,6 +104,7 @@ const columns = reactive<ColumnProps<Monitor.ResPqMon>[]>([
|
||||
const emit = defineEmits(['get-parameter'])
|
||||
|
||||
const getParameter = (data: Monitor.ResPqMon) => {
|
||||
console.log('data', data)
|
||||
if (title_Type.value === 'edit') {
|
||||
// 编辑:替换已有的数据
|
||||
const index = tableData.value.findIndex(item => item.id === data.id)
|
||||
@@ -119,7 +120,6 @@ const getParameter = (data: Monitor.ResPqMon) => {
|
||||
tableData.value = [...tableData.value, data]
|
||||
|
||||
}
|
||||
|
||||
emit('get-parameter', tableData.value)
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ const getParameter = (data: Monitor.ResPqMon) => {
|
||||
}).then(async () => {
|
||||
tableData.value = tableData.value.filter(item => !ids.includes(item.id));
|
||||
proTable.value?.clearSelection()
|
||||
|
||||
emit('get-parameter', tableData.value)
|
||||
ElMessage({
|
||||
type: "success",
|
||||
message: `批量删除监测点成功!`
|
||||
@@ -170,6 +170,7 @@ const handleDelete = (id: string) => {
|
||||
}).then(async () => {
|
||||
tableData.value = tableData.value.filter(item => item.id !== id)
|
||||
proTable.value?.clearSelection()
|
||||
emit('get-parameter', tableData.value)
|
||||
ElMessage({
|
||||
type: "success",
|
||||
message: `删除监测点成功!`
|
||||
|
||||
Reference in New Issue
Block a user