[update 流程详情] 非进行中的复选框禁用

This commit is contained in:
danshihao
2024-09-11 11:57:15 +08:00
parent 9f986354ff
commit cc546eb289
+10 -1
View File
@@ -41,7 +41,7 @@
:can-drag="true"
:loading="loading"
:rowKey="record => {return record.id + ',' + (record.taskId || '')}"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps: getCheckboxProps }"
:pagination="ipagination"
:scroll="{x: '100%', y: yScrollHeight}"
@change="handleTableChange">
@@ -262,6 +262,15 @@ export default {
}
},
methods: {
// 表格复选框props
getCheckboxProps (record) {
return {
props: {
// 不是进行中的禁用复选框 1进行中 2已完成
disabled: record.finishFlag + '' !== '1'
}
}
},
loadData (arg) {
if (!this.url.list) {
this.$message.warning('请设置url.list属性!')