5فایلهای تغییر یافته به همراه241 افزوده شده و 1709 حذف شده
  1. 84 1666
      package-lock.json
  2. 0 3
      src/main.js
  3. 14 12
      src/router/index.js
  4. 25 17
      src/components/zdh/plcdata.vue
  5. 118 11
      src/views/tongfeng/zaoquan/tongfeng_xijin.vue

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 84 - 1666
package-lock.json


+ 0 - 3
src/main.js

@@ -2,10 +2,7 @@ import Vue from 'vue'
 import App from './App.vue'
 import router from './router'
 import store from './store'
-<<<<<<< HEAD
 import './assets/css/global.css'
-=======
->>>>>>> 92b8cfb605bcdd3ab5813fe21ab53ebc4f66da8f
 import "./plugins/axios.js"
 
 // import axios from "axios"

+ 14 - 12
src/router/index.js

@@ -41,17 +41,26 @@ const routes = [
     name:'leader-mailbox-reply',
     component:()=>import('../views/xixuanzhongxin/leader-mailbox/leader-mailbox-reply.vue')
   },
-<<<<<<< HEAD
 
 
 
 
-  //枣泉tongfeng
+  //枣泉西井tongfeng
   {
     path:'/tongfeng/zaoquan/tongfeng_xijin',
     name:'tongfeng_xijin',
     component:()=>import('../views/tongfeng/zaoquan/tongfeng_xijin.vue')
-=======
+    },
+
+    //枣泉东井tongfeng
+  {
+    path:'/tongfeng/zaoquan/tongfeng_dongjin',
+    name:'tongfeng_dongjin',
+    component:()=>import('../views/tongfeng/zaoquan/tongfeng_dongjin.vue')
+    },
+
+
+
   //枣泉矿井水系统
   {
     path:'/zaoquan/kuangjingshui/kuangjingshui',
@@ -78,20 +87,13 @@ const routes = [
     meta:{
       title:'拼图游戏'
     }
->>>>>>> 92b8cfb605bcdd3ab5813fe21ab53ebc4f66da8f
   },
   //路由重定向
   {
     path:'/',
-<<<<<<< HEAD
-<<<<<<< HEAD
+
     redirect:{"name":"tongfeng_xijin"}
-=======
-    redirect:{"name":"puzzle-infos"}
->>>>>>> 92b8cfb605bcdd3ab5813fe21ab53ebc4f66da8f
-=======
-    redirect:{"name":"puzzle"}
->>>>>>> 4dc4f2de13aeec9d60e608b6522969df45127964
+
   }
 ]
 

+ 25 - 17
src/components/zdh/plcdata.vue

@@ -1,27 +1,35 @@
 <template>
   <div>
-    <div class="content" v-for="item in data">
-      <div class="top">
-        <div class="left">{{ item.run.tag_name }}</div>
-        <div class="right">运行</div>
-      </div>
-      <div class="data">
-        <ul>
-          <li v-for="list in item.list">
-            <div class="title">{{ list.tag_name }}</div>
-            <div class="num">
-              {{ list.tag_value.substring(0, list.tag_value.indexOf(".") + 3) }}
-            </div>
-          </li>
-        </ul>
+    <topimg></topimg>
+    <!-- <plcdata></plcdata> -->
+    <div>
+      <div class="content" v-for="item in data">
+        <div class="top">
+          <div class="left">{{ item.run.tag_name }}</div>
+          <div class="right">运行</div>
+        </div>
+        <div class="data">
+          <ul>
+            <li v-for="list in item.list">
+              <div class="title">{{ list.tag_name }}</div>
+              <div class="num">
+                {{
+                  list.tag_value.substring(0, list.tag_value.indexOf(".") + 3)
+                }}
+              </div>
+            </li>
+          </ul>
+        </div>
       </div>
     </div>
   </div>
 </template>
 
 <script>
