From f6c09fd8be4d671b13e673a49e5af9c19710e464 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 23 八月 2023 10:51:02 +0800
Subject: [PATCH] 1.权限分配
---
src/views/basicSettings/roleList.vue | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/views/basicSettings/roleList.vue b/src/views/basicSettings/roleList.vue
index 61812af..4548745 100644
--- a/src/views/basicSettings/roleList.vue
+++ b/src/views/basicSettings/roleList.vue
@@ -178,9 +178,9 @@
>
<el-option
v-for="item in datacodeArr"
- :key="item.code"
- :label="item.name"
- :value="item.code"
+ :key="item.datacode"
+ :label="item.dataname"
+ :value="item.datacode"
/>
</el-select>
</el-form-item>
@@ -245,7 +245,7 @@
import { validateCode } from '@/utils/global'
import elDragDialog from '@/directive/el-drag-dialog'
import waves from '@/directive/waves'
-import { PrentOrganization } from '@/api/GeneralBasicData'
+import { DataPermissions, PrentOrganization } from '@/api/GeneralBasicData'
import arrayToTree from 'array-to-tree'
export default {
@@ -277,12 +277,7 @@
datapermissions: '', // 鏁版嵁鏉冮檺
status: 'Y'// 鐘舵��
},
- datacodeArr: [
- { code: 'ALL', name: '鍏ㄩ儴' },
- { code: 'CUSTOM', name: '鑷畾涔�' },
- { code: 'LEVEL', name: '鏈骇' },
- { code: 'PERSON', name: '鏈汉' }
- ],
+ datacodeArr: [],
checkboxGroupSelected: ['灞曞紑/鎶樺彔', '鐖跺瓙鑱斿姩'],
checkboxGroup: ['灞曞紑/鎶樺彔', '鍏ㄩ��/鍏ㄤ笉閫�', '鐖跺瓙鑱斿姩'],
operation: '',
@@ -310,6 +305,7 @@
this.getHeight()
this.getPrentOrganization()
+ this.getDataPermissions()
},
methods: {
async getRoleData() {
@@ -317,6 +313,10 @@
this.tableData = res.data
this.total = res.count
},
+ async getDataPermissions() {
+ const { data: res } = await DataPermissions()
+ this.datacodeArr = res
+ },
// 缁勭粐鏋舵瀯绾ц仈閫夋嫨鍣�
async getPrentOrganization() {
const { data: res } = await PrentOrganization()
--
Gitblit v1.9.3