赵士淞
2023-01-03 154f9c30dfd83e149ed5eaa5af00bac01d890a2b
Merge branch 'zhaoss' of http://192.168.1.110:5678/r/pms-upgrade into master
2 files modified
24 ■■■■■ changed files
eladmin-web-master/src/utils/constant.js 16 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/task/taskDaliy/index.vue 8 ●●●●● patch | view | raw | blame | history
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,
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状态