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.
- package/le-role/src/main.vue +21 -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>
|
|
@@ -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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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;
|