+
-
+
-
+
@@ -50,7 +50,14 @@
-
+ 详情
+
+
@@ -85,6 +92,9 @@ import { apiOpurchaseclassLists, apiOpurchaseclassDelete } from '@/api/opurchase
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'
+import { useRouter } from 'vue-router'
+
+const router = useRouter()
const editRef = shallowRef>()
// 是否显示编辑框
@@ -122,6 +132,17 @@ const handleAdd = async () => {
editRef.value?.open('add')
}
+// 详情
+const handleDetail = async (data: any) => {
+ console.log(data);
+ router.push({
+ path: 'detail',
+ query:{
+ id: data.id
+ }
+ })
+}
+
// 编辑
const handleEdit = async (data: any) => {
showEdit.value = true