diff --git a/src/view/customer/wxulist.vue b/src/view/customer/wxulist.vue index fbc5b63..fe80b32 100644 --- a/src/view/customer/wxulist.vue +++ b/src/view/customer/wxulist.vue @@ -27,9 +27,19 @@ +
+ + + + +
-
+
@@ -67,30 +77,31 @@ export default { headers: { token: sessionStorage.getItem('Swadmin_ApiAuth') }, + checkAllGroup: ['序号', '手机号码', '上次登录时间', '创建时间', '状态'], columnsList: [{ title: '序号', type: 'index', - width: 65, + // width: 65, align: 'center' }, { title: '手机号码', align: 'center', - key: 'phone', - width: 260 + key: 'phone' + // width: 260 }, { title: 'openid', align: 'openid', - key: 'openid', - minWidth: 280 + key: 'openid' + // minWidth: 280 }, { title: '头像', align: 'center', key: 'headimgurl', - width: 100, + // width: 100, render: (h, params) => { return h('img', { attrs: { @@ -103,28 +114,27 @@ export default { { title: '上次登录时间', align: 'center', - key: 'last_login_time', - width: 210 + key: 'last_login_time' + // width: 210 }, { title: '创建时间', align: 'center', - key: 'create_time', - width: 310 + key: 'create_time' + // width: 310 }, { title: '状态', align: 'center', key: 'status', - width: 200, + // width: 200, render: (h, params) => { let _st = params.row.status === 0 ? '禁用' : '正常' return h('p', [ _st ]) } - } - ], + }], tableData: [], groupInfo: {}, groupList: {}, @@ -151,6 +161,11 @@ export default { vm.getList() // }, + computed: { + columnsList1 () { + return this.columnsList.filter(column => this.checkAllGroup.includes(column.title)) + } + }, methods: { alertAdd () { let vm = this diff --git a/src/view/invoice/headlist.vue b/src/view/invoice/headlist.vue index 9143be9..9eb14bc 100644 --- a/src/view/invoice/headlist.vue +++ b/src/view/invoice/headlist.vue @@ -17,9 +17,19 @@ - +
+ + + + +
+
-
+
@@ -42,6 +52,7 @@ export default { tableData: [], listLoading: false, pucode_id: '', + checkAllGroup: ['id', '用户编码', '税号', '开户行', '银行账号', '创建时间'], columnsList: [ { title: 'id', align: 'center', key: 'id', minWidth: 80 }, { title: '用户编码', align: 'center', key: 'pucode', minWidth: 100 }, @@ -74,6 +85,11 @@ export default { created () { this.InvoiceHead() }, + computed: { + columnsList1 () { + return this.columnsList.filter(column => this.checkAllGroup.includes(column.title)) + } + }, methods: { InvoiceHead () { let data = {