研发图纸文件管理系统-前端项目
he wei
2023-11-10 3672e2a627cb55ad160c7efeeb450b24d4b65516
src/pages/resourceManage/product/details/details.vue
@@ -173,7 +173,10 @@
              >其他附件</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
@@ -183,7 +186,8 @@
                (((canDownloadBom || canDownloadOriginBom) &&
                  currentVersion.enabled) ||
                  isTester) &&
                originalZipUrl
                originalZipUrl &&
                !is0120
              "
              type="primary"
              @click="checkLock('OriginalZipDownload')"
@@ -396,7 +400,7 @@
      title="文件列表"
      :destroyOnClose="true"
      @cancel="fileTreeVisible = false"
      >
    >
      <div class="log-content">
        <a-tree
          v-if="fileTree.length"
@@ -887,12 +891,14 @@
        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 {
@@ -1385,7 +1391,7 @@
      };
    },
    viewRar() {
      let loading = this.$layer.loading();
      let loading = this.$layer.loading();
      // console.log(this.originalZipUrl);
      getzipAndRarInfo(this.originalZipUrl)
        .then((res) => {
@@ -1399,7 +1405,7 @@
          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);