| | |
| | | { |
| | | path: '/EnergyConsum', // 能耗看板 - 绿色低碳运营 |
| | | name: 'EnergyConsum', |
| | | meta: { |
| | | title: '能耗看板' |
| | | }, |
| | | component: () => import('../views/EnergyConsum.vue') |
| | | }, |
| | | { |
| | | path: '/LogisticsEfficiency', // 物流运行调度看板- 调度能效 |
| | | name: 'LogisticsEfficiency', |
| | | meta: { |
| | | title: '物流运行调度看板' |
| | | }, |
| | | component: () => import('../views/LogisticsEfficiency.vue') |
| | | }, |
| | | { |
| | | path: '/SecurityControl', // 安防管控大屏 - |
| | | name: 'SecurityControl', |
| | | meta: { |
| | | title: '安防管控大屏' |
| | | }, |
| | | component: () => import('../views/SecurityControl.vue') |
| | | }, |
| | | { |
| | | path: '/LogisticsCenter', //库制管理看板-物流中心 |
| | | name: 'LogisticsCenter', |
| | | meta: { |
| | | title: '库制管理看板' |
| | | }, |
| | | component: () => import('../views/LogisticsCenter.vue') |
| | | }, |
| | | { |
| | | path: '/FireFighting', //消防监控 |
| | | name: 'FireFighting', |
| | | meta: { |
| | | title: '消防监控' |
| | | }, |
| | | component: () => import('../views/FireFighting.vue') |
| | | }, |
| | | { |
| | | path: '/TaskEfficiency', //内场调度看板 -作业能效 |
| | | name: 'TaskEfficiency', |
| | | meta: { |
| | | title: '内场调度看板' |
| | | }, |
| | | component: () => import('../views/TaskEfficiency.vue') |
| | | }, |
| | | ] |
| | | }) |
| | | |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | window.document.title = to.meta.title |
| | | next() |
| | | }) |
| | | |
| | | export default router |
| | |
| | | </div> |
| | | <div class="content_wrap"> |
| | | <div class="content"> |
| | | <div class="num" v-if="data1.monthOutTotal || data1.yearOutTotal">{{ activeTab1 == 0 ? data1.monthOutTotal.toLocaleString() : data1.yearOutTotal.toLocaleString() }}</div> |
| | | <div class="num" v-if="data1.monthOutTotal || data1.yearOutTotal">{{ activeTab1 == 0 ? |
| | | data1.monthOutTotal.toLocaleString() : data1.yearOutTotal.toLocaleString() }}</div> |
| | | <div class="unit_wrap" v-if="data1.monthOutTotalOnYear || data1.yearOutTotalOnYear"> |
| | | <span style="color: #869CC9;">同比</span> |
| | | <img |
| | |
| | | <div class="repertory"> |
| | | <div class="use_ratio"> |
| | | <div class="header"> |
| | | <div>库存量 <span class="num">{{data1.stockTotal}}/{{data1.stockMax}}</span></div> |
| | | <div v-if="data1.stockTotal && data1.stockMax">利用率{{ ((data1.stockTotal / data1.stockMax) * 100).toFixed(0) }}%</div> |
| | | <div>库存量 <span class="num">{{ data1.stockTotal }}/{{ data1.stockMax }}</span></div> |
| | | <div v-if="data1.stockTotal && data1.stockMax">利用率{{ ((data1.stockTotal / data1.stockMax) * |
| | | 100).toFixed(0) }}%</div> |
| | | </div> |
| | | <Percent v-if="data1.stockTotal && data1.stockMax" :rate="((data1.stockTotal / data1.stockMax) * 100).toFixed(0)" /> |
| | | <Percent v-if="data1.stockTotal && data1.stockMax" |
| | | :rate="((data1.stockTotal / data1.stockMax) * 100).toFixed(0)" /> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="item" v-for="item in dataList6"> |
| | | <div class="la">{{ item.name }}</div> |
| | | <div class="val">{{item.num}}万支</div> |
| | | <div class="val">{{ item.num }}万支</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- --> |
| | | <div class="modal" v-if="showModal"> |
| | | <div class="title_head"> |
| | | <img src="@/assets/images/energy_ef/chuku_ic_car@2x.png" alt=""> |
| | | <span>皖a222</span> |
| | | </div> |
| | | <div class="info"> |
| | | <div class="item"> |
| | | <div class="dian"></div> |
| | | <div class="la">运输单号:</div> |
| | | <div class="val">22</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="dian"></div> |
| | | <div class="la">司机信息:</div> |
| | | <div class="val">22</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="dian"></div> |
| | | <div class="la">总运输量:</div> |
| | | <div class="val">22 万支</div> |
| | | </div> |
| | | </div> |
| | | <div class="tabs"> |
| | | <div :class="{ active: modalTab == 0 }" @click="modalTabClick(0)" class="tab">作业信息</div> |
| | | <div :class="{ active: modalTab == 1 }" @click="modalTabClick(1)" class="tab">合同列表</div> |
| | | </div> |
| | | <div class="tab1" v-if="modalTab == 0"> |
| | | <div class="item" v-for="item, i in 3"> |
| | | <div class="icon_wrap"> |
| | | <img v-if="i === 0" class="dian" src="@/assets/images/ic_dangqian@2x.png" alt=""> |
| | | <img v-else src="@/assets/images/ic_jindu@2x.png" class="dian_ac" alt=""> |
| | | <div class="line"></div> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="status">作业中</div> |
| | | <div class="text">作业任务在【入库去1号月台】开始作业</div> |
| | | <div class="time">2024-04-02 12:00</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="tab2" v-if="modalTab == 1"> |
| | | <div class="list"> |
| | | <div class="item"> |
| | | <div class="head"> |
| | | <div class="code">合同号:12312312</div> |
| | | <div class="addr">收货地:江门烟草物流中心</div> |
| | | </div> |
| | | <div class="line" v-for="i in 3"> |
| | | <div class="name">物料名称:<span class="val">黄山</span></div> |
| | | <div class="num">数量:<span class="val">100万支</span></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | }, 1000) |
| | | |
| | | const arr = ['#68e2e3', '#50afd3', '#377cdb', '#d5ae3a'] |
| | | const showModal = ref(false) |
| | | const modalTab = ref(0) |
| | | const modalTabClick = (val) => { |
| | | modalTab.value = val |
| | | } |
| | | |
| | | |
| | | |
| | | const initEnergy = () => { |
| | | var myChart = echarts.init(document.querySelector('.energyRef')) |
| | | // 绘制图表 |
| | |
| | | getData5() |
| | | getData6() |
| | | |
| | | initMap() |
| | | initMap() |
| | | }) |
| | | |
| | | |
| | |
| | | height: 240px; |
| | | overflow: auto; |
| | | scrollbar-width: none; |
| | | |
| | | .item { |
| | | width: 100%; |
| | | height: 36px; |
| | |
| | | } |
| | | } |
| | | |
| | | .modal { |
| | | width: 600px; |
| | | height: 556px; |
| | | background: rgba(0, 30, 63, 0.5); |
| | | backdrop-filter: blur(5px); |
| | | position: fixed; |
| | | top: 20%; |
| | | left: 50%; |
| | | transform: translate(-50%, 0); |
| | | z-index: 99; |
| | | padding: 24px; |
| | | |
| | | .title_head { |
| | | display: flex; |
| | | align-items: center; |
| | | font-weight: bold; |
| | | font-size: 17px; |
| | | margin-bottom: 20px; |
| | | |
| | | img { |
| | | width: 20px; |
| | | margin-right: 4px; |
| | | } |
| | | } |
| | | |
| | | .info { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | |
| | | .item { |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 13px; |
| | | width: 55%; |
| | | margin-bottom: 8px; |
| | | |
| | | &:nth-of-type(2n+1) { |
| | | width: 45%; |
| | | } |
| | | |
| | | .dian { |
| | | width: 4px; |
| | | height: 4px; |
| | | background-color: #fff; |
| | | border-radius: 50%; |
| | | margin-right: 4px; |
| | | } |
| | | |
| | | .la { |
| | | color: #01D9FE; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .tabs { |
| | | display: flex; |
| | | border-bottom: 1px solid rgba(255, 255, 255, 0.16); |
| | | margin: 0 -24px; |
| | | margin-bottom: 20px; |
| | | padding-left: 12px; |
| | | |
| | | .tab { |
| | | color: #869CC9; |
| | | font-size: 14px; |
| | | margin-right: 12px; |
| | | width: 80px; |
| | | height: 42px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | border-bottom: 2px solid #06182e; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .active { |
| | | font-weight: 500; |
| | | font-size: 15px; |
| | | color: #00F2F3; |
| | | border-bottom: 2px solid #00F2F3; |
| | | } |
| | | } |
| | | |
| | | .tab1 { |
| | | .item { |
| | | display: flex; |
| | | |
| | | &:nth-last-child(1) { |
| | | .content { |
| | | .time { |
| | | padding-bottom: 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .icon_wrap { |
| | | width: 24px; |
| | | margin-right: 10px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | |
| | | .dian { |
| | | width: 12px; |
| | | height: 12px; |
| | | } |
| | | |
| | | .dian_ac { |
| | | width: 24px; |
| | | height: 24px; |
| | | } |
| | | |
| | | .line { |
| | | width: 1px; |
| | | height: 100%; |
| | | border: 1px dashed #8a9bc5; |
| | | } |
| | | } |
| | | |
| | | .content { |
| | | font-size: 13px; |
| | | color: #D2E0FF; |
| | | |
| | | .status { |
| | | font-weight: 500; |
| | | font-size: 14px; |
| | | margin-bottom: 5px; |
| | | color: #fff; |
| | | } |
| | | |
| | | .text { |
| | | margin-bottom: 4px; |
| | | } |
| | | |
| | | .time { |
| | | font-size: 12px; |
| | | padding-bottom: 12px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .tab2 { |
| | | .list { |
| | | .item { |
| | | width: 560px; |
| | | background: rgba(1, 171, 254, 0.1); |
| | | font-size: 12px; |
| | | color: #D2E0FF; |
| | | padding: 10px; |
| | | margin-bottom: 10px; |
| | | .head { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | height: 36px; |
| | | line-height: 36px; |
| | | border-bottom: 1px solid rgba(255,255,255,0.16); |
| | | margin-bottom: 10px; |
| | | .code { |
| | | font-weight: 500; |
| | | font-size: 14px; |
| | | color: #00F2F3; |
| | | } |
| | | } |
| | | .line{ |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 8px; |
| | | &:nth-last-child(1){ |
| | | margin-bottom: 0; |
| | | } |
| | | .name{ |
| | | flex: 4; |
| | | } |
| | | .num{ |
| | | flex: 3; |
| | | } |
| | | .val{ |
| | | color: #fff; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .bg { |
| | | position: absolute; |
| | | left: 0; |
| | |
| | | </div> |
| | | </div> |
| | | <div class="center_box"> |
| | | <div class="center_box_one"> |
| | | <div v-if="showJk" class="jiankong"> |
| | | <img class="jk_bg" src="@/assets/images/SecurityControl/jiankong_bg@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="video"></div> |
| | | </div> |
| | | <div class="right_wrap"> |
| | | <div class="menus"> |
| | | <div class="search_wrap"> |
| | | <img class="search" src="@/assets/images/SecurityControl/ic_search@2x.png" alt=""> |
| | | <input class="input" type="text" placeholder="搜索监控名称"> |
| | | </div> |
| | | <div class="menu_wrap"> |
| | | <div class="menu" v-for="menu,i in jkList"> |
| | | <div class="menu_name" @click="menuClick(i)"> |
| | | <div class="name">{{ menu.name }}</div> |
| | | <img v-if="activeJkIndex == i" class="open" src="@/assets/images/SecurityControl/ar_close@2x.png" alt=""> |
| | | <img v-else class="icon" src="@/assets/images/SecurityControl/ar_open@2x.png" alt=""> |
| | | </div> |
| | | <div v-if="activeJkIndex == i" class="list"> |
| | | <div class="item" @click="menuItemClick(item.name)" v-for="item in menu.childen"> |
| | | <img v-if="activeMenu == item.name" class="icon" src="@/assets/images/SecurityControl/ic_jiankong_sel@2x.png" alt=""> |
| | | <img v-else class="icon" src="@/assets/images/SecurityControl/ic_jiankon.png" alt=""> |
| | | <span :class="{active: activeMenu == item.name}">{{ item.name }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div v-else class="center_box_one"> |
| | | <div class="list"> |
| | | <div class="item"> |
| | | <div class="name_wrap"> |
| | |
| | | </div> |
| | | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | | <div class="monitoring"> |
| | | <img src="@/assets/images/SecurityControl/jiankong.png" class="icon" alt=""> |
| | | <div class="monitoring" @click="showJk = !showJk"> |
| | | <img src="@/assets/images/SecurityControl/ic_jiankong@2x.png" class="icon" alt=""> |
| | | <div>监控列表</div> |
| | | <img src="@/assets/images/SecurityControl/jiankong_ic_open@2x.png" class="top" alt=""> |
| | | <img v-if="showJk" src="@/assets/images/SecurityControl/jiankong_ic_close@2x.png" class="top" alt=""> |
| | | <img v-else src="@/assets/images/SecurityControl/jiankong_ic_open@2x.png" class="top" alt=""> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="sa_static"> |
| | |
| | | time.value = dayjs().format('HH:mm:ss') |
| | | |
| | | }, 1000) |
| | | |
| | | const showJk = ref(true) |
| | | const activeJkIndex = ref(0) |
| | | const activeMenu = ref('') |
| | | const jkList = ref([ |
| | | { |
| | | name: '月台区', |
| | | childen: [ |
| | | { name: '月台1', id: 0 }, |
| | | { name: '月台2', id: 0 }, |
| | | { name: '月台3', id: 0 }, |
| | | ] |
| | | }, |
| | | { |
| | | name: '办公楼', |
| | | childen: [] |
| | | }, |
| | | { |
| | | name: '厂房', |
| | | childen: [] |
| | | }, |
| | | { |
| | | name: '大门', |
| | | childen: [] |
| | | }, |
| | | ]) |
| | | const menuClick = (val) => { |
| | | if (val == activeJkIndex.value) { |
| | | activeJkIndex.value = -1 |
| | | } else { |
| | | activeJkIndex.value = val |
| | | } |
| | | } |
| | | const menuItemClick = (val) => { |
| | | activeMenu.value = val |
| | | } |
| | | |
| | | |
| | | const arr = ['#68e2e3', '#50afd3', '#377cdb', '#d5ae3a'] |
| | | const initEnergy = () => { |
| | |
| | | color: '#61d3f9' |
| | | }])] |
| | | const data = [] |
| | | data.push({ name: '待访问', value: data4.value.waitVisitNum,rate: data4.value.waitVisitRata }) |
| | | data.push({ name: '已登记', value: data4.value.registerVisitNum,rate: data4.value.registerVisitRata }) |
| | | data.push({ name: '已离开', value: data4.value.levelNum,rate: data4.value.levelRata }) |
| | | data.push({ name: '滞留', value: data4.value.retentionNum,rate: data4.value.retentionRata }) |
| | | data.push({ name: '待访问', value: data4.value.waitVisitNum, rate: data4.value.waitVisitRata }) |
| | | data.push({ name: '已登记', value: data4.value.registerVisitNum, rate: data4.value.registerVisitRata }) |
| | | data.push({ name: '已离开', value: data4.value.levelNum, rate: data4.value.levelRata }) |
| | | data.push({ name: '滞留', value: data4.value.retentionNum, rate: data4.value.retentionRata }) |
| | | const option = { |
| | | color: colors, |
| | | tooltip: { |
| | |
| | | const getData4 = () => { |
| | | afgetVisitData().then(res => { |
| | | const result = res.data || {} |
| | | dataList4.value = result |
| | | data4.value = result |
| | | initEchart3() |
| | | }) |
| | | } |
| | |
| | | getData2() |
| | | getData3() |
| | | getData4() |
| | | |
| | | |
| | | // initEchart1() |
| | | }) |
| | | |
| | |
| | | .center_box { |
| | | flex: 1; |
| | | margin: 0 20px; |
| | | |
| | | .jiankong { |
| | | margin: 0 48px; |
| | | display: flex; |
| | | height: calc(100% - 40px); |
| | | position: relative; |
| | | |
| | | .jk_bg { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: absolute; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .content { |
| | | flex: 1; |
| | | /* height: calc( 100% - 30px ); */ |
| | | padding: 16px 0px 32px 20px; |
| | | |
| | | .video { |
| | | height: 100%; |
| | | border: 1px solid; |
| | | } |
| | | } |
| | | |
| | | .right_wrap { |
| | | margin-left: 15px; |
| | | width: 250px; |
| | | padding: 16px 20px 32px 0; |
| | | |
| | | .menus { |
| | | height: 100%; |
| | | background: #002A42; |
| | | border: 1px solid rgba(1, 171, 254, 0.8); |
| | | padding: 15px; |
| | | |
| | | .search_wrap { |
| | | display: flex; |
| | | align-items: center; |
| | | box-shadow: inset 0px 0px 6px 0px rgba(1, 171, 254, 0.5); |
| | | border-radius: 2px; |
| | | border: 1px solid rgba(1, 171, 254, 0.8); |
| | | height: 34px; |
| | | line-height: 34px; |
| | | padding-left: 12px; |
| | | |
| | | .search { |
| | | width: 12px; |
| | | height: 12px; |
| | | margin-right: 3px; |
| | | } |
| | | |
| | | .input { |
| | | flex: 1; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | |
| | | .menu_wrap { |
| | | margin-top: 15px; |
| | | |
| | | .menu { |
| | | .menu_name { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | height: 34px; |
| | | border-bottom: 2px solid rgba(210, 224, 255, 0.2); |
| | | cursor: pointer; |
| | | .name {} |
| | | |
| | | .icon { |
| | | width: 8px; |
| | | } |
| | | .open{ |
| | | width: 14px; |
| | | } |
| | | } |
| | | |
| | | .list { |
| | | .item { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 34px; |
| | | margin-left: 10px; |
| | | cursor: pointer; |
| | | color: #D2E0FF; |
| | | .icon{ |
| | | width: 15px; |
| | | height: 14px; |
| | | margin-right: 8px; |
| | | } |
| | | .active{ |
| | | color: #01D9FE; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | .center_box_one { |
| | | padding: 8px 60px; |
| | |
| | | |
| | | .monitoring { |
| | | position: absolute; |
| | | cursor: pointer; |
| | | top: -60px; |
| | | right: 0; |
| | | display: flex; |
| | |
| | | border: 1px solid rgba(12, 153, 236, 0.68); |
| | | |
| | | .icon { |
| | | width: 30px; |
| | | width: 16px; |
| | | height: 16px; |
| | | margin-right: 4px; |
| | | } |
| | | |
| | | .top { |