修复一些问题
This commit is contained in:
parent
ba1a4a3abe
commit
e97ff8e147
|
@ -15,7 +15,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-start flex" v-else>
|
<div class="flex-start flex" v-else>
|
||||||
<div class="flex" v-loading="!item.msg">
|
<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>
|
||||||
<div class="flex flex-end replace-item">
|
<div class="flex flex-end replace-item">
|
||||||
<span @click="saveAdjust(item)"><i class="iconfont icon-tihuan"></i>替换分析结果</span>
|
<span @click="saveAdjust(item)"><i class="iconfont icon-tihuan"></i>替换分析结果</span>
|
||||||
|
@ -158,8 +160,10 @@ const dataset_id = ref('')
|
||||||
const fileList = ref([])
|
const fileList = ref([])
|
||||||
const getList = () =>{
|
const getList = () =>{
|
||||||
docList({
|
docList({
|
||||||
userId: userInfo.userId,
|
createUser: userInfo.userId,
|
||||||
dataset_id: dataset_id.value
|
datasetId: dataset_id.value,
|
||||||
|
edustage: curNode.edustage,
|
||||||
|
edusubject: curNode.edusubject
|
||||||
}).then( res =>{
|
}).then( res =>{
|
||||||
fileList.value = res.rows
|
fileList.value = res.rows
|
||||||
Object.assign(curFile, fileList.value[0])
|
Object.assign(curFile, fileList.value[0])
|
||||||
|
@ -239,6 +243,7 @@ onUnmounted(() => {
|
||||||
.robot {
|
.robot {
|
||||||
background: #409EFF;
|
background: #409EFF;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.replace-item{
|
.replace-item{
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -332,4 +337,13 @@ onUnmounted(() => {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.v-md-editor){
|
||||||
|
background-color: #409EFF;
|
||||||
|
}
|
||||||
|
:deep(.github-markdown-body) {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -137,7 +137,9 @@ const curFile = reactive({})
|
||||||
const getList = () => {
|
const getList = () => {
|
||||||
docList({
|
docList({
|
||||||
createUser: userInfo.userId,
|
createUser: userInfo.userId,
|
||||||
datasetId: dataset_id.value
|
datasetId: dataset_id.value,
|
||||||
|
edustage: curNode.edustage,
|
||||||
|
edusubject: curNode.edusubject
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
fileList.value = [...res.rows]
|
fileList.value = [...res.rows]
|
||||||
if(res.rows.length){
|
if(res.rows.length){
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
<div class="container-right-header flex">
|
<div class="container-right-header flex">
|
||||||
<el-dropdown @command="changeTemplate" :hide-on-click="false">
|
<el-dropdown @command="changeTemplate" :hide-on-click="false">
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
{{ curTemplate.name }}
|
{{ curTemplate.ex3 ? `平台-${curTemplate.name}` : `个人-${curTemplate.name}` }}
|
||||||
<i class="iconfont icon-xiangxia"></i>
|
<i class="iconfont icon-xiangxia"></i>
|
||||||
</span>
|
</span>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<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-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
<el-select v-model="curMode" placeholder="Select" class="mr-4 w-30">
|
<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-option v-for="item in modeOptions" :key="item.value" :disabled="item.disabled" :label="item.label" :value="item.value" />
|
||||||
</el-select>
|
</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>
|
||||||
<el-button type="primary" link :disabled="!(templateList.length)" @click="onAdd">
|
<el-button type="primary" link :disabled="!(templateList.length)" @click="onAdd">
|
||||||
<i class="iconfont icon-jiahao"></i>
|
<i class="iconfont icon-jiahao"></i>
|
||||||
添加提示词
|
{{ curTemplate.ex3 == 1 ? '复制并创建个人模板' : '添加提示词' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" :disabled="!(childTempList.length)" @click="getCompletion">一键研读</el-button>
|
<el-button type="primary" :disabled="!(childTempList.length)" @click="getCompletion">一键研读</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue