Commit 7a033a91 by xinla

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

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