组件
@@ -11,10 +11,11 @@ :class="{ 'cpn-name__item--disable': statusFormat(item.i) }" v-for="item in layout" :draggable="!statusFormat(item.i)" + @dragstart="isDrag = true" @dragend="dragEnd(item, $event)" > - {{ item.i }} + {{ item.component.name }}From 1b6e53f30da0c400b3bab5a91ae0e37853c8cd55 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Mon, 20 Mar 2023 10:36:58 +0800 Subject: [PATCH] 2023-3-20 --- src/api/system/ossLogin.js | 13 + src/layout/components/worker/index.vue | 2 +- src/layout/index.vue | 427 +++++++++++--------- src/store/modules/user.js | 16 +- src/utils/auth.js | 8 +- src/views/system/worker.vue | 12 +- src/views/system/workerComponents/card1.vue | 4 +- src/views/system/workerComponents/card4.vue | 10 +- 8 files changed, 278 insertions(+), 214 deletions(-) create mode 100644 src/api/system/ossLogin.js diff --git a/src/api/system/ossLogin.js b/src/api/system/ossLogin.js new file mode 100644 index 0000000..70c47d5 --- /dev/null +++ b/src/api/system/ossLogin.js @@ -0,0 +1,13 @@ +import request from "@/utils/request"; +import store from '@/store'; +export function ossLogin(){ + return request({ + isLoading:false, + method:'post', + url:'/api/admin/auth/oss-login', + data:{ + id:store.state.user.userId, + username:store.state.user.username + } + }) +} diff --git a/src/layout/components/worker/index.vue b/src/layout/components/worker/index.vue index d60db1b..3cec04d 100644 --- a/src/layout/components/worker/index.vue +++ b/src/layout/components/worker/index.vue @@ -80,7 +80,7 @@ export default { }) return item }) - } + }, } diff --git a/src/layout/index.vue b/src/layout/index.vue index 00fd01d..dc1faf5 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -2,11 +2,21 @@
组件
@@ -11,10 +11,11 @@ :class="{ 'cpn-name__item--disable': statusFormat(item.i) }" v-for="item in layout" :draggable="!statusFormat(item.i)" + @dragstart="isDrag = true" @dragend="dragEnd(item, $event)" > - {{ item.i }} + {{ item.component.name }}