mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 18:22:11 +08:00
修复分支判定;
优化代码生成器,统一删除提示
This commit is contained in:
@@ -57,9 +57,11 @@
|
||||
import permissionBtn from '@/components/PermissionBtn'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import elDragDialog from '@/directive/el-dragDialog'
|
||||
import extend from "@/extensions/delRows.js"
|
||||
export default {
|
||||
name: '{TableName}',
|
||||
components: { Sticky, permissionBtn, Pagination },
|
||||
mixins: [extend],
|
||||
directives: {
|
||||
waves,
|
||||
elDragDialog
|
||||
@@ -242,18 +244,7 @@
|
||||
})
|
||||
},
|
||||
handleDelete(rows) { // 多行删除
|
||||
{TableName}s.del(rows.map(u => u.id)).then(() => {
|
||||
this.$notify({
|
||||
title: '成功',
|
||||
message: '删除成功',
|
||||
type: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
rows.forEach(row => {
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
})
|
||||
})
|
||||
this.delrows({TableName}s, rows)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user