From 2cf384d7abfeb0d30adf6b0b7a5a02bd9baace21 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 18 Mar 2023 22:29:08 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A=E5=9C=B0?= =?UTF-8?q?=E5=8C=BA=E6=8E=A5=E5=85=A5=20TableV2=20=E9=AB=98=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/area/index.ts | 2 +- src/types/auto-components.d.ts | 1 + src/views/system/area/form.vue | 71 +++++++++++++++++++++++++++++++++ src/views/system/area/index.vue | 57 ++++++++++++++++++-------- 4 files changed, 114 insertions(+), 17 deletions(-) create mode 100644 src/views/system/area/form.vue diff --git a/src/api/system/area/index.ts b/src/api/system/area/index.ts index f77ce0d1..e91a4997 100644 --- a/src/api/system/area/index.ts +++ b/src/api/system/area/index.ts @@ -6,6 +6,6 @@ export const getAreaTree = async () => { } // 获得 IP 对应的地区名 -export const getDeptApi = async (ip: string) => { +export const getAreaByIp = async (ip: string) => { return await request.get({ url: '/system/area/get-by-ip?ip=' + ip }) } diff --git a/src/types/auto-components.d.ts b/src/types/auto-components.d.ts index 7b10d679..be71517c 100644 --- a/src/types/auto-components.d.ts +++ b/src/types/auto-components.d.ts @@ -73,6 +73,7 @@ declare module '@vue/runtime-core' { ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] + ElTableV2: typeof import('element-plus/es')['ElTableV2'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] diff --git a/src/views/system/area/form.vue b/src/views/system/area/form.vue new file mode 100644 index 00000000..4e61fe32 --- /dev/null +++ b/src/views/system/area/form.vue @@ -0,0 +1,71 @@ + + diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue index dcb659c3..f9d4c57d 100644 --- a/src/views/system/area/index.vue +++ b/src/views/system/area/index.vue @@ -1,46 +1,71 @@ -