|
@@ -176,6 +176,10 @@
|
|
|
|
|
|
<a-row style="margin-bottom:15px;margin-top:12px">
|
|
|
<a-col :span="24">
|
|
|
+ <!-- {
|
|
|
+ selectedRowKeys: selectedRowKeys,
|
|
|
+ onChange: onSelectChange
|
|
|
+ } -->
|
|
|
<div class="tableBody" style="min-height:200px;padding-bottom: 50px">
|
|
|
<a-table
|
|
|
:columns="columns"
|
|
@@ -190,10 +194,7 @@
|
|
|
ref="accountTable"
|
|
|
rowKey="id"
|
|
|
:scroll="{ x: 3000 }"
|
|
|
- :rowSelection="{
|
|
|
- selectedRowKeys: selectedRowKeys,
|
|
|
- onChange: onSelectChange
|
|
|
- }"
|
|
|
+ :rowSelection="rowSelection"
|
|
|
>
|
|
|
<span slot="items" slot-scope="text, record">
|
|
|
{{
|
|
@@ -1016,6 +1017,18 @@ export default {
|
|
|
var d = myDate.getDate() //获取当前日(1-31)
|
|
|
var day = myDate.getHours()
|
|
|
return day
|
|
|
+ },
|
|
|
+ rowSelection() {
|
|
|
+ return {
|
|
|
+ onChange: (selectedRowKeys, selectedRows) => {
|
|
|
+ this.selectedRowKeys = selectedRowKeys
|
|
|
+ },
|
|
|
+ getCheckboxProps: record => ({
|
|
|
+ props: {
|
|
|
+ disabled: record.isHaveItem === 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|