fix: 修改文案
This commit is contained in:
parent
2087399e47
commit
289e12ccdf
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="生成关联问题"
|
title="生成问题"
|
||||||
v-model="dialogVisible"
|
v-model="dialogVisible"
|
||||||
width="600"
|
width="600"
|
||||||
class="select-dataset-dialog"
|
class="select-dataset-dialog"
|
||||||
@ -9,7 +9,7 @@
|
|||||||
>
|
>
|
||||||
<template #header="{ titleId, titleClass }">
|
<template #header="{ titleId, titleClass }">
|
||||||
<div class="my-header flex">
|
<div class="my-header flex">
|
||||||
<h4 :id="titleId" :class="titleClass">生成关联问题</h4>
|
<h4 :id="titleId" :class="titleClass">生成问题</h4>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="content-height">
|
<div class="content-height">
|
||||||
@ -174,7 +174,7 @@ const submitHandle = async (formEl: FormInstance) => {
|
|||||||
prompt.save(user.userInfo?.id as string, form.value)
|
prompt.save(user.userInfo?.id as string, form.value)
|
||||||
const data = { ...form.value, document_id_list: documentIdList.value }
|
const data = { ...form.value, document_id_list: documentIdList.value }
|
||||||
documentApi.batchGenerateRelated(id, data).then(() => {
|
documentApi.batchGenerateRelated(id, data).then(() => {
|
||||||
MsgSuccess('生成关联问题成功')
|
MsgSuccess('生成问题成功')
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
向量化
|
向量化
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button @click="openGenerateDialog()" :disabled="multipleSelection.length === 0">
|
<el-button @click="openGenerateDialog()" :disabled="multipleSelection.length === 0">
|
||||||
关联问题
|
生成问题
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button @click="openBatchEditDocument" :disabled="multipleSelection.length === 0">
|
<el-button @click="openBatchEditDocument" :disabled="multipleSelection.length === 0">
|
||||||
设置
|
设置
|
||||||
@ -636,7 +636,7 @@ function batchGenerateRelated() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
documentApi.batchGenerateRelated(id, arr, loading).then(() => {
|
documentApi.batchGenerateRelated(id, arr, loading).then(() => {
|
||||||
MsgSuccess('批量关联问题成功')
|
MsgSuccess('批量生成问题成功')
|
||||||
multipleTableRef.value?.clearSelection()
|
multipleTableRef.value?.clearSelection()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="生成关联问题"
|
title="生成问题"
|
||||||
v-model="dialogVisible"
|
v-model="dialogVisible"
|
||||||
width="600"
|
width="600"
|
||||||
class="select-dataset-dialog"
|
class="select-dataset-dialog"
|
||||||
@ -9,7 +9,7 @@
|
|||||||
>
|
>
|
||||||
<template #header="{ titleId, titleClass }">
|
<template #header="{ titleId, titleClass }">
|
||||||
<div class="my-header flex">
|
<div class="my-header flex">
|
||||||
<h4 :id="titleId" :class="titleClass">生成关联问题</h4>
|
<h4 :id="titleId" :class="titleClass">生成问题</h4>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="content-height">
|
<div class="content-height">
|
||||||
@ -174,7 +174,7 @@ const submitHandle = async (formEl: FormInstance) => {
|
|||||||
|
|
||||||
const data = { ...form.value, paragraph_id_list: paragraphIdList.value }
|
const data = { ...form.value, paragraph_id_list: paragraphIdList.value }
|
||||||
paragraphApi.batchGenerateRelated(id, documentId, data).then(() => {
|
paragraphApi.batchGenerateRelated(id, documentId, data).then(() => {
|
||||||
MsgSuccess('生成关联问题成功')
|
MsgSuccess('生成问题成功')
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
|
|||||||
@ -123,7 +123,7 @@
|
|||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item @click="openGenerateDialog(item)">
|
<el-dropdown-item @click="openGenerateDialog(item)">
|
||||||
<el-icon><Connection /></el-icon>
|
<el-icon><Connection /></el-icon>
|
||||||
生成关联问题</el-dropdown-item
|
生成问题</el-dropdown-item
|
||||||
>
|
>
|
||||||
<el-dropdown-item @click="openSelectDocumentDialog(item)">
|
<el-dropdown-item @click="openSelectDocumentDialog(item)">
|
||||||
<AppIcon iconName="app-migrate"></AppIcon>
|
<AppIcon iconName="app-migrate"></AppIcon>
|
||||||
@ -147,7 +147,7 @@
|
|||||||
|
|
||||||
<div class="mul-operation border-t w-full" v-if="isBatch === true">
|
<div class="mul-operation border-t w-full" v-if="isBatch === true">
|
||||||
<el-button :disabled="multipleSelection.length === 0" @click="openGenerateDialog()">
|
<el-button :disabled="multipleSelection.length === 0" @click="openGenerateDialog()">
|
||||||
生成关联问题
|
生成问题
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button :disabled="multipleSelection.length === 0" @click="openSelectDocumentDialog()">
|
<el-button :disabled="multipleSelection.length === 0" @click="openSelectDocumentDialog()">
|
||||||
迁移
|
迁移
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user