From 154f9c30dfd83e149ed5eaa5af00bac01d890a2b Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Tue, 03 Jan 2023 03:44:10 +0000
Subject: [PATCH] Merge branch 'zhaoss' of http://192.168.1.110:5678/r/pms-upgrade into master
---
eladmin-web-master/src/utils/constant.js | 16 +++++++++++-----
eladmin-web-master/src/views/task/taskDaliy/index.vue | 8 ++------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/eladmin-web-master/src/utils/constant.js b/eladmin-web-master/src/utils/constant.js
index d8ed15b..02e5df6 100644
--- a/eladmin-web-master/src/utils/constant.js
+++ b/eladmin-web-master/src/utils/constant.js
@@ -1,9 +1,13 @@
// 角色级别:超级管理员
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 = '基本工资比例'
@@ -205,7 +209,9 @@
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,
diff --git a/eladmin-web-master/src/views/task/taskDaliy/index.vue b/eladmin-web-master/src/views/task/taskDaliy/index.vue
index aebc3b5..e5ab3e4 100644
--- a/eladmin-web-master/src/views/task/taskDaliy/index.vue
+++ b/eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -83,7 +83,7 @@
<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]"
@@ -147,7 +147,7 @@
<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"
/>
@@ -245,10 +245,6 @@
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状态
--
Gitblit v1.9.3