Commit e9d85c5d by wangshuangqing

多选框添加禁用

parent 626319c0
......@@ -2,7 +2,7 @@
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditTime: 2023-03-01 17:39:09
* @LastEditTime: 2023-03-02 10:02:29
* @Description:
-->
<template>
......@@ -150,7 +150,11 @@
default-expand-all
size="mini"
>
<el-table-column type="selection" width="55" />
<el-table-column
type="selection"
:selectable="selectEnable"
width="55"
/>
<el-table-column
show-overflow-tooltip
......@@ -622,6 +626,15 @@ export default {
tempMedicalCheckout: {},
longMedical: {},
});
//表格禁用
const selectEnable = (row, rowIndex) => {
if (row.isForbidden == false) {
return false; // 不禁用
} else {
return true; //禁用
}
};
//更多
const goSeeScore = (row) => {
console.log("state.tableData", state.tableData);
......@@ -1081,6 +1094,7 @@ export default {
goSeeScore,
goSeefromRef,
goSeecolse,
selectEnable,
};
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment