From 37be1397b89c04d6433fb0cc346e0ca017b6383e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 12 Dec 2023 15:12:52 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8E=BB=E6=8E=89=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/RoleUserList.vue | 138 ++++++++++++++---------------- 1 file changed, 65 insertions(+), 73 deletions(-) diff --git a/src/views/system/RoleUserList.vue b/src/views/system/RoleUserList.vue index 269a1161..b6be1cf9 100644 --- a/src/views/system/RoleUserList.vue +++ b/src/views/system/RoleUserList.vue @@ -32,10 +32,10 @@
{{ $t('roleManage.newRole') }} - - - - + + + +
@@ -55,7 +55,7 @@ @change="handleTableChange"> {{ $t('roleManage.userBtn') }} - + @@ -109,17 +109,20 @@
- {{ $t('roleManage.existingUsers') }} + {{ + $t('roleManage.existingUsers') + }} + - + {{ $t('delete') }} {{ $t('batchOperation') }} - +
@@ -139,22 +142,11 @@ :scroll="{x: '100%', y: yScrollHeight}" :rowSelection="{selectedRowKeys: selectedRowKeys2, onChange: onSelectChange2}" @change="handleTableChange2"> - -
{{ $t('edit') }} - - - - - - - - - {{ $t('delete') }} - - - - -
+
@@ -236,59 +228,59 @@ export default { test: {}, rightcolval: 0, columns: - [ - { - title: this.$t('roleManage.roleCode'), - align: 'center', - dataIndex: 'roleCode' - }, - { - title: this.$t('roleManage.roleName'), - align: 'center', - dataIndex: 'roleName' - }, - { - title: this.$t('createTime'), - dataIndex: 'createTime', - align: 'center', - sorter: true, - customRender: (text) => { - return moment(text).format('YYYY-MM-DD') - } - }, - { - title: this.$t('operation'), - dataIndex: 'action', - align: 'center', - scopedSlots: { customRender: 'action' } + [ + { + title: this.$t('roleManage.roleCode'), + align: 'center', + dataIndex: 'roleCode' + }, + { + title: this.$t('roleManage.roleName'), + align: 'center', + dataIndex: 'roleName' + }, + { + title: this.$t('createTime'), + dataIndex: 'createTime', + align: 'center', + sorter: true, + customRender: (text) => { + return moment(text).format('YYYY-MM-DD') } - ], + }, + { + title: this.$t('operation'), + dataIndex: 'action', + align: 'center', + scopedSlots: { customRender: 'action' } + } + ], columns2: [{ title: this.$t('user.userAccount'), align: 'center', dataIndex: 'username', width: 120 }, - { - title: this.$t('user.userName'), - align: 'center', - width: 100, - dataIndex: 'realname' - }, - { - title: this.$t('status'), - align: 'center', - width: 80, - dataIndex: 'status_dictText' - }, + { + title: this.$t('user.userName'), + align: 'center', + width: 100, + dataIndex: 'realname' + }, + { + title: this.$t('status'), + align: 'center', + width: 80, + dataIndex: 'status_dictText' + }, - { - title: this.$t('operation'), - dataIndex: 'action', - scopedSlots: { customRender: 'action' }, - align: 'center', - width: 120 - }], + { + title: this.$t('operation'), + dataIndex: 'action', + scopedSlots: { customRender: 'action' }, + align: 'center', + width: 120 + }], // 高级查询参数 superQueryParams2: '', @@ -524,10 +516,10 @@ export default {