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.
@@ -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 :data="menus" ref="elTree" show-checkbox node-key="id" :props="props">
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 type="text" size="mini" @click="() => buttonPermission(data)">
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 width="50%" title="页面按钮" append-to-body :visible.sync="showDialog" :close-on-click-modal="true">
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 v-for="item in btnsList" :label="item.id" :key="item.id">{{ item.name }}</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.isTop = 0;
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.isTop = 1;
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 = {};
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.82",
3
+ "version": "0.5.83",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",