+import topimg from "@/components/zdh/topimg.vue";
 export default {
-  name: "plcdata",
+  name: "tongfeng_xijin",
+  components: { topimg },
   data() {
     return {
       data: "",
@@ -31,7 +39,7 @@ export default {
     async getData() {
       const { data: res } = await this.$http.post(
         "http://nmjt.nxjiewei.com:8011/api/automate/mine_ventilate/get_list",
-        { mine_id: "zaoquan" }
+        { mine_id: "zaoquan", type: 1 }
       );
       console.log(res.content.data);
       this.data = res.content.data;
@@ -47,7 +55,7 @@ export default {
 };
 </script>
 
-<style scoped>
+<style  scoped>
 .content {
   font-weight: 400;
   background-color: #ffffff;

+ 118 - 11
src/views/tongfeng/zaoquan/tongfeng_xijin.vue

@@ -1,22 +1,129 @@
 <template>
+  <div>
+    <topimg></topimg>
+    <!-- <plcdata></plcdata> -->
     <div>
-            <topimg></topimg>
-            <plcdata></plcdata>
-             
+      <div class="content" v-for="item in data">
+        <div class="top">
+          <div class="left">{{ item.run.tag_name }}</div>
+          <div class="right">运行</div>
+        </div>
+        <div class="data">
+          <ul>
+            <li v-for="list in item.list">
+              <div class="title">{{ list.tag_name }}</div>
+              <div class="num">
+                {{
+                  list.tag_value.substring(0, list.tag_value.indexOf(".") + 3)
+                }}
+              </div>
+            </li>
+          </ul>
+        </div>
+      </div>
     </div>
+  </div>
 </template>
 
 <script>
-import plcdata from '@/components/zdh/plcdata.vue';
-import topimg from '@/components/zdh/topimg.vue'
-    export default {
-         name:'tongfeng_xijin',
-  components: { topimg,plcdata },
-        
-         
-    }
+import topimg from "@/components/zdh/topimg.vue";
+export default {
+  name: "tongfeng_xijin",
+  components: { topimg },
+  data() {
+    return {
+      data: "",
+    };
+  },
+  methods: {
+    async getData() {
+      const { data: res } = await this.$http.post(
+        "http://nmjt.nxjiewei.com:8011/api/automate/mine_ventilate/get_list",
+        { mine_id: "zaoquan", type: 2 }
+      );
+      console.log(res.content.data);
+      this.data = res.content.data;
+    },
+  },
+  mounted() {
+    this.getData();
+    this.infos = setInterval(this.getData, 5000);
+  },
+  beforeDestroy() {
+    clearInterval(this.infos);
+  },
+};
 </script>
 
 <style  scoped>
+.content {
+  font-weight: 400;
+  background-color: #ffffff;
+  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.14);
+  border-radius: 5px;
+  margin: 5px;
+  background-color: #2873ff;
+}
+.top {
+  background-color: #ffffff;
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  /* padding: 10px; */
+  height: 33px;
+  margin-left: 5px;
+  border-bottom: 1px #f3f3f3 solid;
+  padding: 10px;
+}
+/* span{
+        background-color: #2873FF;
+        width: 9px;
+        height: 33px;
 
+    } */
+.left {
+  height: 33px;
+  line-height: 33px;
+  /* margin-left: 10px; */
+}
+.right {
+  width: 33px;
+  height: 20px;
+  background-color: #27ae60;
+  border-radius: 2px;
+  color: #ffffff;
+  text-align: center;
+  font-size: 10px;
+  line-height: 14px;
+  font-weight: 400;
+  padding-top: 4px;
+}
+.data {
+  background-color: #ffffff;
+  padding: 0 10px;
+}
+/* ul{
+        
+    } */
+li {
+  /* margin-right: 5%; */
+  /* float: left; */
+  height: 39px;
+  /* line-height: 39px; */
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  padding: 10px 0px;
+  border-bottom: 1px #f3f3f3 solid;
+}
+li div {
+  height: 17px;
+  padding-bottom: 3px;
+}
+.num {
+  width: 80px;
+  text-align: center;
+  background-color: #2873ff;
+  color: #fff;
+}
 </style>