|
@@ -166,6 +166,7 @@
|
|
|
:rowSelection="{
|
|
|
selectedRowKeys: selectedRowKeys,
|
|
|
onChange: onSelectChange,
|
|
|
+ onSelect: onSelect,
|
|
|
getCheckboxProps: (record) => ({
|
|
|
props: {
|
|
|
disabled: record.id == 'amount', // 禁选的条件为:合计行不可选
|
|
@@ -826,6 +827,15 @@ import ProjectImportListModal from '../projectImportList/modules/ProjectImportLi
|
|
|
this.selectedRowKeys = selectedRowKeys;
|
|
|
this.selectionRows = selectionRows;
|
|
|
},
|
|
|
+ onSelect(record, selected, selectedRows, nativeEvent){
|
|
|
+ console.log(record, selected, selectedRows, nativeEvent)
|
|
|
+ console.log(record.children)
|
|
|
+ if (record.children == undefined) {
|
|
|
+ // 选中二级,一级禁选
|
|
|
+ } else {
|
|
|
+ // 选中一级,二级禁选
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|