2025-09-17 15:38:23 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="welcome">
|
|
|
|
|
|
<HeaderBar />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="operation-bar">
|
2025-09-18 16:43:52 +08:00
|
|
|
|
<h2 class="page-title">{{ $t('templateQuickConfig.title') }}</h2>
|
2025-09-17 15:38:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="main-wrapper">
|
|
|
|
|
|
<div class="content-panel">
|
|
|
|
|
|
<div class="content-area">
|
|
|
|
|
|
<el-card class="config-card" shadow="never">
|
|
|
|
|
|
<div class="config-header">
|
|
|
|
|
|
<!-- 使用角色配置页面相同的彩色图标效果 -->
|
|
|
|
|
|
<div class="header-icon">
|
|
|
|
|
|
<img loading="lazy" src="@/assets/home/setting-user.png" alt="">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<span class="header-title">{{ form.agentName }}</span>
|
|
|
|
|
|
<div class="header-actions">
|
2025-09-18 16:43:52 +08:00
|
|
|
|
<el-button type="primary" class="save-btn" @click="saveConfig">{{ $t('templateQuickConfig.saveConfig') }}</el-button>
|
|
|
|
|
|
<el-button class="reset-btn" @click="resetConfig">{{ $t('templateQuickConfig.resetConfig') }}</el-button>
|
2025-09-17 15:38:23 +08:00
|
|
|
|
<button class="custom-close-btn" @click="goToHome">
|
|
|
|
|
|
×
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="divider"></div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form ref="form" :model="form" label-width="72px" class="full-height-form">
|
|
|
|
|
|
<!-- 助手昵称 -->
|
2025-09-18 16:43:52 +08:00
|
|
|
|
<el-form-item :label="$t('templateQuickConfig.agentSettings.agentName')" prop="agentName" class="nickname-item">
|
2025-09-17 15:38:23 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="form.agentName"
|
2025-09-18 16:43:52 +08:00
|
|
|
|
:placeholder="$t('templateQuickConfig.agentSettings.agentNamePlaceholder')"
|
2025-09-17 15:38:23 +08:00
|
|
|
|
:validate-event="false"
|
|
|
|
|
|
class="form-input"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 角色介绍 -->
|
2025-09-18 16:43:52 +08:00
|
|
|
|
<el-form-item :label="$t('templateQuickConfig.agentSettings.systemPrompt')" prop="systemPrompt" class="description-item">
|
2025-09-17 15:38:23 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="form.systemPrompt"
|
|
|
|
|
|
type="textarea"
|
2025-09-18 16:43:52 +08:00
|
|
|
|
:placeholder="$t('templateQuickConfig.agentSettings.systemPromptPlaceholder')"
|
2025-09-17 15:38:23 +08:00
|
|
|
|
:validate-event="false"
|
|
|
|
|
|
show-word-limit
|
|
|
|
|
|
maxlength="2000"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-03-25 09:26:33 +08:00
|
|
|
|
<el-footer>
|
|
|
|
|
|
<version-footer />
|
|
|
|
|
|
</el-footer>
|
2025-09-17 15:38:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import HeaderBar from "@/components/HeaderBar.vue";
|
|
|
|
|
|
import agentApi from '@/apis/module/agent';
|
2026-03-25 09:26:33 +08:00
|
|
|
|
import VersionFooter from "@/components/VersionFooter.vue";
|
2025-09-17 15:38:23 +08:00
|
|
|
|
|
2025-09-20 17:30:00 +08:00
|
|
|
|
// 默认模型配置常量
|
|
|
|
|
|
const DEFAULT_MODEL_CONFIG = {
|
|
|
|
|
|
ttsModelId: "TTS_EdgeTTS",
|
|
|
|
|
|
vadModelId: "VAD_SileroVAD",
|
|
|
|
|
|
asrModelId: "ASR_FunASR",
|
|
|
|
|
|
llmModelId: "LLM_ChatGLMLLM",
|
|
|
|
|
|
vllmModelId: "VLLM_ChatGLMVLLM",
|
|
|
|
|
|
memModelId: "Memory_nomem",
|
|
|
|
|
|
intentModelId: "Intent_function_call"
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2025-09-17 15:38:23 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
name: 'TemplateQuickConfig',
|
2026-03-25 09:26:33 +08:00
|
|
|
|
components: { HeaderBar, VersionFooter },
|
2025-09-17 15:38:23 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
form: {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
agentCode: "小智",
|
2025-09-17 15:38:23 +08:00
|
|
|
|
agentName: "",
|
|
|
|
|
|
systemPrompt: "",
|
2025-09-20 17:30:00 +08:00
|
|
|
|
sort: 0,
|
|
|
|
|
|
model: { ...DEFAULT_MODEL_CONFIG }
|
2025-09-17 15:38:23 +08:00
|
|
|
|
},
|
|
|
|
|
|
templateId: '',
|
|
|
|
|
|
originalForm: null
|
2025-09-20 17:30:00 +08:00
|
|
|
|
};
|
2025-09-17 15:38:23 +08:00
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
// 返回模板管理页面
|
2025-09-17 15:38:23 +08:00
|
|
|
|
goToHome() {
|
|
|
|
|
|
this.$router.push('/agent-template-management');
|
|
|
|
|
|
},
|
2025-09-20 17:30:00 +08:00
|
|
|
|
|
|
|
|
|
|
// 保存配置
|
2025-09-17 15:38:23 +08:00
|
|
|
|
saveConfig() {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
const configData = this.prepareConfigData();
|
2025-09-17 15:38:23 +08:00
|
|
|
|
|
|
|
|
|
|
if (this.templateId) {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
this.updateExistingTemplate(configData);
|
2025-09-17 15:38:23 +08:00
|
|
|
|
} else {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
this.createNewTemplate(configData);
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-09-20 17:30:00 +08:00
|
|
|
|
|
|
|
|
|
|
// 准备配置数据
|
|
|
|
|
|
prepareConfigData() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
id: this.templateId || '',
|
|
|
|
|
|
agentCode: this.form.agentCode,
|
|
|
|
|
|
agentName: this.form.agentName,
|
|
|
|
|
|
systemPrompt: this.form.systemPrompt,
|
|
|
|
|
|
sort: this.form.sort,
|
|
|
|
|
|
functions: [],
|
|
|
|
|
|
// 包含必要的模型字段以确保API调用成功
|
|
|
|
|
|
...this.form.model
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 更新现有模板
|
|
|
|
|
|
updateExistingTemplate(configData) {
|
|
|
|
|
|
agentApi.updateAgentTemplate(configData, (res) => {
|
|
|
|
|
|
if (res && res.data && res.data.code === 0) {
|
|
|
|
|
|
this.$message.success({
|
|
|
|
|
|
message: this.$t('templateQuickConfig.saveSuccess'),
|
|
|
|
|
|
showClose: true
|
|
|
|
|
|
});
|
|
|
|
|
|
this.originalForm = JSON.parse(JSON.stringify(this.form));
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error({
|
|
|
|
|
|
message: res?.data?.msg || this.$t('templateQuickConfig.saveFailed'),
|
|
|
|
|
|
showClose: true
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 创建新模板
|
|
|
|
|
|
createNewTemplate(configData) {
|
|
|
|
|
|
agentApi.addAgentTemplate(configData, (res) => {
|
|
|
|
|
|
if (res && res.data && res.data.code === 0) {
|
|
|
|
|
|
this.$message.success({
|
|
|
|
|
|
message: this.$t('templateQuickConfig.saveSuccess'),
|
|
|
|
|
|
showClose: true
|
|
|
|
|
|
});
|
|
|
|
|
|
this.goToHome();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error({
|
|
|
|
|
|
message: res?.data?.msg || this.$t('templateQuickConfig.saveFailed'),
|
|
|
|
|
|
showClose: true
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 重置配置
|
2025-09-17 15:38:23 +08:00
|
|
|
|
resetConfig() {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
this.$confirm(
|
|
|
|
|
|
this.$t('templateQuickConfig.confirmReset'),
|
|
|
|
|
|
this.$t('common.tip'),
|
|
|
|
|
|
{
|
|
|
|
|
|
confirmButtonText: this.$t('common.confirm'),
|
|
|
|
|
|
cancelButtonText: this.$t('common.cancel'),
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
}
|
|
|
|
|
|
).then(() => {
|
2025-09-17 15:38:23 +08:00
|
|
|
|
if (this.originalForm) {
|
|
|
|
|
|
this.form = JSON.parse(JSON.stringify(this.originalForm));
|
|
|
|
|
|
}
|
2025-09-20 17:30:00 +08:00
|
|
|
|
this.$message.success({
|
|
|
|
|
|
message: this.$t('templateQuickConfig.resetSuccess'),
|
|
|
|
|
|
showClose: true
|
|
|
|
|
|
});
|
|
|
|
|
|
}).catch(() => {});
|
2025-09-17 15:38:23 +08:00
|
|
|
|
},
|
2025-09-20 17:30:00 +08:00
|
|
|
|
|
|
|
|
|
|
// 根据ID获取模板
|
2025-09-17 15:38:23 +08:00
|
|
|
|
fetchTemplateById(templateId) {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
agentApi.getAgentTemplateById(templateId, (res) => {
|
|
|
|
|
|
if (res && res.data && res.data.code === 0 && res.data.data) {
|
|
|
|
|
|
const template = res.data.data;
|
|
|
|
|
|
this.applyTemplateData(template);
|
|
|
|
|
|
this.templateId = templateId;
|
|
|
|
|
|
this.originalForm = JSON.parse(JSON.stringify(this.form));
|
2025-09-17 15:38:23 +08:00
|
|
|
|
} else {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
this.$message.error(res?.data?.msg || this.$t('templateQuickConfig.templateNotFound'));
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2025-09-20 17:30:00 +08:00
|
|
|
|
|
|
|
|
|
|
// 应用模板数据
|
2025-09-17 15:38:23 +08:00
|
|
|
|
applyTemplateData(templateData) {
|
|
|
|
|
|
this.form = {
|
|
|
|
|
|
...this.form,
|
|
|
|
|
|
agentName: templateData.agentName || this.form.agentName,
|
|
|
|
|
|
agentCode: templateData.agentCode || this.form.agentCode,
|
|
|
|
|
|
systemPrompt: templateData.systemPrompt || this.form.systemPrompt,
|
|
|
|
|
|
sort: templateData.sort || this.form.sort,
|
|
|
|
|
|
model: {
|
|
|
|
|
|
ttsModelId: templateData.ttsModelId || this.form.model.ttsModelId,
|
|
|
|
|
|
vadModelId: templateData.vadModelId || this.form.model.vadModelId,
|
|
|
|
|
|
asrModelId: templateData.asrModelId || this.form.model.asrModelId,
|
|
|
|
|
|
llmModelId: templateData.llmModelId || this.form.model.llmModelId,
|
|
|
|
|
|
vllmModelId: templateData.vllmModelId || this.form.model.vllmModelId,
|
|
|
|
|
|
memModelId: templateData.memModelId || this.form.model.memModelId,
|
|
|
|
|
|
intentModelId: templateData.intentModelId || this.form.model.intentModelId
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2025-09-20 17:30:00 +08:00
|
|
|
|
// 设置默认模板值
|
|
|
|
|
|
setDefaultTemplateValues() {
|
|
|
|
|
|
this.form = {
|
|
|
|
|
|
...this.form,
|
|
|
|
|
|
agentName: this.$t('templateQuickConfig.newTemplate'),
|
|
|
|
|
|
agentCode: '小智',
|
|
|
|
|
|
systemPrompt: '',
|
|
|
|
|
|
sort: 1
|
|
|
|
|
|
};
|
2025-09-17 15:38:23 +08:00
|
|
|
|
|
2025-09-20 17:30:00 +08:00
|
|
|
|
this.originalForm = JSON.parse(JSON.stringify(this.form));
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 获取模板列表并设置排序号
|
|
|
|
|
|
fetchTemplateListForSort() {
|
2025-09-17 15:38:23 +08:00
|
|
|
|
agentApi.getAgentTemplate((res) => {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
if (res && res.data && res.data.code === 0) {
|
2025-09-17 15:38:23 +08:00
|
|
|
|
const templateList = res.data.data || [];
|
2025-09-20 17:30:00 +08:00
|
|
|
|
if (templateList.length > 0) {
|
2025-09-17 15:38:23 +08:00
|
|
|
|
const maxSort = Math.max(...templateList.map(t => t.sort || 0));
|
|
|
|
|
|
this.form.sort = maxSort + 1;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.form.sort = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.form.sort = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.originalForm = JSON.parse(JSON.stringify(this.form));
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2025-09-20 17:30:00 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 组件挂载时执行初始化
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
const templateId = this.$route.query.templateId;
|
|
|
|
|
|
|
|
|
|
|
|
if (templateId) {
|
|
|
|
|
|
// 编辑模式:加载现有模板
|
|
|
|
|
|
this.fetchTemplateById(templateId);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
// 新建模式:设置默认值并获取排序号
|
|
|
|
|
|
this.form.agentName = this.$t('templateQuickConfig.newTemplate');
|
|
|
|
|
|
this.fetchTemplateListForSort();
|
|
|
|
|
|
}
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
2025-09-20 17:30:00 +08:00
|
|
|
|
};
|
2025-09-17 15:38:23 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.welcome {
|
|
|
|
|
|
min-width: 900px;
|
|
|
|
|
|
height: 100vh;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
background: linear-gradient(to bottom right, #dce8ff, #e4eeff, #e6cbfd);
|
|
|
|
|
|
background-size: cover;
|
|
|
|
|
|
-webkit-background-size: cover;
|
|
|
|
|
|
-o-background-size: cover;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.operation-bar {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2026-03-25 09:26:33 +08:00
|
|
|
|
padding: 16px 24px;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.page-title {
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #2c3e50;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.main-wrapper {
|
2026-03-25 09:26:33 +08:00
|
|
|
|
height: calc(100vh - 63px - 35px - 60px);
|
|
|
|
|
|
margin: 0 22px;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
border-radius: 15px;
|
|
|
|
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
background: rgba(237, 242, 255, 0.5);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2025-09-20 17:30:00 +08:00
|
|
|
|
padding: 0 !important;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content-panel {
|
|
|
|
|
|
flex: 1;
|
2025-09-18 09:35:03 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
border-radius: 15px;
|
|
|
|
|
|
background: transparent;
|
2025-09-20 17:30:00 +08:00
|
|
|
|
border: 1px solid #fff;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content-area {
|
2025-09-18 09:35:03 +08:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
background-color: white;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-card {
|
|
|
|
|
|
background: white !important;
|
|
|
|
|
|
border-radius: 15px !important;
|
|
|
|
|
|
overflow: hidden !important;
|
|
|
|
|
|
height: 100% !important;
|
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
|
border: none !important;
|
|
|
|
|
|
box-shadow: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.full-height-form {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
gap: 20px;
|
|
|
|
|
|
height: calc(100% - 120px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nickname-item {
|
|
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.description-item {
|
|
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .description-item .el-textarea {
|
2025-09-20 17:30:00 +08:00
|
|
|
|
height: 300px;
|
|
|
|
|
|
min-height: 200px;
|
|
|
|
|
|
max-height: 400px;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .description-item .el-textarea__inner {
|
|
|
|
|
|
height: 100% !important;
|
|
|
|
|
|
min-height: 200px !important;
|
|
|
|
|
|
max-height: 400px !important;
|
2025-09-20 17:30:00 +08:00
|
|
|
|
resize: vertical !important;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
line-height: 1.6;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
padding: 10px;
|
2025-09-20 17:30:00 +08:00
|
|
|
|
border: 1px solid #dcdfe6;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
color: #303133;
|
2025-09-17 15:38:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-form-item__label {
|
|
|
|
|
|
font-size: 12px !important;
|
|
|
|
|
|
color: #3d4566 !important;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
padding-bottom: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-textarea .el-input__count {
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
right: 10px;
|
|
|
|
|
|
bottom: 10px;
|
|
|
|
|
|
padding: 2px 5px;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-header {
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 15px;
|
|
|
|
|
|
background: #f8f9ff;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-icon {
|
|
|
|
|
|
width: 37px;
|
|
|
|
|
|
height: 37px;
|
|
|
|
|
|
background: #5778ff;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-icon img {
|
|
|
|
|
|
width: 19px;
|
|
|
|
|
|
height: 19px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-title {
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #2c3e50;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-close-btn {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 25%;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
width: 35px;
|
|
|
|
|
|
height: 35px;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
border: 2px solid #cfcfcf;
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
|
font-weight: lighter;
|
|
|
|
|
|
color: #cfcfcf;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-close-btn:hover {
|
|
|
|
|
|
color: #409EFF;
|
|
|
|
|
|
border-color: #409EFF;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-actions .save-btn {
|
|
|
|
|
|
background: #5778ff;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 18px;
|
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-actions .reset-btn {
|
|
|
|
|
|
background: #e6ebff;
|
|
|
|
|
|
color: #5778ff;
|
|
|
|
|
|
border: 1px solid #adbdff;
|
|
|
|
|
|
border-radius: 18px;
|
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-actions .custom-close-btn {
|
|
|
|
|
|
position: static;
|
|
|
|
|
|
transform: none;
|
|
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|