luohairen
2024-12-11 ce20e86b57be436a42b65befe8e1da2283922030
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)
        }
      })
    }