From 2930beb2650053fe361098120fc8fc8037f3a33c Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Fri, 8 Sep 2023 21:16:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9EAPP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workplace/app.ts | 19 ++++ src/api/workplace/banner.ts | 20 +++- .../configuration/components/Banner.vue | 59 +++++++++- .../configuration/components/BannerDialog.vue | 2 +- .../workplace/manage/components/Apply.vue | 102 +++++++++++++----- src/pages/workplace/manage/index.vue | 42 ++++++-- 6 files changed, 202 insertions(+), 42 deletions(-) create mode 100644 src/api/workplace/app.ts diff --git a/src/api/workplace/app.ts b/src/api/workplace/app.ts new file mode 100644 index 0000000..43cb7c0 --- /dev/null +++ b/src/api/workplace/app.ts @@ -0,0 +1,19 @@ +import request from '@/utils/axios'; + +// 获取应用 +export function appGet(params?: any) { + return request({ + url: '/manager/workplace/app', + method: 'get', + params + }); +} + +// 新增应用 +export function appPost(data: any) { + return request({ + url: '/manager/workplace/app', + method: 'post', + data + }); +} diff --git a/src/api/workplace/banner.ts b/src/api/workplace/banner.ts index 544b2c0..9846b68 100644 --- a/src/api/workplace/banner.ts +++ b/src/api/workplace/banner.ts @@ -3,7 +3,7 @@ import request from '@/utils/axios'; // 获取轮播 export function bannerGet(params?: any) { return request({ - url: '/workplace/banner', + url: '/manager/workplace/banner', method: 'get', params }); @@ -17,3 +17,21 @@ export function bannerPost(data: any) { data }); } + +// 编辑轮播 +export function bannerPut(data: any) { + return request({ + url: '/manager/workplace/banner', + method: 'post', + data + }); +} + +// 删除轮播 +export function bannerDelete(params: any) { + return request({ + url: '/manager/workplace/banner', + method: 'delete', + params + }); +} diff --git a/src/pages/workplace/configuration/components/Banner.vue b/src/pages/workplace/configuration/components/Banner.vue index 84fbeac..753def6 100644 --- a/src/pages/workplace/configuration/components/Banner.vue +++ b/src/pages/workplace/configuration/components/Banner.vue @@ -57,11 +57,12 @@