删除配置提示词按钮,修改在editAccount中直接修改提示词和开场白

This commit is contained in:
Cold
2026-01-05 10:55:26 +08:00
parent d718129699
commit 6209c9a61e
5 changed files with 7 additions and 24 deletions

View File

@@ -2,8 +2,7 @@
ENV = 'development' ENV = 'development'
# 本地环境接口地址 # 本地环境接口地址
VITE_API_URL = 'http://192.168.3.200:8808/' VITE_API_URL = 'http://localhost:8808/'
# VITE_API_URL = 'http://localhost:8808/'
# VITE_API_URL = 'http://192.168.3.11:8808/'

View File

@@ -20,11 +20,7 @@ const service: AxiosInstance = axios.create({
// 配置新建第二个 axios 实例(新功能服务) // 配置新建第二个 axios 实例(新功能服务)
const newService: AxiosInstance = axios.create({ const newService: AxiosInstance = axios.create({
// baseURL: 'http://192.168.3.95:8000/', baseURL: 'http://localhost:8000/',
// baseURL: 'http://192.168.3.49:8000/',
// baseURL: 'http://localhost:8000/',
baseURL: 'http://192.168.3.200:8000/',
// baseURL: 'http://192.168.3.11:8000/',
timeout: 50000, timeout: 50000,
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
paramsSerializer: { paramsSerializer: {

View File

@@ -33,7 +33,7 @@
placeholder="留空则使用系统默认提示词模板,如:你是专业的客服顾问,请用温暖关心的语气回答用户问题..." placeholder="留空则使用系统默认提示词模板,如:你是专业的客服顾问,请用温暖关心的语气回答用户问题..."
/> />
<div style="color: #909399; font-size: 12px; margin-top: 5px;"> <div style="color: #909399; font-size: 12px; margin-top: 5px;">
提示系统会自动引用知识库内容您只需专注于业务话术即可留空将使用默认模板创建后也可通过"配置提示词"按钮修改 提示系统会自动引用知识库内容您只需专注于业务话术即可留空将使用默认模板创建后也可在此修改
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="开场白" prop="opener"> <el-form-item label="开场白" prop="opener">
@@ -46,7 +46,7 @@
show-word-limit show-word-limit
/> />
<div style="color: #909399; font-size: 12px; margin-top: 5px;"> <div style="color: #909399; font-size: 12px; margin-top: 5px;">
提示留空将使用默认开场白创建后也可通过"配置提示词"按钮修改 提示留空将使用默认开场白创建后也可在此修改
</div> </div>
</el-form-item> </el-form-item>
</el-collapse-item> </el-collapse-item>

View File

@@ -70,14 +70,11 @@
{{ formatTime(row.updatedAt) }} {{ formatTime(row.updatedAt) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="300"> <el-table-column label="操作" width="150">
<template #default="scope"> <template #default="scope">
<el-button style="color: deepskyblue" size="small" text type="primary" @click="onOpenEditRole(scope.row)"> <el-button style="color: deepskyblue" size="small" text type="primary" @click="onOpenEditRole(scope.row)">
<el-icon><ele-EditPen /></el-icon>修改 <el-icon><ele-EditPen /></el-icon>修改
</el-button> </el-button>
<el-button style="color: #e6a23c" size="small" text type="warning" @click="onOpenPromptConfig(scope.row)">
<el-icon><ele-SetUp /></el-icon>配置提示词
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -90,7 +87,6 @@
/> />
</el-card> </el-card>
<EditAccount ref="editRoleRef" @refresh="getList" /> <EditAccount ref="editRoleRef" @refresh="getList" />
<PromptConfig ref="promptConfigRef" @refresh="getList" />
</div> </div>
</template> </template>
@@ -98,7 +94,6 @@
import { ref, reactive, onMounted } from 'vue'; import { ref, reactive, onMounted } from 'vue';
import { ElMessageBox, ElMessage } from 'element-plus'; import { ElMessageBox, ElMessage } from 'element-plus';
import EditAccount from './component/editAccount.vue'; import EditAccount from './component/editAccount.vue';
import PromptConfig from './component/promptConfig.vue';
import { addAccount, getaccountList, updatestate } from '/@/api/customerService/account'; import { addAccount, getaccountList, updatestate } from '/@/api/customerService/account';
// 定义类型接口 // 定义类型接口
@@ -147,7 +142,6 @@ const tableData = reactive<TableState>({
// 模板引用 // 模板引用
const editRoleRef = ref<InstanceType<typeof EditAccount>>(); const editRoleRef = ref<InstanceType<typeof EditAccount>>();
const promptConfigRef = ref<InstanceType<typeof PromptConfig>>();
/** /**
* 获取客服账号列表 * 获取客服账号列表
@@ -295,12 +289,6 @@ const onOpenEditRole = (row: any) => {
editRoleRef.value?.openDialog(row); editRoleRef.value?.openDialog(row);
}; };
/**
* 打开提示词配置对话框
*/
const onOpenPromptConfig = (row: any) => {
promptConfigRef.value?.openDialog(row);
};
// 生命周期 // 生命周期
onMounted(() => { onMounted(() => {

View File

@@ -54,7 +54,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
// }, // },
proxy: { proxy: {
'/api': { '/api': {
target: 'http://192.168.3.200:8808', target: 'http://localhost:8808',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'), rewrite: (path) => path.replace(/^\/api/, '/api'),
}, },