|
@@ -611,8 +611,9 @@ export default {
|
|
|
})
|
|
})
|
|
|
return bs
|
|
return bs
|
|
|
},
|
|
},
|
|
|
- handleActionEvent(button, index) {
|
|
|
|
|
- index = index+ this.currentPage * 10 - 10
|
|
|
|
|
|
|
+ handleActionEvent(button, buttonIndex) {
|
|
|
|
|
+ // 起始下标
|
|
|
|
|
+ let index = this.currentPage * 10 - 10 + buttonIndex
|
|
|
this.actionCode = button.key === 'custom' ? (button.code || button.key + index) : button.key
|
|
this.actionCode = button.key === 'custom' ? (button.code || button.key + index) : button.key
|
|
|
this.actionPosition = button.position || 'toolbar'
|
|
this.actionPosition = button.position || 'toolbar'
|
|
|
// 前置事件
|
|
// 前置事件
|
|
@@ -634,7 +635,7 @@ export default {
|
|
|
this.handleDialogMode(index)
|
|
this.handleDialogMode(index)
|
|
|
break
|
|
break
|
|
|
case 'consult':
|
|
case 'consult':
|
|
|
- // 查询按钮事件
|
|
|
|
|
|
|
+ // 查阅按钮事件
|
|
|
this.handleDialogMode(index)
|
|
this.handleDialogMode(index)
|
|
|
break
|
|
break
|
|
|
case 'remove':
|
|
case 'remove':
|
|
@@ -694,8 +695,9 @@ export default {
|
|
|
const selection = []
|
|
const selection = []
|
|
|
if (position === 'toolbar' && this.mode !== 'block') {
|
|
if (position === 'toolbar' && this.mode !== 'block') {
|
|
|
if (this.multipleSelection && this.multipleSelection.length > 0) {
|
|
if (this.multipleSelection && this.multipleSelection.length > 0) {
|
|
|
|
|
+ let startIndex = this.currentPage * 10 - 10
|
|
|
this.multipleSelection.forEach(row => {
|
|
this.multipleSelection.forEach(row => {
|
|
|
- selection.push(row.$index)
|
|
|
|
|
|
|
+ selection.push(row.$index + startIndex)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|