|
@@ -74,8 +74,15 @@
|
|
|
<template slot-scope="scope">
|
|
|
<!-- 项目创建人、项目组成员、管理员可编辑-->
|
|
|
<!-- <el-button v-if="hasPermission('cwProjectRecords:edit')&&(scope.row.createBy.id === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.id))" type="text" size="small" @click="edit(scope.row.id)">编辑</el-button>-->
|
|
|
-<!-- 项目创建人、管理员可编辑-->
|
|
|
- <el-button v-if="hasPermission('cwProjectRecords:edit')&&(scope.row.createBy.id === $store.state.user.id||isAdmin)" type="text" size="small" @click="edit(scope.row.id)">编辑</el-button>
|
|
|
+<!-- 项目创建人、管理员、项目现场负责人、项目经理1、项目经理2可编辑-->
|
|
|
+ <el-button v-if="hasPermission('cwProjectRecords:edit')&&
|
|
|
+ (
|
|
|
+ isAdmin ||
|
|
|
+ $store.state.user.id === scope.row.createBy.id ||
|
|
|
+ $store.state.user.id === scope.row.projectLeaderId ||
|
|
|
+ $store.state.user.id === scope.row.projectMasterId ||
|
|
|
+ $store.state.user.id === scope.row.realHeader
|
|
|
+ )"type="text" size="small" @click="edit(scope.row.id)">编辑</el-button>
|
|
|
|
|
|
</template>
|
|
|
</vxe-column>
|