Browse Source

修改 首页展示

wangqin
Joe 11 months ago
parent
commit
76e684a686
  1. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue
  2. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
  3. 32
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue
  4. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue

10
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue

@ -25,10 +25,10 @@
</div> </div>
<!-- 摄像机设备 控制 弹窗 球机 可打开--> <!-- 摄像机设备 控制 弹窗 球机 可打开-->
<!-- <ControlCamera :data="cameraDialogConfig.data" :visible="cameraDialogConfig.visibleType === 0" /> --> <!-- <ControlCamera :data="dialogConfig.data" :visible="dialogConfig.visibleType === 0" /> -->
<!-- 摄像机 G35 K094+079 下行可控 枪机 可打开--> <!-- 摄像机 G35 K094+079 下行可控 枪机 可打开-->
<!-- <Camera :data="cameraDialogConfig.data" :visible="cameraDialogConfig.visibleType === 1" /> --> <!-- <Camera :data="dialogConfig.data" :visible="dialogConfig.visibleType === 1" /> -->
<component :dialogData="cameraDialogConfig.data" :is="cameraDialogConfig.component" @change="handleCameraChange" /> <component :dialogData="dialogConfig.data" :is="dialogConfig.component" @change="handleCameraChange" />
</Bg1> </Bg1>
</template> </template>
@ -55,7 +55,7 @@ export default {
tabContentData: [], tabContentData: [],
// - // -
cameraDialogConfig: { dialogConfig: {
// 0 ControlCamera | 1 Camera // 0 ControlCamera | 1 Camera
component: void 0, component: void 0,
data: void 0, data: void 0,
@ -107,7 +107,7 @@ export default {
// //
handleCameraChange() { handleCameraChange() {
this.cameraDialogConfig = { this.dialogConfig = {
// 0 ControlCamera | 1 Camera // 0 ControlCamera | 1 Camera
component: null, component: null,
data: null data: null

4
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

@ -63,13 +63,13 @@ export const eventMap = {
const markerClick = (e) => { const markerClick = (e) => {
const extData = e.target.getExtData(); const extData = e.target.getExtData();
this.cameraDialogConfig = { this.dialogConfig = {
// 0 有(球机) 1 ⽆(枪机) // 0 有(球机) 1 ⽆(枪机)
component: cameraCtrlMap[extData.ptzCtrl], component: cameraCtrlMap[extData.ptzCtrl],
data: extData, data: extData,
}; };
console.log(this.cameraDialogConfig); console.log(this.dialogConfig);
}; };
const markerCluster = await setMarkerCluster( const markerCluster = await setMarkerCluster(

32
ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue

@ -8,7 +8,7 @@
<FocusedMonitoring class="card-menu" /> <FocusedMonitoring class="card-menu" />
<!-- --> <!-- -->
<RoadAndEvents class="content-l-b card-menu" @onClickItem="onClickItem"/> <RoadAndEvents class="content-l-b card-menu" @onClickItem="onClickItem" />
</div> </div>
<!-- 右侧 --> <!-- 右侧 -->
@ -49,9 +49,9 @@ export default {
AMapContainer, AMapContainer,
InfoBoard InfoBoard
}, },
data(){ data() {
return{ return {
isShowInfoBoard:false isShowInfoBoard: false
} }
}, },
provide() { provide() {
@ -66,12 +66,17 @@ export default {
const result = (e.target.style.transform.match(/[-0-9]+/)?.[0] || -90) * -1 const result = (e.target.style.transform.match(/[-0-9]+/)?.[0] || -90) * -1
e.target.style.transform = `rotate(${result}deg)`; e.target.style.transform = `rotate(${result}deg)`;
if (translateXElement.style.transform !== `translateY(calc(100% - 36px))`) {
// translateXElement.style.transform = translateXElement.style.transform ? "" : `translateY(calc(100% - 36px))` translateXElement.style.transform = `translateY(calc(100% - 36px))`
translateXElement.style.height = translateXElement.style.height != "36px" ? "36px" : `100%` translateXElement.style.position = `absolute`;
translateXElement.style.bottom = `0px`;
} else {
translateXElement.style.transform = `translateY(0)`
translateXElement.style.position = `relative`;
}
}, },
onClickItem(item){ onClickItem(item) {
if(item.title.includes("情报板")){ if (item.title.includes("情报板")) {
this.isShowInfoBoard = true; this.isShowInfoBoard = true;
} }
} }
@ -87,7 +92,7 @@ export default {
flex-direction: column; flex-direction: column;
gap: 30px; gap: 30px;
padding: 19px 31px 0 25px; padding: 19px 31px 0 25px;
justify-content: space-between; justify-content: center;
.card-menu { .card-menu {
transition: all .24s linear; transition: all .24s linear;
@ -98,7 +103,8 @@ export default {
// margin: auto; // margin: auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex: 1; // flex: 1;
height: min-content;
pointer-events: none; pointer-events: none;
>div { >div {
@ -137,9 +143,9 @@ export default {
// margin: auto; // margin: auto;
pointer-events: none; pointer-events: none;
overflow: hidden; overflow: hidden;
height: 100%; height: min-content;
// height: fit-content;
will-change: height; will-change: height;
bottom: 0;
>div { >div {
pointer-events: all; pointer-events: all;

10
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue

@ -2,10 +2,10 @@
<div class='DutyOfficer'> <div class='DutyOfficer'>
<SpecialTable :columns="columns" :data="data"> <SpecialTable :columns="columns" :data="data">
<template #title-DateDuty> <template #title-DateDuty>
<div> <div class="special-title">
值班中心 值班中心
</div> </div>
</template> </template>
<template #content-DateDuty="{ data }"> <template #content-DateDuty="{ data }">
<div class="item"> <div class="item">
<img src="@screen/images/form/calendar.svg" /> <img src="@screen/images/form/calendar.svg" />
@ -194,6 +194,12 @@ export default {
<style lang='scss' scoped> <style lang='scss' scoped>
.DutyOfficer { .DutyOfficer {
.special-title {
background: linear-gradient(180deg, #FFC071 0%, #D68D00 100%);
background-clip: text;
color: transparent;
}
.item { .item {
display: flex; display: flex;
align-items: center; align-items: center;

Loading…
Cancel
Save