|
@@ -189,7 +189,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- 000000 -->
|
|
<!-- 000000 -->
|
|
- <el-table-column label="操作" :width="showColumnWidth" align="left" fixed="right" v-if="showColumnWidth != '0'">
|
|
|
|
|
|
+ <el-table-column label="操作" :width="showColumnWidth" align="left" fixed="right" v-if="showColumnWidth != '0' || permissions.projectManagement">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button v-if="permissions.projectManagement || user.id==scope.row.creatorId" size="mini" @click="subProject(scope.row)">子项目</el-button>
|
|
<el-button v-if="permissions.projectManagement || user.id==scope.row.creatorId" size="mini" @click="subProject(scope.row)">子项目</el-button>
|
|
<el-button size="mini" v-if="permissions.projectManagement || user.id==scope.row.inchargerId || user.id==scope.row.creatorId" type="primary" @click="handleAdd(scope.$index, scope.row)">编辑</el-button>
|
|
<el-button size="mini" v-if="permissions.projectManagement || user.id==scope.row.inchargerId || user.id==scope.row.creatorId" type="primary" @click="handleAdd(scope.$index, scope.row)">编辑</el-button>
|
|
@@ -2035,7 +2035,7 @@ a {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
showColumn(list){
|
|
showColumn(list){
|
|
- if(this.permissions.projectManagement){
|
|
|
|
|
|
+ if(!this.permissions.projectManagement){
|
|
let creat = false
|
|
let creat = false
|
|
let incha = false
|
|
let incha = false
|
|
for(let i in list){
|
|
for(let i in list){
|
|
@@ -2056,7 +2056,7 @@ a {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
- return '0'
|
|
|
|
|
|
+ return '300'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|