refactor(dialog): 优化对话框组件的配置和交互

- 修改了多个组件的关闭对话框逻辑,设置 wrapperClosable 为 false
- 更新了多个组件的确认对话框逻辑,使用 $messageBox 替代 $confirm
- 调整了部分对话框的样式和布局
This commit is contained in:
陈昱达
2025-05-08 14:36:34 +08:00
parent fb5bcc16b9
commit 013bdb74b7
18 changed files with 182 additions and 123 deletions

View File

@@ -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 = [