样式修改

This commit is contained in:
2025-11-27 17:31:42 +08:00
parent 50a4a98821
commit cb074ac08b
6 changed files with 34 additions and 20 deletions

View File

@@ -106,11 +106,12 @@
<el-form-item label="索引方式" prop="difyIndexingTechnique" required>
<el-radio-group v-model="formData.difyIndexingTechnique">
<el-radio value="high_quality">
<el-radio class="index-type" value="high_quality">
<span class="radio-label">高质量</span>
<span class="radio-desc">更精确的检索结果消耗更多tokens</span>
</el-radio>
<el-radio
class="index-type"
value="economy"
:disabled="type === 'edit' && knowledge?.difyIndexingTechnique === 'high_quality'"
>
@@ -162,6 +163,7 @@
v-model="formData.rerankingEnable"
:active-value="true"
:inactive-value="false"
inline-prompt
active-text="启用"
inactive-text="禁用"
/>
@@ -247,6 +249,7 @@
v-model="formData.status"
:active-value="1"
:inactive-value="0"
inline-prompt
active-text="启用"
inactive-text="禁用"
/>
@@ -259,7 +262,7 @@
<el-button @click="handleCancel">
取消
</el-button>
</div>
</div>
</el-form>
</div>
</div>
@@ -581,7 +584,9 @@ function formatDate(date: string | Date | undefined): string {
display: flex;
gap: 24px;
}
.index-type{
align-items: center !important;
}
.avatar-section {
width: 120px;
height: 120px;
@@ -652,6 +657,9 @@ function formatDate(date: string | Date | undefined): string {
.edit-mode {
.knowledge-form {
max-width: 600px;
.index-type{
align-items: center !important;
}
:deep(.el-form-item__label) {
font-weight: 500;
@@ -685,10 +693,12 @@ function formatDate(date: string | Date | undefined): string {
}
.form-tip {
margin-top: 8px;
display: inline-block;
margin-left: 16px;
font-size: 13px;
color: #F59E0B;
line-height: 1.4;
vertical-align: middle;
}
.form-tip-success {

View File

@@ -65,14 +65,16 @@
<template #header>
<div class="card-header">
<span>访问统计趋势PV/UV</span>
<el-date-picker
v-model="dateRange"
type="daterange"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期"
size="small"
/>
<div style="display:flex; width:50%">
<el-date-picker
v-model="dateRange"
type="daterange"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期"
size="small"
/>
</div>
</div>
</template>
<div class="chart-container" ref="activityChart"></div>

View File

@@ -270,8 +270,9 @@ defineExpose({
.form-item {
display: flex;
flex-direction: column;
gap: 8px;
/* flex-direction: column; */
justify-content: center;
align-items: center;
.form-label {
font-size: 14px;

View File

@@ -24,7 +24,6 @@
</div>
<h1 class="platform-title">红色思政学习平台</h1>
</div>
<h2 class="login-title">{{ loginModeTitle }}</h2>
</div>
<!-- 登录方式切换 -->

View File

@@ -3,8 +3,10 @@
<div class="learning-records">
<div class="records-header">
<h2>学习记录</h2>
<el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期"
<div style="width: 40%; display: flex;">
<el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期"
end-placeholder="结束日期" @change="handleDateChange" />
</div>
</div>
<!-- 学习时长图表 -->
@@ -16,7 +18,7 @@
<!-- 学习记录分页表格 -->
<div class="records-table" v-loading="tableLoading">
<h3>学习记录明细</h3>
<el-table :data="tableData" stripe style="width: 100%">
<el-table :data="tableData">
<el-table-column prop="resourceTitle" label="资源标题"/>
<el-table-column prop="resourceTypeName" label="类型" />
<el-table-column label="学习时长">