mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 02:46:50 +08:00
refactor(dialog): 优化对话框组件的配置和交互
- 修改了多个组件的关闭对话框逻辑,设置 wrapperClosable 为 false - 更新了多个组件的确认对话框逻辑,使用 $messageBox 替代 $confirm - 调整了部分对话框的样式和布局
This commit is contained in:
@@ -178,21 +178,30 @@ export default {
|
||||
})
|
||||
},
|
||||
deleteKnowLedge(item) {
|
||||
this.$confirm('此操作将永久删除该知识库, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
datasetDelete({ id: item.id }).then(res => {
|
||||
if (res.content.result === '0') {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功!'
|
||||
})
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
})
|
||||
this.$messageBox(
|
||||
() => {
|
||||
datasetDelete({ id: item.id }).then(res => {
|
||||
if (res.content.result === '0') {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功!'
|
||||
})
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
},
|
||||
'此操作将永久删除该知识库, 是否继续?',
|
||||
'warning',
|
||||
'提示'
|
||||
)
|
||||
|
||||
// this.$confirm(, {
|
||||
// confirmButtonText: '确定',
|
||||
// cancelButtonText: '取消',
|
||||
// type: 'warning'
|
||||
// }).then(() => {
|
||||
//
|
||||
// })
|
||||
},
|
||||
getKnowledgeImage(index) {
|
||||
const images = [
|
||||
|
||||
Reference in New Issue
Block a user