From 78b41274068e0808330541ca54618c20e3c1d986 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 30 Aug 2022 19:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/user/index.vue | 4 ++++ src/views/admin/user/table.js | 20 ++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) 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",