| | |
| | | </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() { |