| eladmin-web-master/src/views/attendance/attendanceBusinessTravel/index.vue | ●●●●● 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