修复一些问题

This commit is contained in:
lyc 2025-02-16 23:13:30 +08:00
parent ba1a4a3abe
commit e97ff8e147
3 changed files with 24 additions and 8 deletions

View File

@ -15,7 +15,9 @@
</div>
<div class="flex-start flex" v-else>
<div class="flex" v-loading="!item.msg">
<div class="chart-item robot">{{ item.msg }}</div>
<div class="chart-item robot">
<v-md-editor v-model="item.msg" mode="preview" />
</div>
</div>
<div class="flex flex-end replace-item">
<span @click="saveAdjust(item)"><i class="iconfont icon-tihuan"></i>替换分析结果</span>
@ -158,8 +160,10 @@ const dataset_id = ref('')
const fileList = ref([])
const getList = () =>{
docList({
userId: userInfo.userId,
dataset_id: dataset_id.value
createUser: userInfo.userId,
datasetId: dataset_id.value,
edustage: curNode.edustage,
edusubject: curNode.edusubject
}).then( res =>{
fileList.value = res.rows
Object.assign(curFile, fileList.value[0])
@ -239,6 +243,7 @@ onUnmounted(() => {
.robot {
background: #409EFF;
color: #FFF;
width: 100%;
}
.replace-item{
font-size: 12px;
@ -332,4 +337,13 @@ onUnmounted(() => {
display: flex;
margin-bottom: 10px;
}
:deep(.v-md-editor){
background-color: #409EFF;
}
:deep(.github-markdown-body) {
font-size: 14px;
padding: 10px;
}
</style>

View File

@ -137,7 +137,9 @@ const curFile = reactive({})
const getList = () => {
docList({
createUser: userInfo.userId,
datasetId: dataset_id.value
datasetId: dataset_id.value,
edustage: curNode.edustage,
edusubject: curNode.edusubject
}).then((res) => {
fileList.value = [...res.rows]
if(res.rows.length){

View File

@ -4,12 +4,12 @@
<div class="container-right-header flex">
<el-dropdown @command="changeTemplate" :hide-on-click="false">
<span class="el-dropdown-link">
{{ curTemplate.name }}
{{ curTemplate.ex3 ? `平台-${curTemplate.name}` : `个人-${curTemplate.name}` }}
<i class="iconfont icon-xiangxia"></i>
</span>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item v-for="item in templateList" :command="item" :key="item.id">{{ item.name
<el-dropdown-item v-for="item in templateList" :command="item" :key="item.id">{{ item.ex3 ? `平台-${item.name}` : `个人-${item.name}`
}}</el-dropdown-item>
</el-dropdown-menu>
</template>
@ -18,12 +18,12 @@
<el-select v-model="curMode" placeholder="Select" class="mr-4 w-30">
<el-option v-for="item in modeOptions" :key="item.value" :disabled="item.disabled" :label="item.label" :value="item.value" />
</el-select>
<el-button type="danger" link :disabled="!(templateList.length)" @click="removeItem(curTemplate, false)">
<el-button type="danger" link :disabled="!(templateList.length)" @click="removeItem(curTemplate, false)" v-if="curTemplate.ex3 != 1">
删除
</el-button>
<el-button type="primary" link :disabled="!(templateList.length)" @click="onAdd">
<i class="iconfont icon-jiahao"></i>
添加提示词
{{ curTemplate.ex3 == 1 ? '复制并创建个人模板' : '添加提示词' }}
</el-button>
<el-button type="primary" :disabled="!(childTempList.length)" @click="getCompletion">一键研读</el-button>
</div>