Merge remote-tracking branch 'origin/master'
| | |
| | | "pinia": "^2.1.7", |
| | | "postcss-plugin-px2rem": "^0.8.1", |
| | | "px2rem-loader": "^0.1.9", |
| | | "swiper": "^5.4.5", |
| | | "uqrcodejs": "^4.0.7", |
| | | "v-scale-screen": "^2.0.0", |
| | | "vue": "^3.4.21", |
| | |
| | | "node": ">=0.4.0" |
| | | } |
| | | }, |
| | | "node_modules/dom7": { |
| | | "version": "2.1.5", |
| | | "resolved": "https://registry.npmjs.org/dom7/-/dom7-2.1.5.tgz", |
| | | "integrity": "sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA==", |
| | | "dependencies": { |
| | | "ssr-window": "^2.0.0" |
| | | } |
| | | }, |
| | | "node_modules/echarts": { |
| | | "version": "5.5.1", |
| | | "integrity": "sha512-Fce8upazaAXUVUVsjgV6mBnGuqgO+JNDlcgF79Dksy4+wgGpQB2lmYoO4TSweFg/mZITdpGHomw/cNBJZj1icA==", |
| | |
| | | "node": ">=0.10.0" |
| | | } |
| | | }, |
| | | "node_modules/ssr-window": { |
| | | "version": "2.0.0", |
| | | "resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-2.0.0.tgz", |
| | | "integrity": "sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A==" |
| | | }, |
| | | "node_modules/strip-ansi": { |
| | | "version": "3.0.1", |
| | | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", |
| | |
| | | "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", |
| | | "dev": true |
| | | }, |
| | | "node_modules/swiper": { |
| | | "version": "5.4.5", |
| | | "resolved": "https://registry.npmjs.org/swiper/-/swiper-5.4.5.tgz", |
| | | "integrity": "sha512-7QjA0XpdOmiMoClfaZ2lYN6ICHcMm72LXiY+NF4fQLFidigameaofvpjEEiTQuw3xm5eksG5hzkaRsjQX57vtA==", |
| | | "hasInstallScript": true, |
| | | "dependencies": { |
| | | "dom7": "^2.1.5", |
| | | "ssr-window": "^2.0.0" |
| | | }, |
| | | "engines": { |
| | | "node": ">= 4.7.0" |
| | | }, |
| | | "funding": { |
| | | "type": "patreon", |
| | | "url": "https://www.patreon.com/vladimirkharlampidi" |
| | | } |
| | | }, |
| | | "node_modules/to-fast-properties": { |
| | | "version": "2.0.0", |
| | | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", |
| | |
| | | "px2rem-loader": "^0.1.9", |
| | | "uqrcodejs": "^4.0.7", |
| | | "v-scale-screen": "^2.0.0", |
| | | "swiper": "^5.4.5", |
| | | "vue": "^3.4.21", |
| | | "vue-router": "^4.3.0" |
| | | }, |
| | |
| | | export const cnworkEfficiency = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/workEfficiency', data) |
| | | } |
| | | // åºå
è°åº¦çæ¿ å®æ¶åè¦ |
| | | export const cnwarningList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/warningList', data) |
| | | } |
| | | |
| | | // ç©æµè¿è¡è°åº¦çæ¿ ä¸å¿æ°æ® |
| | | export const wlcenterData = (data) => { |
| | |
| | | export const afgetVisitData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/security/getVisitData', data) |
| | | } |
| | | // å®é²ç®¡æ§å¤§å± åºåéå |
| | | export const afregionList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/security/regionList', data) |
| | | } |
| | | // å®é²ç®¡æ§å¤§å± æ ååºåéå |
| | | export const afregionTreea = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/security/regionList', data) |
| | | } |
| | | // å®é²ç®¡æ§å¤§å± åè¦ |
| | | export const afwarningEventData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/security/warningEventData', data) |
| | | } |
| | | |
| | | // è½èçæ¿ ä¸å¿æ°æ® |
| | | export const zxcenterData = (data) => { |
| | |
| | | { |
| | | 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', //å
åºè°åº¦çæ¿ -ä½ä¸è½æ |
| | | 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 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | export const statusMap = { |
| | | 0: 'ä»»å¡å建', |
| | | 1: '叿ºç¡®è®¤ä»»å¡', |
| | | 2: 'ç¾å°', |
| | | 3: 'å
¥åçå¾
', |
| | | 4: 'æå°å«å·', |
| | | 5: 'å¼å§ä½ä¸', |
| | | 6: 'ä½ä¸å®æ', |
| | | 7: 'æå°è½¬ç§»', |
| | | 8: 'ä»»å¡æèµ·', |
| | | 9: 'ä¸åææç¦»å', |
| | | 10: '离å', |
| | | } |
| | |
| | | </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 class="private_car"> |
| | | <div class="item"> |
| | | <div class="name">å工车è¾</div> |
| | | <img class="icon" src="@/assets/images/SecurityControl/car_yuangong@2x.png" alt=""> |
| | | <div class="num">{{ data.internalCarTotal }}</div> |
| | | <div class="name">å工车è¾</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">ç¸å
³æ¹è½¦è¾</div> |
| | | <img class="icon" src="@/assets/images/SecurityControl/car_xiangguanfang@2x.png" alt=""> |
| | | <div class="num num2">{{ data.relatedCarTotal }}</div> |
| | | <div class="name">ç¸å
³æ¹è½¦è¾</div> |
| | | |
| | | </div> |
| | | <div class="item"> |
| | | |
| | | <div class="name">æ¥è®¿è½¦è¾</div> |
| | | <img class="icon" src="@/assets/images/SecurityControl/car_laifang@2x.png" alt=""> |
| | | <div class="num num3">{{ data.visitCarTotal }}</div> |
| | | <div class="name">æ¥è®¿è½¦è¾</div> |
| | | </div> |
| | | </div> |
| | | <div class="section"> |
| | | <!-- <div class="section"> |
| | | <div class="item" :style="{ flex: data.internalCarTotal }"></div> |
| | | <div class="item" :style="{ flex: data.relatedCarTotal }"></div> |
| | | <div class="item" :style="{ flex: data.visitCarTotal }"></div> |
| | | </div> |
| | | </div> --> |
| | | <div class="second_title"> |
| | | <div class="title"> |
| | | <img src="@/assets/images/SecurityControl/ic_title_green@2x.png" class="icon" alt="" /> |
| | |
| | | </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 v-model="dataValue5" @input="getData5" class="input" type="text" placeholder="æç´¢çæ§åç§°"> |
| | | </div> |
| | | <div class="menu_wrap"> |
| | | <div class="menu" v-for="menu, i in data5"> |
| | | <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> |
| | | </div> |
| | | <div class="main_footer"> |
| | | <div class="car_warning"> |
| | | <!-- <div class="car_warning"> |
| | | <div class="com_header"> |
| | | <div class="title"> |
| | | <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> |
| | |
| | | </div> |
| | | <div class="separate"></div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <div class="safe_warning"> |
| | | <div class="com_header"> |
| | | <div class="title"> |
| | |
| | | </div> |
| | | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="item"> |
| | | <div class="icon"> |
| | | <div class="circle"></div> |
| | | <div class="line"></div> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="header"> |
| | | <div class="time"> |
| | | <span>123</span> |
| | | <span class="status">å¤çä¸</span> |
| | | <div class="list one-swiper"> |
| | | <div class="swiper-wrapper"> |
| | | <div class="one-swiper-slide swiper-slide item" v-for="item in warningList"> |
| | | <div class="item_wrap"> |
| | | <img :src="item.img" class="avatar" alt=""> |
| | | <div class="content"> |
| | | <div class="header"> |
| | | <div class="name">{{item.title}}</div> |
| | | <div class="have_time">å·²ç»åç{{item.haveTime}}</div> |
| | | </div> |
| | | <div class="wrap"> |
| | | <div class="line addr"> |
| | | <img class="icon" src="@/assets/images/SecurityControl/xiaofang_ic_weizhi@2x.png" alt=""> |
| | | <span>{{item.addr}}</span> |
| | | </div> |
| | | <div class="line time"> |
| | | <img class="icon" src="@/assets/images/SecurityControl/clock.png" alt=""> |
| | | <span>{{item.createDate}}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="have_time">å·²ç»åç<span>1</span>åé</div> |
| | | </div> |
| | | <div class="wrap"> |
| | | <div class="title">æ¶é²è¦å</div> |
| | | <div class="title">address</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="icon"> |
| | | <div class="circle"></div> |
| | | <div class="line"></div> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="header"> |
| | | <div class="time"> |
| | | <span>123</span> |
| | | <span class="status">å¤çä¸</span> |
| | | </div> |
| | | <div class="have_time">å·²ç»åç<span>1</span>åé</div> |
| | | </div> |
| | | <div class="wrap"> |
| | | <div class="title">æ¶é²è¦å</div> |
| | | <div class="title">address</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </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"> |
| | |
| | | <div>{{ item.totalNum }}</div> |
| | | <div>{{ item.onlineNum }}</div> |
| | | <div>{{ item.offlineDeviceNum }}</div> |
| | | <div v-if="item.onlineNum && item.totalNum">{{ ((item.onlineNum / item.totalNum) * 100).toFixed(0) }}% |
| | | <div>{{ item.totalNum ? ((item.onlineNum / item.totalNum) * 100).toFixed(0) : 0 }}% |
| | | </div> |
| | | </div> |
| | | <div class="separate"></div> |
| | |
| | | import duration from 'dayjs/plugin/duration' |
| | | dayjs.extend(duration) |
| | | import * as echarts from 'echarts' |
| | | import { getEnergyCenterData, getSecurityDeviceData, getVisitRetentionData, afgetVisitData } from '@/api' |
| | | import 'swiper/css/swiper.min.css' |
| | | import Swiper from 'swiper' |
| | | import { getEnergyCenterData,afwarningEventData, getSecurityDeviceData, getVisitRetentionData, afgetVisitData, afregionTreea } from '@/api' |
| | | |
| | | |
| | | const weekMap = ['æææ¥', 'ææä¸', 'ææäº', 'ææä¸', 'ææå', 'ææäº', 'ææå
',] |
| | |
| | | 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 dataListT2 = ref([]) |
| | | const getData2 = () => { |
| | | getSecurityDeviceData().then(res => { |
| | | const result = res.data |
| | | if(res.code == 200 && res.data && res.data.length > 0){ |
| | | const result = res.data |
| | | let temp = [] |
| | | let online = 0 |
| | | let outline = 0 |
| | |
| | | } |
| | | |
| | | dataListT2.value = temp |
| | | } |
| | | |
| | | initEchart2() |
| | | }) |
| | | } |
| | |
| | | const getData4 = () => { |
| | | afgetVisitData().then(res => { |
| | | const result = res.data || {} |
| | | dataList4.value = result |
| | | data4.value = result |
| | | initEchart3() |
| | | }) |
| | | } |
| | | |
| | | const warningList = ref([]) |
| | | const getWarning = () => { |
| | | afwarningEventData({type: 0}).then(res => { |
| | | const result = res.data || [] |
| | | warningList.value = result.map(item => { |
| | | item.haveTime = dayjs.duration(new Date().getTime() - new Date(item.createDate).getTime()).format('HHå°æ¶mmåé') |
| | | return item |
| | | }) |
| | | }) |
| | | } |
| | | const dataValue5 = ref('') |
| | | const data5 = ref([]) |
| | | const getData5 = () => { |
| | | afregionTreea({ |
| | | name: dataValue5.value, |
| | | withCameras: 1 |
| | | }).then(res => { |
| | | const result = res.data || [] |
| | | data5.value = result |
| | | }) |
| | | } |
| | | |
| | | const autoplayFlag = (list = [], leng = 4, time = 2000) => { |
| | | if (list.length > leng) { |
| | | return { delay: time, disableOnInteraction: false } |
| | | } else { |
| | | return false |
| | | } |
| | | } |
| | | const loopFn1 = () => { |
| | | var newSwiper1 = new Swiper('.one-swiper', { |
| | | // initialSlide: 0, |
| | | loop: true, // å¾ªç¯æ¨¡å¼é项 |
| | | // direction: 'vertical', //ç«ç´æ¹å |
| | | slidesPerView: 2, |
| | | slidesPerGroup: 2, |
| | | slidesPerColumn: 2, |
| | | // autoplay: { delay: 500, disableOnInteraction: false }, |
| | | autoplay: autoplayFlag(dataList2.value, 2, 2000), |
| | | observer: true, //ä¿®æ¹swiperèªå·±æåå
ç´ æ¶ï¼èªå¨åå§åswiper |
| | | }) |
| | | } |
| | | loopFn1() |
| | | const loopFn2 = () => { |
| | | var newSwiper1 = new Swiper('.two-swiper', { |
| | | initialSlide: 0, |
| | | // loop: true, // å¾ªç¯æ¨¡å¼é项 |
| | | direction: 'vertical', //ç«ç´æ¹å |
| | | slidesPerView: 3, |
| | | // autoplay: { delay: 500, disableOnInteraction: false }, |
| | | autoplay: autoplayFlag(dataList2.value, 3, 4000), |
| | | observer: true, //ä¿®æ¹swiperèªå·±æåå
ç´ æ¶ï¼èªå¨åå§åswiper |
| | | }) |
| | | } |
| | | const loopFn3 = () => { |
| | | var newSwiper1 = new Swiper('.three-swiper', { |
| | | initialSlide: 0, |
| | | // loop: true, // å¾ªç¯æ¨¡å¼é项 |
| | | direction: 'vertical', //ç«ç´æ¹å |
| | | slidesPerView: 3, |
| | | // autoplay: { delay: 500, disableOnInteraction: false }, |
| | | autoplay: autoplayFlag(dataList2.value, 3, 4000), |
| | | observer: true, //ä¿®æ¹swiperèªå·±æåå
ç´ æ¶ï¼èªå¨åå§åswiper |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | onMounted(() => { |
| | |
| | | getData2() |
| | | getData3() |
| | | getData4() |
| | | |
| | | getData5() |
| | | getWarning() |
| | | |
| | | // initEchart1() |
| | | }) |
| | | |
| | |
| | | div { |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .swiper-wrapper { |
| | | display: block !important; |
| | | } |
| | | .main_content { |
| | | display: flex; |
| | | padding: 20px 25px 0; |
| | |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | |
| | | .icon { |
| | | width: 52px; |
| | | height: 52px; |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | /* align-items: center; */ |
| | | .num { |
| | |
| | | .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; |
| | | max-height: 400px; |
| | | overflow: auto; |
| | | .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; |
| | |
| | | } |
| | | |
| | | .safe_warning { |
| | | width: 406px; |
| | | margin-left: 20px; |
| | | width: 786px; |
| | | margin-right: 20px; |
| | | |
| | | /* one-swiper */ |
| | | .list { |
| | | height: 124px; |
| | | overflow: auto; |
| | | margin-top: 15px; |
| | | scrollbar-width: none; |
| | | |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | |
| | | .item { |
| | | display: flex; |
| | | width: 366px; |
| | | /* width: 50%; */ |
| | | height: 102px; |
| | | font-size: 13px; |
| | | color: #D2E0FF; |
| | | |
| | | .icon { |
| | | width: 40px; |
| | | .item_wrap { |
| | | height: 90px; |
| | | padding: 10px; |
| | | background: linear-gradient(270deg, rgba(1, 217, 254, 0) 0%, rgba(1, 217, 254, 0.19) 100%); |
| | | border: 1px solid #006E81; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | padding-top: 3px; |
| | | } |
| | | |
| | | .circle { |
| | | width: 7px; |
| | | height: 7px; |
| | | border-radius: 50%; |
| | | background: #01D9FE; |
| | | box-shadow: 0px 0px 1px 4px #34788f; |
| | | /* opacity: 0.52; */ |
| | | } |
| | | |
| | | .line { |
| | | margin-top: 3px; |
| | | width: 1px; |
| | | height: calc(100% - 10px); |
| | | background-color: #153947; |
| | | } |
| | | .avatar { |
| | | width: 70px; |
| | | height: 70px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .content { |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | margin-bottom: 8px; |
| | | |
| | | .time { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .status { |
| | | height: 18px; |
| | | line-height: 18px; |
| | | border-radius: 2px; |
| | | padding: 2px 4px; |
| | | border: 1px solid #869CC9; |
| | | font-size: 12px; |
| | | margin-left: 8px; |
| | | } |
| | | .name { |
| | | font-weight: 500; |
| | | font-size: 15px; |
| | | } |
| | | |
| | | .have_time { |
| | |
| | | } |
| | | |
| | | .wrap { |
| | | height: 40px; |
| | | background: linear-gradient(270deg, rgba(254, 85, 1, 0) 0%, rgba(254, 85, 1, 0.19) 100%); |
| | | border-radius: 2px 0px 0px 2px; |
| | | display: flex; |
| | | align-items: center; |
| | | border: 1px solid; |
| | | margin-bottom: 20px; |
| | | margin-top: 8px; |
| | | padding: 0 10px; |
| | | border-image: linear-gradient(270deg, rgba(254, 85, 1, 0), rgba(254, 85, 1, 0.6)) 1 1; |
| | | font-size: 12px; |
| | | color: #D2E0FF; |
| | | |
| | | .title { |
| | | flex: 4; |
| | | font-weight: bold; |
| | | font-size: 15px; |
| | | color: #FFFFFF; |
| | | .line { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 3px; |
| | | } |
| | | |
| | | .address { |
| | | flex: 6; |
| | | .icon { |
| | | width: 12px; |
| | | margin-right: 8px; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .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 { |
| | |
| | | .separate { |
| | | width: 1px; |
| | | height: 14px; |
| | | background-color: #d2e0ff; |
| | | /* background-color: #d2e0ff; */ |
| | | margin: 0 6px; |
| | | } |
| | | |
| | | .tab { |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .active { |
| | | color: #0094eb; |
| | | font-weight: 600; |
| | | font-size: 15px; |
| | | color: #FFFFFF; |
| | | text-shadow: 0px 0px 8px #01D9FE; |
| | | } |
| | | } |
| | | } |
| | |
| | | </div> |
| | | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="line" v-for="item, i in dataList2" :key="i"> |
| | | <div class="top"><span v-if="i < 3">top</span>{{ i }}</div> |
| | | <div class="id_card">{{ item.platformName }}</div> |
| | | <div class="wrap"> |
| | | <ChargeRate :rate="item.rate" /> |
| | | <div class="list one-swiper"> |
| | | <div class="swiper-wrapper"> |
| | | <div class="line one-swiper-slide swiper-slide" v-for="item, i in dataList2" :key="i"> |
| | | <div class="top"><span v-if="i < 3">top</span>{{ i }}</div> |
| | | <div class="id_card">{{ item.platformName }}</div> |
| | | <div class="wrap"> |
| | | <ChargeRate :rate="item.rate" /> |
| | | </div> |
| | | <div class="num">{{ item.workTotalTimeT }}</div> |
| | | </div> |
| | | <div class="num">{{ item.workTotalTimeT }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="static_wrap"> |
| | | <div class="item"> |
| | | <div class="name">æå°æ°é</div> |
| | | <div v-if="data4.platformTotal" class="nums"> |
| | | <div class="num" v-for="n, i in data4.platformTotal + ''" :key="i">{{ n }}</div> |
| | | <div v-if="data4.platformTotal || data4.platformTotal == 0" class="nums"> |
| | | <div class="num" v-for="n, i in formatNum3(data4.platformTotal) " :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">ç©ºé²æå°</div> |
| | | <div v-if="data4.freePlatform" class="nums"> |
| | | <div class="num" v-for="n, i in data4.freePlatform + ''" :key="i">{{ n }}</div> |
| | | <div v-if="data4.freePlatform || data4.freePlatform == 0" class="nums"> |
| | | <div class="num" v-for="n, i in formatNum3(data4.freePlatform)" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">é¢çº¦è½¦è¾</div> |
| | | <div v-if="data4.reservationCar" class="nums"> |
| | | <div class="num" v-for="n, i in data4.reservationCar + ''" :key="i">{{ n }}</div> |
| | | <div v-if="data4.reservationCar || data4.reservationCar == 0" class="nums"> |
| | | <div class="num" v-for="n, i in formatNum3(data4.reservationCar)" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">ä½ä¸è½¦è¾</div> |
| | | <div v-if="data4.workingCar" class="nums"> |
| | | <div class="num" v-for="n, i in data4.workingCar + ''" :key="i">{{ n }}</div> |
| | | <div v-if="data4.workingCar || data4.workingCar == 0" class="nums"> |
| | | <div class="num" v-for="n, i in formatNum3(data4.workingCar)" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">æé车è¾</div> |
| | | <div class="nums" v-if="data4.lineUpCar"> |
| | | <div class="num" v-for="n, i in data4.lineUpCar + ''" :key="i">{{ n }}</div> |
| | | <div class="nums" v-if="data4.lineUpCar || data4.lineUpCar == 0"> |
| | | <div class="num" v-for="n, i in formatNum3(data4.lineUpCar)" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="center_box_two"> |
| | | <div class="videos"> |
| | | <div class="video" v-for="i in 4"></div> |
| | | <div class="center_box_bg"> |
| | | <!-- <div class="no no1" @click="workModalClick">1</div> |
| | | <div class="no no2" @click="workModalClick">2</div> |
| | | <div class="no no3" @click="workModalClick">3</div> --> |
| | | <div class="work_modal" @click="showWorkModal = false" v-if="showWorkModal"> |
| | | <img class="bg" src="@/assets/images/LogisticsCenter/bg_yuetai@2x.png" alt=""> |
| | | <div class="head"> |
| | | <div class="left"> |
| | | <img src="@/assets/images/LogisticsCenter/ic_yuetai@2x.png" alt=""> |
| | | <span>{{ workModalParam.platformName }}</span> |
| | | </div> |
| | | <div class="right">{{ workModalParam.statusTemp }}</div> |
| | | </div> |
| | | <div class="line"> |
| | | <div class="dian"></div> |
| | | <div class="la">ä½ä¸è½¦è¾ï¼</div> |
| | | <div class="val">{{ workModalParam.carNo }}</div> |
| | | </div> |
| | | <div class="line"> |
| | | <div class="dian"></div> |
| | | <div class="la">ä½ä¸ç±»åï¼</div> |
| | | <div class="val">{{ workModalParam.workType == 0 ? 'å¸è´§' : 'è£
è´§' }}</div> |
| | | </div> |
| | | <div class="line"> |
| | | <div class="dian"></div> |
| | | <div class="la">ä½ä¸æ¶é¿ï¼</div> |
| | | <div class="val">{{ workModalParam.workTime }}</div> |
| | | </div> |
| | | <div class="line"> |
| | | <div class="dian"></div> |
| | | <div class="la">é¢è®¡å®æï¼</div> |
| | | <div class="val">{{ workModalParam.finishTimeStr }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="center_box_two"> |
| | | <!-- <div class="videos"> |
| | | <div class="video" v-for="i in 4"></div> |
| | | </div> --> |
| | | <div class="list"> |
| | | <div class="line header"> |
| | | <div>æå°åç§°</div> |
| | |
| | | <div>é¢è®¡å®ææ¶é´</div> |
| | | <div>æå°ç¶æ</div> |
| | | </div> |
| | | <div class="line" v-for="item, i in dataList5" :key="i"> |
| | | <div>{{ item.platformName }}</div> |
| | | <div>{{ item.carNo || '-' }}</div> |
| | | <div>{{ item.workNum }}{{ item.workNum ? '䏿¯' : '-' }}</div> |
| | | <div>{{ item.workTime || '-' }}</div> |
| | | <div>{{ item.finishTime || '-' }}</div> |
| | | <div :style="{ |
| | | color: item.status == 1 ? '#869CC9' : item.status == 2 ? '#FE5501' : '#D2E0FF' |
| | | }">{{ item.statusTemp }}</div> |
| | | <div class="two-swiper"> |
| | | <div class="swiper-wrapper"> |
| | | <div @click="platformClick(item)" class="line one-swiper-slide swiper-slide" |
| | | v-for="item, i in dataList5" :key="i"> |
| | | <div>{{ item.platformName }}</div> |
| | | <div>{{ item.carNo || '-' }}</div> |
| | | <div>{{ item.workNum ? item.workNum + '䏿¯' : '-' }}</div> |
| | | <div>{{ item.workTime || '-' }}</div> |
| | | <div>{{ item.finishTimeStr || '-' }}</div> |
| | | <div :style="{ |
| | | color: item.status == 1 ? '#869CC9' : item.status == 2 ? '#FE5501' : '#D2E0FF' |
| | | }">{{ item.statusTemp }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="static_wrap"> |
| | | <div class="item"> |
| | | <div class="name">ç¾å°æ°</div> |
| | | <div class="num">{{ data6.inNum || 0 }}</div> |
| | | <div class="num">{{ data4?.signedNum || 0 }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">å·²å«å·</div> |
| | | <div class="num">{{ data6.callNum || 0 }}</div> |
| | | <div class="num">{{ data4?.calledNum || 0 }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">å·²ä½ä¸</div> |
| | | <div class="num">{{ data6.workingNum || 0 }}</div> |
| | | <div class="num">{{ data4?.workedNum || 0 }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">已宿</div> |
| | | <div class="num">{{ data6.finishNum || 0 }}</div> |
| | | <div class="num">{{ data4?.doneNum || 0 }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="echart_wrap"> |
| | | <div class="echart3" id="echart3"></div> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="line" v-for="item, i in data6.platformLogList"> |
| | | <div class="line" v-for="item, i in data6?.platformLogList"> |
| | | <div class="time_wrap"> |
| | | <div class="time" v-if="item.createDate">{{ item.createDate.slice(11, 16) }}</div> |
| | | <div class="sp"></div> |
| | | <div class="dian"></div> |
| | | <div class="time" :style="{ |
| | | backgroundColor: item.objType == 5?'#4ca8f7':item.objType == 6?'#f2b23e':item.objType == 10?'#4673f6':'#4aa38f' |
| | | }" v-if="item.createDate">{{ item.createDate.slice(11, 16) }}</div> |
| | | <div class="sp" :style="{ |
| | | backgroundColor: item.objType == 5?'#4ca8f7':item.objType == 6?'#f2b23e':item.objType == 10?'#4673f6':'#4aa38f' |
| | | }"></div> |
| | | <div class="dian" :style="{ |
| | | backgroundColor: item.objType == 5?'#4ca8f7':item.objType == 6?'#f2b23e':item.objType == 10?'#4673f6':'#4aa38f' |
| | | }"></div> |
| | | </div> |
| | | <div class="id_card">{{ item.carCodeFront }}</div> |
| | | <div class="status">å¼å§ä½ä¸</div> |
| | | <div class="id_card">{{ item.carCodeFront || item.param4 }}</div> |
| | | <div class="status">{{ statusMap[item.objType] }}</div> |
| | | <div class="desc">{{ item.content }}</div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="item" v-for="i in 5"> |
| | | <div class="icon"> |
| | | <div class="circle"></div> |
| | | <div class="line"></div> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="header"> |
| | | <div class="time">time</div> |
| | | <span class="status">ä¸</span> |
| | | <div class="list three-swiper"> |
| | | <div class="swiper-wrapper"> |
| | | <div class="item three-swiper-slide swiper-slide" v-for="item, i in data7"> |
| | | <div class="icon"> |
| | | <div class="circle"></div> |
| | | <div class="line"></div> |
| | | </div> |
| | | <div class="main"> |
| | | <div class="left"> |
| | | <div class="title"> |
| | | <img class="xf" src="@/assets/images/FireFighting/ic_gaojing_red@2x.png" alt=""> |
| | | <span>åè¦ï¼å¼è½¦å¸ç</span> |
| | | </div> |
| | | <div class="wrap"> |
| | | <span style="margin-right: 30px;">ç¶æï¼å¾
å¤ç</span> |
| | | <span>å·²åçï¼1åé</span> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="header"> |
| | | <div class="time">{{ item.createDate }}</div> |
| | | <!-- <span class="status">ä½</span> --> |
| | | </div> |
| | | <div class="status">å¤çä¸</div> |
| | | <div class="main"> |
| | | <div class="left"> |
| | | <div class="title"> |
| | | <img class="xf" src="@/assets/images/FireFighting/ic_gaojing_red@2x.png" alt=""> |
| | | <span>åè¦ï¼{{ item.eventContent }}</span> |
| | | </div> |
| | | <div class="wrap"> |
| | | <!-- <span style="margin-right: 30px;">ç¶æï¼å¾
å¤ç</span> --> |
| | | <span>å·²åçï¼{{ item.haveTime }}</span> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="status">å¤çä¸</div> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import Percent from '@/components/percent.vue' |
| | | import dayjs from 'dayjs' |
| | | import ChargeRate from '@/components/ChargeRate.vue' |
| | | import { statusMap } from '@/utils/config' |
| | | import * as echarts from 'echarts' |
| | | import duration from 'dayjs/plugin/duration' |
| | | dayjs.extend(duration) |
| | | import 'swiper/css/swiper.min.css' |
| | | import Swiper from 'swiper' |
| | | import { |
| | | cnplatformGroupFinish, |
| | | cnplatformDuration, |
| | |
| | | cncenterData, |
| | | cncarWorkSituation, |
| | | cnworkEfficiency, |
| | | cnwarningList |
| | | } from '@/api' |
| | | |
| | | |
| | |
| | | show: false, |
| | | position: 'center' |
| | | }, |
| | | padAngle: 5, |
| | | padAngle: 2, |
| | | itemStyle: { |
| | | borderRadius: 10 |
| | | }, |
| | |
| | | shadowColor: 'rgba(124,248,255, 0)', |
| | | shadowBlur: 20 |
| | | }, |
| | | data: dataList3.value.map(i => i.workNum) |
| | | data: dataList3.value.map(i => i.workNum || 0) |
| | | }, |
| | | { |
| | | name: '累计ä½ä¸é', |
| | |
| | | color: '#61d3f9' |
| | | }])] |
| | | const temp = [] |
| | | temp.push({ name: 'é¢çº¦æ°', value: data6.value.reservationNum || 0 }) |
| | | temp.push({ name: 'å·²è¿åº', value: data6.value.inNum || 0 }) |
| | | temp.push({ name: 'å·²ä½ä¸', value: data6.value.workingNum || 0 }) |
| | | temp.push({ name: '已离åº', value: data6.value.leaveNum || 0 }) |
| | | console.log('temp', temp); |
| | | |
| | | temp.push({ name: 'ç¾å°æ°', value: data4.value?.signedNum || 0, rate: '100.0' }) |
| | | temp.push({ name: 'å·²å«å·', value: data4.value?.calledNum || 0, rate: (data4.value.calledNum / data4.value?.signedNum * 100).toFixed(1)}) |
| | | temp.push({ name: 'å·²ä½ä¸', value: data4.value?.workedNum || 0, rate: (data4.value.workedNum / data4.value?.signedNum * 100).toFixed(1) }) |
| | | temp.push({ name: '已宿', value: data4.value?.doneNum || 0, rate: (data4.value.doneNum / data4.value?.signedNum * 100).toFixed(1) }) |
| | | console.log('temp', temp) |
| | | |
| | | const option = { |
| | | color: colors, |
| | | tooltip: { |
| | |
| | | label: { |
| | | show: true, |
| | | position: 'outside', |
| | | formatter: '{a|{b}} {a|{c}%}', |
| | | // formatter: '{a|{b}} {a|{c}%}', |
| | | formatter: params => { |
| | | return `{a|${params.data.name} ${params.data.rate}%}` |
| | | }, |
| | | rich: { |
| | | a: { |
| | | color: '#869CC9', |
| | |
| | | const getData2 = () => { |
| | | cnplatformDuration().then(res => { |
| | | const result = res.data || [] |
| | | let count = 1 |
| | | if (result.length > 0) { |
| | | count = result[0].workTotalTime |
| | | } |
| | | dataList2.value = result.map(item => { |
| | | if (item.workTotalTime) { |
| | | if (item.workTotalTime > 60) { |
| | | item.workTotalTimeT = (item.workTotalTime / 60).toFixed(0) + 'å°æ¶' + item.workTotalTime % 60 + 'åé' |
| | | } else { |
| | | item.workTotalTimeT = item.workTotalTime |
| | | item.workTotalTimeT = item.workTotalTime + 'åé' |
| | | } |
| | | } |
| | | item.rate = ((item.workTotalTime / item.openTotalTime) * 30).toFixed(0) |
| | | item.rate = ((item.workTotalTime / count) * 30).toFixed(0) |
| | | return item |
| | | }) |
| | | loopFn2() |
| | | }) |
| | | } |
| | | |
| | |
| | | const data4 = ref({}) |
| | | const getData4 = () => { |
| | | cncenterData().then(res => { |
| | | const result = res.data |
| | | const result = res.data || [] |
| | | data4.value = result |
| | | initEchart3() |
| | | }) |
| | | } |
| | | const formatNum3 = (num) => { |
| | | if (num || num == 0) { |
| | | num = num + '' |
| | | if (num.length == 1) { |
| | | return '00' + num |
| | | } else if (num.length == 2) { |
| | | return '0' + num |
| | | } else { |
| | | return num |
| | | } |
| | | } |
| | | } |
| | | |
| | | const dataList5 = ref([]) |
| | | const getData5 = () => { |
| | | cnplatformWorkData().then(res => { |
| | |
| | | dataList5.value = result.map(i => { |
| | | i.statusTemp = i.status == 0 ? 'ä½ä¸ä¸' : i.status == 1 ? '空é²ä¸' : 'ä½ä¸è¶
æ¶' |
| | | if (i.workTime) { |
| | | if (item.workTime > 60) { |
| | | item.workTime = (item.workTime / 60).toFixed(0) + 'h' + item.workTime % 60 + 'm' |
| | | // i.workTime = dayjs.duration(i.workTime * 1000).format('HHå°æ¶mmå') |
| | | i.workTime = (i.workTime / 60).toFixed(0) |
| | | if (i.workTime > 60) { |
| | | i.workTime = (i.workTime / 60).toFixed(0) + 'h' + i.workTime % 60 + 'm' |
| | | } else { |
| | | item.workTime = item.workTime |
| | | i.workTime = i.workTime + 'm' |
| | | } |
| | | } |
| | | i.finishTime = dayjs(i.finishTime).format('HH:mm') |
| | | return i |
| | | }) |
| | | loopFn5() |
| | | }) |
| | | } |
| | | |
| | | const data6 = ref({}) |
| | | const getData6 = () => { |
| | | cncarWorkSituation().then(res => { |
| | | cncarWorkSituation({ size: 7 }).then(res => { |
| | | const result = res.data |
| | | data6.value = result |
| | | initEchart3() |
| | | }) |
| | | } |
| | | |
| | | const data7 = ref([]) |
| | | const getData7 = () => { |
| | | cnwarningList({ size: 7 }).then(res => { |
| | | const result = res.data || [] |
| | | data7.value = result.map(item => { |
| | | item.haveTime = dayjs.duration(new Date().getTime() - new Date(item.createDate).getTime()).format('HHå°æ¶mmåé') |
| | | return item |
| | | }) |
| | | loopFn7() |
| | | }) |
| | | } |
| | | |
| | | const showWorkModal = ref(false) |
| | | const workModalParam = ref({}) |
| | | const platformClick = (val) => { |
| | | workModalParam.value = val |
| | | showWorkModal.value = !showWorkModal.value |
| | | } |
| | | const loopFn2 = () => { |
| | | var newSwiper1 = new Swiper('.one-swiper', { |
| | | initialSlide: 0, |
| | | // loop: true, // å¾ªç¯æ¨¡å¼é项 |
| | | direction: 'vertical', //ç«ç´æ¹å |
| | | slidesPerView: 5, |
| | | // autoplay: { delay: 500, disableOnInteraction: false }, |
| | | autoplay: autoplayFlag(dataList2.value, 5, 4000), |
| | | observer: true, //ä¿®æ¹swiperèªå·±æåå
ç´ æ¶ï¼èªå¨åå§åswiper |
| | | }) |
| | | } |
| | | const loopFn5 = () => { |
| | | var newSwiper1 = new Swiper('.two-swiper', { |
| | | initialSlide: 0, |
| | | // loop: true, // å¾ªç¯æ¨¡å¼é项 |
| | | direction: 'vertical', //ç«ç´æ¹å |
| | | slidesPerView: 6, |
| | | // autoplay: { delay: 500, disableOnInteraction: false }, |
| | | autoplay: autoplayFlag(dataList2.value, 6, 4000), |
| | | observer: true, //ä¿®æ¹swiperèªå·±æåå
ç´ æ¶ï¼èªå¨åå§åswiper |
| | | }) |
| | | } |
| | | const loopFn7 = () => { |
| | | var newSwiper1 = new Swiper('.three-swiper', { |
| | | initialSlide: 0, |
| | | // loop: true, // å¾ªç¯æ¨¡å¼é项 |
| | | direction: 'vertical', //ç«ç´æ¹å |
| | | slidesPerView: 2, |
| | | // autoplay: { delay: 500, disableOnInteraction: false }, |
| | | autoplay: autoplayFlag(dataList2.value, 2, 4000), |
| | | observer: true, //ä¿®æ¹swiperèªå·±æåå
ç´ æ¶ï¼èªå¨åå§åswiper |
| | | }) |
| | | } |
| | | const autoplayFlag = (list = [], leng = 4, time = 2000) => { |
| | | if (list.length > leng) { |
| | | return { delay: time, disableOnInteraction: false } |
| | | } else { |
| | | return false |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | getData4() |
| | | getData5() |
| | | getData6() |
| | | getData7() |
| | | |
| | | // initEchart1() |
| | | // initEchart2() |
| | |
| | | margin-bottom: 20px; |
| | | |
| | | .list { |
| | | padding: 20px 24px 4px; |
| | | height: 227px; |
| | | padding: 0px 24px 0px; |
| | | height: 200px; |
| | | margin-top: 20px; |
| | | overflow: auto; |
| | | |
| | | .line { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | height: 20px; |
| | | height: 40px; |
| | | |
| | | .top { |
| | | font-weight: 500; |
| | |
| | | color: #DBEAEA; |
| | | box-shadow: inset 0px 0px 3px 0px #01D9FE; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .one-swiper-slide { |
| | | height: 40px !important; |
| | | } |
| | | |
| | | .id_card { |
| | |
| | | } |
| | | } |
| | | |
| | | .center_box_bg { |
| | | width: 100%; |
| | | flex: 1; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | .no { |
| | | width: 28px; |
| | | height: 28px; |
| | | border-radius: 50%; |
| | | border: 1px solid #0193FE; |
| | | box-shadow: 1px 1px 6px #466d89; |
| | | font-size: 12px; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | background: #123062; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .work_modal { |
| | | width: 314px; |
| | | height: 180px; |
| | | position: relative; |
| | | padding: 22px 20px; |
| | | |
| | | .head { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-bottom: 12px; |
| | | |
| | | .left { |
| | | display: flex; |
| | | align-items: center; |
| | | font-weight: bold; |
| | | font-size: 15px; |
| | | color: #FFFFFF; |
| | | |
| | | img { |
| | | width: 17px; |
| | | margin-right: 10px; |
| | | } |
| | | } |
| | | |
| | | .right { |
| | | font-weight: 500; |
| | | font-size: 13px; |
| | | color: #01D9FE; |
| | | } |
| | | } |
| | | |
| | | .line { |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 13px; |
| | | margin-bottom: 8px; |
| | | |
| | | &:nth-last-child(1) { |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .dian { |
| | | width: 4px; |
| | | height: 4px; |
| | | border-radius: 50%; |
| | | background-color: #fff; |
| | | margin-right: 7px; |
| | | } |
| | | |
| | | .la { |
| | | color: #D2E0FF; |
| | | } |
| | | } |
| | | |
| | | .bg { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | .center_box_two { |
| | | width: 100%; |
| | | |
| | |
| | | .list { |
| | | width: 100%; |
| | | height: 210px; |
| | | overflow-y: auto; |
| | | |
| | | .two-swiper { |
| | | height: 180px; |
| | | overflow: auto; |
| | | } |
| | | |
| | | .line { |
| | | display: flex; |
| | |
| | | padding: 20px 20px 0; |
| | | |
| | | .list { |
| | | height: 248px; |
| | | height: 220px; |
| | | overflow: auto; |
| | | margin-top: 15px; |
| | | scrollbar-width: none; |
| | | |
| | | .item { |
| | | display: flex; |
| | | font-size: 13px; |
| | | color: #D2E0FF; |
| | | |
| | | height: 110px; |
| | | .icon { |
| | | width: 40px; |
| | | display: flex; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .swiper-wrapper { |
| | | display: block !important; |
| | | } |
| | | } |
| | | |
| | | .main_header { |