| | |
| | | >其他附件</a-button |
| | | > |
| | | <a-button |
| | | v-if="(canDownloadBom && currentVersion.enabled) || isTester" |
| | | v-if=" |
| | | ((canDownloadBom && currentVersion.enabled) || isTester) && |
| | | !is0120 |
| | | " |
| | | type="primary" |
| | | @click="checkLock('zipDownload')" |
| | | >bom下载</a-button |
| | |
| | | (((canDownloadBom || canDownloadOriginBom) && |
| | | currentVersion.enabled) || |
| | | isTester) && |
| | | originalZipUrl |
| | | originalZipUrl && |
| | | !is0120 |
| | | " |
| | | type="primary" |
| | | @click="checkLock('OriginalZipDownload')" |
| | |
| | | title="文件列表" |
| | | :destroyOnClose="true" |
| | | @cancel="fileTreeVisible = false" |
| | | > |
| | | > |
| | | <div class="log-content"> |
| | | <a-tree |
| | | v-if="fileTree.length" |
| | |
| | | currentVersion: { parentCode, parentModel, customCode, version }, |
| | | } = this; |
| | | this.originalZipUrl = ""; |
| | | getOriginalZip(parentCode, parentModel, customCode, version).then((res) => { |
| | | const { code, data, data2 } = res.data; |
| | | if (code && data) { |
| | | this.originalZipUrl = data2; |
| | | getOriginalZip(parentCode, parentModel, customCode, version).then( |
| | | (res) => { |
| | | const { code, data, data2 } = res.data; |
| | | if (code && data) { |
| | | this.originalZipUrl = data2; |
| | | } |
| | | } |
| | | }); |
| | | ); |
| | | }, |
| | | getInfo(force) { |
| | | const { |
| | |
| | | }; |
| | | }, |
| | | viewRar() { |
| | | let loading = this.$layer.loading(); |
| | | let loading = this.$layer.loading(); |
| | | // console.log(this.originalZipUrl); |
| | | getzipAndRarInfo(this.originalZipUrl) |
| | | .then((res) => { |
| | |
| | | this.fileTree = list.children; |
| | | this.fileTreeVisible = true; |
| | | // { title: 'Tree Node', key: '2', isLeaf: true }, |
| | | console.log(list, '===list'); |
| | | console.log(list, "===list"); |
| | | }) |
| | | .catch((err) => { |
| | | this.$layer.close(loading); |