From aa05304d221b1883d746e686f390d6f3fba598a7 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 24 五月 2024 09:36:09 +0800
Subject: [PATCH] feat:动态数据中心

---
 src/api/platform/unit.js |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/src/api/platform/unit.js b/src/api/platform/unit.js
index 017bd8e..cc704b5 100644
--- a/src/api/platform/unit.js
+++ b/src/api/platform/unit.js
@@ -3,16 +3,16 @@
 // 鏌ヨ杩愮淮鍗曚綅鍒楄〃
 export function listUnit(query) {
   return request({
-    url: '/system/yw-unit/page',
-    method: 'get',
-    params: query
+    url: '/yw-unit/page',
+    method: 'post',
+    data: query
   })
 }
 
 // 鏌ヨ杩愮淮鍗曚綅璇︾粏
 export function getUnit(id) {
   return request({
-    url: '/system/yw-unit/' + id,
+    url: '/yw-unit/' + id,
     method: 'get'
   })
 }
@@ -20,7 +20,7 @@
 // 鏂板杩愮淮鍗曚綅
 export function addUnit(data) {
   return request({
-    url: '/system/yw-unit',
+    url: '/yw-unit',
     method: 'post',
     data: data
   })
@@ -29,7 +29,7 @@
 // 淇敼杩愮淮鍗曚綅
 export function updateUnit(data) {
   return request({
-    url: '/system/yw-unit',
+    url: '/yw-unit',
     method: 'put',
     data: data
   })
@@ -38,7 +38,23 @@
 // 鍒犻櫎杩愮淮鍗曚綅
 export function delUnit(id) {
   return request({
-    url: '/system/yw-unit/' + id,
+    url: '/yw-unit/' + id,
     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