| | |
| | | // 角色级别:超级管理员 |
| | | export const ROLE_LEVEL_SUPER = 1 |
| | | // 角色级别:系统管理员 |
| | | export const ROLE_LEVEL_SYSTEM = 2 |
| | | // 角色级别:普通用户 |
| | | export const ROLE_LEVEL_ORDINARY = 3 |
| | | // 角色级别:总经理 |
| | | export const ROLE_LEVEL_GENERAL = 2 |
| | | // 角色级别:项目经理 |
| | | export const ROLE_LEVEL_MANAGER = 3 |
| | | // 角色级别:项目组长 |
| | | export const ROLE_LEVEL_LEADER = 4 |
| | | // 角色级别:普通员工 |
| | | export const ROLE_LEVEL_ORDINARY = 5 |
| | | |
| | | // 比例配置:基本工资比例 |
| | | export const CONFIG_PROPORTION_BASIC_WAGE = '基本工资比例' |
| | |
| | | |
| | | export default { |
| | | ROLE_LEVEL_SUPER, |
| | | ROLE_LEVEL_SYSTEM, |
| | | ROLE_LEVEL_GENERAL, |
| | | ROLE_LEVEL_MANAGER, |
| | | ROLE_LEVEL_LEADER, |
| | | ROLE_LEVEL_ORDINARY, |
| | | CONFIG_PROPORTION_BASIC_WAGE, |
| | | CONFIG_PROPORTION_MERIT_WAGE, |
| | |
| | | <template slot="append">%</template> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="(userRolesLevelMin == roleLevelSuper || userRolesLevelMin == roleLevelSystem) && crud.status.edit == crudStatusPrepared" label="结算状态" prop="settlementStatus"> |
| | | <el-form-item v-if="userRolesLevelMin != roleLevelOrdinary && crud.status.edit == crudStatusPrepared" label="结算状态" prop="settlementStatus"> |
| | | <el-select v-model="form.settlementStatus" filterable placeholder="请选择" style="width: 340px;"> |
| | | <el-option |
| | | v-for="item in dict[settlementStatus]" |
| | |
| | | <el-table-column v-if="checkPer(['admin','taskDaliy:edit','taskDaliy:del'])" label="操作" width="150px" align="center" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <udOperation |
| | | v-if="userRolesLevelMin == roleLevelSuper || userRolesLevelMin == roleLevelSystem || scope.row.userId == user.id" |
| | | v-if="userRolesLevelMin != roleLevelOrdinary || scope.row.userId == user.id" |
| | | :data="scope.row" |
| | | :permission="permission" |
| | | /> |
| | |
| | | standardWorkloadUnit: constant.STANDARD_WORKLOAD_UNIT, |
| | | // 字典:结算状态 |
| | | settlementStatus: constant.SETTLEMENT_STATUS, |
| | | // 角色级别:超级管理员 |
| | | roleLevelSuper: constant.ROLE_LEVEL_SUPER, |
| | | // 角色级别:系统管理员 |
| | | roleLevelSystem: constant.ROLE_LEVEL_SYSTEM, |
| | | // 角色级别:普通用户 |
| | | roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY, |
| | | // CRUD状态 |