认证清单的编号单选按钮
This commit is contained in:
+7
-1
@@ -66,7 +66,7 @@
|
|||||||
:scroll="{x: '100%',y:'calc(100vh - 300px)'}"
|
:scroll="{x: '100%',y:'calc(100vh - 300px)'}"
|
||||||
:data-source="dataList"
|
:data-source="dataList"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange ,columnTitle:' ' , type:'radio'}"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange ,columnTitle:' '}"
|
||||||
:loading="loading">
|
:loading="loading">
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -204,7 +204,13 @@
|
|||||||
},
|
},
|
||||||
onSelectChange(value, row) {
|
onSelectChange(value, row) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
|
if (this.selectedRowKeys.length > 1) {
|
||||||
|
this.selectedRowKeys.shift()
|
||||||
|
}
|
||||||
this.selectedRowList = row
|
this.selectedRowList = row
|
||||||
|
if (this.selectedRowList.length > 1) {
|
||||||
|
this.selectedRowList.shift()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user