-
+
+
+
+ 只看自己
+ 全部
+
+
+
+
+
+
+
+
+
+ {{ scope.row.http_code }}
+ {{ scope.row.http_code }}
+
+
+
+
+
+
+ 查看
+
+
+
+
+
@@ -30,14 +34,15 @@
import { computed, onMounted } from 'vue'
import { useGetList } from '/admin/composables/curd/useGetList'
-const api = 'users'
+const api = 'user/operate/log'
-const { data, query, search, reset, changePage, changeLimit, loading } = useGetList(api)
+const { data, query, search, reset, loading } = useGetList(api)
+
+query.value.scope = 'self'
onMounted(() => search())
const tableData = computed(() => data.value?.data)
-const total = computed(() => data.value?.total)
diff --git a/package.json b/package.json
index a07b8c5..45ede83 100644
--- a/package.json
+++ b/package.json
@@ -45,7 +45,7 @@
"unplugin-auto-import": "^0.12.1",
"unplugin-icons": "^0.14.15",
"unplugin-vue-components": "^0.22.12",
- "vite": "^4.0.1",
+ "vite": "^4.0.2",
"vite-plugin-html": "^3.2.0",
"vue-tsc": "^1.0.13"
}
diff --git a/resources/admin/composables/curd/useGetList.ts b/resources/admin/composables/curd/useGetList.ts
index 0b1546a..568212f 100644
--- a/resources/admin/composables/curd/useGetList.ts
+++ b/resources/admin/composables/curd/useGetList.ts
@@ -1,22 +1,26 @@
import http from '/admin/support/http'
-import {provide, ref, unref} from 'vue'
+import { provide, ref, unref } from 'vue'
import { Code } from '/admin/enum/app'
import Message from '/admin/support/message'
const initLimit = 10
-const initPage = 1;
-const initTotal = 10;
+const initPage = 1
+const initTotal = 10
// get table list
-export function useGetList(path: string) {
+export function useGetList(path: string, isPaginate: boolean = true) {
const data = ref