赵士淞
2023-03-20 19c12d93c8c2e41eb43eb4b69dc43349370c3899
eladmin-web-master/src/views/task/taskUser/index.vue
@@ -512,7 +512,6 @@
        // 表单赋值
        this.form.divideUserIds = res
      })
    }
  },
  // 钩子:提交 - 之前
  [CRUD.HOOK.beforeSubmit]() {
@@ -525,7 +524,7 @@
        return item.id === this.form.projectId
      })
      // 判断是否是项目责任人
      if (chooseProject.projectLiableUserId === this.$store.state.user.user.id || this.form.userId === this.$store.state.user.user.id) {
        if ((chooseProject.length === 1 && chooseProject[0].liableUserId === this.$store.state.user.user.id) || this.form.userId === this.$store.state.user.user.id) {
        return true
      } else {
        // 消息提示
@@ -535,6 +534,7 @@
    }
  }
}
}
</script>
<style scoped>