| | |
| | | :header-cell-style="{ |
| | | background: '#F5F7FC', |
| | | color: '#454B5E', |
| | | fontSize: '12px', |
| | | fontSize: '12px' |
| | | }" |
| | | height="280" |
| | | max-height="280" |
| | |
| | | </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() { |
| | |
| | | countExceptionProjectData: Object, |
| | | }, |
| | | created() { |
| | | (this.currentTab = "process"), |
| | | (this.currentTableHeaders = this.processTableHeaders); |
| | | this.currentTab = "process"; |
| | | this.currentTableHeaders = this.processTableHeaders; |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | 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({ |
| | |
| | | }); |
| | | } |
| | | }, |
| | | 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({ |