bug
luohairen
2024-12-10 b87174cde67aaa8420ea492af9b79fcc9a692036
src/views/projectManage/progress/progressRecord.vue
@@ -153,6 +153,7 @@
                  v-model="progressReportData.actualStartTime"
                  type="date"
                  placeholder="选择日期"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  size="small"
                  style="width: 130px"
                  :readonly="projectInfoData.managerFlag || dialogFlag !== 0"/>
@@ -161,6 +162,7 @@
                  v-model="progressReportData.actualEndTime"
                  type="date"
                  placeholder="选择日期"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  size="small"
                  style="width: 130px"
                  :readonly="projectInfoData.managerFlag || dialogFlag !== 0"/>
@@ -339,15 +341,19 @@
      accept: ['pdf','jpg','mp4'],
    }
  },
  created() {
    this.getProjectInfoData()
  },
  methods: {
    search() {
      this.getProjectProgressForm(this.projectInfoData.id);
      this.getProgressInfoList(this.projectInfoData.id);
      this.progressReportData = {};
    },
    // 获取传递过来的项目计划详情
    getProjectInfoData() {
      // 从查询参数中获取数据
        this.projectInfoData = this.$route.query.data;
        this.projectInfoData = JSON.parse(this.$route.query.data);
        this.search();
    },
    getProjectProgressForm(id) {
@@ -391,7 +397,7 @@
    // 回复
    handleReply() {
      reply(this.progressReportData).then(res => {
        // this.dialogFormVisible = false;
        this.dialogFormVisible = false;
        this.$message.success('回复成功');
        this.search();
      })
@@ -425,6 +431,7 @@
      this.dialogFormVisible = false;
      this.isShowReplyBtn = true;
      this.dialogFlag = 0;
      this.progressReportData = {};
    },
    // 保存
    handleSave() {
@@ -436,9 +443,7 @@
        })
    }
  },
  created() {
    this.getProjectInfoData()
  },
};
</script>