BAOLH
2025-10-22 4ba78e044b70cd059799ba6ad780cc9c506a1467
企微申请相关不可系统内删除(误删部分改回)
1 files modified
9 ■■■■■ changed files
eladmin-web-master/src/views/attendance/attendanceBusinessTravel/index.vue 9 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceBusinessTravel/index.vue
@@ -777,6 +777,15 @@
      this.getProjects()
      return true
    },
    // 钩子:新建 - 之前
    [CRUD.HOOK.beforeToAdd]() {
      this.form.durationUnit = this.dictLeaveTimeTypeDay
      // 判断用户最大角色级别是否大于总经理角色:赋值
      if (this.userRolesLevelMin > this.roleLevelGenerl) {
        // 表单赋值
        this.form.userId = this.user.id
      }
    },
    // 钩子:删除 - 之前
    [CRUD.HOOK.beforeDelete]() {
      const that = this