确认窗体
This commit is contained in:
@@ -59,6 +59,33 @@ export default {
|
||||
type: "warning",
|
||||
})
|
||||
},
|
||||
// 删除确认窗体(UI规范)
|
||||
delConfirm(title) {
|
||||
return MessageBox.confirm("确定删除后不可恢复该数据", `是否确认删除 【${title}】 数据项?`, {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: "warning",
|
||||
showClose:false
|
||||
})
|
||||
},
|
||||
// 关闭页面确认窗体(UI规范)
|
||||
closeConfirm() {
|
||||
return MessageBox.confirm("确定关闭将不保留编辑内容", "是否确认要关闭页面?", {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: "warning",
|
||||
showClose:false
|
||||
})
|
||||
},
|
||||
// 确认窗体(UI规范)
|
||||
newConfirm(content,title) {
|
||||
return MessageBox.confirm(content, title, {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: "warning",
|
||||
showClose:false
|
||||
})
|
||||
},
|
||||
// 提交内容
|
||||
prompt(content) {
|
||||
return MessageBox.prompt(content, "系统提示", {
|
||||
|
||||
Reference in New Issue
Block a user