|
@@ -143,23 +143,14 @@ export default {
|
|
// 删除
|
|
// 删除
|
|
handleDel (row) {
|
|
handleDel (row) {
|
|
const _this = this
|
|
const _this = this
|
|
- this.$confirm({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '点击确定,该内容将会被删除,不可再恢复!',
|
|
|
|
- centered: true,
|
|
|
|
- onOk () {
|
|
|
|
- _this.spinning = true
|
|
|
|
- // let ids=[]
|
|
|
|
- // ids.push(row.id)
|
|
|
|
- deleteBatch([row.id]).then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- _this.$message.success(res.message)
|
|
|
|
- _this.$refs.table.refresh()
|
|
|
|
- _this.spinning = false
|
|
|
|
- } else {
|
|
|
|
- _this.spinning = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ _this.spinning = true
|
|
|
|
+ deleteBatch([row.id]).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ _this.$message.success(res.message)
|
|
|
|
+ _this.$refs.table.refresh()
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ } else {
|
|
|
|
+ _this.spinning = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|