基础设施

This commit is contained in:
gaoyuanwei 2022-06-24 17:04:47 +08:00
parent 2ad5476edb
commit f2671b729d
2 changed files with 460 additions and 430 deletions

View File

@ -6,7 +6,7 @@
<div class="details-pageconetent-left"> <div class="details-pageconetent-left">
<detailsPageconetentTree /> <detailsPageconetentTree />
</div> </div>
<div class="top" v-if="Cardsname != '知识库'"> <div class="top" v-if="Cardsname != '知识库' && Cardsname != '基础设施'">
<div class="top-title"> <div class="top-title">
<div <div
v-for="item in titleName" v-for="item in titleName"
@ -144,6 +144,28 @@
<a-empty /> <a-empty />
</div> </div>
</div> </div>
<div class="top" v-else-if="Cardsname === '基础设施'">
<div class="top-title">
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
backgroundSize: 'cover',
}"
></span>
<span>{{ item.name }}</span>
</div>
</div>
<div class="">
<infrastructure-page></infrastructure-page>
</div>
</div>
<div class="top" v-else> <div class="top" v-else>
<div class="top-title"> <div class="top-title">
<div <div
@ -657,6 +679,8 @@
// import VideoSurveillance from '@/views/home/videoSurveillance' // import VideoSurveillance from '@/views/home/videoSurveillance'
// //
import DetailsPageResource from '@/views/home/components/DetailsPageResource.vue' import DetailsPageResource from '@/views/home/components/DetailsPageResource.vue'
//
import InfrastructurePage from './infrastructurePage.vue'
export default defineComponent({ export default defineComponent({
setup() { setup() {
// const store = useStore() // const store = useStore()
@ -1294,6 +1318,7 @@
// VideoCameraOutlined, // VideoCameraOutlined,
// VideoSurveillance, // VideoSurveillance,
DetailsPageResource, DetailsPageResource,
InfrastructurePage,
}, },
beforeUnmount() { beforeUnmount() {
mybus.off('selectCardsitem') mybus.off('selectCardsitem')
@ -1306,474 +1331,474 @@
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.resultListSearchInput-father { .resultListSearchInput-father {
background: #f3f5f9; background: #f3f5f9;
padding-left: 0.2rem; padding-left: 0.2rem;
padding-top: 0.2rem; padding-top: 0.2rem;
.resultListSearchInput-son { .resultListSearchInput-son {
background: #fff; background: #fff;
padding: 0.2rem 0.2rem 0rem 0.3rem; padding: 0.2rem 0.2rem 0rem 0.3rem;
margin-right: 0.2rem; margin-right: 0.2rem;
.hengxian { .hengxian {
width: 100%; width: 100%;
height: 0.01rem; height: 0.01rem;
background: rgba(150, 144, 144, 0.3); background: rgba(150, 144, 144, 0.3);
margin-top: 0.2rem; margin-top: 0.2rem;
}
} }
} }
.resultListSearchInput { }
margin-left: 0.1rem; .resultListSearchInput {
:deep(.ant-input) { margin-left: 0.1rem;
width: 4rem; :deep(.ant-input) {
height: 0.36rem; width: 4rem;
background: #fff; height: 0.36rem;
border-radius: 0.04rem; background: #fff;
} border-radius: 0.04rem;
:deep(.ant-input-search-button) {
width: 0.8rem;
height: 0.36rem;
background: #0087ff;
border-radius: 0.04rem !important;
font-size: 0.14rem;
font-weight: 400;
color: #fff;
line-height: 0.34rem;
margin-left: 0.1rem;
}
:deep(.ant-input-group-addon) {
left: 0 !important;
}
} }
.button-reset { :deep(.ant-input-search-button) {
border: 0;
outline: none;
width: 0.8rem; width: 0.8rem;
height: 0.36rem; height: 0.36rem;
background: #e1edfa; background: #0087ff;
border-radius: 0.04rem; border-radius: 0.04rem !important;
font-size: 0.14rem; font-size: 0.14rem;
font-weight: 400; font-weight: 400;
color: #0087ff; color: #fff;
line-height: 0.34rem; line-height: 0.34rem;
margin-left: 2.5rem; margin-left: 0.1rem;
cursor: pointer;
} }
.details-pageconetent { :deep(.ant-input-group-addon) {
height: 100%; left: 0 !important;
width: 100%; }
display: flex; }
// flex-direction: column; .button-reset {
justify-content: center; border: 0;
align-items: center; outline: none;
margin-top: 0.67rem; width: 0.8rem;
height: 0.36rem;
background: #e1edfa;
border-radius: 0.04rem;
font-size: 0.14rem;
font-weight: 400;
color: #0087ff;
line-height: 0.34rem;
margin-left: 2.5rem;
cursor: pointer;
}
.details-pageconetent {
height: 100%;
width: 100%;
display: flex;
// flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 0.67rem;
position: relative;
background: rgba(245, 243, 243, 0.3);
.details-pageconetent-left {
max-height: 6.9rem;
position: absolute;
width: 2.5rem;
top: 0.17rem;
left: 2.5rem;
margin-right: 0.17rem;
overflow: auto;
}
.top {
min-height: 7.2rem;
position: relative; position: relative;
background: rgba(245, 243, 243, 0.3); width: 10.87rem;
.details-pageconetent-left { display: flex;
max-height: 6.9rem; padding-top: 0.2rem;
position: absolute; flex-direction: column;
width: 2.5rem; // align-items: center;
top: 0.17rem; font-size: 0.16rem;
left: 2.5rem; justify-content: left;
margin-right: 0.17rem; margin-left: 2.5rem;
overflow: auto; .pagination {
background: #f3f5f9;
padding-bottom: 0.6rem;
} }
.top { .jichusheshi {
min-height: 7.2rem; // display: flex;
position: relative; // flex-direction: column;
width: 10.87rem; // justify-content: center;
display: flex; // padding-top: .4rem;
padding-top: 0.2rem; height: 4.45rem;
flex-direction: column; // overflow: hidden;
// align-items: center; .yunziyuan {
font-size: 0.16rem; width: 100%;
justify-content: left; position: relative;
margin-left: 2.5rem; .shuoming {
.pagination { position: absolute;
background: #f3f5f9; right: 0.2rem;
padding-bottom: 0.6rem; top: 0.15rem;
} font-size: 0.12rem;
.jichusheshi {
// display: flex;
// flex-direction: column;
// justify-content: center;
// padding-top: .4rem;
height: 4.45rem;
// overflow: hidden;
.yunziyuan {
width: 100%;
position: relative;
.shuoming {
position: absolute;
right: 0.2rem;
top: 0.15rem;
font-size: 0.12rem;
}
.yunziyuan-title {
display: flex;
align-items: center;
.tupian {
// width: .89rem;
// height: .74rem;
// background: url('~@/assets/home/yunziyuan.png');
}
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
}
.fenlei {
display: flex;
margin-left: 0.2rem;
margin-right: 0.3rem;
justify-content: space-between;
}
.keyongziyuan {
display: flex;
justify-content: space-between;
margin-left: 0.3rem;
margin-right: 0.3rem;
div {
display: flex;
div:last-child {
font-weight: 600;
}
}
}
} }
.yunziyuan > div { .yunziyuan-title {
margin-bottom: 0.1rem;
}
.shipin {
width: 100%;
.shipin-title {
display: flex;
align-items: center;
.tupian {
// width: .56rem;
// height: .5rem;
// background: url('~@/assets/home/shipin.png');
}
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
}
.fenlei {
display: flex;
margin-left: 0.2rem;
div {
margin-right: 0.6rem;
}
.shuzi {
font-weight: 600;
}
}
}
.shipin > div {
margin-bottom: 0.1rem;
}
}
.jichusheshi > div {
// background: #eaf4ff;
padding-top: 0.1rem;
border-radius: 0.04rem;
margin-bottom: 0.2rem;
padding-bottom: 0.4rem;
}
.shujuziyuan {
display: flex;
flex-direction: column;
justify-content: center;
padding-top: 0.4rem;
.yunziyuan {
width: 100%;
position: relative;
.shuoming {
position: absolute;
right: 0.2rem;
top: 0.15rem;
font-size: 0.12rem;
}
.yunziyuan-title {
display: flex;
align-items: center;
margin-left: 0.2rem;
.tupian {
// width: .51rem;
// height: .5rem;
// background: url('~@/assets/home/shujuziyuan.png');
}
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
}
.fenlei {
display: flex;
margin-left: 0.2rem;
margin-right: 0.3rem;
justify-content: space-between;
}
.keyongziyuan {
display: flex;
justify-content: space-between;
margin-left: 0.3rem;
margin-right: 0.3rem;
div {
display: flex;
div:last-child {
font-weight: 600;
}
}
}
}
.yunziyuan > div {
margin-bottom: 0.1rem;
}
}
.shujuziyuan > div {
background: #eaf4ff;
padding-top: 0.1rem;
border-radius: 0.04rem;
margin-bottom: 0.2rem;
padding-bottom: 0.4rem;
}
.top-title {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.2rem;
font-family: 'Alibaba PuHuiTi';
color: #000000;
line-height: 0.34rem;
.photo {
display: inline-block;
height: 0.44rem;
width: 0.44rem;
margin-right: 0.1rem;
}
div {
margin: 0 0.2rem;
padding: 0 0.1rem;
cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
.tupian {
// width: .89rem;
// height: .74rem;
// background: url('~@/assets/home/yunziyuan.png');
}
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
} }
div:hover { .fenlei {
color: #0087ff; display: flex;
margin-left: 0.2rem;
margin-right: 0.3rem;
justify-content: space-between;
} }
.sel { .keyongziyuan {
font-weight: 600; display: flex;
color: #0087ff; justify-content: space-between;
border-bottom: 0.02rem solid #0087ff; margin-left: 0.3rem;
margin-right: 0.3rem;
div {
display: flex;
div:last-child {
font-weight: 600;
}
}
} }
} }
.top-content-father { .yunziyuan > div {
width: 10.87rem; margin-bottom: 0.1rem;
padding-left: 0.2rem; }
// margin-bottom: .2rem; .shipin {
background: #f3f5f9; width: 100%;
.top-content-son { .shipin-title {
background: #fff;
margin: 0rem 0.2rem 0.2rem 0rem;
padding-top: 0.2rem;
padding-bottom: 0.2rem;
}
.top-content {
display: flex; display: flex;
margin-top: 0rem; align-items: center;
span:nth-child(1) { .tupian {
display: inline-block; // width: .56rem;
position: relative; // height: .5rem;
// width: .7rem; // background: url('~@/assets/home/shipin.png');
line-height: 0.3614rem;
white-space: normal;
text-align: center;
vertical-align: middle;
} }
// .top-content-title { .title {
// top: -0.2rem; margin-left: 0.1rem;
// } font-weight: 600;
.leixingsumfather { text-decoration: underline;
width: 8.1rem;
display: inline-block;
height: 0.3014rem;
overflow: hidden;
// width: 7.18rem;
}
.leixingsumfather2 {
width: 9.2rem;
}
.leixingsum {
display: inline-block;
cursor: pointer; cursor: pointer;
text-align: center; }
margin-top: 0.05rem; }
// margin-bottom: .1rem; .fenlei {
.ant-tag-checkable { display: flex;
width: 0.83rem; margin-left: 0.2rem;
height: 0.25rem; div {
display: flex; margin-right: 0.6rem;
justify-content: center; }
align-items: center; .shuzi {
padding-left: 0.05rem; font-weight: 600;
padding-right: 0.05rem; }
float: left; }
margin: 0 0.15rem; }
font-family: 'AlibabaPuHuiTiR'; .shipin > div {
font-size: 0.14rem; margin-bottom: 0.1rem;
color: #333333; }
font-weight: 500; }
text-align: center; .jichusheshi > div {
line-height: 0.14rem; // background: #eaf4ff;
} padding-top: 0.1rem;
:deep(.ant-tag-checkable-checked) { border-radius: 0.04rem;
// width: .67rem; margin-bottom: 0.2rem;
margin-left: 0.15rem; padding-bottom: 0.4rem;
margin-right: 0.15rem; }
text-align: center; .shujuziyuan {
} display: flex;
.ant-tag-checkable:active, flex-direction: column;
.ant-tag-checkable-checked { justify-content: center;
width: 0.85rem; padding-top: 0.4rem;
font-family: 'Alibaba PuHuiTi'; .yunziyuan {
font-weight: 500; width: 100%;
background-color: #0087ff; position: relative;
color: #ffffff; .shuoming {
border-radius: 0.16rem; position: absolute;
right: 0.2rem;
top: 0.15rem;
font-size: 0.12rem;
}
.yunziyuan-title {
display: flex;
align-items: center;
margin-left: 0.2rem;
.tupian {
// width: .51rem;
// height: .5rem;
// background: url('~@/assets/home/shujuziyuan.png');
}
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
}
.fenlei {
display: flex;
margin-left: 0.2rem;
margin-right: 0.3rem;
justify-content: space-between;
}
.keyongziyuan {
display: flex;
justify-content: space-between;
margin-left: 0.3rem;
margin-right: 0.3rem;
div {
display: flex;
div:last-child {
font-weight: 600;
} }
} }
.active { }
font-family: Alibaba PuHuiTi; }
.yunziyuan > div {
margin-bottom: 0.1rem;
}
}
.shujuziyuan > div {
background: #eaf4ff;
padding-top: 0.1rem;
border-radius: 0.04rem;
margin-bottom: 0.2rem;
padding-bottom: 0.4rem;
}
.top-title {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.2rem;
font-family: 'Alibaba PuHuiTi';
color: #000000;
line-height: 0.34rem;
.photo {
display: inline-block;
height: 0.44rem;
width: 0.44rem;
margin-right: 0.1rem;
}
div {
margin: 0 0.2rem;
padding: 0 0.1rem;
cursor: pointer;
display: flex;
align-items: center;
}
div:hover {
color: #0087ff;
}
.sel {
font-weight: 600;
color: #0087ff;
border-bottom: 0.02rem solid #0087ff;
}
}
.top-content-father {
width: 10.87rem;
padding-left: 0.2rem;
// margin-bottom: .2rem;
background: #f3f5f9;
.top-content-son {
background: #fff;
margin: 0rem 0.2rem 0.2rem 0rem;
padding-top: 0.2rem;
padding-bottom: 0.2rem;
}
.top-content {
display: flex;
margin-top: 0rem;
span:nth-child(1) {
display: inline-block;
position: relative;
// width: .7rem;
line-height: 0.3614rem;
white-space: normal;
text-align: center;
vertical-align: middle;
}
// .top-content-title {
// top: -0.2rem;
// }
.leixingsumfather {
width: 8.1rem;
display: inline-block;
height: 0.3014rem;
overflow: hidden;
// width: 7.18rem;
}
.leixingsumfather2 {
width: 9.2rem;
}
.leixingsum {
display: inline-block;
cursor: pointer;
text-align: center;
margin-top: 0.05rem;
// margin-bottom: .1rem;
.ant-tag-checkable {
width: 0.83rem;
height: 0.25rem;
display: flex;
justify-content: center;
align-items: center;
padding-left: 0.05rem;
padding-right: 0.05rem;
float: left;
margin: 0 0.15rem;
font-family: 'AlibabaPuHuiTiR';
font-size: 0.14rem;
color: #333333;
font-weight: 500;
text-align: center;
line-height: 0.14rem;
}
:deep(.ant-tag-checkable-checked) {
// width: .67rem;
margin-left: 0.15rem;
margin-right: 0.15rem;
text-align: center;
}
.ant-tag-checkable:active,
.ant-tag-checkable-checked {
width: 0.85rem;
font-family: 'Alibaba PuHuiTi';
font-weight: 500; font-weight: 500;
background-color: #0087ff; background-color: #0087ff;
color: #ffffff; color: #ffffff;
border-radius: 0.16rem;
} }
} }
.top-content:nth-child(1) { .active {
margin-top: 0rem !important; font-family: Alibaba PuHuiTi;
}
}
}
}
.shrinkTag {
width: 0.5rem;
display: flex;
justify-content: center;
align-items: flex-end;
margin-bottom: 0.05rem;
span {
cursor: pointer;
}
}
.shrink {
height: unset !important;
overflow: unset !important;
}
.talk-monitor {
position: fixed;
bottom: 0.5rem;
right: 0.1rem;
z-index: 9999;
cursor: pointer;
i {
width: 0.64rem;
height: 0.64rem;
display: inline-block;
background: url('~@/assets/home/icon-talk.png');
background-size: cover;
}
}
.top-content-father {
width: 10.87rem;
padding-left: 0.2rem;
// margin-bottom: .2rem;
.top-content {
display: flex;
margin-top: 0.23rem;
span:nth-child(1) {
display: inline-block;
position: relative;
width: 0.68rem;
font-weight: 600;
white-space: normal;
text-align: center;
vertical-align: middle;
font-size: 0.16rem;
margin-left: 0.3rem;
}
// .top-content-title {
// top: -0.2rem;
// }
.leixingsumfather {
width: 7.7rem;
display: inline-block;
height: 0.3014rem;
overflow: hidden;
// width: 7.18rem;
}
.leixingsum {
width: 0.93rem;
display: inline-block;
cursor: pointer;
text-align: center;
margin-top: 0.05rem;
// margin-bottom: .1rem;
.ant-tag-checkable {
width: 0.85rem;
height: 0.25rem;
display: flex;
justify-content: center;
align-items: center;
padding-left: 0.05rem;
padding-right: 0.05rem;
float: left;
margin: 0 0.15rem;
font-family: 'AlibabaPuHuiTiR';
font-size: 0.14rem;
color: #333333;
font-weight: 500;
text-align: center;
line-height: 0.14rem;
}
:deep(.ant-tag-checkable-checked) {
// width: .67rem;
margin-left: 0.15rem;
margin-right: 0.15rem;
text-align: center;
}
.ant-tag-checkable:active,
.ant-tag-checkable-checked {
width: 0.85rem;
font-family: 'Alibaba PuHuiTi';
font-weight: 500; font-weight: 500;
background-color: #0087ff; background-color: #0087ff;
color: #ffffff; color: #ffffff;
border-radius: 0.16rem;
} }
} }
.active { .top-content:nth-child(1) {
font-family: Alibaba PuHuiTi; margin-top: 0rem !important;
}
}
}
}
.shrinkTag {
width: 0.5rem;
display: flex;
justify-content: center;
align-items: flex-end;
margin-bottom: 0.05rem;
span {
cursor: pointer;
}
}
.shrink {
height: unset !important;
overflow: unset !important;
}
.talk-monitor {
position: fixed;
bottom: 0.5rem;
right: 0.1rem;
z-index: 9999;
cursor: pointer;
i {
width: 0.64rem;
height: 0.64rem;
display: inline-block;
background: url('~@/assets/home/icon-talk.png');
background-size: cover;
}
}
.top-content-father {
width: 10.87rem;
padding-left: 0.2rem;
// margin-bottom: .2rem;
.top-content {
display: flex;
margin-top: 0.23rem;
span:nth-child(1) {
display: inline-block;
position: relative;
width: 0.68rem;
font-weight: 600;
white-space: normal;
text-align: center;
vertical-align: middle;
font-size: 0.16rem;
margin-left: 0.3rem;
}
// .top-content-title {
// top: -0.2rem;
// }
.leixingsumfather {
width: 7.7rem;
display: inline-block;
height: 0.3014rem;
overflow: hidden;
// width: 7.18rem;
}
.leixingsum {
width: 0.93rem;
display: inline-block;
cursor: pointer;
text-align: center;
margin-top: 0.05rem;
// margin-bottom: .1rem;
.ant-tag-checkable {
width: 0.85rem;
height: 0.25rem;
display: flex;
justify-content: center;
align-items: center;
padding-left: 0.05rem;
padding-right: 0.05rem;
float: left;
margin: 0 0.15rem;
font-family: 'AlibabaPuHuiTiR';
font-size: 0.14rem;
color: #333333;
font-weight: 500;
text-align: center;
line-height: 0.14rem;
}
:deep(.ant-tag-checkable-checked) {
// width: .67rem;
margin-left: 0.15rem;
margin-right: 0.15rem;
text-align: center;
}
.ant-tag-checkable:active,
.ant-tag-checkable-checked {
width: 0.85rem;
font-family: 'Alibaba PuHuiTi';
font-weight: 500; font-weight: 500;
background-color: #0087ff; background-color: #0087ff;
color: #ffffff; color: #ffffff;
border-radius: 0.16rem;
} }
} }
.top-content:nth-child(1) { .active {
margin-top: 0.41rem !important; font-family: Alibaba PuHuiTi;
font-weight: 500;
background-color: #0087ff;
color: #ffffff;
} }
} }
:deep(.ant-card-grid) { .top-content:nth-child(1) {
overflow: hidden; margin-top: 0.41rem !important;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
} }
}
:deep(.ant-card-grid) {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
}
</style> </style>

View File

@ -0,0 +1,5 @@
<template>
<div>1234567890</div>
</template>
<script></script>
<style lang="less" scoped></style>