leisure-core 0.5.82 → 0.5.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/le-menu/src/main.vue +29 -8
- package/le-role/src/main.vue +1 -1
- package/package.json +1 -1
package/le-menu/src/main.vue
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="le-menu-mainClass">
|
|
3
3
|
<div class="titleClass">角色:{{ roleInfo.roleName }}的功能菜单</div>
|
|
4
|
-
<el-tree
|
|
4
|
+
<el-tree
|
|
5
|
+
:data="menus"
|
|
6
|
+
ref="elTree"
|
|
7
|
+
show-checkbox
|
|
8
|
+
node-key="id"
|
|
9
|
+
:props="props"
|
|
10
|
+
>
|
|
5
11
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
6
12
|
<span>{{ node.label }}</span>
|
|
7
13
|
<span v-if="!data.children && data.btns && data.btns.length > 0">
|
|
8
|
-
<el-button
|
|
14
|
+
<el-button
|
|
15
|
+
type="text"
|
|
16
|
+
size="mini"
|
|
17
|
+
@click="() => buttonPermission(data)"
|
|
18
|
+
>
|
|
9
19
|
页面按钮
|
|
10
20
|
</el-button>
|
|
11
21
|
</span>
|
|
@@ -16,10 +26,21 @@
|
|
|
16
26
|
<el-button type="primary" @click="saveAll">保 存</el-button>
|
|
17
27
|
</div>
|
|
18
28
|
<div>
|
|
19
|
-
<el-dialog
|
|
29
|
+
<el-dialog
|
|
30
|
+
width="50%"
|
|
31
|
+
title="页面按钮"
|
|
32
|
+
append-to-body
|
|
33
|
+
:visible.sync="showDialog"
|
|
34
|
+
:close-on-click-modal="true"
|
|
35
|
+
>
|
|
20
36
|
<el-form>
|
|
21
37
|
<el-checkbox-group v-model="checkBtnList">
|
|
22
|
-
<el-checkbox
|
|
38
|
+
<el-checkbox
|
|
39
|
+
v-for="item in btnsList"
|
|
40
|
+
:label="item.id"
|
|
41
|
+
:key="item.id"
|
|
42
|
+
>{{ item.name }}</el-checkbox
|
|
43
|
+
>
|
|
23
44
|
</el-checkbox-group>
|
|
24
45
|
</el-form>
|
|
25
46
|
<span slot="footer" class="dialog-footer">
|
|
@@ -38,7 +59,7 @@ export default {
|
|
|
38
59
|
props: {
|
|
39
60
|
roleInfo: {
|
|
40
61
|
type: Object,
|
|
41
|
-
default: () => {
|
|
62
|
+
default: () => {},
|
|
42
63
|
},
|
|
43
64
|
},
|
|
44
65
|
data() {
|
|
@@ -140,7 +161,7 @@ export default {
|
|
|
140
161
|
let param = {};
|
|
141
162
|
param.mid = node.id;
|
|
142
163
|
param.rid = this.roleInfo.roleId;
|
|
143
|
-
param.
|
|
164
|
+
param.istop = 0;
|
|
144
165
|
param.btns = node.btns;
|
|
145
166
|
param.control = node.control;
|
|
146
167
|
params.push(param);
|
|
@@ -150,7 +171,7 @@ export default {
|
|
|
150
171
|
let param = {};
|
|
151
172
|
param.mid = top.id;
|
|
152
173
|
param.rid = this.roleInfo.roleId;
|
|
153
|
-
param.
|
|
174
|
+
param.istop = 1;
|
|
154
175
|
param.btns = top.btns;
|
|
155
176
|
param.control = top.control;
|
|
156
177
|
params.push(param);
|
|
@@ -172,7 +193,7 @@ export default {
|
|
|
172
193
|
});
|
|
173
194
|
},
|
|
174
195
|
saveAll() {
|
|
175
|
-
this.save().then(() => {
|
|
196
|
+
this.save().then(() => {});
|
|
176
197
|
},
|
|
177
198
|
getMenus() {
|
|
178
199
|
let param = {};
|
package/le-role/src/main.vue
CHANGED
|
@@ -160,7 +160,7 @@ export default {
|
|
|
160
160
|
param.pageNo = 1;
|
|
161
161
|
listUserOfRole(param)
|
|
162
162
|
.then((res) => {
|
|
163
|
-
if (res && res.data && res.data) {
|
|
163
|
+
if (res && res.data && res.data.data) {
|
|
164
164
|
this.userlist = res.data.data;
|
|
165
165
|
this.curRoleName = item.name;
|
|
166
166
|
this.showUsers = true;
|