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.
- package/le-role/src/main.vue +20 -8
- package/package.json +1 -1
package/le-role/src/main.vue
CHANGED
|
@@ -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="
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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;
|