研发图纸文件管理系统-前端项目
he wei
2022-08-27 25c360bf27d59cc863e718c6a3fadcd573a465a4
U 调整
3个文件已修改
50 ■■■■ 已修改文件
src/pages/resourceManage/materialsCenter/editLink.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/resourceManage/materialsCenter/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/resourceManage/product/details/details.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/resourceManage/materialsCenter/editLink.vue
@@ -247,7 +247,7 @@
    },
    getAllMaterialNoLimit() {
      const {
        comData: { mproductHistorys: components },
        comData: { subCode },
      } = this;
      getAllMaterialNoLimit().then((res) => {
        res = res.data;
@@ -256,13 +256,15 @@
        let list = [];
        this.spinning = false;
        if (code && data) {
          list = data2.map((v) => {
            return {
              ...v,
              title: v.subModel,
              key: "" + v.id,
            };
          });
          list = data2
            .filter((v) => v.subCode != subCode)
            .map((v) => {
              return {
                ...v,
                title: v.subModel,
                key: "" + v.id,
              };
            });
        }
        if (this.isAdd) {
          if (this.linkList.length) {
@@ -343,7 +345,7 @@
          });
      });
      if (!addedList.length) {
        this.$message.warn('当前要添加的替换关系已存在,无需提交');
        this.$message.warn("当前要添加的替换关系已存在,无需提交");
        return false;
      }
      let obj = {
@@ -401,7 +403,7 @@
          });
      });
      if (!removedList.length) {
        this.$message.warn('当前要解除的替换关系不存在,无需解除');
        this.$message.warn("当前要解除的替换关系不存在,无需解除");
        return false;
      }
      let obj = {
src/pages/resourceManage/materialsCenter/list.vue
@@ -269,7 +269,7 @@
          key: "operation",
          align: "center",
          fixed: "right",
          width: 170,
          width: 270,
          noSearch: true,
          scopedSlots: { customRender: "action" },
        },
src/pages/resourceManage/product/details/details.vue
@@ -66,12 +66,29 @@
        <a-card>
          <template v-if="dataSource.length">
            <a-button type="primary" v-if="downloadFlag" @click="zipDownload"
              >下载</a-button
              >bom下载</a-button
            >
            <!-- <a-button type="primary" v-if="downloadFlag" @click="showSoftwareDownload"
              >软件下载</a-button
            > -->
          </template>
        </a-card>
      </a-layout-footer>
    </a-layout>
    <!-- 下载软件 -->
    <a-modal
      :visible="softwareDownloadShow"
      :footer="null"
      :width="500"
      title="软件下载"
      :destroyOnClose="true"
      :maskClosable="false"
      @cancel="softwareDownloadCancel"
    >
      <div>
TODO
      </div>
    </a-modal>
  </a-layout>
</template>
@@ -88,6 +105,7 @@
  data() {
    return {
      softwareDownloadShow: false,
      parentModel: this.$route.query.parentModel,
      customCode: this.$route.query.customCode,
      versionList: [],
@@ -363,6 +381,12 @@
    resize() {
      this.update = Math.random();
    },
    showSoftwareDownload () {
      this.softwareDownloadShow = true;
    },
    softwareDownloadCancel () {
      this.softwareDownloadShow = false;
    }
  },
  mounted() {
    this.getVersions();