leisure-core 0.5.80 → 0.5.82

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.
@@ -72,7 +72,7 @@
72
72
  >
73
73
  <el-table-column prop="account" label="账号" align="center">
74
74
  </el-table-column>
75
- <el-table-column prop="account" label="昵称" align="center">
75
+ <el-table-column prop="nick" label="昵称" align="center">
76
76
  </el-table-column>
77
77
  </el-table>
78
78
  </le-dialog-container>
@@ -127,6 +127,7 @@ export default {
127
127
  });
128
128
  },
129
129
  addRole() {
130
+ this.currentRow = {};
130
131
  this.showEdit = true;
131
132
  },
132
133
  openEditWindow(item) {
@@ -154,13 +155,25 @@ export default {
154
155
  },
155
156
  openUserWindow(item) {
156
157
  let param = {};
157
- param.rid = item.id;
158
- param.pageNo = 1;
159
- listUserOfRole(param).then((res) => {
160
- this.userlist = res.data.data;
161
- this.curRoleName = item.name;
162
- this.showUsers = true;
163
- });
158
+ if (item && item.id) {
159
+ param.rid = item.id;
160
+ param.pageNo = 1;
161
+ listUserOfRole(param)
162
+ .then((res) => {
163
+ if (res && res.data && res.data) {
164
+ this.userlist = res.data.data;
165
+ this.curRoleName = item.name;
166
+ this.showUsers = true;
167
+ } else {
168
+ this.$message.info("暂无数据");
169
+ }
170
+ })
171
+ .catch((err) => {
172
+ console.log("用户弹窗出错", err);
173
+ });
174
+ } else {
175
+ this.$message.error("参数不正确");
176
+ }
164
177
  },
165
178
  closeUserDialog() {
166
179
  this.showUsers = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.80",
3
+ "version": "0.5.82",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",