image.png
<el-table ref="multipleTable" @select-all="selectAll" @selection-change="tableSelected" @select="select" :data="tableData" border style="width: 100%" size="small" v-loading="tableLoading">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column prop="organization_name" label="纳税人名称"></el-table-column>
<el-table-column prop="credit_rating" label="纳税人识别号" width=""></el-table-column>
<el-table-column prop="earliest_effective_date" label="增值税专票地址,电话"></el-table-column>
<el-table-column prop="uploader" label="增值税专票开户行及账号"></el-table-column>
</el-table>
select(selection, row) {
if (selection.length > 1) {
let del_row = selection.shift()
this.$refs.multipleTable.toggleRowSelection(del_row, false)
}
},
selectAll(selection) {
if (selection.length > 1) {
selection.length = 1
}
},
网友评论