Merge pull request 'fix : 将"话术"相关文案统一改为"知识"' (#217) from dj into master

Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/217
This commit is contained in:
2024-12-02 05:09:33 +00:00
3 changed files with 10 additions and 11 deletions

1
auto-imports.d.ts vendored
View File

@@ -6,7 +6,6 @@ export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp'] const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef'] const customRef: typeof import('vue')['customRef']

View File

@@ -265,7 +265,7 @@ const headBtnClick = (key) => {
} }
const handleAdd = () => { const handleAdd = () => {
formDialogRef.value.openOrCloseDialog(true) formDialogRef.value.openOrCloseDialog(true)
dialogTitle.value = "新增话术"; dialogTitle.value = "新增知识";
dialogType.value = "add"; dialogType.value = "add";
nextTick(() => { nextTick(() => {
formDialogRef.value.getFormInstance().setValues({}) formDialogRef.value.getFormInstance().setValues({})
@@ -277,7 +277,7 @@ const handleAdd = () => {
const handleEdit = (row) => { const handleEdit = (row) => {
formDialogRef.value.openOrCloseDialog(true) formDialogRef.value.openOrCloseDialog(true)
getDetail(row) getDetail(row)
dialogTitle.value = "编辑话术"; dialogTitle.value = "编辑知识";
dialogType.value = "edit"; dialogType.value = "edit";
} }
const getDetail = (row) => { const getDetail = (row) => {
@@ -314,7 +314,7 @@ const deleteContactMethod = (verbalId) => {
} }
const handleMoreDelete = () => { const handleMoreDelete = () => {
if(verbalIds.value){ if(verbalIds.value){
ElMessageBox.confirm(`确认删除选择的话术吗?`, '系统提示', { ElMessageBox.confirm(`确认删除选择的知识吗?`, '系统提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@@ -322,11 +322,11 @@ const handleMoreDelete = () => {
deleteContactMethod(verbalIds.value) deleteContactMethod(verbalIds.value)
}) })
}else{ }else{
ElMessage.warning("请选择要删除的话术") ElMessage.warning("请选择要删除的知识")
} }
} }
const handleSingleDelete = (row) => { const handleSingleDelete = (row) => {
ElMessageBox.confirm(`确认删除问题为${row.query}话术吗?`, '系统提示', { ElMessageBox.confirm(`确认删除问题为${row.query}知识吗?`, '系统提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'

View File

@@ -267,7 +267,7 @@ const headBtnClick = (key) => {
} }
const handleAdd = () => { const handleAdd = () => {
formDialogRef.value.openOrCloseDialog(true) formDialogRef.value.openOrCloseDialog(true)
dialogTitle.value = "新增话术"; dialogTitle.value = "新增知识";
dialogType.value = "add"; dialogType.value = "add";
nextTick(() => { nextTick(() => {
formDialogRef.value.getFormInstance().setValues({}) formDialogRef.value.getFormInstance().setValues({})
@@ -279,7 +279,7 @@ const handleAdd = () => {
const handleEdit = (row) => { const handleEdit = (row) => {
formDialogRef.value.openOrCloseDialog(true) formDialogRef.value.openOrCloseDialog(true)
getDetail(row) getDetail(row)
dialogTitle.value = "编辑话术"; dialogTitle.value = "编辑知识";
dialogType.value = "edit"; dialogType.value = "edit";
} }
const getDetail = (row) => { const getDetail = (row) => {
@@ -316,7 +316,7 @@ const deleteContactMethod = (verbalId) => {
} }
const handleMoreDelete = () => { const handleMoreDelete = () => {
if(verbalIds.value){ if(verbalIds.value){
ElMessageBox.confirm(`确认删除选择的话术吗?`, '系统提示', { ElMessageBox.confirm(`确认删除选择的知识吗?`, '系统提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@@ -324,11 +324,11 @@ const handleMoreDelete = () => {
deleteContactMethod(verbalIds.value) deleteContactMethod(verbalIds.value)
}) })
}else{ }else{
ElMessage.warning("请选择要删除的话术") ElMessage.warning("请选择要删除的知识")
} }
} }
const handleSingleDelete = (row) => { const handleSingleDelete = (row) => {
ElMessageBox.confirm(`确认删除问题为${row.query}话术吗?`, '系统提示', { ElMessageBox.confirm(`确认删除问题为${row.query}知识吗?`, '系统提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'