diff --git a/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue b/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue index 16488693..ef827ae1 100644 --- a/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue +++ b/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue @@ -35,23 +35,12 @@ @getList="getTableData" :col-configs="colConfigs" :dict="dict" @selection-change="v=>multipleSelection=v"> - - - - {{ - scope.row.users - .slice(0, 2) - .map((e) => e.name + "(" + e.phone + ")") - .join(";") - }} - ... - - - - + + + {{ item.name }} + ({{ item.phone }}) + + @@ -186,7 +175,7 @@ export default { colConfigs() { return [ {type: "selection"}, - {label: "角色名", prop: "name", width: '100px'}, + {label: "角色名", prop: "name", width: 140}, {label: "所属端", prop: "type", width: '100px', dict: "roleType"}, {label: "用户数量", prop: "roleCount", align: 'center', width: '80px'}, {slot: "users"}, @@ -248,7 +237,8 @@ export default { hash: "#add", query: { id: item.id, - name: item.name + name: item.name, + type: item.type, }, }); }, diff --git a/project/xumu/AppRoleRightsManager/rightsAdd.vue b/project/xumu/AppRoleRightsManager/rightsAdd.vue index 1e22a792..7a74c43f 100644 --- a/project/xumu/AppRoleRightsManager/rightsAdd.vue +++ b/project/xumu/AppRoleRightsManager/rightsAdd.vue @@ -58,7 +58,6 @@ export default { data() { return { form: {}, - roleName: '', id: '', appList: [], roleList: [], @@ -73,8 +72,8 @@ export default { }, created() { if (this.isEdit) { - let {id, name: roleName} = this.$route.query - this.form = {menus: [], id, roleName} + let {id, name: roleName, type} = this.$route.query + this.form = {menus: [], id, roleName, type} this.msgTitle = '编辑' } this.getPermissions()