|
@@ -0,0 +1,307 @@
|
|
|
+<template>
|
|
|
+ <div class="module-main">
|
|
|
+ <div class="module-box">
|
|
|
+ <div class="module-one">
|
|
|
+ <!-- <div class="module-two flex wrap"> -->
|
|
|
+ <Scroll :height="560" :span="573" :duration="15000" class="module-two flex wrap">
|
|
|
+ <div class="flex gap" v-for="(item, index) in data" :key="index">
|
|
|
+ <div class="text-wrapper_1 flex-col" :class="index == data.length - 1 ? 'org' : ''">
|
|
|
+ <span class="text6">{{ item.title }}</span>
|
|
|
+ <span class="text7">巡更人员:{{ item.name }}</span>
|
|
|
+ <span class="text8">上次时间:{{ item.time }}</span>
|
|
|
+ <span class="text8"> 检查次数:{{ item.count }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Scroll>
|
|
|
+ <!-- </div> -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import Vue from 'vue';
|
|
|
+import Component from 'vue-class-component';
|
|
|
+import api from '../../api';
|
|
|
+import Scroll from '../Scroll.vue';
|
|
|
+
|
|
|
+@Component({
|
|
|
+ components:{
|
|
|
+ Scroll
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ data: {
|
|
|
+ type: Object,
|
|
|
+ default: null,
|
|
|
+ },
|
|
|
+ },
|
|
|
+})
|
|
|
+export default class Echarts extends Vue {
|
|
|
+
|
|
|
+ data = []
|
|
|
+ lists = [
|
|
|
+ {
|
|
|
+ title: "住院楼2楼左侧电梯",
|
|
|
+ time: "12:21",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "2",
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼3楼左侧电梯",
|
|
|
+ time: "12:22",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "3",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼4楼左侧电梯",
|
|
|
+ time: "12:23",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "5",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼5楼左侧电梯",
|
|
|
+ time: "12:24",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "6",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼6楼左侧电梯",
|
|
|
+ time: "12:25",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "8",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼2楼左侧电梯",
|
|
|
+ time: "12:26",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "2",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼3楼左侧电梯",
|
|
|
+ time: "12:27",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "3",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼4楼左侧电梯",
|
|
|
+ time: "12:28",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "5",
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼5楼左侧电梯",
|
|
|
+ time: "12:29",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "6",
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼6楼左侧电梯",
|
|
|
+ time: "12:21",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "8",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼2楼左侧电梯",
|
|
|
+ time: "12:30",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "2",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼3楼左侧电梯",
|
|
|
+ time: "12:31",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "3",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼4楼左侧电梯",
|
|
|
+ time: "12:32",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "5",
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼5楼左侧电梯",
|
|
|
+ time: "12:33",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "6",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼6楼左侧电梯",
|
|
|
+ time: "12:34",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "8",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼6楼左侧电梯",
|
|
|
+ time: "12:35",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "8",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼6楼左侧电梯",
|
|
|
+ time: "12:36",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "8",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "住院楼6楼左侧电梯",
|
|
|
+ time: "12:37",
|
|
|
+ name: "李媛媛",
|
|
|
+ count: "7",
|
|
|
+ },
|
|
|
+
|
|
|
+ ]
|
|
|
+ created() {
|
|
|
+ this.getPatrolRoutes();
|
|
|
+ setInterval(() => {
|
|
|
+ this.getPatrolRoutes();
|
|
|
+ }, 10000 * 360);
|
|
|
+ }
|
|
|
+ getPatrolRoutes() {
|
|
|
+ api.getPatrolRoutes().then((res) => {
|
|
|
+ this.data = res.data;
|
|
|
+ }).catch(() => { }).finally(() => {
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style scoped lang="scss">
|
|
|
+.module-one {
|
|
|
+ width: 96.6%;
|
|
|
+ height: 92.1%;
|
|
|
+ background-image: url(../../images/smodule/blue-boder.png);
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ margin: 2.1% 1.6% 3.1% 1.6%;
|
|
|
+ padding-top: 2.7%;
|
|
|
+}
|
|
|
+
|
|
|
+.module-one .module-two {
|
|
|
+ margin: 5% 5%;
|
|
|
+ height: 560px;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.module-one .module-two .text-wrapper_1 {
|
|
|
+ background-color: rgba(67, 98, 255, 0.3);
|
|
|
+ border-radius: 4px;
|
|
|
+ width: 170px;
|
|
|
+ height: 118px;
|
|
|
+ border: 1px solid rgba(95, 135, 255, 1);
|
|
|
+}
|
|
|
+
|
|
|
+.module-one .module-two .text-wrapper_1 .text6 {
|
|
|
+ width: 136px;
|
|
|
+ height: 16px;
|
|
|
+ overflow-wrap: break-word;
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: SourceHanSansCN-Regular;
|
|
|
+ text-align: left;
|
|
|
+ white-space: nowrap;
|
|
|
+ line-height: 17px;
|
|
|
+ margin: 12px 0 0 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.module-one .module-two .text-wrapper_1 .text7 {
|
|
|
+ width: 120px;
|
|
|
+ height: 16px;
|
|
|
+ overflow-wrap: break-word;
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: SourceHanSansCN-Regular;
|
|
|
+ text-align: left;
|
|
|
+ white-space: nowrap;
|
|
|
+ line-height: 17px;
|
|
|
+ margin: 20px 0 0 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.module-one .module-two .text-wrapper_1 .text8 {
|
|
|
+ width: 128px;
|
|
|
+ height: 16px;
|
|
|
+ overflow-wrap: break-word;
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: SourceHanSansCN-Regular;
|
|
|
+ white-space: nowrap;
|
|
|
+ line-height: 17px;
|
|
|
+ margin: 5px 0 0 9px;
|
|
|
+}
|
|
|
+//
|
|
|
+// common.css
|
|
|
+.flex {
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+
|
|
|
+.wrap {
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
+
|
|
|
+.gap {
|
|
|
+ margin-bottom: 24px;
|
|
|
+}
|
|
|
+
|
|
|
+.text-wrapper_1 {
|
|
|
+ margin-left: 7px;
|
|
|
+ margin-right: 30px
|
|
|
+}
|
|
|
+
|
|
|
+.org {
|
|
|
+ background: orange !important;
|
|
|
+}
|
|
|
+
|
|
|
+.flex-col {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+.flex-row {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+}
|
|
|
+.justify-start {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ }
|
|
|
+.justify-center {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.justify-end {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+}
|
|
|
+.justify-evenly {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-evenly;
|
|
|
+}
|
|
|
+.justify-around {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+}
|
|
|
+.justify-between {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+.align-start {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-start;
|
|
|
+}
|
|
|
+.align-center {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.align-end {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-end;
|
|
|
+}
|
|
|
+body::-webkit-scrollbar {
|
|
|
+ width: 0;
|
|
|
+ }
|
|
|
+</style>
|