施工管控

This commit is contained in:
cwchen 2024-08-23 15:16:38 +08:00
parent f869ec125c
commit ee2e2bccd4
9 changed files with 71 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

View File

@ -747,11 +747,13 @@ export default {
// 使
let icon;
if (node.level === 1) {
icon = 'el-icon-coin'; // 使
icon = 'pro_icon';
} else if (node.level === 2) {
icon = 'el-icon-s-unfold'; // 使
} else {
icon = 'el-icon-user'; // 使
icon = 'tower_nocheck_icon';
} else if (node.level === 3) {
icon = 'team_nocheck_icon';
} else if (node.level === 4) {
icon = '';
}
return (
@ -1065,4 +1067,28 @@ export default {
display: none !important;
}
::v-deep .pro_icon,
::v-deep .tower_nocheck_icon,
::v-deep .team_nocheck_icon {
vertical-align: top;
background-size: cover;
background-position: center;
display: inline-block;
margin-right: 4px;
width: 20px;
height: 20px;
}
::v-deep .pro_icon {
background-image: url("../../../../assets/images/pro_icon.png") !important;
}
::v-deep .tower_nocheck_icon {
background-image: url("../../../../assets/images/tower_nocheck_icon.png") !important;
}
::v-deep .team_nocheck_icon {
background-image: url("../../../../assets/images/team_nocheck_icon.png") !important;
}
</style>

View File

@ -43,7 +43,12 @@
style="margin: 10px 0;"></el-input>
<el-tree :data="treeData" icon="el-icon-search" node-key="id" :default-expanded-keys="idArr"
@node-click="handleNodeClick" :render-content="renderContent" style="font-size: 15px;letter-spacing: 1px;"
ref="tree" :highlight-current="true" :filter-node-method="filterNode" />
ref="tree" :highlight-current="true" :filter-node-method="filterNode">
<!-- <span class="custom-tree-node" slot-scope="{ node }">
<i :class="node.level == 1 ? 'pro_icon' : node.level == 2 ? 'pro_icon' : 'pro_icon'"></i>
<span>{{ node.label }}</span>
</span> -->
</el-tree>
</div>
</div>
<!-- 视频 -->
@ -282,18 +287,17 @@ export default {
this.classStyle = 'ball-content-4'
}
},
//icon
//treeicon
renderContent(h, { node, data }) {
// 使
let icon;
if (node.level === 1) {
icon = 'el-icon-coin'; // 使
} else if (node.level === 2) {
icon = 'el-icon-s-unfold'; // 使
} else {
icon = 'el-icon-user'; // 使
icon = 'pro_icon';
} else if (node.level === 2 && data.devStatus === 0) {
icon = 'ball_nocheck_icon';
} else if (node.level === 2 && data.devStatus === 1) {
icon = 'ball_check_icon';
}
return (
<span class="custom-tree-node">
<i class={icon}></i>
@ -622,4 +626,33 @@ ul {
margin-bottom: 10%;
overflow: auto;
}
::v-deep .pro_icon,
::v-deep .ball_nocheck_icon,
::v-deep .ball_check_icon {
vertical-align: top;
background-size: cover;
background-position: center;
display: inline-block;
margin-right: 4px;
}
::v-deep .pro_icon {
background-image: url("../../../../assets/images/pro_icon.png") !important;
width: 20px;
height: 20px;
}
::v-deep .ball_nocheck_icon {
background-image: url("../../../../assets/images/ball_nocheck_icon.png") !important;
width: 24px;
height: 24px;
}
::v-deep .ball_check_icon {
background-image: url("../../../../assets/images/ball_check_icon.png") !important;
width: 24px;
height: 24px;
}
</style>