From bbc4f8669bfefb04d7ccfa6497698cdd538fc2f0 Mon Sep 17 00:00:00 2001 From: zhongzm Date: Tue, 7 Jan 2025 18:18:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:AP=E8=AE=BE=E5=A4=87=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=8E=A5=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/api/auth.ts | 7 + src/typings/auto-imports.d.ts | 5 + src/typings/components.d.ts | 1 + src/views/device/apdevice/index.vue | 246 ++++++++++++++++++ .../device/apdevice/modules/device-search.vue | 84 ++++++ 5 files changed, 343 insertions(+) create mode 100644 src/views/device/apdevice/index.vue create mode 100644 src/views/device/apdevice/modules/device-search.vue diff --git a/src/service/api/auth.ts b/src/service/api/auth.ts index e635922..67734f0 100644 --- a/src/service/api/auth.ts +++ b/src/service/api/auth.ts @@ -171,6 +171,13 @@ export function fetchApDeviceList(params: Api.Device.ApDeviceParams) { params }); } +/** 删除AP设备 */ +export function deleteApDevices(ids: string) { + return request({ + url: `/system/device/${ids}`, + method: 'delete' + }); +} /** 获取终端设备列表 */ export function fetchTerminalList(params: Api.Device.TerminalDeviceParams) { return request({ diff --git a/src/typings/auto-imports.d.ts b/src/typings/auto-imports.d.ts index 0a70adf..2a0c8f7 100644 --- a/src/typings/auto-imports.d.ts +++ b/src/typings/auto-imports.d.ts @@ -60,6 +60,7 @@ declare global { const defineStore: typeof import('pinia')['defineStore'] const delData: typeof import('../service/api/dictData')['delData'] const delJobLog: typeof import('../service/api/job')['delJobLog'] + const deleteApDevices: typeof import('../service/api/auth')['deleteApDevices'] const deletePackage: typeof import('../service/api/auth')['deletePackage'] const describe: typeof import('vitest')['describe'] const dict: typeof import('../store/modules/dict/index')['default'] @@ -121,7 +122,9 @@ declare global { const exportJobLog: typeof import('../service/api/jobLog')['exportJobLog'] const extendRef: typeof import('@vueuse/core')['extendRef'] const extractTabsByAllRoutes: typeof import('../store/modules/tab/shared')['extractTabsByAllRoutes'] + const fetchApDeviceList: typeof import('../service/api/auth')['fetchApDeviceList'] const fetchBillList: typeof import('../service/api/auth')['fetchBillList'] + const fetchBillRuleList: typeof import('../service/api/auth')['fetchBillRuleList'] const fetchCdrHistory: typeof import('../service/api/auth')['fetchCdrHistory'] const fetchCustomBackendError: typeof import('../service/api/auth')['fetchCustomBackendError'] const fetchGetAllPages: typeof import('../service/api/menu')['fetchGetAllPages'] @@ -133,6 +136,7 @@ declare global { const fetchRateLimitList: typeof import('../service/api/auth')['fetchRateLimitList'] const fetchRefreshToken: typeof import('../service/api/auth')['fetchRefreshToken'] const fetchRegister: typeof import('../service/api/auth')['fetchRegister'] + const fetchTerminalList: typeof import('../service/api/auth')['fetchTerminalList'] const filterAuthRoutesByRoles: typeof import('../store/modules/route/shared')['filterAuthRoutesByRoles'] const filterTabsById: typeof import('../store/modules/tab/shared')['filterTabsById'] const filterTabsByIds: typeof import('../store/modules/tab/shared')['filterTabsByIds'] @@ -270,6 +274,7 @@ declare global { const unref: typeof import('vue')['unref'] const unrefElement: typeof import('@vueuse/core')['unrefElement'] const until: typeof import('@vueuse/core')['until'] + const updateBillRule: typeof import('../service/api/auth')['updateBillRule'] const updateData: typeof import('../service/api/dictData')['updateData'] const updateJob: typeof import('../service/api/job')['updateJob'] const updateLocaleOfGlobalMenus: typeof import('../store/modules/route/shared')['updateLocaleOfGlobalMenus'] diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index 9f6b1c5..ba4e03c 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -79,6 +79,7 @@ declare module 'vue' { IconLocalLogo: typeof import('~icons/local/logo')['default'] IconMdiDrag: typeof import('~icons/mdi/drag')['default'] IconMdiRefresh: typeof import('~icons/mdi/refresh')['default'] + IconMdiSearch: typeof import('~icons/mdi/search')['default'] LangSwitch: typeof import('./../components/common/lang-switch.vue')['default'] LookForward: typeof import('./../components/custom/look-forward.vue')['default'] MenuToggler: typeof import('./../components/common/menu-toggler.vue')['default'] diff --git a/src/views/device/apdevice/index.vue b/src/views/device/apdevice/index.vue new file mode 100644 index 0000000..803f931 --- /dev/null +++ b/src/views/device/apdevice/index.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/src/views/device/apdevice/modules/device-search.vue b/src/views/device/apdevice/modules/device-search.vue new file mode 100644 index 0000000..948958f --- /dev/null +++ b/src/views/device/apdevice/modules/device-search.vue @@ -0,0 +1,84 @@ + + + + +