diff --git a/src/components/ProcessDetailList.vue b/src/components/ProcessDetailList.vue index b676657..b87e205 100644 --- a/src/components/ProcessDetailList.vue +++ b/src/components/ProcessDetailList.vue @@ -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属性!')