Commit 7a033a91 by xinla

\{([\r\b\n\s\w\-"':=]* type: 'warning') {confirmButtonText: '确定',cancelButtonText: '取消',$1

1 parent 98bc2a79
......@@ -127,9 +127,7 @@ export default {
/** 删除按钮操作 */
remove(id) {
const operIds = id || this.ids + ''
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
})
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(function () {
return api.remove(operIds)
})
......
......@@ -469,6 +469,8 @@ export default {
remove(id) {
const Ids = id || this.selected + ''
this.$confirm('是否确认删除当前' + this.typeTitle[this.type] + '?该操作不可撤销,请谨慎操作。', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(function () {
......
......@@ -637,6 +637,8 @@ export default {
let activeObject = canvas.getActiveObject()
if (activeObject) {
this.$confirm('是否确认删除吗?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
canvas.remove(activeObject)
......
......@@ -346,6 +346,8 @@ export default {
const Ids = id || this.selected + ''
let _this = this
this.$confirm('是否确认删除当前' + this.typeTitle[this.type] + '?该操作不可撤销,请谨慎操作。', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(function () {
......
......@@ -168,9 +168,7 @@ export default {
/** 删除按钮操作 */
remove(id) {
// const operIds = id || this.ids + "";
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
})
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(() => {
return remove(id)
})
......@@ -184,9 +182,7 @@ export default {
this.msgInfo('请勾选需要删除的项!')
return
}
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
})
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(() => {
return remove(this.ids.join(','))
})
......
......@@ -104,6 +104,8 @@ export default {
remove(id) {
const operIds = id || this.ids + ''
this.$confirm('是否确认删除吗?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
confirmButtonText: '确定',
cancelButtonText: '取消',
......
......@@ -460,7 +460,8 @@ export default {
document.getElementById('copyNode').click()
},
empty() {
this.$confirm('确定要清空所有组件吗?', '提示', { type: 'warning' }).then(() => {
this.$confirm('确定要清空所有组件吗?', '提示', {confirmButtonText: '确定',
cancelButtonText: '取消', type: 'warning' }).then(() => {
this.drawingList = []
})
},
......
......@@ -133,9 +133,7 @@ export default {
/** 删除按钮操作 */
remove(id) {
// const operIds = id || this.ids + "";
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
})
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(() => {
return remove(id)
})
......@@ -149,9 +147,7 @@ export default {
this.msgInfo('请勾选需要删除的项!')
return
}
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
})
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(() => {
return remove(this.ids.join(','))
})
......
......@@ -327,6 +327,8 @@ export default {
return
}
this.$confirm('是否确认更改当前成员角色?确认后即时生效', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
......@@ -385,9 +387,7 @@ export default {
this.multipleSelection = val
},
departRemove(id) {
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
})
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(function () {
return api.removeDepart(id)
})
......
......@@ -113,9 +113,7 @@ export default {
},
remove(id) {
const ids = id || this.ids + ''
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
})
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(function () {
return remove(ids)
})
......
......@@ -103,6 +103,8 @@ export default {
// const operIds = id || this.ids + ''
this.$confirm('是否确认删除?该操作不可撤销,请谨慎操作。', {
title: '警告',
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(function () {
......
......@@ -325,6 +325,8 @@ export default {
},
startOrStop({ id, status }) {
this.$confirm(`确认${{ 0: '停用', 1: '启用' }[status]}吗?`, '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
startOrStop({
......@@ -338,6 +340,8 @@ export default {
},
remove(id) {
this.$confirm('是否确认删除吗?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
id = id || this.selectedIds.join(',')
......
......@@ -265,6 +265,8 @@ export default {
},
remove(id) {
this.$confirm('是否确认删除吗?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
id = id || this.selectedIds.join(',')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!