From 8b1de8b87d81cb5c4b3c207e10195f392ed330cc Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 13 十二月 2024 17:56:02 +0800
Subject: [PATCH] 任务驳回功能基础实现
---
src/views/projectManage/plan/planRecord.vue | 27 ++++++++-------------------
1 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/src/views/projectManage/plan/planRecord.vue b/src/views/projectManage/plan/planRecord.vue
index ad63175..ab0b9ba 100644
--- a/src/views/projectManage/plan/planRecord.vue
+++ b/src/views/projectManage/plan/planRecord.vue
@@ -113,7 +113,7 @@
import {addRecord, getPlanRecordList, deletePlanRecord} from "@/api/projectPlan/index";
export default {
- name: "PlanRecord",
+ // name: "PlanRecord",
data() {
return {
// 鎺ユ敹浼犻�掕繃鏉ョ殑椤圭洰璁″垝鏁版嵁
@@ -137,10 +137,7 @@
// 鑾峰彇浼犻�掕繃鏉ョ殑椤圭洰璁″垝璇︽儏
getProjectInfoData() {
// 浠庢煡璇㈠弬鏁颁腑鑾峰彇鏁版嵁
- this.projectInfoData.id = this.$route.query.id;
- this.projectInfoData.projectName = this.$route.query.projectName;
- this.projectInfoData.projectCode = this.$route.query.projectCode;
- this.projectInfoData.managerFlag = this.$route.query.managerFlag;
+ this.projectInfoData = JSON.parse(this.$route.query.data);
// 鑾峰彇椤圭洰璁″垝璁板綍鏁版嵁
this.search();
},
@@ -210,16 +207,12 @@
},
/** 淇敼椤圭洰璁″垝椤� */
handlePlanInfo(row) {
+ row.managerFlag = this.projectInfoData.managerFlag;
this.$router.push({
path: '/projectManage/planInfo',
query: {
- id: row.id,
- projectName: row.projectName,
- projectCode: row.projectCode,
- planTime: row.planTime,
- planTimeFlag: row.planTimeFlag,
- managerFlag: row.managerFlag,
- projectInfoData: this.projectInfoData
+ data: JSON.stringify(row),
+ projectInfoData: JSON.stringify(this.projectInfoData)
}
})
},
@@ -231,16 +224,12 @@
},
// 鏌ョ湅椤圭洰璁″垝椤�
handleCheckPlanInfo(row) {
+ row.managerFlag = this.projectInfoData.managerFlag;
this.$router.push({
path: '/projectManage/planInfoCheck',
query: {
- id: row.id,
- projectName: row.projectName,
- projectCode: row.projectCode,
- planTime: row.planTime,
- planTimeFlag: row.planTimeFlag,
- managerFlag: row.managerFlag,
- projectInfoData: this.projectInfoData
+ data: JSON.stringify(row),
+ projectInfoData: JSON.stringify(this.projectInfoData)
}
})
}
--
Gitblit v1.8.0