From cc546eb28934be7b679f6d0eb623fd1ffc2961d2 Mon Sep 17 00:00:00 2001 From: danshihao Date: Wed, 11 Sep 2024 11:57:15 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=B5=81=E7=A8=8B=E8=AF=A6=E6=83=85]?= =?UTF-8?q?=20=E9=9D=9E=E8=BF=9B=E8=A1=8C=E4=B8=AD=E7=9A=84=E5=A4=8D?= =?UTF-8?q?=E9=80=89=E6=A1=86=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProcessDetailList.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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属性!')