6767 style =" width : 120px "
6868 @change =" search_type_change"
6969 >
70- <el-option :label =" $t('views.login.loginForm.username.label')" value =" username" />
71- <el-option :label =" $t('views.userManage.userForm.nick_name.label')" value =" nick_name" />
72- <el-option :label =" $t('common.status.label')" value =" is_active" />
73- <el-option
74- :label =" $t('views.userManage.source.label')"
75- value =" source"
76- />
70+ <el-option :label =" $t('views.login.loginForm.username.label')" value =" username" />
71+ <el-option :label =" $t('views.userManage.userForm.nick_name.label')" value =" nick_name" />
72+ <el-option :label =" $t('common.status.label')" value =" is_active" />
73+ <el-option :label =" $t('views.userManage.source.label')" value =" source" />
7774 </el-select >
7875 <el-input
7976 v-if =" search_type === 'username'"
9693 clearable
9794 style =" width : 220px "
9895 >
99- <el-option :label =" $t('common.status.enabled')" :value =" true" />
100- <el-option :label =" $t('common.status.disabled')" :value =" false" />
96+ <el-option :label =" $t('common.status.enabled')" :value =" true" />
97+ <el-option :label =" $t('common.status.disabled')" :value =" false" />
10198 </el-select >
10299 <el-select
103100 v-else-if =" search_type === 'source'"
107104 clearable
108105 :placeholder =" $t('common.inputPlaceholder')"
109106 >
110- <el-option :label =" $t('views.userManage.source.local')" value =" LOCAL" />
111- <el-option label =" CAS" value =" CAS" />
112- <el-option label =" LDAP" value =" LDAP" />
113- <el-option label =" OIDC" value =" OIDC" />
114- <el-option label =" OAuth2" value =" OAuth2" />
115- <el-option :label =" $t('views.userManage.source.wecom')" value =" wecom" />
116- <el-option :label =" $t('views.userManage.source.lark')" value =" lark" />
117- <el-option :label =" $t('views.userManage.source.dingtalk')" value =" dingtalk" />
107+ <el-option :label =" $t('views.userManage.source.local')" value =" LOCAL" />
108+ <el-option label =" CAS" value =" CAS" />
109+ <el-option label =" LDAP" value =" LDAP" />
110+ <el-option label =" OIDC" value =" OIDC" />
111+ <el-option label =" OAuth2" value =" OAuth2" />
112+ <el-option :label =" $t('views.userManage.source.wecom')" value =" wecom" />
113+ <el-option :label =" $t('views.userManage.source.lark')" value =" lark" />
114+ <el-option :label =" $t('views.userManage.source.dingtalk')" value =" dingtalk" />
118115 </el-select >
119116 </div >
120117 </div >
129126 @sort-change =" handleSortChange"
130127 :maxTableHeight =" 270"
131128 >
132- <el-table-column type =" selection" width =" 55" />
129+ <el-table-column type =" selection" width =" 55" />
133130 <el-table-column
134131 prop =" nick_name"
135132 :label =" $t('views.userManage.userForm.nick_name.label')"
146143 <template #default =" { row } " >
147144 <div v-if =" row.is_active" class =" flex align-center" >
148145 <el-icon class =" color-success mr-8" style =" font-size : 16px " >
149- <SuccessFilled />
146+ <SuccessFilled />
150147 </el-icon >
151148 <span class =" color-secondary" >
152149 {{ $t('common.status.enabled') }}
186183 min-width =" 150"
187184 >
188185 <template #default =" { row } " >
189- <TagGroup :tags =" row.user_group_names" />
186+ <TagGroup :tags =" row.user_group_names" />
190187 </template >
191188 </el-table-column >
192189 <el-table-column prop =" source" :label =" $t('views.userManage.source.label')" >
233230 "
234231 />
235232 </span >
236- <el-divider direction =" vertical" />
233+ <el-divider direction =" vertical" />
237234 <span class =" mr-8" >
238235 <el-button
239236 type =" primary"
274271 )
275272 "
276273 >
277- <el-icon >
278- <Lock />
279- </el-icon >
274+ <AppIcon iconName =" app-key" ></AppIcon >
280275 </el-button >
281276 </span >
282277 <span >
316311 ref =" UserDrawerRef"
317312 @refresh =" refresh"
318313 />
319- <UserPwdDialog ref =" UserPwdDialogRef" @refresh =" refresh" />
314+ <UserPwdDialog ref =" UserPwdDialogRef" @refresh =" refresh" />
320315 <SetUserGroupsDialog
321316 :optionLoading =" optionLoading"
322317 :chatGroupList =" chatGroupList"
323318 ref =" setUserGroupsRef"
324319 @refresh =" refresh"
325320 />
326- <SyncUsersDialog ref =" syncUsersDialogRef" @refresh =" refresh" />
321+ <SyncUsersDialog ref =" syncUsersDialogRef" @refresh =" refresh" />
327322 </div >
328323</template >
329324
330325<script lang="ts" setup>
331- import {onMounted , ref , reactive } from ' vue'
326+ import { onMounted , ref , reactive } from ' vue'
332327import UserDrawer from ' ./component/UserDrawer.vue'
333328import UserPwdDialog from ' ./component/UserPwdDialog.vue'
334329import SetUserGroupsDialog from ' ./component/SetUserGroupsDialog.vue'
335330import SyncUsersDialog from ' ./component/SyncUsersDialog.vue'
336331import userManageApi from ' @/api/system/chat-user'
337- import {datetimeFormat } from ' @/utils/time'
338- import {MsgSuccess , MsgConfirm } from ' @/utils/message'
339- import {t } from ' @/locales'
340- import type {ChatUserItem } from ' @/api/type/systemChatUser'
332+ import { datetimeFormat } from ' @/utils/time'
333+ import { MsgSuccess , MsgConfirm } from ' @/utils/message'
334+ import { t } from ' @/locales'
335+ import type { ChatUserItem } from ' @/api/type/systemChatUser'
341336import SystemGroupApi from ' @/api/system/user-group'
342- import type {ListItem } from ' @/api/type/common'
343- import {PermissionConst , RoleConst } from ' @/utils/permission/data'
344- import {ComplexPermission } from ' @/utils/permission/type'
345- import {hasPermission } from ' @/utils/permission'
346- import {loadPermissionApi } from ' @/utils/dynamics-api/permission-api.ts'
337+ import type { ListItem } from ' @/api/type/common'
338+ import { PermissionConst , RoleConst } from ' @/utils/permission/data'
339+ import { ComplexPermission } from ' @/utils/permission/type'
340+ import { hasPermission } from ' @/utils/permission'
341+ import { loadPermissionApi } from ' @/utils/dynamics-api/permission-api.ts'
347342
348343const search_type = ref (' username' )
349344const search_form = ref <{
@@ -358,7 +353,7 @@ const search_form = ref<{
358353 is_active: null ,
359354})
360355const search_type_change = () => {
361- search_form .value = {username: ' ' , nick_name: ' ' , source: ' ' , is_active: null }
356+ search_form .value = { username: ' ' , nick_name: ' ' , source: ' ' , is_active: null }
362357}
363358
364359const loading = ref (false )
@@ -393,7 +388,7 @@ function getList() {
393388
394389const orderBy = ref <string >(' ' )
395390
396- function handleSortChange({prop , order }: { prop: string ; order: string }) {
391+ function handleSortChange({ prop , order }: { prop: string ; order: string }) {
397392 orderBy .value = order === ' ascending' ? prop : ` -${prop } `
398393 getList ()
399394}
@@ -448,8 +443,7 @@ function deleteUserManage(row: ChatUserItem) {
448443 getList ()
449444 })
450445 })
451- .catch (() => {
452- })
446+ .catch (() => {})
453447}
454448
455449const UserPwdDialogRef = ref ()
@@ -480,7 +474,7 @@ async function getChatGroupList() {
480474}
481475
482476function handleBatchDelete() {
483- MsgConfirm (t (' views.chatUser.batchDeleteUser' , {count: multipleSelection .value .length }), ' ' , {
477+ MsgConfirm (t (' views.chatUser.batchDeleteUser' , { count: multipleSelection .value .length }), ' ' , {
484478 confirmButtonText: t (' common.confirm' ),
485479 confirmButtonClass: ' danger' ,
486480 })
@@ -495,8 +489,7 @@ function handleBatchDelete() {
495489 await getList ()
496490 })
497491 })
498- .catch (() => {
499- })
492+ .catch (() => {})
500493}
501494
502495const setUserGroupsRef = ref <InstanceType <typeof SetUserGroupsDialog >>()
0 commit comments