From 1d869cd15beaaf7b369329cdd2204640e84f5c77 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 08 五月 2024 17:30:18 +0800
Subject: [PATCH] 路由和发布按钮权限控制
---
src/api/platform/unit.js | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/api/platform/unit.js b/src/api/platform/unit.js
index 6baf955..cc704b5 100644
--- a/src/api/platform/unit.js
+++ b/src/api/platform/unit.js
@@ -4,8 +4,8 @@
export function listUnit(query) {
return request({
url: '/yw-unit/page',
- method: 'get',
- params: query
+ method: 'post',
+ data: query
})
}
@@ -42,3 +42,19 @@
method: 'delete'
})
}
+
+// 鑾峰彇杩愮淮鍗曚綅涓嬫媺鍒楄〃
+export function unitSelect() {
+ return request({
+ url: '/yw-unit/list',
+ method: 'get'
+ })
+}
+
+// 鑾峰彇杩愮淮鍗曚綅宸ュ崟缁熻鍒楄〃
+export function workList() {
+ return request({
+ url: '/yw-unit/work/list',
+ method: 'get'
+ })
+}
--
Gitblit v1.8.0