From 2f4ace45b8d316494fb90d5fa9015768017760e7 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 27 Dec 2024 11:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=9C=80=E5=90=8E=E4=B8=80=E6=AC=A1=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/list/index.vue | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/views/system/user/list/index.vue b/src/views/system/user/list/index.vue index cadd4563..053e5dc5 100644 --- a/src/views/system/user/list/index.vue +++ b/src/views/system/user/list/index.vue @@ -95,8 +95,12 @@ const searchDataDefault = () => { RealName: '', BeginCreateTime: '', EndCreateTime: '', + EndLastLoginTime: null, + EndLastChangePassWordTime: null, + BeginLastChangePassWordTime: null, CreateTimeArr: [], LastLoginTimeArr: [], + LastChangePassWordTimeArr: [], SortField: 'CreateTime', } } @@ -202,6 +206,13 @@ export default { sortable: 'custom', showOverflowTooltip: true, }, + { + prop: 'LastChangePassWordTime', + label: this.$t('system:userlist:table:LastChangePassWordTime'), + minWidth: 200, + sortable: 'custom', + showOverflowTooltip: true, + }, { prop: 'CreateTime', label: this.$t('system:userlist:table:createTime'), @@ -213,7 +224,7 @@ export default { type: 'operate', label: this.$t('common:action:action'), minWidth: 200, - fixed:"right", + fixed: 'right', operates: [ { name: this.$t('common:button:edit'), @@ -338,6 +349,13 @@ export default { width: '400px', placeholder: '', }, + { + type: 'Daterange', + label: this.$t('system:userlist:label:LastChangePassWordTime'), + prop: 'LastChangePassWordTimeArr', + width: '400px', + placeholder: '', + }, { type: 'Daterange', label: this.$t('system:userlist:label:CreateTime'), @@ -442,6 +460,12 @@ export default { this.searchData.BeginLastLoginTime = this.searchData.LastLoginTimeArr[0] this.searchData.EndLastLoginTime = this.searchData.LastLoginTimeArr[1] } + if (this.searchData.LastChangePassWordTimeArr.length > 0) { + this.searchData.BeginLastChangePassWordTime = + this.searchData.LastChangePassWordTimeArr[0] + this.searchData.EndLastChangePassWordTime = + this.searchData.LastChangePassWordTimeArr[1] + } this.getList() }, },