zhanghua
2024-11-30 dd4c953182002b45f84e287d210463e65c5ef18f
src/views/components/noticeTable.vue
@@ -24,7 +24,7 @@
      :header-cell-style="{
        background: '#F5F7FC',
        color: '#454B5E',
        fontSize: '12px',
                fontSize: '12px'
      }"
      height="280"
      max-height="280"
@@ -76,7 +76,7 @@
  </div>
</template>
<script>
import { getProjectProcessTodo } from "@/api/projectProcess/projectProcess.js";
import { getProjectProcessTodo, getDetailByProcessInsId } from "@/api/projectProcess/projectProcess.js";
import { getProjectPlanToDoList } from "@/api/projectPlan";
export default {
  data() {
@@ -140,8 +140,8 @@
    countExceptionProjectData: Object,
  },
  created() {
    (this.currentTab = "process"),
      (this.currentTableHeaders = this.processTableHeaders);
        this.currentTab = "process";
        this.currentTableHeaders = this.processTableHeaders;
    this.getList();
  },
  methods: {
@@ -163,8 +163,19 @@
        }
      }
    },
    handleDetail(row) {
        async handleDetail(row) {
      if (this.currentTab == "process") {
                const resp = await getDetailByProcessInsId({ processDefId: row.processDefId, processInsId: row.processInsId });
                if (resp.code === 200 && resp.data.length > 0) {
                    const projectProcess = resp.data[0]
                    this.$router.push({
                        path: '/projectFlow/detail',
                        query: {
                            projectId: projectProcess.projectId,
                            processDefId: row.processDefId
                        }
                    })
                }
      } else {
        row.id = row.planId;
        this.$router.push({
@@ -175,8 +186,19 @@
        });
      }
    },
    handleUpdate(row) {
        async handleUpdate(row) {
      if (this.currentTab == "process") {
                const resp = await getDetailByProcessInsId({ processDefId: row.processDefId, processInsId: row.processInsId });
                if (resp.code === 200 && resp.data.length > 0) {
                    const projectProcess = resp.data[0]
                    this.$router.push({
                        path: '/projectFlow/detail',
                        query: {
                            projectId: projectProcess.projectId,
                            processDefId: row.processDefId
                        }
                    })
                }
      } else {
        row.id = row.planId;
        this.$router.push({