mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 08:22:41 +08:00
【功能新增】AI:知识库新建时,模型选择改成 select 下拉
This commit is contained in:
parent
9376374ca9
commit
8a7e2291e7
@ -129,29 +129,6 @@ const initData = async () => {
|
|||||||
// 进入下一步
|
// 进入下一步
|
||||||
goToNextStep()
|
goToNextStep()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO @芋艿:为了开发方便,强制设置
|
|
||||||
if (false) {
|
|
||||||
formData.value.list = [
|
|
||||||
{
|
|
||||||
name: '项目说明文档.pdf',
|
|
||||||
url: 'https://static.iocoder.cn/README_yudao.md',
|
|
||||||
segments: []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
goToNextStep()
|
|
||||||
}
|
|
||||||
if (false) {
|
|
||||||
formData.value.list = [
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: '项目说明文档.pdf',
|
|
||||||
url: 'https://static.iocoder.cn/README_yudao.md',
|
|
||||||
segments: []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
goToNextStep()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 切换到下一步 */
|
/** 切换到下一步 */
|
||||||
|
@ -39,7 +39,12 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="平台" prop="platform">
|
<el-form-item label="平台" prop="platform">
|
||||||
<el-select v-model="queryParams.platform" placeholder="请选择平台" clearable class="!w-240px">
|
<el-select
|
||||||
|
v-model="queryParams.platform"
|
||||||
|
placeholder="请选择平台"
|
||||||
|
clearable
|
||||||
|
class="!w-240px"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in getStrDictOptions(DICT_TYPE.AI_PLATFORM)"
|
v-for="dict in getStrDictOptions(DICT_TYPE.AI_PLATFORM)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
@ -62,24 +67,6 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
||||||
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
@click="openForm('create')"
|
|
||||||
v-hasPermi="['ai:write:create']"
|
|
||||||
>
|
|
||||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
||||||
</el-button>
|
|
||||||
<!-- TODO @YunaiV 目前没有导出接口,需要导出吗 -->
|
|
||||||
<el-button
|
|
||||||
type="success"
|
|
||||||
plain
|
|
||||||
@click="handleExport"
|
|
||||||
:loading="exportLoading"
|
|
||||||
v-hasPermi="['ai:write:export']"
|
|
||||||
>
|
|
||||||
<Icon icon="ep:download" class="mr-5px" /> 导出
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
@ -143,15 +130,6 @@
|
|||||||
<el-table-column label="错误信息" align="center" prop="errorMessage" />
|
<el-table-column label="错误信息" align="center" prop="errorMessage" />
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- TODO @YunaiV 目前没有修改接口,写作要可以更改吗-->
|
|
||||||
<el-button
|
|
||||||
link
|
|
||||||
type="primary"
|
|
||||||
@click="openForm('update', scope.row.id)"
|
|
||||||
v-hasPermi="['ai:write:update']"
|
|
||||||
>
|
|
||||||
编辑
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -225,15 +203,6 @@ const resetQuery = () => {
|
|||||||
handleQuery()
|
handleQuery()
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 新增方法,跳转到写作页面 **/
|
|
||||||
const openForm = (type: string, id?: number) => {
|
|
||||||
switch (type) {
|
|
||||||
case 'create':
|
|
||||||
router.push('/ai/write')
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
const handleDelete = async (id: number) => {
|
const handleDelete = async (id: number) => {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user