维修勾选限定

This commit is contained in:
jjLv 2024-11-25 11:10:50 +08:00
parent 7f885d25c4
commit ad05b5389d
1 changed files with 12 additions and 3 deletions

View File

@ -72,8 +72,8 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange" >
<el-table-column type="selection" width="55" align="center" :selectable="selectable"/>
<el-table-column label="序号" align="center" width="80" type="index">
<template slot-scope="scope">
<span>{{(queryParams.pageNum - 1) * 10 + scope.$index + 1}}</span>
@ -686,6 +686,15 @@ export default {
this.imgIndex=0
this.dialogVisibles = true;
},
//
selectable(row) {
if (row.repairStatusCode == "1") {
return false;
} else {
return true;
}
},
},
}
</script>