From ded388dbe15af9086cca53be30fd76c95f3d5769 Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Mon, 26 Aug 2024 20:09:13 +0800 Subject: [PATCH] =?UTF-8?q?2024.8.26=20=E4=B8=89=E3=80=81=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E5=90=8E=E5=8F=B0=E4=BB=BB=E5=8A=A1=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20=E5=9B=9B=E3=80=81=E5=AE=A1=E6=89=B9=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth/auth.js | 8 + src/views/modules/auth/authGroup.vue | 10 +- src/views/modules/auth/authRule.vue | 847 ++++++++++++++++++++++++++- 3 files changed, 832 insertions(+), 33 deletions(-) diff --git a/src/api/auth/auth.js b/src/api/auth/auth.js index f9c0903..d8d0807 100644 --- a/src/api/auth/auth.js +++ b/src/api/auth/auth.js @@ -17,3 +17,11 @@ export const getAuthGroupBusinessList = data => createAPI(`auth/getAuthGroupBusi export const addAuthGroupMemberBusiness = data => createAPI(`auth/addAuthGroupMemberBusiness`,'post',data) export const deleteAuthGroupMemberBusiness = data => createAPI(`auth/deleteAuthGroupMemberBusiness`,'post',data) + +export const authRuleSearch = data => createAPI(`auth/authRuleSearch`,'post',data) + +export const authRuleSave = data => createAPI(`auth/authRuleSave`,'post',data) + +export const authRuleDelete = data => createAPI(`auth/authRuleDelete`,'post',data) + +export const authRuleEdit = data => createAPI(`auth/authRuleEdit`,'post',data) diff --git a/src/views/modules/auth/authGroup.vue b/src/views/modules/auth/authGroup.vue index c5ebb08..5cb79c5 100644 --- a/src/views/modules/auth/authGroup.vue +++ b/src/views/modules/auth/authGroup.vue @@ -2,12 +2,12 @@
- + + :value = "i.buNo"> @@ -284,7 +284,8 @@ export default { searchData: { site: this.$store.state.user.site, userName: this.$store.state.user.name, - buDesc: '', + bu: '', + buNo: '', groupNo: '', groupDesc: '', active: '', @@ -589,6 +590,9 @@ export default { // 获取数据列表 getDataList () { + if (this.searchData.bu != null && this.searchData.bu !== '') { + this.searchData.buNo = this.searchData.bu.split('_')[1] + } this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex authGroupSearch(this.searchData).then(({data}) => { diff --git a/src/views/modules/auth/authRule.vue b/src/views/modules/auth/authRule.vue index 08a6fa5..f96a7f2 100644 --- a/src/views/modules/auth/authRule.vue +++ b/src/views/modules/auth/authRule.vue @@ -1,52 +1,839 @@