| | |
| | | * 下载原始压缩包文件 |
| | | * @returns |
| | | */ |
| | | export const getOriginalZip = (parentModel, customCode, version) => { |
| | | export const getOriginalZip = (parentCode, parentModel, customCode, version) => { |
| | | return axios({ |
| | | method: "GET", |
| | | url: "product/getOriginalZip", |
| | | params: { parentModel, customCode, version }, |
| | | params: { parentCode, parentModel, customCode, version }, |
| | | }); |
| | | }; |
| | | |
| | |
| | | }, |
| | | getOriginalZip() { |
| | | const { |
| | | currentVersion: { parentModel, customCode, version }, |
| | | currentVersion: { parentCode, parentModel, customCode, version }, |
| | | } = this; |
| | | this.originalZipUrl = ""; |
| | | getOriginalZip(parentModel, customCode, version).then((res) => { |
| | | getOriginalZip(parentCode, parentModel, customCode, version).then((res) => { |
| | | const { code, data, data2 } = res.data; |
| | | if (code && data) { |
| | | this.originalZipUrl = data2; |