fix lint error

pull/484/head
Smit Thakkar 2020-03-02 16:50:05 +04:00
parent e413be780e
commit 06bd44a7b2
1 changed files with 14 additions and 15 deletions

View File

@ -140,6 +140,20 @@ export default {
return {
selectedRowKeys: [],
selectedRows: [],
rowSelection: {
onChange: (selectedRowKeys, selectedRows) => {
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
this.selectedRowKeys = selectedRowKeys
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
this.selectedRows = selectedRows
},
getCheckboxProps: record => ({
props: {
disabled: record.rejected || record.archived,
name: record.id
}
})
},
columns: [
{
dataIndex: 'updated',
@ -197,21 +211,6 @@ export default {
computed: {
hasSelected () {
return this.selectedRowKeys.length > 0
},
rowSelection () {
const { selectedRowKeys } = this
return {
onChange: (selectedRowKeys, selectedRows) => {
this.selectedRowKeys = selectedRowKeys
this.selectedRows = selectedRows
},
getCheckboxProps: record => ({
props: {
disabled: record.rejected || record.archived,
name: record.id
}
})
}
}
},
methods: {