Explorar o código

提交加班情况统计表增加核销状态

Lijy hai 10 meses
pai
achega
dc43aaa9c3

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/corpreport/list.vue

@@ -616,7 +616,7 @@
                     <span>¥{{scope.row.cost | numberToCurrency}}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="cost" :label="$t('operation')" width="100" v-if="user.roleId == 9" fixed="right" align="right">
+                <el-table-column prop="cost" :label="$t('operation')" width="100" v-if="user.roleName == $t('role.superAdministrator')" fixed="right" align="right">
                   <template slot-scope="scope">
                     <el-button type="text" @click="writeOffOperation(scope.row, 'restore')" v-if="scope.row.writeOffValue == 1">{{ $t('huiFu') }}</el-button>
                     <el-button type="text" @click="writeOffOperation(scope.row, 'writeoff')" v-else>{{ $t('heXiao') }}</el-button>