From 8213a9761dc9686b252fd217bd5047471e5ffec8 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Fri, 15 Jul 2022 16:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=B8=8A=E6=9E=B6=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=20=E5=BD=92=E5=B1=9E=E9=83=A8=E9=97=A8=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/api/user.js | 11 +++- .../components/PutOnTheShelf.vue | 51 ++++++++++++++++++- 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/front/src/api/user.js b/front/src/api/user.js index 734cf298..a39992be 100644 --- a/front/src/api/user.js +++ b/front/src/api/user.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-03-29 17:48:03 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-04-12 10:07:15 + * @LastEditors: hisense.liangjunhua + * @LastEditTime: 2022-07-15 16:42:22 * @Description: 告诉大家这是什么 */ import request from '@/utils/request' @@ -30,6 +30,13 @@ export function getUserInfo() { method: 'get', }) } +export function getDeptAll() { + //此处为了兼容mock.js使用data传递accessToken,如果使用mock可以走headers + return request({ + url: '/sys/dept/all', + method: 'get', + }) +} export function logout() { return request({ diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index f585d36a..f4be3412 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-17 14:11:08 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-15 16:21:41 + * @LastEditTime: 2022-07-15 16:56:49 * @Description: 上架 -->