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

View File

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