Commit 76527e82 by 周海峰

no message

parent 4dcb9915
...@@ -242,6 +242,7 @@ export default { ...@@ -242,6 +242,7 @@ export default {
closeEditModal(){//关闭弹层,清空树 closeEditModal(){//关闭弹层,清空树
this.editModal=false this.editModal=false
this.orgList = [] this.orgList = []
this.selectStaff = []
}, },
search() { search() {
this.request({ this.request({
...@@ -255,21 +256,24 @@ export default { ...@@ -255,21 +256,24 @@ export default {
filter: this.roleUser.filter filter: this.roleUser.filter
}); });
}, },
async modifyRoleUser() {//保存用户角色信息 async modifyRoleUser() {
let userIds = this.selectStaff.map(item=>item.key).join(",") //保存用户角色信息,并刷新角色用户列表
let res = await editUserRoleList({ let userIds = this.selectStaff.map(item=>item.key).join(",")
roleId: this.roleId, let res = await editUserRoleList({
userIds: userIds roleId: this.roleId,
}); userIds: userIds
});
console.log(res)
this.closeEditModal()
this.$q.notify({ this.$q.notify({
type: "positive", type: "positive",
message: this.$t("Added successfully"), message: this.$t("Added successfully"),
position: "bottom-right" position: "bottom-right"
}); });
this.request({
pagination: this.serverPagination,
filter: this.filter
});
} }
}, },
mounted() { mounted() {
......
...@@ -420,7 +420,7 @@ export default { ...@@ -420,7 +420,7 @@ export default {
pageSize: 1000, pageSize: 1000,
title: "", title: "",
}); });
this.allApplications = response.data.data.list || []; this.allApplications = response.data.data.list.filter(item => item.wechatUrl !== null && item.wechatUrl !== '') || [];
} catch (error) { } catch (error) {
console.error("Failed to load applications:", error); console.error("Failed to load applications:", error);
this.$q.notify({ this.$q.notify({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论