From b26a6ab6b9dc5f8ec87be5726b7a258b339ede64 Mon Sep 17 00:00:00 2001 From: liulei Date: Sat, 23 Apr 2022 15:08:21 +0800 Subject: [PATCH] render allTransactions from dtm svr api --- dashboard/.env.development | 2 + dashboard/package.json | 3 +- dashboard/src/assets/css/index.css | 2 +- dashboard/src/components.d.ts | 1 - dashboard/src/layout/aside.vue | 8 +- dashboard/src/type/index.d.ts | 5 + dashboard/src/utils/request.ts | 8 + .../GlobalTransactions/AllTransactions.vue | 162 ++++++++---------- dashboard/yarn.lock | 5 + 9 files changed, 102 insertions(+), 94 deletions(-) create mode 100644 dashboard/.env.development create mode 100644 dashboard/src/utils/request.ts diff --git a/dashboard/.env.development b/dashboard/.env.development new file mode 100644 index 0000000..88c4eb8 --- /dev/null +++ b/dashboard/.env.development @@ -0,0 +1,2 @@ +VITE_APP_API_BASE_URL="/api" +VITE_PROXY=[["/api", "http://localhost:36789"]] diff --git a/dashboard/package.json b/dashboard/package.json index 465f06f..8be934b 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -9,7 +9,8 @@ }, "dependencies": { "ant-design-vue": "^3.1.1", - "vue": "^3.2.25" + "vue": "^3.2.25", + "vue-request": "^1.2.4" }, "devDependencies": { "@types/node": "^17.0.23", diff --git a/dashboard/src/assets/css/index.css b/dashboard/src/assets/css/index.css index b5c61c9..dc83d5c 100644 --- a/dashboard/src/assets/css/index.css +++ b/dashboard/src/assets/css/index.css @@ -1,3 +1,3 @@ -@tailwind base; +/* @tailwind base; */ @tailwind components; @tailwind utilities; diff --git a/dashboard/src/components.d.ts b/dashboard/src/components.d.ts index c2fdf48..a9be5ca 100644 --- a/dashboard/src/components.d.ts +++ b/dashboard/src/components.d.ts @@ -7,7 +7,6 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb'] ABreadcrumbItem: typeof import('ant-design-vue/es')['BreadcrumbItem'] - AInputSearch: typeof import('ant-design-vue/es')['InputSearch'] ALayout: typeof import('ant-design-vue/es')['Layout'] ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent'] ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader'] diff --git a/dashboard/src/layout/aside.vue b/dashboard/src/layout/aside.vue index e5ef9a1..050369a 100644 --- a/dashboard/src/layout/aside.vue +++ b/dashboard/src/layout/aside.vue @@ -1,5 +1,5 @@