This commit is contained in:
JenniferW 2025-06-13 14:01:14 +08:00
parent fd9ff16f9d
commit 4e2488ade8
14 changed files with 23 additions and 19 deletions

BIN
public/images/cars/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
public/images/cars/1_1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/images/cars/1_2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/images/cars/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

BIN
public/images/cars/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

BIN
public/images/cars/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

View File

@ -134,46 +134,46 @@ export const productTreeData = [
code: "D310000000032", code: "D310000000032",
label: "D310000000032,动力轮对轴箱组成(带联轴节)", label: "D310000000032,动力轮对轴箱组成(带联轴节)",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/totle.jpg', image: '/images/cars/totle.jpg',
children: [ children: [
{ {
code: "D311000000013", code: "D311000000013",
label: "D311000000013,动力轮对(带轴承+联轴节)", label: "D311000000013,动力轮对(带轴承+联轴节)",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1.jpg', image: '/images/cars/1.jpg',
children: [ children: [
{ {
code: "D311001000011", code: "D311001000011",
label: "D311001000011,动力轮对", label: "D311001000011,动力轮对",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1_1_1.jpg', image: '/images/cars/1_1_1.jpg',
children: [ children: [
{ {
code: "D351200000018", code: "D351200000018",
label: "D351200000018,动车组联轴节(鼓形齿式)", label: "D351200000018,动车组联轴节(鼓形齿式)",
replaceable: true, replaceable: true,
image: '/src/assets/images/cars/1_2_1.jpg', image: '/images/cars/1_2_1.jpg',
children: [] children: []
}, },
{ {
code: "D312000000013", code: "D312000000013",
label: "D312000000013,齿轮箱组成", label: "D312000000013,齿轮箱组成",
replaceable: true, replaceable: true,
image: '/src/assets/images/cars/1_2_1_1.jpg', image: '/images/cars/1_2_1_1.jpg',
children: [] children: []
}, },
{ {
code: "D311101000008", code: "D311101000008",
label: "D311101000008,动力车轮组成(带喷漆)", label: "D311101000008,动力车轮组成(带喷漆)",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1_2_1_1.jpg', image: '/images/cars/1_2_1_1.jpg',
children: [] children: []
}, },
{ {
code: "D311299000016", code: "D311299000016",
label: "D311299000016,动力车轴(带喷漆)", label: "D311299000016,动力车轴(带喷漆)",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1_2_1_1_1.jpg', image: '/images/cars/1_2_1_1_1.jpg',
children: [] children: []
} }
] ]
@ -182,28 +182,28 @@ export const productTreeData = [
code: "D311303000007", code: "D311303000007",
label: "D311303000007,后挡圈", label: "D311303000007,后挡圈",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1_1_2.jpg', image: '/images/cars/1_1_2.jpg',
children: [] children: []
}, },
{ {
code: "3627401100024", code: "3627401100024",
label: "3627401100024,O形橡胶密封圈", label: "3627401100024,O形橡胶密封圈",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1_2.jpg', image: '/images/cars/1_2.jpg',
children: [] children: []
}, },
{ {
code: "3627401100023", code: "3627401100023",
label: "3627401100023,O形橡胶密封圈", label: "3627401100023,O形橡胶密封圈",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1_2_1.jpg', image: '/images/cars/1_2_1.jpg',
children: [] children: []
}, },
{ {
code: "D311300000020", code: "D311300000020",
label: "D311300000020,轴箱轴承", label: "D311300000020,轴箱轴承",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/1_2_1_1.jpg', image: '/images/cars/1_2_1_1.jpg',
children: [] children: []
} }
] ]
@ -212,21 +212,21 @@ export const productTreeData = [
code: "D325000000013", code: "D325000000013",
label: "D325000000013,左轴箱组成", label: "D325000000013,左轴箱组成",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/2.jpg', image: '/images/cars/2.jpg',
children: [] children: []
}, },
{ {
code: "D325000000014", code: "D325000000014",
label: "D325000000014,右轴箱组成", label: "D325000000014,右轴箱组成",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/3.jpg', image: '/images/cars/3.jpg',
children: [] children: []
}, },
{ {
code: "D326000000037", code: "D326000000037",
label: "D326000000037,左轴端装置", label: "D326000000037,左轴端装置",
replaceable: false, replaceable: false,
image: '/src/assets/images/cars/4.jpg', image: '/images/cars/4.jpg',
children: [] children: []
} }
] ]
@ -240,7 +240,7 @@ export const replacePartsMap = {
code: "D351200000002", code: "D351200000002",
label: "D351200000002,动车组联轴节(鼓形齿式)", label: "D351200000002,动车组联轴节(鼓形齿式)",
replaceable: true, replaceable: true,
image: '/src/assets/images/cars/1_1_1.jpg', image: '/images/cars/1_1_1.jpg',
children: [] children: []
} }
], ],
@ -249,14 +249,14 @@ export const replacePartsMap = {
code: "D312000000014", code: "D312000000014",
label: "D312000000014,齿轮箱组成", label: "D312000000014,齿轮箱组成",
replaceable: true, replaceable: true,
image: '/src/assets/images/cars/1_2_1.jpg', image: '/images/cars/1_2_1.jpg',
children: [] children: []
}, },
{ {
code: "312000000015", code: "312000000015",
label: "D312000000015齿轮箱组成", label: "D312000000015齿轮箱组成",
replaceable: true, replaceable: true,
image: '/src/assets/images/cars/4.jpg', image: '/images/cars/4.jpg',
children: [] children: []
} }
] ]

View File

@ -234,6 +234,7 @@
<el-button <el-button
v-if="selectedNode.replaceable" v-if="selectedNode.replaceable"
type="primary" type="primary"
class="right-button"
@click="openReplaceDialog(selectedNode)" @click="openReplaceDialog(selectedNode)"
>替换</el-button >替换</el-button
> >
@ -797,11 +798,14 @@ watch(activeTab, () => {
padding-left: 24px; padding-left: 24px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: center;
justify-content: flex-start; justify-content: center;
overflow-y: auto; overflow-y: auto;
height: 100%; height: 100%;
} }
.right-button {
margin: 15px 0 0 260px;
}
.detail-img { .detail-img {
width: 180px; width: 180px;
height: 120px; height: 120px;