From 43e80e0148b02f1cc54409971dd565e7ff6402b6 Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Tue, 17 Jan 2023 02:33:42 +0000
Subject: [PATCH] Merge branch 'master' of http://192.168.1.110:5678/r/pms-upgrade into yaozc
---
eladmin-web-master/src/views/task/taskDaliy/index.vue | 15 +++++++++++++++
1 files changed, 15 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 b5299a1..4871a43 100644
--- a/eladmin-web-master/src/views/task/taskDaliy/index.vue
+++ b/eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -273,6 +273,21 @@
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
+ // 判断传参是否为空
+ if (this.$route.params.projectId != null && this.$route.params.projectId !== '' && this.crud.query.projectId === undefined) {
+ // 检索条件赋值
+ this.$set(this.crud.query, 'projectId', Number(this.$route.params.projectId))
+ // 获取任务列表
+ crudTask.getAll({ projectId: this.query.projectId }).then(res => {
+ // 检索任务列表
+ this.queryTasks = res
+ })
+ }
+ // 判断传参是否为空
+ if (this.$route.params.taskId != null && this.$route.params.taskId !== '' && this.crud.query.taskId === undefined) {
+ // 检索条件赋值
+ this.$set(this.crud.query, 'taskId', Number(this.$route.params.taskId))
+ }
// 用户角色级别数组
const userRolesLevel = this.user.roles.map(({ level }) => level)
// 用户最大角色级别
--
Gitblit v1.9.3