perf: Partial style optimization
This commit is contained in:
parent
5901e7fc02
commit
b709de30b9
@ -53,7 +53,7 @@
|
|||||||
<el-text type="info" v-if="configType === 'wechat'">
|
<el-text type="info" v-if="configType === 'wechat'">
|
||||||
{{ $t('views.application.applicationAccess.copyUrl') }}
|
{{ $t('views.application.applicationAccess.copyUrl') }}
|
||||||
<a
|
<a
|
||||||
class="primary"
|
class="color-primary"
|
||||||
href="https://mp.weixin.qq.com/advanced/advanced?action=dev&t=advanced/dev"
|
href="https://mp.weixin.qq.com/advanced/advanced?action=dev&t=advanced/dev"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ $t('views.application.applicationAccess.wechatPlatform') }}</a
|
>{{ $t('views.application.applicationAccess.wechatPlatform') }}</a
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<el-text type="info" v-if="configType === 'dingtalk'">
|
<el-text type="info" v-if="configType === 'dingtalk'">
|
||||||
{{ $t('views.application.applicationAccess.copyUrl') }}
|
{{ $t('views.application.applicationAccess.copyUrl') }}
|
||||||
<a
|
<a
|
||||||
class="primary"
|
class="color-primary"
|
||||||
href="https://open-dev.dingtalk.com/fe/app?hash=%23%2Fcorp%2Fapp#/corp/app"
|
href="https://open-dev.dingtalk.com/fe/app?hash=%23%2Fcorp%2Fapp#/corp/app"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ $t('views.application.applicationAccess.dingtalkPlatform') }}</a
|
>{{ $t('views.application.applicationAccess.dingtalkPlatform') }}</a
|
||||||
@ -71,7 +71,7 @@
|
|||||||
<el-text type="info" v-if="configType === 'wecom'">
|
<el-text type="info" v-if="configType === 'wecom'">
|
||||||
{{ $t('views.application.applicationAccess.copyUrl') }}
|
{{ $t('views.application.applicationAccess.copyUrl') }}
|
||||||
<a
|
<a
|
||||||
class="primary"
|
class="color-primary"
|
||||||
href="https://work.weixin.qq.com/wework_admin/frame#apps"
|
href="https://work.weixin.qq.com/wework_admin/frame#apps"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ $t('views.application.applicationAccess.wecomPlatform') }}</a
|
>{{ $t('views.application.applicationAccess.wecomPlatform') }}</a
|
||||||
|
|||||||
@ -16,7 +16,9 @@
|
|||||||
</el-avatar>
|
</el-avatar>
|
||||||
</div>
|
</div>
|
||||||
<div class="content ml-12">
|
<div class="content ml-12">
|
||||||
<h4 class="text break-all">{{ questionTitle }}</h4>
|
<h4 class="text break-all ellipsis-1" style="width: 66%" :title="questionTitle">
|
||||||
|
{{ questionTitle }}
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
@ -95,11 +97,13 @@
|
|||||||
<div class="hit-test__operate">
|
<div class="hit-test__operate">
|
||||||
<el-popover :visible="popoverVisible" placement="right-end" :width="500" trigger="click">
|
<el-popover :visible="popoverVisible" placement="right-end" :width="500" trigger="click">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button icon="Setting" class="mb-8" @click="settingChange('open')"
|
<el-button
|
||||||
v-if="! route.path.includes('share/')"
|
icon="Setting"
|
||||||
>{{
|
class="mb-8"
|
||||||
$t('common.paramSetting')
|
@click="settingChange('open')"
|
||||||
}}</el-button>
|
v-if="!route.path.includes('share/')"
|
||||||
|
>{{ $t('common.paramSetting') }}</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
<div class="mb-16">
|
<div class="mb-16">
|
||||||
<div class="title mb-8">
|
<div class="title mb-8">
|
||||||
@ -190,21 +194,18 @@
|
|||||||
|
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<el-button @click="popoverVisible = false">{{ $t('common.cancel') }}</el-button>
|
<el-button @click="popoverVisible = false">{{ $t('common.cancel') }}</el-button>
|
||||||
<el-button type="primary" @click="settingChange('close')"
|
<el-button type="primary" @click="settingChange('close')">{{
|
||||||
>{{
|
|
||||||
$t('common.confirm')
|
$t('common.confirm')
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<div class="operate-textarea flex"
|
<div class="operate-textarea flex" v-if="!route.path.includes('share/')">
|
||||||
v-if="! route.path.includes('share/')"
|
|
||||||
>
|
|
||||||
<el-input
|
<el-input
|
||||||
ref="quickInputRef"
|
ref="quickInputRef"
|
||||||
v-model="inputValue"
|
v-model="inputValue"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:placeholder="$t('common.inputPlaceholder')"
|
:placeholder="$t('common.inputPlaceholder')"
|
||||||
:autosize="{ minRows: 1, maxRows: 8 }"
|
:autosize="{ minRows: 1, maxRows: 1 }"
|
||||||
@keydown.enter="sendChatHandle($event)"
|
@keydown.enter="sendChatHandle($event)"
|
||||||
/>
|
/>
|
||||||
<div class="operate">
|
<div class="operate">
|
||||||
|
|||||||
@ -180,32 +180,38 @@ const rules = ref<FormRules<LoginRequest>>({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const loginHandle = () => {
|
const loginHandle = () => {
|
||||||
loading.value = true
|
if (!loginFormRef.value) {
|
||||||
loginFormRef.value
|
return
|
||||||
?.validate()
|
}
|
||||||
.then(() => {
|
loginFormRef.value.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
loading.value = true
|
||||||
if (loginMode.value === 'LDAP') {
|
if (loginMode.value === 'LDAP') {
|
||||||
login.asyncLdapLogin(loginForm.value).then(() => {
|
login
|
||||||
locale.value = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
|
.asyncLdapLogin(loginForm.value)
|
||||||
loading.value = false
|
.then(() => {
|
||||||
router.push({ name: 'home' })
|
locale.value = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
|
||||||
}).catch(() => {
|
loading.value = false
|
||||||
loading.value = false
|
router.push({ name: 'home' })
|
||||||
})
|
})
|
||||||
|
.catch(() => {
|
||||||
|
loading.value = false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
login.asyncLogin(loginForm.value).then(() => {
|
login
|
||||||
locale.value = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
|
.asyncLogin(loginForm.value)
|
||||||
localStorage.setItem('workspace_id', 'default')
|
.then(() => {
|
||||||
loading.value = false
|
locale.value = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
|
||||||
router.push({ name: 'home' })
|
localStorage.setItem('workspace_id', 'default')
|
||||||
}).catch(() => {
|
loading.value = false
|
||||||
loading.value = false
|
router.push({ name: 'home' })
|
||||||
})
|
})
|
||||||
|
.catch(() => {
|
||||||
|
loading.value = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
.catch(() => {
|
})
|
||||||
loading.value = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeCode() {
|
function makeCode() {
|
||||||
|
|||||||
@ -163,13 +163,17 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('common.operation')" align="left" width="120" fixed="right">
|
<el-table-column :label="$t('common.operation')" align="left" width="120" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
|
<el-tooltip
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('common.modify')"
|
||||||
|
placement="top"
|
||||||
|
v-if="permissionPrecise.modify()"
|
||||||
|
>
|
||||||
<span class="mr-8">
|
<span class="mr-8">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
text
|
text
|
||||||
:title="$t('common.modify')"
|
:title="$t('common.modify')"
|
||||||
v-if="permissionPrecise.modify()"
|
|
||||||
@click.stop="openEditModel(row)"
|
@click.stop="openEditModel(row)"
|
||||||
>
|
>
|
||||||
<el-icon><EditPen /></el-icon>
|
<el-icon><EditPen /></el-icon>
|
||||||
@ -180,32 +184,36 @@
|
|||||||
effect="dark"
|
effect="dark"
|
||||||
:content="$t('views.model.modelForm.title.paramSetting')"
|
:content="$t('views.model.modelForm.title.paramSetting')"
|
||||||
placement="top"
|
placement="top"
|
||||||
|
v-if="
|
||||||
|
(row.model_type === 'TTS' ||
|
||||||
|
row.model_type === 'LLM' ||
|
||||||
|
row.model_type === 'IMAGE' ||
|
||||||
|
row.model_type === 'TTI') &&
|
||||||
|
permissionPrecise.paramSetting()
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<span class="mr-8">
|
<span class="mr-8">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
text
|
text
|
||||||
:title="$t('views.model.modelForm.title.paramSetting')"
|
:title="$t('views.model.modelForm.title.paramSetting')"
|
||||||
v-if="
|
|
||||||
(row.model_type === 'TTS' ||
|
|
||||||
row.model_type === 'LLM' ||
|
|
||||||
row.model_type === 'IMAGE' ||
|
|
||||||
row.model_type === 'TTI') &&
|
|
||||||
permissionPrecise.paramSetting()
|
|
||||||
"
|
|
||||||
@click.stop="openParamSetting(row)"
|
@click.stop="openParamSetting(row)"
|
||||||
>
|
>
|
||||||
<el-icon><Setting /></el-icon>
|
<el-icon><Setting /></el-icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip effect="dark" :content="$t('common.delete')" placement="top">
|
<el-tooltip
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('common.delete')"
|
||||||
|
placement="top"
|
||||||
|
v-if="permissionPrecise.delete()"
|
||||||
|
>
|
||||||
<span class="mr-8">
|
<span class="mr-8">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
text
|
text
|
||||||
:title="$t('common.delete')"
|
:title="$t('common.delete')"
|
||||||
v-if="permissionPrecise.delete()"
|
|
||||||
@click.stop="deleteModel(row)"
|
@click.stop="deleteModel(row)"
|
||||||
>
|
>
|
||||||
<el-icon><Delete /></el-icon>
|
<el-icon><Delete /></el-icon>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="email-setting p-16-24">
|
<div class="email-setting p-16-24">
|
||||||
<h4 class="mb-16">{{ $t('views.system.email.title') }}</h4>
|
<h4 class="mb-16">{{ $t('views.system.email.title') }}</h4>
|
||||||
<el-card style="--el-card-padding: 16px" v-loading="loading" class="main-calc-height">
|
<el-card style="--el-card-padding: 16px" v-loading="loading">
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="email-setting__main p-16">
|
<div class="email-setting__main p-16">
|
||||||
<el-form
|
<el-form
|
||||||
@ -152,6 +152,7 @@ onMounted(() => {
|
|||||||
&__main {
|
&__main {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
height: calc(100vh - 200px);
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-checkbox__label) {
|
:deep(.el-checkbox__label) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user