@@ -1,7 +1,8 @@
<script setup>
import { computed, onMounted, onUnmounted, watch, ref } from "vue";
import { useRouter } from 'vue-router';
-import { Search } from '@element-plus/icons-vue'
+import { Search } from '@element-plus/icons-vue';
+import { ElMessage } from 'element-plus';
const router = useRouter();
// let state = ref({
@@ -299,6 +300,26 @@ const submitForm = async (formEl) => {
})
}
+/**
+ * 删除选中分页的某个数据
+ * @param res
+ */
+const btnDel = (res) => {
+
+ console.log(
+ "删除选中分页的某个数据", res
+ );
+ ElMessage({
+ type: 'success',
+ message: '删除成功',
+ });
+ // 重新查找分页数据
+ pageUpdateEvent();
+}
</script>
<template>