|
@@ -2,7 +2,7 @@
|
|
|
<div class="ele-body">
|
|
<div class="ele-body">
|
|
|
<el-card shadow="never">
|
|
<el-card shadow="never">
|
|
|
<ele-split-layout
|
|
<ele-split-layout
|
|
|
- width="320px"
|
|
|
|
|
|
|
+ width="260px"
|
|
|
allow-collapse
|
|
allow-collapse
|
|
|
:resizable="true"
|
|
:resizable="true"
|
|
|
:min-size="200"
|
|
:min-size="200"
|
|
@@ -24,7 +24,7 @@
|
|
|
<el-radio-button :label="1">PBOM</el-radio-button>
|
|
<el-radio-button :label="1">PBOM</el-radio-button>
|
|
|
<el-radio-button :label="2">MBOM</el-radio-button>
|
|
<el-radio-button :label="2">MBOM</el-radio-button>
|
|
|
<el-radio-button :label="3">ABOM</el-radio-button>
|
|
<el-radio-button :label="3">ABOM</el-radio-button>
|
|
|
- <el-radio-button :label="4">CBOM</el-radio-button>
|
|
|
|
|
|
|
+
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -46,11 +46,10 @@
|
|
|
node-key="id"
|
|
node-key="id"
|
|
|
@node-click="handleNodeClick"
|
|
@node-click="handleNodeClick"
|
|
|
>
|
|
>
|
|
|
- <span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
|
- {{ node.label }} / {{ data.code }}
|
|
|
|
|
|
|
+ <span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
|
+ {{ node.label }} / {{ data.code }}
|
|
|
</span>
|
|
</span>
|
|
|
-
|
|
|
|
|
- </el-tree>
|
|
|
|
|
|
|
+ </el-tree>
|
|
|
</div>
|
|
</div>
|
|
|
<template v-slot:content>
|
|
<template v-slot:content>
|
|
|
<div class="pbom-box">
|
|
<div class="pbom-box">
|
|
@@ -104,17 +103,7 @@
|
|
|
>转换ABOM</el-button
|
|
>转换ABOM</el-button
|
|
|
>
|
|
>
|
|
|
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- icon="el-icon-refresh"
|
|
|
|
|
- plain
|
|
|
|
|
- @click="transformation('C')"
|
|
|
|
|
- v-if="currentNodeData.bomType == 1"
|
|
|
|
|
- >转换CBOM</el-button
|
|
|
|
|
- >
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<div v-if="!noBack" class="back-btn">
|
|
<div v-if="!noBack" class="back-btn">
|
|
|
<el-button size="mini" icon="el-icon-back" @click="back"
|
|
<el-button size="mini" icon="el-icon-back" @click="back"
|
|
|
>返回</el-button
|
|
>返回</el-button
|
|
@@ -205,8 +194,7 @@
|
|
|
rootTreeId: null,
|
|
rootTreeId: null,
|
|
|
defaultProps: {
|
|
defaultProps: {
|
|
|
children: 'children',
|
|
children: 'children',
|
|
|
- label: 'name',
|
|
|
|
|
-
|
|
|
|
|
|
|
+ label: 'name'
|
|
|
},
|
|
},
|
|
|
loading: false,
|
|
loading: false,
|
|
|
filterText: null,
|
|
filterText: null,
|
|
@@ -297,7 +285,7 @@
|
|
|
text: '转换中...',
|
|
text: '转换中...',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
});
|
|
|
- let ULR = tt == 'M' ? convert : tt == 'A' ? convertABom : convertCBom;
|
|
|
|
|
|
|
+ let ULR = tt == 'M' ? convert : tt == 'A' ? convertABom : ''
|
|
|
ULR({ versions: this.versions, categoryId: this.categoryId }).then(
|
|
ULR({ versions: this.versions, categoryId: this.categoryId }).then(
|
|
|
(data) => {
|
|
(data) => {
|
|
|
if (data.code == '0') {
|
|
if (data.code == '0') {
|