新购验收勾选框优化

This commit is contained in:
zzyuan 2024-12-24 10:36:31 +08:00
parent 29164a506e
commit 680cda1153
1 changed files with 10 additions and 1 deletions

View File

@ -66,7 +66,7 @@
<el-table v-loading="loading" :data="tableList" ref="multipleTable" row-key="taskId" @selection-change="handleSelectionChange" border>
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" :selectable="selectable"/>
<el-table-column label="序号" align="center" width="80" type="index">
<template slot-scope="scope">
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
@ -334,6 +334,15 @@
this.getList();
},
methods: {
//
selectable(row) {
console.log(row)
if (row.taskStatusName == '未完成') {
return true
} else {
return false
}
},
/** 查询列表 */
getList() {
this.loading = true;