leisure-core 0.5.81 → 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>
@@ -155,13 +155,25 @@ export default {
155
155
  },
156
156
  openUserWindow(item) {
157
157
  let param = {};
158
- param.rid = item.id;
159
- param.pageNo = 1;
160
- listUserOfRole(param).then((res) => {
161
- this.userlist = res.data.data;
162
- this.curRoleName = item.name;
163
- this.showUsers = true;
164
- });
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
+ }
165
177
  },
166
178
  closeUserDialog() {
167
179
  this.showUsers = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.81",
3
+ "version": "0.5.82",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",