churf
2023-08-18 ab76bb33b679bed6c5ff660f04349b75abed40fd
eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -524,6 +524,8 @@
    },
    // 钩子:新建 - 之前
    [CRUD.HOOK.beforeToAdd]() {
      this.form.userId = this.user.id
      this.form.userNickName = this.user.nickName
      // 判断用户最大角色级别是否是角色级别:超级管理员或角色级别:总经理
      if (this.userRolesLevelMin !== this.roleLevelSuper && this.userRolesLevelMin !== this.roleLevelGeneral) {
        // 表单赋值
@@ -548,6 +550,7 @@
    // 钩子:编辑 - 之前
    [CRUD.HOOK.beforeToEdit]() {
      this.form.userId = this.user.id
      this.form.userNickName = this.user.nickName
      crudTask.getAllOfDaily({ projectId: this.form.projectId }).then(res => {
        // 检索任务列表
        this.formTasks = res