namin 3 anni fa
parent
commit
be149a94d2

+ 9 - 6
package.json

@@ -7,25 +7,26 @@
     "build": "vue-cli-service build"
   },
   "dependencies": {
-    "@jiaminghi/data-view": "^2.7.3",
     "@antv/data-set": "^0.11.8",
+    "@jiaminghi/data-view": "^2.7.3",
     "ant-design-vue": "^1.7.8",
     "axios": "^0.21.4",
     "core-js": "^2.6.5",
     "echarts": "^5.2.2",
-    "less-loader": "5.0.0",
     "element-ui": "^2.15.2",
+    "font-awesome": "^4.7.0",
+    "less-loader": "5.0.0",
     "node-modules": "^1.0.1",
     "vue": "^2.6.10",
-    "vue-axios": "^3.3.7",
-    "vue-cookie": "^1.1.4",
     "vue-awesome": "^4.0.2",
+    "vue-axios": "^3.3.7",
     "vue-codemirror": "^4.0.6",
+    "vue-cookie": "^1.1.4",
+    "vue-drag-resize": "^1.5.4",
+    "vue-draggable-resizable": "^2.3.0",
     "vue-echarts": "^6.0.0",
     "vue-infinite-scroll": "^2.0.2",
     "vue-loader": "^15.9.8",
-    "vue-drag-resize": "^1.5.4",
-    "vue-draggable-resizable": "^2.3.0",
     "vue-router": "^3.0.3",
     "vuedraggable": "^2.24.3",
     "vuex": "^3.0.1"
@@ -37,6 +38,8 @@
     "node-sass": "^7.0.1",
     "sass": "^1.25.0",
     "sass-loader": "^8.0.2",
+    "swiper": "^5.4.5",
+    "vue-awesome-swiper": "^4.1.1",
     "vue-template-compiler": "^2.6.10"
   },
   "postcss": {

File diff suppressed because it is too large
+ 3 - 0
public/font-awesome.min.css


+ 2 - 0
public/index.html

@@ -6,6 +6,8 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <!-- <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> -->
+    <!-- <link rel="stylesheet" href="<%= BASE_URL %>font-awesome.min.css"> -->
     <title>largescreen</title>
 </head>
 

+ 93 - 0
src/components/process_monitoring/CaiMeiJi.vue

@@ -0,0 +1,93 @@
+<template>
+  <div class="container">
+      <div class="fankui">{{info_number}}采煤机运行反馈&nbsp<i id="green" v-show="true" class="fa fa-circle"></i> <i id="red" v-show="false" class="fa fa-circle"></i></div>
+      <div class="bgi" @click="change"></div>
+      <div class="info">{{info_number}}采煤区</div>
+      <ul class="msg" :style="{height:h}">
+          <li v-for="(value,key) in msg">{{key}}:{{value}}</li>
+      </ul>
+  </div>
+</template>
+
+<script>
+export default {
+    name:'CaiMeiJi',
+    data() {
+        return {
+            h:"0px",
+            show:false,
+            msg:{
+                '割煤刀数':2,
+                '回采米数':1300,
+                '出煤量':2
+            }
+        }
+    },
+    props:['info_number'],
+    methods:{
+        change(){
+            if(this.h==="0px"){
+                this.h = "200px"
+            }else if(this.h = "200px"){
+                this.h = "0px"
+            }
+        },
+        getData(msg){
+            this.msg = msg
+        }
+    }
+}
+</script>
+
+<style lang='less' scoped>
+.container{
+    width: 100%;
+    height: 100%;
+    position: relative;
+    color: #fff;
+    .fankui{
+        text-align: center;
+        font-size: 20px;
+    }
+    .bgi{
+        height: 120px;
+        background-size:cover;
+        background-image: url(采煤机.png);
+    }
+    .info{
+        box-sizing: border-box;
+        height: 90px;
+        font-size: 20px;
+        border: 5px solid rgb(219,208,10);
+        padding-top: 12%;
+        text-align: center;
+        color: rgb(219,208,10);
+    }
+    .msg{
+        padding: 0;
+        list-style: none;
+        position: absolute;
+        overflow: hidden;
+        width: 200px;
+        height: 0;
+        top:-10px;
+        right: -220px;
+        border-radius: 20%;
+        background-color: rgba(88, 240, 227, 1);
+        box-shadow: 0 0 10px rgba(255, 255, 255, 1);
+        transition: 0.5s;
+        li{
+            color: rgb(236, 74, 74);
+            font-size: 20px;
+            text-align: center;
+            padding: 20px 0;
+        }
+    }
+}
+#green{
+        color: green;
+    }
+#red{
+    color: red;
+}
+</style>

