diff --git a/src/assets/font/SourceHanSansCN-ExtraLight.otf b/src/assets/font/SourceHanSansCN-ExtraLight.otf new file mode 100644 index 0000000..5cad7ff Binary files /dev/null and b/src/assets/font/SourceHanSansCN-ExtraLight.otf differ diff --git a/src/assets/font/SourceHanSansCN-Heavy.otf b/src/assets/font/SourceHanSansCN-Heavy.otf new file mode 100644 index 0000000..58e1ca5 Binary files /dev/null and b/src/assets/font/SourceHanSansCN-Heavy.otf differ diff --git a/src/assets/font/SourceHanSansCN-Light.otf b/src/assets/font/SourceHanSansCN-Light.otf new file mode 100644 index 0000000..1cff8e6 Binary files /dev/null and b/src/assets/font/SourceHanSansCN-Light.otf differ diff --git a/src/assets/font/SourceHanSansCN-Medium.otf b/src/assets/font/SourceHanSansCN-Medium.otf new file mode 100644 index 0000000..53e03e0 Binary files /dev/null and b/src/assets/font/SourceHanSansCN-Medium.otf differ diff --git a/src/assets/font/SourceHanSansCN-Normal.otf b/src/assets/font/SourceHanSansCN-Normal.otf new file mode 100644 index 0000000..091f56d Binary files /dev/null and b/src/assets/font/SourceHanSansCN-Normal.otf differ diff --git a/src/assets/font/siyuan-Regular.otf b/src/assets/font/SourceHanSansCN-Regular.otf similarity index 100% rename from src/assets/font/siyuan-Regular.otf rename to src/assets/font/SourceHanSansCN-Regular.otf diff --git a/src/assets/font/YouSheBiaoTiHei-Bold.ttf b/src/assets/font/YouSheBiaoTiHei-Bold.ttf new file mode 100644 index 0000000..3729151 Binary files /dev/null and b/src/assets/font/YouSheBiaoTiHei-Bold.ttf differ diff --git a/src/assets/font/font.css b/src/assets/font/font.css index 931c1e8..b04b862 100644 --- a/src/assets/font/font.css +++ b/src/assets/font/font.css @@ -15,8 +15,17 @@ src: url('http://www.jichuanglanhai.com/demo/font-file/Alibaba-PuHuiTi-Regular.otf'); } @font-face { - font-family: 'siyuan-Regular'; - src: url('./siyuan-Regular.otf'); + font-family: 'Source Han Sans CN-Regula'; + src: url('./SourceHanSansCN-Regular.otf'); +} +@font-face { + font-family: 'Source Han Sans CN-Medium'; + src: url('./SourceHanSansCN-Medium.otf'); +} +/* */ +@font-face { + font-family: 'Source Han Sans CN-Bold'; + src: url('./SourceHanSansCN-Bold.otf'); } @font-face { font-family: 'Source Han Sans CN--Bold'; diff --git a/src/assets/images/bgtongyong.png b/src/assets/images/bgtongyong.png new file mode 100644 index 0000000..42a96f4 Binary files /dev/null and b/src/assets/images/bgtongyong.png differ diff --git a/src/assets/images/broadside2-bg.png b/src/assets/images/broadside2-bg.png new file mode 100644 index 0000000..3528e85 Binary files /dev/null and b/src/assets/images/broadside2-bg.png differ diff --git a/src/assets/images/二级按钮 1@2x.png b/src/assets/images/changeBtn1.png.png similarity index 100% rename from src/assets/images/二级按钮 1@2x.png rename to src/assets/images/changeBtn1.png.png diff --git a/src/assets/images/二级按钮@2x.png b/src/assets/images/changeBtn2.png similarity index 100% rename from src/assets/images/二级按钮@2x.png rename to src/assets/images/changeBtn2.png diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 6ef13a3..62725aa 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -5,6 +5,7 @@ @import './sidebar.scss'; @import './btn.scss'; @import '../font/font.css'; +@import './leaflet.scss'; body { height: 100%; diff --git a/src/assets/styles/leaflet.scss b/src/assets/styles/leaflet.scss new file mode 100644 index 0000000..289f18b --- /dev/null +++ b/src/assets/styles/leaflet.scss @@ -0,0 +1,333 @@ +.leaflet-popup-content-wrapper { + background-color: transparent !important; + box-shadow: none !important; +} +.leaflet-popup-close-button { + display: none; +} +.leaflet-popup-tip-container { + display: none; +} +// 事件分布 +.event-popup { + width: 252px; + height: 224px; + background-image: url("../images/popup/bg2.png"); + background-size: 100% 100%; + z-index: 600; + .event-title { + padding: 9px 10px 0 16px; + display: flex; + justify-content: space-between; + .title { + font-size: 14px; + font-family: Source Han Sans CN-Bold, Source Han Sans CN; + font-weight: 700; + color: #E9F4FF; + line-height: 19px; + display: flex; + align-items: center; + justify-content: center; + width: 194px; + height: 30px; + background: linear-gradient(270deg, rgba(9,32,53,0) 0%, rgba(8,37,64,0.98) 51%, rgba(9,34,56,0) 100%); + border-radius: 0px 0px 0px 0px; + opacity: 1; + border: 1px solid; + border-image: linear-gradient(90deg, rgba(64.00000378489494, 163.00000548362732, 255, 0), rgba(64.00000378489494, 163.00000548362732, 255, 1), rgba(64.00000378489494, 163.00000548362732, 255, 0)) 1 1; + } + .mask { + width: 13px; + height: 13px; + cursor: pointer; + } + } + .event-main { + padding: 12px 18px 25px 18px; + display: grid; + grid-column: 1fr; + grid-row-gap: 9px; + .event-info { + display: flex; + align-items: center; + .dot { + width: 4px; + height: 4px; + background: #DAEBFF; + box-shadow: 0px 0px 10px 5px rgba(0,119,255,0.25), 0px 0px 5px 0px rgba(229,241,255,0.25); + border-radius: 20px 20px 20px 20px; + margin-right: 7px; + } + .name,.position { + font-size: 12px; + font-family: Source Han Sans CN-Medium, Source Han Sans CN; + font-weight: 500; + color: #E9F4FF; + line-height: 17px; + } + .position { + width: 120px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } + .btn { + margin-top: 19px; + background-image: url('../images/popup/icon1btn.png'); + background-size: 100% 100%; + width: 100%; + height: 30px; + display: flex; + align-items: center; + justify-content: center; + font-size: 14px; + font-family: Source Han Sans CN-Regular, Source Han Sans CN; + font-weight: 400; + color: #D3EEF2; + line-height: 20px; + cursor: pointer; + } + } +} +// 执法人员 +.person-popup { + width: 242px; + height: 244px; + background-image: url("../images/popup/bg1.png"); + background-size: 100% 100%; + z-index: 600; + .person-title { + padding: 9px 10px 0 16px; + display: flex; + justify-content: space-between; + .title { + font-size: 14px; + font-family: Source Han Sans CN-Bold, Source Han Sans CN; + font-weight: 700; + color: #E9F4FF; + line-height: 19px; + display: flex; + align-items: center; + justify-content: center; + width: 194px; + height: 30px; + background: linear-gradient(270deg, rgba(9,32,53,0) 0%, rgba(8,37,64,0.98) 51%, rgba(9,34,56,0) 100%); + border-radius: 0px 0px 0px 0px; + opacity: 1; + border: 1px solid; + border-image: linear-gradient(90deg, rgba(64.00000378489494, 163.00000548362732, 255, 0), rgba(64.00000378489494, 163.00000548362732, 255, 1), rgba(64.00000378489494, 163.00000548362732, 255, 0)) 1 1; + } + .mask { + width: 13px; + height: 13px; + cursor: pointer; + } + } + .person-main { + padding: 12px 32px 25px 30px; + .person-info { + display: flex; + align-items: center; + .dot { + width: 4px; + height: 4px; + background: #DAEBFF; + box-shadow: 0px 0px 10px 5px rgba(0,119,255,0.25), 0px 0px 5px 0px rgba(229,241,255,0.25); + border-radius: 20px 20px 20px 20px; + margin-right: 15px; + } + .name,.position { + font-size: 12px; + font-family: Source Han Sans CN-Medium, Source Han Sans CN; + font-weight: 500; + color: #E9F4FF; + line-height: 14px; + margin-right: 9px; + } + } + .btns { + display: grid; + grid-column: 1fr; + grid-row-gap: 6px; + margin-top: 15px; + div { + background-image: url('../images/popup/icon1btn.png'); + width: 100%; + height: 30px; + background-size: 100% 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 14px; + font-family: Source Han Sans CN-Regular, Source Han Sans CN; + font-weight: 400; + color: #D3EEF2; + line-height: 20px; + cursor: pointer; + } + } + } +} +// 执法车辆 +.car-popup { + width: 242px; + height: 138px; + background-image: url("../images/popup/bg3.png"); + background-size: 100% 100%; + z-index: 600; + .car-title { + padding: 9px 10px 0 16px; + display: flex; + justify-content: space-between; + .title { + font-size: 14px; + font-family: Source Han Sans CN-Bold, Source Han Sans CN; + font-weight: 700; + color: #E9F4FF; + line-height: 19px; + display: flex; + align-items: center; + justify-content: center; + width: 194px; + height: 30px; + background: linear-gradient(270deg, rgba(9,32,53,0) 0%, rgba(8,37,64,0.98) 51%, rgba(9,34,56,0) 100%); + border-radius: 0px 0px 0px 0px; + opacity: 1; + border: 1px solid; + border-image: linear-gradient(90deg, rgba(64.00000378489494, 163.00000548362732, 255, 0), rgba(64.00000378489494, 163.00000548362732, 255, 1), rgba(64.00000378489494, 163.00000548362732, 255, 0)) 1 1; + } + .mask { + width: 13px; + height: 13px; + cursor: pointer; + } + } + .car-main { + padding: 12px 10px 25px 15px; + display: grid; + grid-column: 1fr; + grid-row-gap: 9px; + .car-info { + display: flex; + align-items: center; + .dot { + width: 4px; + height: 4px; + background: #DAEBFF; + box-shadow: 0px 0px 10px 5px rgba(0,119,255,0.25), 0px 0px 5px 0px rgba(229,241,255,0.25); + border-radius: 20px 20px 20px 20px; + margin-right: 7px; + } + .name,.position { + font-size: 12px; + font-family: Source Han Sans CN-Medium, Source Han Sans CN; + font-weight: 500; + color: #E9F4FF; + line-height: 17px; + margin-right: 8px; + } + } + .btn { + margin-top: 19px; + background-image: url('../images/popup/icon1btn.png'); + background-size: 100% 100%; + width: 100%; + height: 30px; + display: flex; + align-items: center; + justify-content: center; + font-size: 14px; + font-family: Source Han Sans CN-Regular, Source Han Sans CN; + font-weight: 400; + color: #D3EEF2; + line-height: 20px; + cursor: pointer; + } + } +} +// 监控视频 +.monitoring-popup { + width: 242px; + height: 230px; + background-image: url("../images/popup/bg4.png"); + background-size: 100% 100%; + z-index: 600; + .monitoring-title { + padding: 9px 10px 0 16px; + display: flex; + justify-content: space-between; + .title { + font-size: 14px; + font-family: Source Han Sans CN-Bold, Source Han Sans CN; + font-weight: 700; + color: #E9F4FF; + line-height: 19px; + display: flex; + align-items: center; + justify-content: center; + width: 194px; + height: 30px; + background: linear-gradient(270deg, rgba(9,32,53,0) 0%, rgba(8,37,64,0.98) 51%, rgba(9,34,56,0) 100%); + border-radius: 0px 0px 0px 0px; + opacity: 1; + border: 1px solid; + border-image: linear-gradient(90deg, rgba(64.00000378489494, 163.00000548362732, 255, 0), rgba(64.00000378489494, 163.00000548362732, 255, 1), rgba(64.00000378489494, 163.00000548362732, 255, 0)) 1 1; + } + .mask { + width: 13px; + height: 13px; + cursor: pointer; + } + } + .monitoring { + padding: 11px 25px 24px 25px; + .bg { + background-image: url("../images/videoImg.png"); + background-size: 100% 100%; + width: 192px; + height: 108px; + padding: 2px; + img { + width: 100%; + height: 100%; + } + } + .btns { + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 16px; + .btn { + background-image: url("../images/popup/icon2btn.png"); + background-size: 100% 100%; + width: 91px; + height: 30px; + display: flex; + align-items: center; + justify-content: center; + font-size: 14px; + font-family: Source Han Sans CN-Regular, Source Han Sans CN; + font-weight: 400; + color: #D3EEF2; + line-height: 20px; + cursor: pointer; + } + } + } +} +.popup-pc-person { + bottom: 20px !important; +} +.popup-pc-common { + bottom: 23px !important; +} +.popup-pc-emphasis { + bottom: 25px !important; +} +.popup-pc-car { + bottom: 25px !important; +} +.popup-pc-monitoring { + bottom: 20px !important; +} \ No newline at end of file diff --git a/src/views/bigScreen/components/mapLeftContent.vue b/src/views/bigScreen/components/mapLeftContent.vue index c2d64a6..0fa6e46 100644 --- a/src/views/bigScreen/components/mapLeftContent.vue +++ b/src/views/bigScreen/components/mapLeftContent.vue @@ -4,11 +4,11 @@ * @Author: JC9527 * @Date: 2023-08-15 09:44:13 * @LastEditors: JC9527 - * @LastEditTime: 2023-08-17 21:03:34 + * @LastEditTime: 2023-08-18 12:05:14 --> @@ -129,10 +129,40 @@ export default { },{ title:'苏A123456' }, - ] + ], + itemOne:{ + height:'', + }, + itemTwo:{ + height:'', + }, + oneHeight:0, + screenHeight:'', } }, methods:{ + getDomHeight(){ + this.$nextTick(()=>{ + let dom = document.getElementsByClassName('lfet-list-one'); + let dom2 = document.getElementsByClassName('left-list-title'); + let height2 = dom2[0].getBoundingClientRect(); + let height = dom[0].getBoundingClientRect(); + let windowHeight = window.innerHeight; + let relativeHeight = (windowHeight - height.top) / 2 - 14; + let sum = relativeHeight * 2 - 2; + let relativeHeight2 = (windowHeight - height2.top - sum) / 2 - 55; + this.itemOne.height = relativeHeight + 'px'; + this.itemTwo.height = relativeHeight2 + 'px'; + this.oneHeight = Number(relativeHeight); + }) + } + }, + mounted(){ + window.addEventListener("resize", () => { + this.screenHeight = document.body.clientHeight; + this.getDomHeight(); + }); + this.getDomHeight(); }, } @@ -140,7 +170,8 @@ export default { .left-box { display: grid; grid-column: 1fr; - grid-row-gap: 19px; + grid-row-gap: 24px; + height: 100%; .item { // background: rgba(222, 225, 230, 0.6); .item-main { @@ -198,5 +229,11 @@ export default { } } } + .lfet-list-one { + height: 100%; + } + .left-list-title { + height: 100%; + } } diff --git a/src/views/bigScreen/components/mapRightContent.vue b/src/views/bigScreen/components/mapRightContent.vue index 63e5cfc..312c4bb 100644 --- a/src/views/bigScreen/components/mapRightContent.vue +++ b/src/views/bigScreen/components/mapRightContent.vue @@ -4,25 +4,25 @@ * @Author: JC9527 * @Date: 2023-08-15 11:09:57 * @LastEditors: JC9527 - * @LastEditTime: 2023-08-17 21:00:46 + * @LastEditTime: 2023-08-18 11:02:13 --> @@ -90,9 +90,31 @@ export default { unsolved:20 }, ], + getHeight:0, + relativeHeight:{ + height:'', + }, } }, methods:{ + getDomHeight(){ + this.$nextTick(()=>{ + let dom = document.getElementsByClassName('right-box'); + let height = dom[0].getBoundingClientRect(); + let windowWidth = window.innerWidth; + let windowHeight = window.innerHeight; + let relativeHeight = (windowHeight - height.top) / 4 - 18; + this.relativeHeight.height = relativeHeight + 'px' + this.getHeight = Number(relativeHeight); + }) + } + }, + mounted(){ + window.addEventListener("resize", () => { + this.screenHeight = document.body.clientHeight; + this.getDomHeight(); + }); + this.getDomHeight(); }, } @@ -101,6 +123,7 @@ export default { display: grid; grid-column: 1fr; grid-row-gap: 20px; + height: 100%; .item { // background: rgba(222, 225, 230, 0.6); // height: 161px; diff --git a/src/views/bigScreen/index.vue b/src/views/bigScreen/index.vue index 8b4fe6d..18b283c 100644 --- a/src/views/bigScreen/index.vue +++ b/src/views/bigScreen/index.vue @@ -4,14 +4,14 @@ * @Author: JC9527 * @Date: 2023-08-14 14:40:02 * @LastEditors: JC9527 - * @LastEditTime: 2023-08-16 11:32:02 + * @LastEditTime: 2023-08-18 16:25:54 --> @@ -40,6 +46,8 @@ export default { newTime: '', currentWork:'', input:'', + leftAnimation:true, + rightAnimation:true, } }, created() { @@ -61,7 +69,15 @@ export default { methods:{ search(){ - } + }, + leftAnimationAction(){ + console.log('点击了按钮') + this.leftAnimation = !this.leftAnimation + console.log(this.leftAnimation) + }, + rightAnimationAction(){ + this.rightAnimation = !this.rightAnimation + }, }, components:{myMap} // computed: { @@ -86,7 +102,72 @@ div { center; background-size: cover; position: relative; + .map-before-left { + position: absolute; + left: 0px; + top: 0px; + width: 510px; + height: 95%; + z-index: 550; + box-sizing: border-box; + } + .map-before-left::before { + content: ""; + position: absolute; /* 一定要用绝对定位 */ + width: 100%; + height: 100%; + backdrop-filter: blur(5px); /* 模糊半径 */ + } + // .left-animation-enter-active{ + // transition: all .8s ease; + // } + // .left-animation-enter{ + // transform: translateX(510px); + // opacity: 0; + // } + // .left-animation-leave-active{ + // transition: all .8s ease; + // } + // .left-animation-leave{ + // transform: translateX(510px); + // opacity: 1; + // } + .left-animation-enter-active, .left-animation-leave-active { + transition: all 1s; + } + .left-animation-enter, .left-animation-leave-to { + /* 进入的初始状态和离开的最终状态 */ + opacity: 0; + transform: translateX(-510px); + } + + .right-animation-enter-active, .right-animation-leave-active { + transition: all 1s; + } + .right-animation-enter, .right-animation-leave-to { + /* 进入的初始状态和离开的最终状态 */ + opacity: 0; + transform: translateX(510px); + } + + .map-before-right { + position: absolute; + right: 0px; + top: 0px; + width: 510px; + height: 95%; + z-index: 550; + box-sizing: border-box; + } + .map-before-right::before { + content: ""; + position: absolute; /* 一定要用绝对定位 */ + width: 100%; + height: 100%; + backdrop-filter: blur(5px); /* 模糊半径 */ + } .system-header { + z-index: 600; position: absolute; top: 0; left: 0; @@ -123,6 +204,7 @@ div { .left-tags { display: flex; width: 630px; + z-index: 600; align-items: flex-start; // flex-direction: row-reverse; // justify-content: center; @@ -135,6 +217,14 @@ div { font-weight: 400; color: #9ae6ff; } + .new-work { + padding: 28px 0 0 10px; + font-size: 18px; + font-family: Source Han Sans CN-Medium, Source Han Sans CN; + font-weight: 500; + color: #D3EEF2; + line-height: 26px; + } } // .right-tags { // padding-top: 16px; diff --git a/src/views/components/crewAssign/index.vue b/src/views/components/crewAssign/index.vue index 1eaf054..1d768e2 100644 --- a/src/views/components/crewAssign/index.vue +++ b/src/views/components/crewAssign/index.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-08-17 09:04:40 * @LastEditors: JC9527 - * @LastEditTime: 2023-08-17 18:28:30 + * @LastEditTime: 2023-08-18 09:10:01 -->