fix: icon optimize
This commit is contained in:
parent
f46205bece
commit
27262c9478
@ -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,
|
...dynamicIcons,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -82,9 +82,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
<!-- 访问限制 -->
|
<!-- 访问限制 -->
|
||||||
<el-button @click="openLimitDialog" v-if="permissionPrecise.overview_access(id)">
|
<el-button @click="openLimitDialog" v-if="permissionPrecise.overview_access(id)">
|
||||||
<el-icon class="mr-4">
|
<AppIcon iconName="app-key" class="mr-4"></AppIcon>
|
||||||
<Lock />
|
|
||||||
</el-icon>
|
|
||||||
{{ $t('views.applicationOverview.appInfo.accessControl') }}
|
{{ $t('views.applicationOverview.appInfo.accessControl') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 显示设置 -->
|
<!-- 显示设置 -->
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
style="padding-top: 8px; padding-bottom: 8px"
|
style="padding-top: 8px; padding-bottom: 8px"
|
||||||
@click="openResetPassword"
|
@click="openResetPassword"
|
||||||
>
|
>
|
||||||
<el-icon><Lock /></el-icon>
|
<AppIcon iconName="app-key"></AppIcon>
|
||||||
{{ $t('views.login.resetPassword') }}
|
{{ $t('views.login.resetPassword') }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
@click="resetPassword"
|
@click="resetPassword"
|
||||||
>
|
>
|
||||||
<div class="flex align-center">
|
<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>
|
<h4 class="lighter">{{ $t('views.login.resetPassword') }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<el-icon size="16">
|
<el-icon size="16">
|
||||||
|
|||||||
@ -74,9 +74,7 @@
|
|||||||
style="padding-top: 8px; padding-bottom: 8px"
|
style="padding-top: 8px; padding-bottom: 8px"
|
||||||
@click="openResetPassword"
|
@click="openResetPassword"
|
||||||
>
|
>
|
||||||
<el-icon>
|
<AppIcon iconName="app-key" class="mr-4"></AppIcon>
|
||||||
<Lock />
|
|
||||||
</el-icon>
|
|
||||||
{{ $t('views.login.resetPassword') }}
|
{{ $t('views.login.resetPassword') }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
|
|||||||
@ -246,9 +246,10 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-if="isSystemShare"
|
v-if="isSystemShare"
|
||||||
icon="Lock"
|
|
||||||
@click.stop="openAuthorizedWorkspaceDialog(item)"
|
@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
|
<el-dropdown-item
|
||||||
|
|||||||
@ -81,9 +81,10 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-if="isSystemShare"
|
v-if="isSystemShare"
|
||||||
icon="Lock"
|
|
||||||
@click.stop="openAuthorizedWorkspaceDialog(model)"
|
@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>
|
||||||
|
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
|
|||||||
@ -279,23 +279,12 @@ function deleteMulDocument() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function deleteProblem(row: any) {
|
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 })
|
loadSharedApi({ type: 'problem', systemType: apiType.value })
|
||||||
.delProblems(id, row.id, loading)
|
.delProblems(id, row.id, loading)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
MsgSuccess(t('common.deleteSuccess'))
|
MsgSuccess(t('common.deleteSuccess'))
|
||||||
getList()
|
getList()
|
||||||
})
|
})
|
||||||
})
|
|
||||||
.catch(() => {})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function editName(val: string, problemId: string) {
|
function editName(val: string, problemId: string) {
|
||||||
|
|||||||
@ -70,10 +70,7 @@
|
|||||||
<el-option :label="$t('views.login.loginForm.username.label')" value="username" />
|
<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('views.userManage.userForm.nick_name.label')" value="nick_name" />
|
||||||
<el-option :label="$t('common.status.label')" value="is_active" />
|
<el-option :label="$t('common.status.label')" value="is_active" />
|
||||||
<el-option
|
<el-option :label="$t('views.userManage.source.label')" value="source" />
|
||||||
:label="$t('views.userManage.source.label')"
|
|
||||||
value="source"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input
|
<el-input
|
||||||
v-if="search_type === 'username'"
|
v-if="search_type === 'username'"
|
||||||
@ -274,9 +271,7 @@
|
|||||||
)
|
)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<el-icon>
|
<AppIcon iconName="app-key"></AppIcon>
|
||||||
<Lock/>
|
|
||||||
</el-icon>
|
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
@ -448,8 +443,7 @@ function deleteUserManage(row: ChatUserItem) {
|
|||||||
getList()
|
getList()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const UserPwdDialogRef = ref()
|
const UserPwdDialogRef = ref()
|
||||||
@ -495,8 +489,7 @@ function handleBatchDelete() {
|
|||||||
await getList()
|
await getList()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const setUserGroupsRef = ref<InstanceType<typeof SetUserGroupsDialog>>()
|
const setUserGroupsRef = ref<InstanceType<typeof SetUserGroupsDialog>>()
|
||||||
|
|||||||
@ -227,7 +227,7 @@
|
|||||||
:title="$t('views.userManage.setting.updatePwd')"
|
:title="$t('views.userManage.setting.updatePwd')"
|
||||||
v-if="hasPermission([RoleConst.ADMIN, PermissionConst.USER_EDIT], 'OR')"
|
v-if="hasPermission([RoleConst.ADMIN, PermissionConst.USER_EDIT], 'OR')"
|
||||||
>
|
>
|
||||||
<el-icon><Lock /></el-icon>
|
<AppIcon iconName="app-key"></AppIcon>
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|||||||
@ -249,9 +249,10 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-if="isSystemShare"
|
v-if="isSystemShare"
|
||||||
icon="Lock"
|
|
||||||
@click.stop="openAuthorizedWorkspaceDialog(item)"
|
@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
|
<el-dropdown-item
|
||||||
v-if="!item.template_id && permissionPrecise.export(item.id)"
|
v-if="!item.template_id && permissionPrecise.export(item.id)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user