+ 83 - 0
src/components/process_monitoring/Footer.vue

@@ -0,0 +1,83 @@
+<template>
+  <div id="outer">
+      <div class="container">
+          <div class="left">
+              <ul>
+                  <li><i class="fa fa-cog "></i></li>
+                  <li><i class="fa fa-home"></i>首页</li>
+                  <li><i class="fa fa-bar-chart"></i>数据报表</li>
+                  <li><i class="fa fa-warning"></i>报警信息</li>
+                  <li><i class="fa fa-line-chart"></i>曲线管理</li>
+                  <li><i class="fa fa-users"></i>用户管理</li>
+              </ul>
+          </div>
+          <div class="right">
+              <ul>
+                  <li>当前登录用户:admin</li>
+                  <li>{{date}}</li>
+              </ul>
+          </div>
+      </div>
+  </div>
+</template>
+
+<script>
+export default {
+    name:'Footer',
+    data: function() {
+        return {
+        date: new Date(),
+        };
+    },
+    mounted() {
+        let that= this;
+        this.timer = setInterval(function() {
+        that.date = new Date().toLocaleString();
+        });
+    },
+    beforeDestroy: function() {
+        if (this.timer) {
+        clearInterval(this.timer);
+        }
+    },
+}
+</script>
+
+<style lang="less" scoped>
+    #outer{
+        width: 100%;
+        height: 5%;
+        .container{
+            height: 100%;
+            background-color: rgb(5,17,57);
+            overflow: hidden;
+            .left{
+                height: 100%;
+                float: left;
+                color: rgb(74,87,152);
+            }
+            .right{
+                height: 100%;
+                float: right;
+                color: rgb(74,87,152);
+            }
+            ul{
+                    height: 100%;
+                    margin: 0;
+                    padding-left: 0;
+                    list-style: none;
+                    display: flex;
+                    position: relative;
+                    li{
+                        padding-top: 15px;
+                        font-size: 20px;
+                        margin: 0 20px;
+                        line-height: 100%;
+                    }
+                    li:hover{
+                        color: rgb(82, 99, 184);
+                    }
+            }
+        }
+    }
+</style>

+ 30 - 0
src/components/process_monitoring/Header.vue

@@ -0,0 +1,30 @@
+<template>
+  <div id="outer">
+      <p><i class="fa fa-cubes"></i>煤业生产系统综合集控平台</p>
+  </div>
+</template>
+
+<script>
+export default {
+    name:'Header'
+}
+</script>
+
+<style lang="less" scoped>
+    #outer{
+        width: 100%;
+        height: 10%;
+        background-image: linear-gradient(to right, rgb(6,19,60) 0%, rgb(1,22,105)50%, rgb(6,19,60)100%);
+        position: relative;
+        p{
+            color: rgba(102,159,255, 1);
+            font-size: 30px;
+            margin: 0;
+            padding: 0;
+            position: absolute;
+            left: 50%;
+            top: 50%;
+            transform: translate(-50%,-50%);
+        }
+    }
+</style>

+ 450 - 0
src/components/process_monitoring/Main.vue

