fix: icon optimize

This commit is contained in:
wangdan-fit2cloud 2025-08-04 19:10:56 +08:00
parent f46205bece
commit 27262c9478
11 changed files with 74 additions and 73 deletions

View File

@ -326,6 +326,26 @@ export const iconMap: any = {
])
},
},
'app-key': {
iconReader: () => {
return h('i', [
h(
'svg',
{
viewBox: '0 0 1024 1024',
version: '1.1',
xmlns: 'http://www.w3.org/2000/svg',
},
[
h('path', {
d: 'M512 512a85.333333 85.333333 0 0 1 42.666667 159.232V746.666667a21.333333 21.333333 0 0 1-21.333334 21.333333h-42.666666a21.333333 21.333333 0 0 1-21.333334-21.333333v-75.434667A85.333333 85.333333 0 0 1 512 512z" p-id="16092"></path><path d="M512 85.333333c129.578667 0 234.666667 104.96 234.666667 234.666667V341.333333H896c23.552 0 42.666667 19.2 42.666667 42.666667v512c0 23.466667-19.114667 42.666667-42.666667 42.666667H128c-23.594667 0-42.666667-19.2-42.666667-42.666667V384c0-23.466667 19.072-42.666667 42.666667-42.666667h149.333333v-21.333333C277.333333 190.293333 382.421333 85.333333 512 85.333333zM170.666667 853.333333h682.666666V426.666667H170.666667v426.666666z m341.333333-682.666666a149.290667 149.290667 0 0 0-149.333333 149.333333V341.333333h298.666666v-21.333333C661.333333 237.44 594.474667 170.666667 512 170.666667z',
fill: 'currentColor',
}),
],
),
])
},
},
// 动态加载的图标
...dynamicIcons,
}

View File

@ -82,9 +82,7 @@
</el-button>
<!-- 访问限制 -->
<el-button @click="openLimitDialog" v-if="permissionPrecise.overview_access(id)">
<el-icon class="mr-4">
<Lock />
</el-icon>
<AppIcon iconName="app-key" class="mr-4"></AppIcon>
{{ $t('views.applicationOverview.appInfo.accessControl') }}
</el-button>
<!-- 显示设置 -->

View File

@ -63,7 +63,7 @@
style="padding-top: 8px; padding-bottom: 8px"
@click="openResetPassword"
>
<el-icon><Lock /></el-icon>
<AppIcon iconName="app-key"></AppIcon>
{{ $t('views.login.resetPassword') }}
</el-dropdown-item>
<el-dropdown-item

View File

@ -22,7 +22,7 @@
@click="resetPassword"
>
<div class="flex align-center">
<el-icon class="mr-12"><Lock /></el-icon>
<AppIcon iconName="app-key" class="mr-12"></AppIcon>
<h4 class="lighter">{{ $t('views.login.resetPassword') }}</h4>
</div>
<el-icon size="16">

View File

@ -74,9 +74,7 @@
style="padding-top: 8px; padding-bottom: 8px"
@click="openResetPassword"
>
<el-icon>
<Lock />
</el-icon>
<AppIcon iconName="app-key" class="mr-4"></AppIcon>
{{ $t('views.login.resetPassword') }}
</el-dropdown-item>
<el-dropdown-item

View File

@ -246,9 +246,10 @@
</el-dropdown-item>
<el-dropdown-item
v-if="isSystemShare"
icon="Lock"
@click.stop="openAuthorizedWorkspaceDialog(item)"
>{{ $t('views.shared.authorized_workspace') }}</el-dropdown-item
>
<AppIcon iconName="app-key"></AppIcon>
{{ $t('views.shared.authorized_workspace') }}</el-dropdown-item
>
<el-dropdown-item

View File

@ -81,9 +81,10 @@
</el-dropdown-item>
<el-dropdown-item
v-if="isSystemShare"
icon="Lock"
@click.stop="openAuthorizedWorkspaceDialog(model)"
>{{ $t('views.shared.authorized_workspace') }}
>
<AppIcon iconName="app-key"></AppIcon>
{{ $t('views.shared.authorized_workspace') }}
</el-dropdown-item>
<el-dropdown-item

View File

@ -279,23 +279,12 @@ function deleteMulDocument() {
}
function deleteProblem(row: any) {
MsgConfirm(
`${t('views.problem.delete.confirmTitle')} ${row.content} ?`,
`${t('views.problem.delete.confirmMessage1')} ${row.paragraph_count} ${t('views.problem.delete.confirmMessage2')}`,
{
confirmButtonText: t('common.confirm'),
confirmButtonClass: 'danger',
},
)
.then(() => {
loadSharedApi({ type: 'problem', systemType: apiType.value })
.delProblems(id, row.id, loading)
.then(() => {
MsgSuccess(t('common.deleteSuccess'))
getList()
})
})
.catch(() => {})
}
function editName(val: string, problemId: string) {

View File

@ -70,10 +70,7 @@
<el-option :label="$t('views.login.loginForm.username.label')" value="username" />
<el-option :label="$t('views.userManage.userForm.nick_name.label')" value="nick_name" />
<el-option :label="$t('common.status.label')" value="is_active" />
<el-option
:label="$t('views.userManage.source.label')"
value="source"
/>
<el-option :label="$t('views.userManage.source.label')" value="source" />
</el-select>
<el-input
v-if="search_type === 'username'"
@ -274,9 +271,7 @@
)
"
>
<el-icon>
<Lock/>
</el-icon>
<AppIcon iconName="app-key"></AppIcon>
</el-button>
</span>
<span>
@ -448,8 +443,7 @@ function deleteUserManage(row: ChatUserItem) {
getList()
})
})
.catch(() => {
})
.catch(() => {})
}
const UserPwdDialogRef = ref()
@ -495,8 +489,7 @@ function handleBatchDelete() {
await getList()
})
})
.catch(() => {
})
.catch(() => {})
}
const setUserGroupsRef = ref<InstanceType<typeof SetUserGroupsDialog>>()

View File

@ -227,7 +227,7 @@
:title="$t('views.userManage.setting.updatePwd')"
v-if="hasPermission([RoleConst.ADMIN, PermissionConst.USER_EDIT], 'OR')"
>
<el-icon><Lock /></el-icon>
<AppIcon iconName="app-key"></AppIcon>
</el-button>
</span>
</el-tooltip>

View File

@ -249,9 +249,10 @@
</el-dropdown-item>
<el-dropdown-item
v-if="isSystemShare"
icon="Lock"
@click.stop="openAuthorizedWorkspaceDialog(item)"
>{{ $t('views.shared.authorized_workspace') }}</el-dropdown-item
>
<AppIcon iconName="app-key"></AppIcon>
{{ $t('views.shared.authorized_workspace') }}</el-dropdown-item
>
<el-dropdown-item
v-if="!item.template_id && permissionPrecise.export(item.id)"