From 59af780bc11de8ec3c28c1ec455caf1fd71495f1 Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Sun, 10 Sep 2023 22:54:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8F=B0=E6=8B=96=E6=8B=BD=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workplace/category.ts | 9 +++ src/layouts/components/Tabs.vue | 19 ------ .../configuration/components/Banner.vue | 21 +++++- .../configuration/components/CustomGroup.vue | 54 ++++++++++++++- .../configuration/components/Recommend.vue | 65 ++++++++++++++----- 5 files changed, 130 insertions(+), 38 deletions(-) diff --git a/src/api/workplace/category.ts b/src/api/workplace/category.ts index ec1d00b..70e2a5e 100644 --- a/src/api/workplace/category.ts +++ b/src/api/workplace/category.ts @@ -18,6 +18,15 @@ export function categoryPost(data: any) { }); } +// 分类排序 +export function categoryPut(data: any) { + return request({ + url: '/manager/workplace/category/reorder', + method: 'put', + data + }); +} + // 分类获取应用 export function categoryAppGet(params: any) { return request({ diff --git a/src/layouts/components/Tabs.vue b/src/layouts/components/Tabs.vue index 7810bcc..322a617 100755 --- a/src/layouts/components/Tabs.vue +++ b/src/layouts/components/Tabs.vue @@ -10,25 +10,6 @@ :class="tabsMenuValue === item.path ? 'chrome-tab_active' : ''" @click.stop="tabClick(item)" > -
diff --git a/src/pages/workplace/configuration/components/Banner.vue b/src/pages/workplace/configuration/components/Banner.vue index a38f57a..589b81c 100644 --- a/src/pages/workplace/configuration/components/Banner.vue +++ b/src/pages/workplace/configuration/components/Banner.vue @@ -16,7 +16,10 @@ + @@ -47,6 +50,7 @@ diff --git a/src/pages/workplace/configuration/components/CustomGroup.vue b/src/pages/workplace/configuration/components/CustomGroup.vue index a34f03b..4274dd8 100644 --- a/src/pages/workplace/configuration/components/CustomGroup.vue +++ b/src/pages/workplace/configuration/components/CustomGroup.vue @@ -21,6 +21,9 @@ :class="{ 'bd-tree-activate': item.category_no === optTree }" @click="onOptTreeClick(item.category_no)" > +
+ +
{{ item.name }}
@@ -48,6 +51,14 @@
+ + + +