@@ -0,0 +1,450 @@
+<template>
+  <div id="outer">
+        <div class="title">
+            <p>生产流程整体监控</p>
+        </div>
+        <div class="warning_box">
+            <div class="warning_container warning1"><WarningInfo :ref="0" :id="0"></WarningInfo></div>
+            <div class="warning_container warning2"><WarningInfo :ref="1" :id="1"></WarningInfo></div>
+            <div class="warning_container warning3"><WarningInfo :ref="2" :id="2"></WarningInfo></div>
+            <div class="warning_container warning4"><WarningInfo :ref="3" :id="3"></WarningInfo></div>
+            <div class="warning_container warning5"><WarningInfo :ref="4" :id="4"></WarningInfo></div>
+            <div class="warning_container warning6"><WarningInfo :ref="5" :id="5"></WarningInfo></div>
+            <div class="warning_container warning7"><WarningInfo :ref="6" :id="6"></WarningInfo></div>
+            <div class="warning_container warning8"><WarningInfo :ref="7" :id="7"></WarningInfo></div>
+            <div class="warning_container warning9"><WarningInfo :ref="8" :id="8"></WarningInfo></div>
+            <div class="warning_container warning10"><WarningInfo :ref="9" :id="9"></WarningInfo></div>
+        </div>
+        <div class="pidai_box">
+            <div class="pidai_container pidai1"><Pidai></Pidai></div>
+            <div class="pidai_container pidai2"><Pidai></Pidai></div>
+            <div class="pidai_container pidai3"><Pidai></Pidai></div>
+            <div class="pidai_container pidai4"><Pidai></Pidai></div>
+            <div class="pidai_container pidai5"><Pidai></Pidai></div>
+            <div class="pidai_container pidai6"><Pidai></Pidai></div>
+            <div class="pidai_container pidai7"><Pidai></Pidai></div>
+            <div class="pidai_container pidai8"><Pidai></Pidai></div>
+            <div class="pidai_container pidai9"><Pidai></Pidai></div>
+            <div class="pidai_container pidai10"><Pidai></Pidai></div>
+        </div>
+        <div class="shexiangtou_box">
+            <div class="shexiangtou_container shexiangtou1"></div>
+            <div class="shexiangtou_container shexiangtou2"></div>
+            <div class="shexiangtou_container shexiangtou3"></div>
+        </div>
+        <div class="caimeiji1"><CaiMeiJi :ref="10" info_number="1#"></CaiMeiJi></div>
+        <div class="caimeiji2"><CaiMeiJi :ref="11" info_number="9+10"></CaiMeiJi></div>
+        <div class="tongcang">
+            <div class="tong"></div>
+            <div class="tong_info">地面筒仓</div>
+        </div>
+        <div class="bottom_left">
+            <div class="bottom_info">井底煤仓料位</div>
+            <ul class="bottom_msg">
+                <li>1#煤仓料位&nbsp&nbsp&nbspXXXX</li>
+                <li>9+10煤仓料位&nbsp&nbsp&nbspXXXX</li>
+            </ul>
+        </div>
+        <div class="bottom_right">
+            <div class="bottom_info">算仓料位</div>
+            <ul class="bottom_msg">
+                <li>末煤算仓料位&nbsp&nbsp&nbspXXXX</li>
+                <li>末煤算仓料位&nbsp&nbsp&nbspXXXX</li>
+            </ul>
+        </div>
+        <div class="buttons">
+            <button class="btn1" @click="start">模拟皮带启动</button>
+            <button class="btn2" @click="end">模拟皮带停止</button>
+        </div>
+  </div>
+</template>
+
+<script>
+import WarningInfo from './WarningInfo.vue'
+import CaiMeiJi from './CaiMeiJi.vue'
+import Pidai from './Pidai.vue'
+export default {
+    name:'Main',
+    data() {
+        return {
+            
+        }
+    },
+    components:{WarningInfo,Pidai,CaiMeiJi},
+    mounted() {
+        // this.initWebSocket()
+    },
+    methods: {
+        closeWebSocket() {
+			this.websocket.close();
+		},
+        initWebSocket(){
+            // var websocket = null;
+            //判断当前浏览器是否支持WebSocket
+            if ('WebSocket' in window) {
+                var serviceIp ="localhost:8081";
+                this.websocket = new WebSocket("ws://"+serviceIp+"/Belt");
+            }else if ('MozWebSocket' in window) {
+                 var serviceIp ="localhost:8081";
+                 this.websocket = new WebSocket("ws://"+serviceIp+"/Belt");
+           }
+            else {
+                console.log('当前浏览器 Not support websocket');
+                let that = this;
+                 this.interval = window.setInterval(function(){ //每隔30秒钟发送一次心跳,避免websocket连接因超时而自动断开
+                   that.forgeWebSocket();
+                },30000);
+            }
+        let that = this;
+        this.interval = window.setInterval(function(){ //每隔30秒钟发送一次心跳,避免websocket连接因超时而自动断开
+                    if(that.websocket!=null){
+                        that.websocket.send("HeartBeat");
+                        console.log("发送心跳包:HeartBeat");
+                    }
+                },30000);
+            
+            //连接发生错误的回调方法
+            this.websocket.onerror = function (ev) {
+                console.log("WebSocket连接发生错误");
+            };
+
+            //连接成功建立的回调方法
+            this.websocket.onopen = function (ev) {
+                console.log("WebSocket连接成功");
+                this.send("addsocket");
+            }
+
+            //接收到消息的回调方法
+            this.websocket.onmessage = function (event) {
+                let obj = JSON.parse(event.data)
+                // let {obj1,obj2} = obj
+                console.log(event.data)
+                if(obj.id>=0&&obj.id<=9){
+                    let {broken,coal_stack,deviated,locked,slippery,smoke,speed,temperature,tore,vertical_tore} = obj
+                    let infoList = {
+                            tore: {
+                                info:tore, info_msg:'撕裂'
+                            },
+                            locked: {
+                                info:locked, info_msg:'闭锁'
+                            },
+                            deviated: {
+                                info:deviated, info_msg:'跑偏'
+                            },
+                            smoke: {
+                                info:smoke, info_msg:'烟雾'
+                            },
+                            coal_stack: {
+                                info:coal_stack, info_msg:'堆煤'
+                            },
+                            speed: {
+                                info:speed, info_msg:'速度'
+                            },
+                            temperature: {
+                                info:temperature, info_msg:'温度'
+                            },
+                            slippery: {
+                                info:slippery, info_msg:'打滑'
+                            },
+                            vertical_tore: {
+                                info:vertical_tore, info_msg:'纵撕'
+                            },
+                            broken: {
+                                info:broken, info_msg:'断带'
+                            },
+                    }
+                    that.$refs[obj.id].setInfo(infoList)
+                }else if(obj.id>=10&&obj.id<=11){
+                    let {knife_num,meter,coal_num} = obj
+                    let msg ={
+                        '割煤刀数':knife_num,
+                        '回采米数':meter,
+                        '出煤量':coal_num
+                    }
+                    that.$refs[obj.id].getData(msg)
+                }
+            }
+
+            //连接关闭的回调方法
+            this.websocket.onclose = function (ev) {
+                console.log("WebSocket连接关闭");
+                this.websocket=null;
+            }
+        },
+        start(){
+            this.initWebSocket()
+        },
+        end(){
+            this.closeWebSocket()
+        }
+    },
+    beforeDestroy(){
+        // this.websocket.onclose()
+    }
+}
+</script>
+
+<style lang="less" scoped>
+    #outer{
+        width: 100%;
+        height: 85%;
+        background-image: linear-gradient(to right, rgb(6,19,60) 0%, rgb(1,22,105)50%, rgb(6,19,60)100%);
+        position: relative;
+        .title{
+            position: relative;
+            height: 10%;
+            p{
+                color: #fff;
+                font-size: 40px;
+                margin: 0;
+                position: absolute;
+                left: 50%;
+                top: 50%;
+                transform: translate(-50%,-50%);
+            }
+        }
+        .warning_box{
+            position: relative;
+        }
+        .pidai_box{
+            position: relative;
+        }
+        .shexiangtou_box{
+            position: relative;
+        }
+    }
+    .warning_container{
+        width: 100px;
+        height: 200px;
+        position: absolute;
+    }
+    .warning1{
+        top: 20px;
+        left: 650px;
+    }
+    .warning2{
+        top: 20px;
+        left: 800px;
+    }
+    .warning3{
+        top: 20px;
+        left: 950px;
+    }
+    .warning4{
+        top: 20px;
+        left: 1100px;
+    }
+    .warning5{
+        top: -50px;
+        right: 200px;
+    }
+    .warning6{
+        top: -50px;
+        right: 50px;
+    }
+    .warning7{
+        top: 270px;
+        left: 350px;
+    }
+    .warning8{
+        top: 480px;
+        left: 680px;
+    }
+    .warning9{
+        top: 480px;
+        left: 830px;
+    }
+    .warning10{
+        top: 490px;
+        left: 1230px;
+    }
+    .pidai_container{
+        width: 200px;
+        height: 30px;
+        position: absolute;
+    }
+    .pidai1{
+        left: 280px;
+        top: 50px;
+        width: 250px;
+        height: 30px;
+    }
+    .pidai2{
+        left: 452px;
+        top: 170px;
+        transform: rotate(90deg);
+        width: 150px;
+        height: 30px;
+    }
+    .pidai3{
+        left: 510px;
+        top: 280px;
+        width: 300px;
+        height: 30px;
+    }
+    .pidai4{
+        left: 820px;
+        top: 280px;
+        width: 300px;
+        height: 30px;
+    }
+    .pidai5{
+        left: 150px;
+        top: 580px;
+        width: 300px;
+        height: 30px;
+    }
+    .pidai6{
+        left: 425px;
+        top: 500px;
+        transform: rotate(-45deg);
+        width: 250px;
+        height: 30px;
+    }
+    .pidai7{
+        left: 660px;
+        top: 415px;
+        width: 270px;
+        height: 30px;
+    }
+    .pidai8{
+        left: 950px;
+        top: 350px;
+        transform: rotate(-45deg);
+        width: 600px;
+        height: 30px;
+    }
+    .pidai9{
+        left: 1500px;
+        top: 310px;
+        width: 350px;
+        height: 30px;
+    }
+    .pidai10{
+        left: 1500px;
+        top: 410px;
+        width: 250px;
+        height: 30px;
+    }
+    .shexiangtou_container{
+        width: 50px;
+        height: 50px;
+        border-radius: 50%;
+        background-image: url(摄像头.png);
+        background-size:cover;
+        position: absolute;
+    }
+    .shexiangtou1{
+        top: 200px;
+        left: 570px;
+    }
+    .shexiangtou2{
+        top: 100px;
+        left: 1470px;
+    }
+    .shexiangtou3{
+        top: 350px;
+        left: 960px;
+    }
+    .caimeiji1{
+        width: 250px;
+        height: 240px;
+        position: absolute;
+        top: -30px;
+        left: 10px;
+    }
+    .caimeiji2{
+        width: 250px;
+        height: 240px;
+        position: absolute;
+        top: 400px;
+        left: 10px;
+    }
+    .tongcang{
+        width: 200px;
+        height: 220px;
+        position: absolute;
+        right: 50px;
+        bottom: 20px;
+        .tong{
+            width: 200px;
+            height: 200px;
+            background-image: url(筒仓.jpg);
+            background-size:cover;
+        }
+        .tong_info{
+            text-align: center;
+            color: #fff;
+        }
+    }
+    .bottom_left{
+        width: 200px;
+        height: 100px;
+        position: absolute;
+        right: 715px;
+        bottom: 20px;
+        color: #fff;
+        .bottom_info{
+            padding: 5px;
+            outline: 1px rgba(255, 255, 255, .3) solid;
+            text-align: center;
+        }
+        .bottom_msg{
+            margin: 0;
+            padding: 5px;
+            outline: 1px rgba(255, 255, 255, .3) solid;
+            list-style: none;
+            li{ 
+                text-align: center;
+            }
+        }
+    }
+    .bottom_right{
+        width: 200px;
+        height: 100px;
+        position: absolute;
+        right: 315px;
+        bottom: 20px;
+        color: #fff;
+        .bottom_info{
+            padding: 5px;
+            outline: 1px rgba(255, 255, 255, .3) solid;
+            text-align: center;
+        }
+        .bottom_msg{
+            margin: 0;
+            padding: 5px;
+            outline: 1px rgba(255, 255, 255, .3) solid;
+            list-style: none;
+            li{ 
+                text-align: center;
+            }
+        }
+    }
+    .buttons{
+        width: 240px;
+        height: 150px;
+        // background-color: #fff;
+        position: absolute;
+        top: 230px;
+        left: 20px;
+        button{
+            display: block;
+            background-color: rgb(226,226,218);
+            background-image: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(38, 120, 228)50%, rgb(255, 255, 255) 100%);
+            border-radius: 10px;
+            font-size: 20px;
+            font-family: "'微软雅黑','Helvetica Neue',Helvetica,Arial,sans-serif";
+            font-weight:bold
+        }
+        .btn1{
+            width: 100%;
+            height: 45%;
+        }
+        .btn2{
+            margin-top: 5%;
+            width: 100%;
+            height: 45%;
+        }
+    }
+</style>

