diff --git a/src/views/admin/user/index.vue b/src/views/admin/user/index.vue index eb06f9d..a774bbc 100644 --- a/src/views/admin/user/index.vue +++ b/src/views/admin/user/index.vue @@ -1811,6 +1811,10 @@ export default { if (res.code == 0) { this.tableData = res.data.records; this.page.total = res.data.total; + // 表格中设置ref属性,在数据渲染之后或者updated()之后 + this.$nextTick(() => { + this.$refs.crud.doLayout(); + }); } else { this.$message.waring(res.msg); } diff --git a/src/views/admin/user/table.js b/src/views/admin/user/table.js index 8503389..be237d2 100644 --- a/src/views/admin/user/table.js +++ b/src/views/admin/user/table.js @@ -23,6 +23,18 @@ export default { label: '用户名', prop: "name", }, + { + label: '项目名称', + prop: "houseName", + }, + { + label: '角色名称', + prop: "roleName", + }, + { + label: '公司名称', + prop: "companyName", + }, { label: '登录手机', prop: "username", @@ -79,10 +91,10 @@ export default { label: '登录手机', prop: "username", }, - { - label: '所属组织', - prop: "orgName", - }, + // { + // label: '所属组织', + // prop: "orgName", + // }, { label: '组织类型', prop: "orgTypeName",