From ab76bb33b679bed6c5ff660f04349b75abed40fd Mon Sep 17 00:00:00 2001
From: churf <123456>
Date: Fri, 18 Aug 2023 09:04:07 +0000
Subject: [PATCH] 修复管理端名字无法显示bug,修复任务分配中检索任务无效bug

---
 eladmin-web-master/src/views/task/taskDaliy/index.vue |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/eladmin-web-master/src/views/task/taskDaliy/index.vue b/eladmin-web-master/src/views/task/taskDaliy/index.vue
index 4239c03..4943bfb 100644
--- a/eladmin-web-master/src/views/task/taskDaliy/index.vue
+++ b/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

--
Gitblit v1.9.3