| | |
| | | }, |
| | | getAllMaterialNoLimit() { |
| | | const { |
| | | comData: { mproductHistorys: components }, |
| | | comData: { subCode }, |
| | | } = this; |
| | | getAllMaterialNoLimit().then((res) => { |
| | | res = res.data; |
| | |
| | | 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) { |
| | |
| | | }); |
| | | }); |
| | | if (!addedList.length) { |
| | | this.$message.warn('当前要添加的替换关系已存在,无需提交'); |
| | | this.$message.warn("当前要添加的替换关系已存在,无需提交"); |
| | | return false; |
| | | } |
| | | let obj = { |
| | |
| | | }); |
| | | }); |
| | | if (!removedList.length) { |
| | | this.$message.warn('当前要解除的替换关系不存在,无需解除'); |
| | | this.$message.warn("当前要解除的替换关系不存在,无需解除"); |
| | | return false; |
| | | } |
| | | let obj = { |
| | |
| | | key: "operation", |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 170, |
| | | width: 270, |
| | | noSearch: true, |
| | | scopedSlots: { customRender: "action" }, |
| | | }, |
| | |
| | | <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> |
| | | |
| | |
| | | |
| | | data() { |
| | | return { |
| | | softwareDownloadShow: false, |
| | | parentModel: this.$route.query.parentModel, |
| | | customCode: this.$route.query.customCode, |
| | | versionList: [], |
| | |
| | | resize() { |
| | | this.update = Math.random(); |
| | | }, |
| | | showSoftwareDownload () { |
| | | this.softwareDownloadShow = true; |
| | | }, |
| | | softwareDownloadCancel () { |
| | | this.softwareDownloadShow = false; |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getVersions(); |