Merge remote-tracking branch 'origin/master'
| | |
| | | export function getProjectProcessTodo(query) { |
| | | return request({ |
| | | url: '/project-process/to_do_task', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | export function getDetailByProcessInsId(query) { |
| | | return request({ |
| | | url: '/project-process/detail-by-process_ins_id', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | |
| | | :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({ |
| | |
| | | </div> |
| | | <div v-else-if="isImportOrExport" class="dialog-content"> |
| | | <el-button class="export-button" @click="handleDownloadTargetList">导出目标列表内容</el-button> |
| | | <el-button class="export-button">导出所有列表内容</el-button> |
| | | <el-button class="export-button">导出目标项目详情</el-button> |
| | | <el-button class="export-button">导出所有项目详情</el-button> |
| | | <el-button class="export-button" @click="handleDownloadAllList">导出所有列表内容</el-button> |
| | | <el-button class="export-button" @click="handleDownloadDetailList">导出目标项目详情</el-button> |
| | | <el-button class="export-button" @click="handleDownloadAllList">导出所有项目详情</el-button> |
| | | </div> |
| | | </template> |
| | | <template slot="footer"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { globalHeaders } from '@/utils/request'; |
| | | import {getToken} from "@/utils/auth"; |
| | | |
| | | export default { |
| | | name: 'FileDialog', |
| | |
| | | default: function () { |
| | | return []; |
| | | } |
| | | }, |
| | | dataIdList: { |
| | | type: Array, |
| | | default: function () { |
| | | return []; |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.download('project/info/export', { |
| | | ...this.queryParams |
| | | }, `项目库${new Date().getTime()}.xlsx`) |
| | | }, |
| | | handleDownloadAllList() { |
| | | this.queryParams.fieldList = this.currentColumns; |
| | | this.queryParams.requireFile = false; |
| | | this.download('project/info/export', { |
| | | ...this.queryParams |
| | | }, `项目库${new Date().getTime()}.xlsx`) |
| | | }, |
| | | handleDownloadDetailList() { |
| | | this.queryParams.dataIdList = this.dataIdList |
| | | this.queryParams.requireFile = true; |
| | | this.download('project/info/export', { |
| | | ...this.queryParams |
| | | }, `项目库${new Date().getTime()}.zip`) |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | :isImportOrExport="isImportOrExport" |
| | | @fileDialogCancel="fileDialogCancel" |
| | | :currentColumns="columns" |
| | | :dataIdList="ids" |
| | | /> |
| | | </div> |
| | | </template> |