+ 52 - 0
src/components/process_monitoring/Pidai.vue

@@ -0,0 +1,52 @@
+<template>
+    <div class="outer">
+        <div class="left_chilun"><i class="fa fa-cog fa-spin"></i></div>
+        <div class="pidai"></div>
+        <div class="right_chilun"><i class="fa fa-cog fa-spin"></i></div>
+    </div>
+</template>
+
+<script>
+export default {
+    name:'Pidai'
+}
+</script>
+
+<style lang="less" scoped>
+    .outer{
+        width: 100%;
+        height: 100%;
+        position: relative;
+        color: #fff;
+        .pidai{
+            width: 80%;
+            height: 100%;
+            position: absolute;
+            left: 50%;
+            transform: translate(-50%,0);
+            border-top: 5px solid rgb(255, 255, 255);
+            border-bottom: 5px solid rgb(255, 255, 255);
+            border-radius: 20%;
+        }
+        .left_chilun{
+            width: 10%;
+            position: absolute;
+                left: 0;
+            font-size: 40px;
+            i{
+                position: absolute;
+                right: 0;
+            }
+        }
+        .right_chilun{
+            width: 10%;
+            position: absolute;
+            right: 0;
+            font-size: 40px;
+            i{
+                position: absolute;
+                left: 0;
+            }
+        }
+    }
+</style>

