Merge branch 'dev' of https://gitee.com/red-future---jilin-g/admin-ui into dev
This commit is contained in:
@@ -33,21 +33,17 @@
|
||||
placeholder="留空则使用系统默认提示词模板,如:你是专业的客服顾问,请用温暖关心的语气回答用户问题..."
|
||||
/>
|
||||
<div style="color: #909399; font-size: 12px; margin-top: 5px;">
|
||||
提示:系统会自动引用知识库内容,您只需专注于业务话术即可。留空将使用默认模板,创建后也可通过"配置提示词"按钮修改
|
||||
提示:系统会自动引用知识库内容,您只需专注于业务话术即可。留空将使用默认模板,创建后也可在此修改
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="开场白" prop="opener">
|
||||
<el-form-item label="开场白" prop="greeting">
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-model="formData.opener"
|
||||
:rows="3"
|
||||
placeholder="留空则使用默认开场白,用户进入对话时首先显示的内容"
|
||||
maxlength="200"
|
||||
show-word-limit
|
||||
v-model="formData.greeting"
|
||||
:rows="6"
|
||||
placeholder="WebSocket连接时发送的开场白,如:你好,有什么可以帮你的吗?"
|
||||
/>
|
||||
<div style="color: #909399; font-size: 12px; margin-top: 5px;">
|
||||
提示:留空将使用默认开场白,创建后也可通过"配置提示词"按钮修改
|
||||
</div>
|
||||
<div class="form-tip">留空则不发送开场白</div>
|
||||
</el-form-item>
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
@@ -75,7 +71,7 @@ interface DialogFormData {
|
||||
accountName: string;
|
||||
platform: string;
|
||||
prompt?: string;
|
||||
opener?: string;
|
||||
greeting?: string;
|
||||
status: number;
|
||||
creator: '';
|
||||
modifier: '';
|
||||
@@ -94,7 +90,7 @@ const state = reactive({
|
||||
accountName: '',
|
||||
platform: '',
|
||||
prompt: '',
|
||||
opener: '',
|
||||
greeting: '',
|
||||
status: 1,
|
||||
creator: '',
|
||||
modifier: '',
|
||||
@@ -190,7 +186,7 @@ const resetForm = () => {
|
||||
accountName: '',
|
||||
platform: '',
|
||||
prompt: '',
|
||||
opener: '',
|
||||
greeting: '',
|
||||
status: 1,
|
||||
creator: '',
|
||||
modifier: '',
|
||||
|
||||
@@ -70,14 +70,11 @@
|
||||
{{ formatTime(row.updatedAt) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="300">
|
||||
<el-table-column label="操作" width="150">
|
||||
<template #default="scope">
|
||||
<el-button style="color: deepskyblue" size="small" text type="primary" @click="onOpenEditRole(scope.row)">
|
||||
<el-icon><ele-EditPen /></el-icon>修改
|
||||
</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>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -90,7 +87,6 @@
|
||||
/>
|
||||
</el-card>
|
||||
<EditAccount ref="editRoleRef" @refresh="getList" />
|
||||
<PromptConfig ref="promptConfigRef" @refresh="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -98,7 +94,6 @@
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import { ElMessageBox, ElMessage } from 'element-plus';
|
||||
import EditAccount from './component/editAccount.vue';
|
||||
import PromptConfig from './component/promptConfig.vue';
|
||||
import { addAccount, getaccountList, updatestate } from '/@/api/customerService/account';
|
||||
|
||||
// 定义类型接口
|
||||
@@ -147,7 +142,6 @@ const tableData = reactive<TableState>({
|
||||
|
||||
// 模板引用
|
||||
const editRoleRef = ref<InstanceType<typeof EditAccount>>();
|
||||
const promptConfigRef = ref<InstanceType<typeof PromptConfig>>();
|
||||
|
||||
/**
|
||||
* 获取客服账号列表
|
||||
@@ -295,12 +289,6 @@ const onOpenEditRole = (row: any) => {
|
||||
editRoleRef.value?.openDialog(row);
|
||||
};
|
||||
|
||||
/**
|
||||
* 打开提示词配置对话框
|
||||
*/
|
||||
const onOpenPromptConfig = (row: any) => {
|
||||
promptConfigRef.value?.openDialog(row);
|
||||
};
|
||||
|
||||
// 生命周期
|
||||
onMounted(() => {
|
||||
|
||||
@@ -54,7 +54,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||
// },
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://192.168.3.200:8808',
|
||||
target: 'http://localhost:8808',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user