Merge branch 'pr@main@model_embedding' of github.com:1Panel-dev/MaxKB into pr@main@model_embedding
This commit is contained in:
commit
de9b04b447
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="authentication-setting p-24">
|
<div class="authentication-setting p-16-24">
|
||||||
<h4>{{ $t('login.authentication') }}</h4>
|
<h4>{{ $t('login.authentication') }}</h4>
|
||||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
||||||
<template v-for="(item, index) in tabList" :key="index">
|
<template v-for="(item, index) in tabList" :key="index">
|
||||||
@ -38,7 +38,7 @@ onMounted(() => {})
|
|||||||
background-color: var(--app-view-bg-color);
|
background-color: var(--app-view-bg-color);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-width: 700px;
|
min-width: 700px;
|
||||||
height: calc(100vh - var(--app-header-height) - var(--app-view-padding) * 2 - 80px);
|
height: calc(100vh - var(--app-header-height) - var(--app-view-padding) * 2 - 70px);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.form-container {
|
.form-container {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
|
|||||||
@ -1,12 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<card-box :title="model.name" shadow="hover" class="model-card">
|
<card-box :title="model.name" shadow="hover" class="model-card">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex align-center">
|
<div class="flex">
|
||||||
<span style="height: 32px; width: 32px" :innerHTML="icon" class="mr-12"></span>
|
<span style="height: 32px; width: 32px" :innerHTML="icon" class="mr-12"></span>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<auto-tooltip :content="model.name" style="max-width: 40%">
|
<div class="flex" style="height: 22px;">
|
||||||
{{ model.name }}
|
<auto-tooltip :content="model.name" style="max-width: 40%">
|
||||||
</auto-tooltip>
|
{{ model.name }}
|
||||||
|
</auto-tooltip>
|
||||||
|
<span v-if="currentModel.status === 'ERROR'">
|
||||||
|
<el-tooltip effect="dark" :content="errMessage" placement="top">
|
||||||
|
<el-icon class="danger ml-4" size="18"><Warning /></el-icon>
|
||||||
|
</el-tooltip>
|
||||||
|
</span>
|
||||||
|
<span v-if="currentModel.status === 'PAUSE_DOWNLOAD'">
|
||||||
|
<el-tooltip effect="dark" content="暂停下载" placement="top">
|
||||||
|
<el-icon class="danger ml-4" size="18"><Warning /></el-icon>
|
||||||
|
</el-tooltip>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<el-tag v-if="model.permission_type === 'PRIVATE'" type="danger" class="danger-tag"
|
<el-tag v-if="model.permission_type === 'PRIVATE'" type="danger" class="danger-tag"
|
||||||
>私有</el-tag
|
>私有</el-tag
|
||||||
@ -14,19 +26,6 @@
|
|||||||
<el-tag v-else type="info" class="info-tag">公有</el-tag>
|
<el-tag v-else type="info" class="info-tag">公有</el-tag>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex align-center" v-if="currentModel.status === 'ERROR'">
|
|
||||||
<el-tag type="danger" class="ml-8">失败</el-tag>
|
|
||||||
<el-tooltip effect="dark" :content="errMessage" placement="top">
|
|
||||||
<el-icon class="danger ml-4" size="20"><Warning /></el-icon>
|
|
||||||
</el-tooltip>
|
|
||||||
</div>
|
|
||||||
<div class="flex align-center" v-if="currentModel.status === 'PAUSE_DOWNLOAD'">
|
|
||||||
<el-tag type="danger" class="ml-8">暂停下载</el-tag>
|
|
||||||
<el-tooltip effect="dark" content="暂停下载" placement="top">
|
|
||||||
<el-icon class="danger ml-4" size="20"><Warning /></el-icon>
|
|
||||||
</el-tooltip>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user