Commit e9d85c5d by wangshuangqing

多选框添加禁用

parent 626319c0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wsq * @Author: wsq
* @Date: 2022-04-22 15:20:58 * @Date: 2022-04-22 15:20:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2023-03-01 17:39:09 * @LastEditTime: 2023-03-02 10:02:29
* @Description: * @Description:
--> -->
<template> <template>
...@@ -150,7 +150,11 @@ ...@@ -150,7 +150,11 @@
default-expand-all default-expand-all
size="mini" size="mini"
> >
<el-table-column type="selection" width="55" /> <el-table-column
type="selection"
:selectable="selectEnable"
width="55"
/>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
...@@ -622,6 +626,15 @@ export default { ...@@ -622,6 +626,15 @@ export default {
tempMedicalCheckout: {}, tempMedicalCheckout: {},
longMedical: {}, longMedical: {},
}); });
//表格禁用
const selectEnable = (row, rowIndex) => {
if (row.isForbidden == false) {
return false; // 不禁用
} else {
return true; //禁用
}
};
//更多 //更多
const goSeeScore = (row) => { const goSeeScore = (row) => {
console.log("state.tableData", state.tableData); console.log("state.tableData", state.tableData);
...@@ -1081,6 +1094,7 @@ export default { ...@@ -1081,6 +1094,7 @@ export default {
goSeeScore, goSeeScore,
goSeefromRef, goSeefromRef,
goSeecolse, 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