| | |
| | | }, |
| | | methods: { |
| | | setStatusList() { |
| | | console.log(this.editConfig.infomation, "edit") |
| | | if (this.editConfig.infomation.status === 5) { |
| | | this.list = [ |
| | | { label: "草稿", status: "todo", value: 1 }, |
| | |
| | | baseOperationType: this.editConfig.infomation.baseOperationType || undefined, |
| | | cutAfterWidth: this.editConfig.infomation.baseOperationType === 2 ? 50.8 : 53.3 |
| | | }; |
| | | localStorage.setItem('pdfParams', JSON.stringify(pdfParams)); |
| | | var { href } = this.$router.resolve({ |
| | | path: '/overview/previewExcel', |
| | | query:{ |
| | | ...pdfParams |
| | | } |
| | | |
| | | }); |
| | | window.open(href, '_blank'); |
| | | } |
| | | } catch (error) { |
| | | console.error(error); |
| | | } finally { |
| | | var { href } = this.$router.resolve({ |
| | | name: 'previewExcel', |
| | | }); |
| | | window.open(href, '_blank'); |
| | | } |
| | | } |
| | | } |