From eaf14dd28b5c95a08d433c6b6ccb5d2c0de2a2d4 Mon Sep 17 00:00:00 2001
From: weicd <weicd@yhzhg.cn>
Date: Thu, 04 Jan 2024 01:51:15 +0000
Subject: [PATCH] 首页跳转日报
---
eladmin-web-master/src/views/task/taskDaliy/index.vue | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/eladmin-web-master/src/views/task/taskDaliy/index.vue b/eladmin-web-master/src/views/task/taskDaliy/index.vue
index 01dbe5d..5933e32 100644
--- a/eladmin-web-master/src/views/task/taskDaliy/index.vue
+++ b/eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -419,6 +419,7 @@
import crudProject from '@/api/project/project'
import crudTask from '@/api/task/task'
import crudTaskUser from '@/api/task/taskUser'
+import store from '@/store/index'
const defaultForm = { id: null, projectId: null, taskId: null, taskMongoId: null, taskUserMongo: {}, userId: null, fillDate: null, consumedHours: null, alreadyConsumedHours: 0, taskHours: 0, consumedWorkload: null, consumedWorkloadUnit: null, taskProgress: null, settlementStatus: constant.SETTLEMENT_STATUS_UNSETTLED, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null }
export default {
@@ -549,7 +550,22 @@
loadingQueryProjectsOne: false,
loadingQueryProjects: false,
loadingQueryProjectsTwo: false,
- activeTab: "first"
+ activeTab: "first",
+
+ }
+ },
+ created() {
+ if(store.state.projectId != undefined && store.state.taskId != undefined && store.state.planTime != undefined
+ && store.state.taskName != undefined){
+ this.query.projectId = store.state.projectId;
+ this.query.taskMongoId = store.state.taskId;
+ this.query.fillDates = store.state.planTime;
+ this.query.name = store.state.taskName;
+ this.crud.toQuery();
+ store.state.taskId = undefined
+ store.state.projectId = undefined
+ store.state.fillDates = undefined
+ store.state.name = undefined
}
},
computed: {
--
Gitblit v1.9.3