+ 103 - 0
src/components/process_monitoring/WarningInfo.vue

@@ -0,0 +1,103 @@
+<template>
+    <div ref="outer" class="outer">
+        <div class="number_Info">{{id}}#皮带</div>
+        <ul class="msg">
+            <li v-for="(value, key, index) in infoList" :key="index">{{value.info_msg}} <i id="green" v-show="!value.info" class="fa fa-circle"></i> <i id="red" v-show="value.info" class="fa fa-circle"></i></li>
+        </ul>
+    </div>
+</template>
+
+<script>
+export default {
+    name:'WarningInfo',
+    data() {
+        return {
+            number:0,
+            infoList: {
+                tore: {
+                    info:1, info_msg:'撕裂'
+                },
+                locked: {
+                    info:0, info_msg:'闭锁'
+                },
+                deviated: {
+                    info:1, info_msg:'跑偏'
+                },
+                smoke: {
+                    info:1, info_msg:'烟雾'
+                },
+                coal_stack: {
+                    info:1, info_msg:'堆煤'
+                },
+                speed: {
+                    info:1, info_msg:'速度'
+                },
+                temperature: {
+                    info:1, info_msg:'温度'
+                },
+                slippery: {
+                    info:1, info_msg:'打滑'
+                },
+                vertical_tore: {
+                    info:1, info_msg:'纵撕'
+                },
+                broken: {
+                    info:1, info_msg:'断带'
+                },
+            }
+        }
+    },
+    methods: {
+        setInfo(infoList){
+            this.infoList = infoList
+            this.$refs.outer.style.outline = 'rgb(241, 97, 13) solid 2px';
+            setTimeout(() => {
+                this.$refs.outer.style.outline = 'none';
+            }, 1000);
+        }
+    },
+    props:{
+        id:{
+            type:Number, //类型
+            required:true, //必要性
+        }
+    },
+}
+</script>
+
+<style lang="less" scoped>
+    #green{
+        color: green;
+    }
+    #red{
+        color: red;
+    }
+    .outer{
+        width: 100%;
+        height: 100%;
+        color: #ddd;
+        .number_Info{
+            width: 100%;
+            height: 10%;
+            padding: 5px 0;
+            text-align: center;
+            outline: 1px rgba(255, 255, 255, .3) solid;
+        }
+        ul{
+            padding: 0;
+            margin: 0;
+            width: 100%;
+            height: 170px;
+            list-style: none;
+            outline: 1px rgba(255, 255, 255, .3) solid;
+            overflow: auto;
+            li{
+                text-align: center;
+                margin: 5px 0;
+            }
+        }
+        ul::-webkit-scrollbar{
+            display: none;
+        }
+    }
+</style>

