|
|
@@ -264,8 +264,9 @@
|
|
|
style="width: 100%;margin-top: 15px;"
|
|
|
height="400px"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
+
|
|
|
>
|
|
|
- <el-table-column type="selection"></el-table-column>
|
|
|
+ <el-table-column type="selection" :selectable="handleSelectable"></el-table-column>
|
|
|
<el-table-column label="是否扫描">
|
|
|
<template v-slot="{ row }">
|
|
|
<el-switch
|
|
|
@@ -407,6 +408,10 @@ export default {
|
|
|
...mapGetters(["orgId", "orgName"]),
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSelectable(row) {
|
|
|
+ // 在这里根据特定条件判断是否禁用多选框行
|
|
|
+ return this.getshenglianshe(row); // 返回 true 禁用,返回 false 不禁用
|
|
|
+ },
|
|
|
// 监听行选中事件,将选中的行数据存入 selectedRows 数组中
|
|
|
handleSelectionChange(selection) {
|
|
|
// console.log(selection, "selection");
|