删除配置提示词按钮,修改在editAccount中直接修改提示词和开场白
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user