mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
Merge branch 'main' of github.com:maxkb-dev/maxkb
This commit is contained in:
commit
9b25674ef4
|
|
@ -37,8 +37,8 @@
|
|||
<el-button text disabled v-if="buttonData?.vote_status === '1'">
|
||||
<AppIcon iconName="app-oppose-color"></AppIcon>
|
||||
</el-button>
|
||||
<EditContentDialog ref="EditContentDialogRef" />
|
||||
<EditMarkDialog ref="EditMarkDialogRef" @refresh="refresh" />
|
||||
<EditContentDialog ref="EditContentDialogRef" @refresh="refreshContent" />
|
||||
<EditMarkDialog ref="EditMarkDialogRef" @refresh="refreshMark" />
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
|
|
@ -76,9 +76,13 @@ function editMark(data: any) {
|
|||
EditMarkDialogRef.value.open(data)
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
function refreshMark() {
|
||||
buttonData.value.improve_paragraph_id_list = []
|
||||
emit('update:data', buttonData.value)
|
||||
}
|
||||
function refreshContent(data: any) {
|
||||
buttonData.value = data
|
||||
emit('update:data', buttonData.value)
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
<MdRenderer :source="item.answer_text"></MdRenderer>
|
||||
</el-card>
|
||||
<div class="flex-between mt-8" v-if="log">
|
||||
<LogOperationButton :data="item" :applicationId="appId" />
|
||||
<LogOperationButton v-model:data="chatList[index]" :applicationId="appId" />
|
||||
</div>
|
||||
|
||||
<div class="flex-between mt-8" v-else>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,12 @@
|
|||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="保存至文档" prop="document">
|
||||
<el-cascader v-model="form.document" :props="LoadDocument" placeholder="请选择文档" class="w-full">
|
||||
<el-cascader
|
||||
v-model="form.document"
|
||||
:props="LoadDocument"
|
||||
placeholder="请选择文档"
|
||||
class="w-full"
|
||||
>
|
||||
<template #default="{ node, data }">
|
||||
<span class="flex align-center">
|
||||
<AppAvatar v-if="!node.isLeaf" class="mr-12" shape="square" :size="24">
|
||||
|
|
@ -69,7 +74,7 @@ const {
|
|||
params: { id }
|
||||
} = route as any
|
||||
|
||||
|
||||
const emit = defineEmits(['refresh'])
|
||||
const formRef = ref()
|
||||
|
||||
const dialogVisible = ref<boolean>(false)
|
||||
|
|
@ -159,6 +164,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|||
loading
|
||||
)
|
||||
.then((res: any) => {
|
||||
emit('refresh', res.data)
|
||||
dialogVisible.value = false
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
@row-click="rowClickHandle"
|
||||
v-loading="loading"
|
||||
:row-class-name="setRowClass"
|
||||
class="log-table"
|
||||
>
|
||||
<el-table-column prop="abstract" label="摘要" show-overflow-tooltip />
|
||||
<el-table-column prop="chat_record_count" label="对话提问数" align="right" />
|
||||
|
|
@ -245,4 +246,8 @@ onMounted(() => {
|
|||
getDetail()
|
||||
})
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
||||
<style lang="scss" scoped>
|
||||
.log-table tr {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
destroy-on-close
|
||||
>
|
||||
<el-row v-loading="loading">
|
||||
<el-col :span="16" class="p-24">
|
||||
<el-col :span="16">
|
||||
<el-scrollbar>
|
||||
<div style="height: 350px">
|
||||
<div class="p-24" style="height: 350px">
|
||||
<div class="flex-between mb-16">
|
||||
<div class="bold title align-center">分段内容</div>
|
||||
<el-button text @click="isEdit = true" v-if="problemId && !isEdit">
|
||||
|
|
@ -20,8 +20,8 @@
|
|||
<ParagraphForm ref="paragraphFormRef" :data="detail" :isEdit="isEdit" />
|
||||
</div>
|
||||
|
||||
<div class="text-right" v-if="problemId && isEdit">
|
||||
<el-button @click.prevent="dialogVisible = false"> 取消 </el-button>
|
||||
<div class="text-right p-24 pt-0" v-if="problemId && isEdit">
|
||||
<el-button @click.prevent="isEdit = false"> 取消 </el-button>
|
||||
<el-button type="primary" :disabled="loading" @click="submitHandle"> 保存 </el-button>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
|
|
|
|||
Loading…
Reference in New Issue