BIN
src/components/process_monitoring/摄像头.png


BIN
src/components/process_monitoring/筒仓.jpg


BIN
src/components/process_monitoring/采煤机.png


+ 2 - 1
src/main.js

@@ -8,11 +8,12 @@ import axios from "axios";
 import VueAxios from 'vue-axios'
 import Antd from 'ant-design-vue'
 import dataV from '@jiaminghi/data-view';
-
+import 'font-awesome/css/font-awesome.css'
 
 
 import 'element-ui/lib/theme-chalk/index.css';
 import './assets/css/global.css'
+
 import 'ant-design-vue/dist/antd.css'
 
 import {postRequest} from "./utils/api";

+ 3 - 3
src/router/index.js

@@ -541,11 +541,11 @@ export default new Router({
                 import('../views/app_belt_coal_quantity/beltCoalQuantity.vue'),
             hidden: false,
         }, {
-            path: '/safety_monitoring',
-            name: '安全监测',
+            path: '/productProcessMonitoring',
+            name: '生产流程监控',
             id: 201,
             component: () =>
-                import('../views/app_safety_monitoring/safetyMonitoring.vue'),
+                import('../views/app_product_process_monitoring/productProcessMonitoring.vue'),
             hidden: false,
         }, {
             path: '/hazard_warning',

+ 42 - 0
src/views/app_product_process_monitoring/productProcessMonitoring.vue

@@ -0,0 +1,42 @@
+<template>
+  <div>
+    <Header></Header>
+    <Main></Main>
+    <Footer></Footer>
+  </div>
+</template>
+<script>
+
+import Header from "../../components/process_monitoring/Header";
+import Main from "../../components/process_monitoring/Main";
+import Footer from "../../components/process_monitoring/Footer";
+export default {
+  name: "safetyMonitoring",
+  components: {
+    Header,
+    Main,
+    Footer,
+  },
+};
+</script>
+
+<style scoped>
+body,
+html {
+  margin: 0;
+  padding: 0;
+  width: 100%;
+}
+#app {
+  width: 100%;
+  height: 937px;
+  background-color: #bfa;
+}
+* {
+  height: 900px;
+}
+.el-main {
+  height: 900px;
+}
+</style>>
+

+ 0 - 13
src/views/app_safety_monitoring/safetyMonitoring.vue

@@ -1,13 +0,0 @@
-<template>
-  <div>safetyMonitoring</div>
-</template>
-
-<script>
-export default {
-  name: "safetyMonitoring"
-}
-</script>
-
-<style scoped>
-
-</style>

Some files were not shown because too many files changed in this diff