Quellcode durchsuchen

生产流程 主界面 掘进界面修改

秦娜敏 vor 3 Jahren
Ursprung
Commit
6c84cc8a8f

+ 2 - 3
src/common/dataDetail/dataDetail_chart.vue

@@ -295,9 +295,8 @@ export default {
             arr.push(o);
 
           }
-          console.log("arr");
-          console.log(arr);
-          this.tableData=arr;
+          // console.log(arr);
+          // this.tableData=arr;
         }
         // console.log('this.tableData');
         // console.log(this.tableData);

+ 3 - 3
src/components/beam_tube/scatterChart.vue

@@ -107,8 +107,8 @@ export default {
       var newArr = [];
       var newArr2 = [];
       for (let i = 0; i < 26; i++) {
-        newArr = [i, "锚索应力", this.data.bottom[i] < 30 ? true : false];
-        newArr2 = [i, "顶板离层", this.data.top[i] < 30 ? true : false];
+        newArr = [i, "锚索应力", this.data.bottom[i] < 49 ? true : false];
+        newArr2 = [i, "顶板离层", this.data.top[i] < 49 ? true : false];
         arr.push(newArr);
         arr.push(newArr2);
       }
@@ -129,7 +129,7 @@ export default {
     generateArr() {
       var arr = [];
       for (let i = 0; i < 26; i++) {
-        arr.push(parseInt(Math.random() * (40 - 10 + 1) + 10, 10));
+        arr.push(parseInt(Math.random() * (50 - 10 + 1) + 10, 10));
       }
       return arr;
     },

BIN
src/components/newMain/item2/筒仓.png


BIN
src/components/newMain/item2/筒仓1.png


+ 48 - 34
src/components/newmain/item2/Main.vue

@@ -51,10 +51,17 @@
     <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">
-      煤 <br /><br />
-      仓
+       煤 仓
+      <img
+        src="./筒仓1.png"
+        alt="煤 仓"
+      >
     </div>
 
     <div class="buttons">
@@ -335,7 +342,7 @@ export default {
 }
 .warning5 {
   top: 299px;
-  left: 576px;
+  left: 635px;
 }
 .warning6 {
   top: 22px;
@@ -347,11 +354,11 @@ export default {
 }
 .warning8 {
   top: 190px;
-  left: 700px;
+  left: 730px;
 }
 .warning9 {
   top: 165px;
-  left: 757px;
+  left: 788px;
 }
 // .warning10 {
 //   top: 490px;
@@ -389,46 +396,52 @@ export default {
   height: 17px;
 }
 .bottom_left {
-  position: absolute;
-  left: 416px;
-  top: 339px;
-  color: #fff;
-  font-size: 15px;
-  padding: 3px;
-  outline: 1px rgba(255, 255, 255, 0.3) solid;
-  text-align: center;
+  width: 67px;
+    height: 110px;
+    position: absolute;
+    left: 477px;
+    top: 261px;
+    color: #fff;
+    font-size: 12px;
+    padding: 5px;
+    text-align: center;
+}
+.bottom_left img {
+  width: 100%;
+  height: 100%;
+ 
 }
 .pidai5 {
-  left: 301px;
-  top: 314px;
-  transform: rotate(-60deg);
-  width: 80px;
-  height: 17px;
+    left: 361px;
+    top: 311px;
+    -webkit-transform: rotate(0deg);
+    transform: rotate(-65deg);
+    width: 80px;
+    height: 17px;
 }
 
 .pidai6 {
-  left: 379px;
-  top: 277px;
-  // transform: rotate(-45deg);
-  width: 80px;
-  height: 17px;
+ left: 440px;
+    top: 273px;
+    width: 60px;
+    height: 17px;
 }
 .pidai7 {
-  left: 421px;
+  left: 462px;
   top: 210px;
   transform: rotate(-90deg);
   width: 80px;
   height: 17px;
 }
 .pidai8 {
-  left: 448px;
+  left: 486px;
   top: 118px;
   transform: rotate(-60deg);
   width: 80px;
   height: 17px;
 }
 .pidai9 {
-  left: 521px;
+  left: 559px;
   top: 61px;
   width: 80px;
   height: 17px;
@@ -475,15 +488,16 @@ export default {
   left: 100px;
 }
 .tongcang {
-  width: 200px;
-  height: 220px;
-  position: absolute;
-  right: 50px;
-  bottom: 20px;
+     width: 70px;
+    height: 70px;
+    position: absolute;
+    right: 50px;
+    bottom: 36px;
+
   .tong {
-    width: 200px;
-    height: 200px;
-    background-image: url(筒仓.jpg);
+   width: 100%;
+    height: 100%;
+    background-image: url(筒仓.png);
     background-size: cover;
   }
   .tong_info {

BIN
src/components/newmain/item2/采煤机.png


+ 10 - 8
src/components/process_monitoring/Main.vue

@@ -92,8 +92,11 @@
       <div class="tong_info">地面筒仓</div>
     </div>
     <div class="bottom_left">
-      煤 <br /><br />
-      仓
+      煤 仓
+      <img
+        src="./筒仓1.png"
+        alt=""
+      >
     </div>
 
     <div class="buttons">
@@ -434,15 +437,14 @@ export default {
   height: 30px;
 }
 .bottom_left {
-  width: 70px;
+  width: 95px;
   height: 200px;
   position: absolute;
-  left: 830px;
-  top: 450px;
+  left: 929px;
+  top: 344px;
   color: #fff;
-  font-size: 40px;
+  font-size: 14px;
   padding: 5px;
-  outline: 1px rgba(255, 255, 255, 0.3) solid;
   text-align: center;
 }
 .pidai5 {
@@ -530,7 +532,7 @@ export default {
   .tong {
     width: 200px;
     height: 200px;
-    background-image: url(筒仓.jpg);
+    background-image: url(筒仓.png);
     background-size: cover;
   }
   .tong_info {

BIN
src/components/process_monitoring/筒仓.png


BIN
src/components/process_monitoring/筒仓1.png


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


+ 172 - 168
src/components/tunneling/ruler.vue

@@ -1,187 +1,191 @@
 <template>
-  <div id="rulerChart" style="width: 180px;height: 300px;"></div>
+  <div
+    id="rulerChart"
+    style="width: 180px;height: 300px;"
+  ></div>
 </template>
 
 <script>
-    var TP_value = 20.3;
-    var kd = [];
-    var kd2 = []
-    var Gradient = [];
-    var leftColor = '';
-    var showValue = 20;
-    var boxPosition = [65, 0];
-    var TP_txt = ''
-    // 刻度使用柱状图模拟,短设置1,长的设置3;构造一个数据
-    for (let i = 0, len = 60; i <= len; i += 1) {
-        if (i < 10) {
-            kd.push('');
-        } else if ((i - 10) % 10 === 0) {
-            kd.push('-3');
-        } else {
-            kd.push('-1');
-        }
-    }
-
-        for (let i = 0, len = 60; i <= len; i += 1) {
-        if (i < 10) {
-            kd2.push('');
-        } else if ((i - 10) % 10 === 0) {
-            kd2.push('3');
-        } else {
-            kd2.push('1');
-        }
-    }
-    //    leftColor = Gradient[Gradient.length - 1].color;
-    // 因为柱状初始化为0,温度存在负值,所以加上负值60和空出距离10
-export default {
-data () {
-        return {
-            chartInstance: null,
-           
-            allData:null,    // 服务器返回的数据
- 
-            currentPage: 1,  //当前显示的页数, 当修改页数时, 数据动态刷新
-
-            totalPage: 0,    //一共多少也
-            timerId:null      //定时器
-        }
-    },
-    mounted () {
-        this.initChart()
+var TP_value = 20.3;
+var kd = [];
+var kd2 = [];
+var Gradient = [];
+var leftColor = "";
+var showValue = 0;
+var boxPosition = [65, 0];
+var TP_txt = "";
+// 刻度使用柱状图模拟,短设置1,长的设置3;构造一个数据
+for (let i = 0, len = 60; i <= len; i += 1) {
+  if (i < 10) {
+    kd.push("");
+  } else if ((i - 10) % 10 === 0) {
+    kd.push("-3");
+  } else {
+    kd.push("-1");
+  }
+}
 
-        this.updateChart()
-    //  对窗口大小变化的事件进行监听
-        // window.addEventListener('resize', this.screenAdapter)
+for (let i = 0, len = 60; i <= len; i += 1) {
+  if (i < 10) {
+    kd2.push("");
+  } else if ((i - 10) % 10 === 0) {
+    kd2.push("3");
+  } else {
+    kd2.push("1");
+  }
+}
+//    leftColor = Gradient[Gradient.length - 1].color;
+// 因为柱状初始化为0,温度存在负值,所以加上负值60和空出距离10
+export default {
+  data() {
+    return {
+      chartInstance: null,
 
+      allData: null, // 服务器返回的数据
 
-    },
-    // destroyed () {
-    //   clearInterval(this.timerId)
-    //     // 在组件销毁的时候, 需要将监听器取消掉
-    //     // window.removeEventListener('resize', this.screenAdapter)
+      currentPage: 1, //当前显示的页数, 当修改页数时, 数据动态刷新
 
+      totalPage: 0, //一共多少也
+      timerId: null, //定时器
+    };
+  },
+  mounted() {
+    this.initChart();
 
-    // },
-    methods: {
-        //初始化echarts实例对象
-
-
-        initChart () {
-            this.chartInstance = this.$echarts.init(document.getElementById('rulerChart'))
-    
-             //对图表对象进行鼠标事件监听
-            this.chartInstance.on('mousecver', () =>{
-                this.clearInterval(this.timerId)
-            })
-            this.chartInstance.on('mouseout', () => {
-                this.startInterval()
-            })
-        },
+    this.updateChart();
+    //  对窗口大小变化的事件进行监听
+    // window.addEventListener('resize', this.screenAdapter)
+  },
+  // destroyed () {
+  //   clearInterval(this.timerId)
+  //     // 在组件销毁的时候, 需要将监听器取消掉
+  //     // window.removeEventListener('resize', this.screenAdapter)
+
+  // },
+  methods: {
+    //初始化echarts实例对象
+
+    initChart() {
+      this.chartInstance = this.$echarts.init(
+        document.getElementById("rulerChart")
+      );
+
+      //对图表对象进行鼠标事件监听
+      this.chartInstance.on("mousecver", () => {
+        this.clearInterval(this.timerId);
+      });
+      this.chartInstance.on("mouseout", () => {
+        this.startInterval();
+      });
+    },
 
-        // async getData() {
-        //     // 请求数据 allData
-        //     const { data: ret } = await this.$http.get('hbase/getJSON')
-        //     const { data1:ret1  } = await this.$http.get('engine/start/?mode=mode1')
-        //     this.allData = ret
-        //     // 对数据排序
-        //     this.allData.sort((a,b) => {{
-        //         return a.value-b.value //从小到大排序
-        //     }})
-        //     // 每1个元素显示一页
-        //     this.totalPage = this.allData.length % 1 ===0 ? this.allData.length /1 : this.allData.length / 1 +1 
+    // async getData() {
+    //     // 请求数据 allData
+    //     const { data: ret } = await this.$http.get('hbase/getJSON')
+    //     const { data1:ret1  } = await this.$http.get('engine/start/?mode=mode1')
+    //     this.allData = ret
+    //     // 对数据排序
+    //     this.allData.sort((a,b) => {{
+    //         return a.value-b.value //从小到大排序
+    //     }})
+    //     // 每1个元素显示一页
+    //     this.totalPage = this.allData.length % 1 ===0 ? this.allData.length /1 : this.allData.length / 1 +1
 
-        //     // 获取完数据, 更新图标
-        //     this.updateChart()
+    //     // 获取完数据, 更新图标
+    //     this.updateChart()
 
-        //     // 启动定时器, 每隔三秒改变currentPage, 进而更新图表
-        //     this.startInterval()
+    //     // 启动定时器, 每隔三秒改变currentPage, 进而更新图表
+    //     this.startInterval()
 
-        // },
-        updateChart(){
-            // 每一页显示1个数据, 获取5个数据
-            // const start = (this.currentPage - 1) * 1
-            // const end = this.currentPage * 1
-            // const showData = this.allData.slice(start, end)    
-            // const showValue = showData[0].xingzouzhuangtai
- 
-            const colors = ['#5470c6','#91cc75'] 
-            const option = {
-                grid:{
-                    right:'30%',
-                    left :'20%',
-                    bottom:'5%'
-                },
-                // title: {
-                //     text: '行走状态',
-                //     color:'pink',
-                //     show: true
-                // },
-                yAxis: [{
-                    type:'value',
-                    name:'left',
-                    show: true,
-                    // data: [],
-                    min: -100,
-                    max: 100,
-                    splitNumber:20,     //坐标轴分段个数
-
-                    nameTextStyle:{
-                        borderWidth:50
-                    },
-                    nameLocation:'end',
-                    axisLine: {
-                        show: true,
-                        lineStyle:{
-                            color:colors[0],
-                            width:5     //刻度线宽度
-                        }
-                    }
-                }, {
-                    type:'value',
-                    name:'right',
-                    show: true,
-                    // data: [],
-                    min: -100,
-                    max: 100,
-                    splitNumber:20,     //坐标轴分段个数
-                    nameLocation:'end',
-                    axisLine: {
-                        show: true,
-                        lineStyle:{
-                            color:colors[1],
-                            width:5     //刻度线宽度
-                        }
-                    }
-                }],
-                xAxis: [{
-                    type:'category',
-                    show:false,
-
-                }],
-                   
-                series: [{
-                    name: 'left',
-                    type: 'scatter',
-                    // 对应上面XAxis的第一个对象配置
-                    yAxisIndex :0,
-                    // data: arrayData[1],
-                    data:[{
-                        value:showValue
-                    }],
-                    // z: 2
-                    },
-                    
-                ]}
-            this.chartInstance.setOption(option)
+    // },
+    updateChart() {
+      // 每一页显示1个数据, 获取5个数据
+      // const start = (this.currentPage - 1) * 1
+      // const end = this.currentPage * 1
+      // const showData = this.allData.slice(start, end)
+      // const showValue = showData[0].xingzouzhuangtai
+
+      const colors = ["#5470c6", "#91cc75"];
+      const option = {
+        grid: {
+          right: "30%",
+          left: "20%",
+          bottom: "5%",
         },
- 
-
-
-    }
-}
+        // title: {
+        //     text: '行走状态',
+        //     color:'pink',
+        //     show: true
+        // },
+        yAxis: [
+          {
+            type: "value",
+            name: "left",
+            show: true,
+            // data: [],
+            min: -100,
+            max: 100,
+            splitNumber: 20, //坐标轴分段个数
+
+            nameTextStyle: {
+              borderWidth: 50,
+            },
+            nameLocation: "end",
+            axisLine: {
+              show: true,
+              lineStyle: {
+                color: colors[0],
+                width: 5, //刻度线宽度
+              },
+            },
+          },
+          {
+            type: "value",
+            name: "right",
+            show: true,
+            // data: [],
+            min: -100,
+            max: 100,
+            splitNumber: 20, //坐标轴分段个数
+            nameLocation: "end",
+            axisLine: {
+              show: true,
+              lineStyle: {
+                color: colors[1],
+                width: 5, //刻度线宽度
+              },
+            },
+          },
+        ],
+        xAxis: [
+          {
+            type: "category",
+            show: false,
+          },
+        ],
+
+        series: [
+          {
+            name: "left",
+            type: "scatter",
+            // 对应上面XAxis的第一个对象配置
+            yAxisIndex: 0,
+            // data: arrayData[1],
+            data: [
+              {
+                value: showValue,
+              },
+            ],
+            // z: 2
+          },
+        ],
+      };
+      this.chartInstance.setOption(option);
+    },
+  },
+};
 </script>
 
 
 <style>
-
 </style>

+ 2 - 2
src/views/gas/configImg/main.vue

@@ -2,8 +2,8 @@
   <div id="apppp">
     <section class="mainbox">
       <!-- 查看数据看板 -->
-      <button @click="changeWebState(1)">查看</button>
-      <button class="button2" @click="changeWebState(2)">查看</button>
+      <button @click="changeWebState(1)"></button>
+      <button class="button2" @click="changeWebState(2)"></button>
       <!-- 电机1详细数据 -->
       <div class="motor1">
         <h3>电机1:</h3>