[update 流程详情] 非进行中的复选框禁用
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:rowKey="record => {return record.id + ',' + (record.taskId || '')}"
|
:rowKey="record => {return record.id + ',' + (record.taskId || '')}"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps: getCheckboxProps }"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:scroll="{x: '100%', y: yScrollHeight}"
|
:scroll="{x: '100%', y: yScrollHeight}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
@@ -262,6 +262,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 表格复选框props
|
||||||
|
getCheckboxProps (record) {
|
||||||
|
return {
|
||||||
|
props: {
|
||||||
|
// 不是进行中的禁用复选框 1进行中 2已完成
|
||||||
|
disabled: record.finishFlag + '' !== '1'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
loadData (arg) {
|
loadData (arg) {
|
||||||
if (!this.url.list) {
|
if (!this.url.list) {
|
||||||
this.$message.warning('请设置url.list属性!')
|
this.$message.warning('请设置url.list属性!')
|
||||||
|
|||||||
Reference in New Issue
Block a user