认证清单的编号单选按钮

This commit is contained in:
范强强
2023-04-16 16:18:10 +08:00
parent 7182cceabf
commit 1d41e7299c
@@ -66,7 +66,7 @@
:scroll="{x: '100%',y:'calc(100vh - 300px)'}"
:data-source="dataList"
:pagination="false"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange ,columnTitle:' ' , type:'radio'}"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange ,columnTitle:' '}"
:loading="loading">
</a-table>
</div>
@@ -204,7 +204,13 @@
},
onSelectChange(value, row) {
this.selectedRowKeys = value
if (this.selectedRowKeys.length > 1) {
this.selectedRowKeys.shift()
}
this.selectedRowList = row
if (this.selectedRowList.length > 1) {
this.selectedRowList.shift()
}
},
handleSubmit() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {