From fd59571a8536d48d4029eb7b09a717393f19e210 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 22 六月 2022 17:29:46 +0800
Subject: [PATCH] 1.角色关联功能勾选提交功能 2.供方清单(新增、编辑、删除) 功能开发

---
 src/api/jcsz.js |  122 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 122 insertions(+), 0 deletions(-)

diff --git a/src/api/jcsz.js b/src/api/jcsz.js
index bb43626..e7443e4 100644
--- a/src/api/jcsz.js
+++ b/src/api/jcsz.js
@@ -76,3 +76,125 @@
     params: data
   })
 }
+// 鐢ㄦ埛娓呭崟鍏宠仈瑙掕壊淇濆瓨
+export function SaveUserAssoctRole(data, usercode) {
+  return request({
+    url: 'BasicSetting/SaveUserAssoctRole?usercode=' + usercode,
+    method: 'post',
+    data
+  })
+}
+
+// 瑙掕壊绫诲瀷鏌ヨ
+export function RoleTypeSearch(data) {
+  return request({
+    url: 'BasicSetting/RoleTypeSearch',
+    method: 'get',
+    params: data
+  })
+}
+// 瑙掕壊绫诲瀷鏂板
+export function RoleTypeAdd(data) {
+  return request({
+    url: 'BasicSetting/RoleTypeAdd',
+    method: 'post',
+    data
+  })
+}
+// 瑙掕壊绫诲瀷鍒犻櫎
+export function RoleTypeDelete(data) {
+  return request({
+    url: 'BasicSetting/RoleTypeDelete',
+    method: 'post',
+    params: data
+  })
+}
+// 瑙掕壊娓呭崟鏌ヨ
+export function RoleSearch(data) {
+  return request({
+    url: 'BasicSetting/RoleSearch',
+    method: 'get',
+    params: data
+  })
+}
+// 瑙掕壊娓呭崟鏂板缂栬緫
+export function AddUpdateRole(data) {
+  return request({
+    url: 'BasicSetting/AddUpdateRole',
+    method: 'post',
+    data
+  })
+}
+// 瑙掕壊娓呭崟鍒犻櫎
+export function DeleteRole(data) {
+  return request({
+    url: 'BasicSetting/DeleteRole',
+    method: 'post',
+    params: data
+  })
+}
+
+// 瑙掕壊娓呭崟鍏宠仈鐢ㄦ埛鏌ヨ
+export function RoleAssociationUser(data) {
+  return request({
+    url: 'BasicSetting/RoleAssociationUser',
+    method: 'get',
+    params: data
+  })
+}
+// 瑙掕壊娓呭崟鍏宠仈鐢ㄦ埛淇濆瓨
+export function SaveRoleAssoctUser(data, rolecode) {
+  return request({
+    url: 'BasicSetting/SaveRoleAssoctUser?rolecode=' + rolecode,
+    method: 'post',
+    data
+  })
+}
+// 鐢ㄦ埛娓呭崟鍏宠仈鍔熻兘鏌ヨ
+export function RoleAssociationRight(data) {
+  return request({
+    url: 'BasicSetting/RoleAssociationRight',
+    method: 'get',
+    params: data
+  })
+}
+// 瑙掕壊娓呭崟鍏宠仈鍔熻兘淇濆瓨
+export function SaveUserAssoctRight(data, rolecode, usercode) {
+  return request({
+    url: 'BasicSetting/SaveUserAssoctRight?rolecode=' + rolecode + '&usercode=' + usercode,
+    method: 'post',
+    data
+  })
+}
+// 寰�鏉ュ崟浣嶆煡璇�
+export function CurrentUnitSearch(data) {
+  return request({
+    url: 'BasicSetting/CurrentUnitSearch',
+    method: 'get',
+    params: data
+  })
+}
+// 寰�鏉ュ崟浣嶆柊澧炵紪杈�
+export function AddUpdateCurrentUnit(data) {
+  return request({
+    url: 'BasicSetting/AddUpdateCurrentUnit',
+    method: 'post',
+    data
+  })
+}
+// 寰�鏉ュ崟浣嶅垹闄�
+export function DeleteCurrentUnit(data) {
+  return request({
+    url: 'BasicSetting/DeleteCurrentUnit',
+    method: 'post',
+    params: data
+  })
+}
+
+// 瑙掕壊绫诲瀷涓嬫媺鎺ュ彛
+export function RoleTypeSelect() {
+  return request({
+    url: 'BasicSetting/RoleTypeSelect',
+    method: 'get'
+  })
+}

--
Gitblit v1.9.3