Ver Fonte

2022.6.27 bug修改

ggooalice há 2 anos atrás
pai
commit
9ac1eeb980

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -189,7 +189,7 @@
                 </template>
             </el-table-column>
             <!-- 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">
                     <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>
@@ -2035,7 +2035,7 @@ a {
                 });
             },
             showColumn(list){
-                if(this.permissions.projectManagement){
+                if(!this.permissions.projectManagement){
                     let creat = false
                     let incha = false
                     for(let i in list){
@@ -2056,7 +2056,7 @@ a {
                         }
                     }
                 }else {
-                    return '0'
+                    return '300'
                 }
             },