<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<html>
|
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="expires" content="0">
|
<meta http-equiv="pragma" content="no-cache">
|
<meta http-equiv="cache-control" content="no-cache">
|
<title>水刀</title>
|
<script src="../js/main.js"></script>
|
</head>
|
<style>
|
* {
|
margin: 0px;
|
padding: 0px;
|
font-size: 14px;
|
|
}
|
|
body,
|
html {
|
width: 100%;
|
height: 100%;
|
background-color: #D5EAFF;
|
|
}
|
|
#wai {
|
width: 100%;
|
height: 100%;
|
display: flex;
|
flex-wrap: wrap;
|
position: relative;
|
margin: 0px;
|
padding: 0px;
|
justify-content: center;
|
}
|
|
.wai_zs {
|
width: 50%;
|
height: 49%;
|
background-color: #D5EAFF;
|
border-right: 1px solid white;
|
border-bottom: 1px solid white;
|
}
|
|
.wai_ys {
|
width: 49%;
|
height: 49%;
|
background-color: #D5EAFF;
|
border-bottom: 1px solid white;
|
}
|
|
.wai_zx {
|
width: 50%;
|
height: 50%;
|
background-color: #D5EAFF;
|
border-right: 1px solid white;
|
}
|
|
.wai_yx {
|
width: 49%;
|
height: 50%;
|
background-color: #D5EAFF;
|
}
|
|
|
.msgtab {
|
width: 50%;
|
height: 35%;
|
border: 1px solid white;
|
border-collapse: collapse;
|
position: absolute;
|
top: 33%;
|
left: 25%;
|
}
|
|
/*
|
|
.one1,
|
.one1 input {
|
background-color: #F0FFFF;
|
}
|
|
.double1,
|
.double1 input {
|
background-color: #e1f0fd;
|
}
|
|
.msgtab tr th {
|
color: white;
|
white-space: nowrap;
|
text-align: center;
|
height: 20px;
|
line-height: 20px;
|
overflow: hidden;
|
}
|
|
.msgtab tr td {
|
|
white-space: nowrap;
|
text-align: center;
|
height: 20px;
|
line-height: 20px;
|
overflow: hidden;
|
} */
|
|
#container {
|
width: 50%;
|
position: absolute;
|
top: 17%;
|
}
|
|
|
|
#Histogram1 {
|
width: 50%;
|
height: 60%;
|
position: relative;
|
top: 39%;
|
left: 0%
|
}
|
|
#Histogram2 {
|
width: 50%;
|
height: 60%;
|
position: relative;
|
top: -60%;
|
left: 50%
|
}
|
|
#Histogram4{
|
width: 50%;
|
height: 60%;
|
position: relative;
|
top: -60%;
|
left: 0%
|
}
|
|
#Histogram3 {
|
width: 50%;
|
height: 60%;
|
position: relative;
|
top: 39%;
|
left: 50%
|
}
|
|
#Histogram6 {
|
|
width: 50%;
|
height: 58%;
|
position: relative;
|
top: 42%;
|
left: 50%;
|
top: -19%;
|
}
|
|
#Histogram5 {
|
width: 50%;
|
height: 60%;
|
position: relative;
|
left: 0%
|
}
|
|
|
#Histogram7 {
|
width: 50%;
|
height: 60%;
|
position: relative;
|
left: 50%
|
}
|
|
#Histogram8 {
|
width: 50%;
|
height: 58%;
|
position: relative;
|
top: -19%;
|
left: 0%;
|
}
|
|
.centdv_time {
|
color: white;
|
width: 50%;
|
height: 30%;
|
position: relative;
|
top: -71%;
|
left: 0%;
|
}
|
|
.centdv_time input {
|
height: 25px;
|
}
|
|
.btn {
|
text-align: center;
|
width: 100px;
|
height: 29px;
|
/* outline: none; */
|
border: none;
|
background-color: #5CADFE;
|
box-shadow: 15 8px 16px 15 rgba(0, 0, 0, 0), 15 6px 5px 15 rgba(0, 0, 0, 0.19);
|
}
|
</style>
|
|
<body>
|
<div id="app" @mousemove="onmouseMove" v-loading="loading" element-loading-background="white">
|
<div id="mains" v-show="this.global.pollingIndex==0">
|
<parts-change></parts-change>
|
<div id="wai">
|
<div class="wai_zs">
|
<div id="Histogram1"></div>
|
|
<div id="Histogram2"></div>
|
</div>
|
<div class="wai_ys">
|
<div id="Histogram3"></div>
|
|
<div id="Histogram4"></div>
|
</div>
|
<div class="wai_zx">
|
<div id="Histogram5"></div>
|
|
<div id="Histogram6"></div>
|
</div>
|
<div class="wai_yx">
|
<div id="Histogram7"></div>
|
|
<div id="Histogram8"></div>
|
</div>
|
|
<!-- <div class="centdv_time">
|
<el-date-picker style="float: center;margin-bottom: 0.3%;"
|
v-model="selectDate"
|
type="daterange"
|
range-separator="至"
|
start-placeholder="开始日期"
|
end-placeholder="结束日期">
|
</el-date-picker>
|
|
<el-button type="primary" icon="el-icon-search"
|
style="float: center;margin-left: 0.2%;margin-bottom: 0.3%;"
|
>搜索</el-button>
|
</div> -->
|
<div class="msgtab">
|
<show-table :tablehead="tableHead" :tabledata="tableData"></show-table>
|
</div>
|
</div>
|
</div>
|
|
<screen-photo :id="5" :intime="this.global.timer"
|
v-show="this.global.pollingIndex==1"
|
>
|
</screen-photo>
|
</div>
|
|
</body>
|
|
<script>
|
let app = new Vue({
|
el: '#app',
|
mixins: [mixin],
|
data: {
|
storage: null,
|
val: {
|
title:{
|
text:'',
|
left:'center'
|
},
|
tooltip: {
|
trigger: 'axis',
|
axisPointer: {
|
type: 'shadow'
|
}
|
},
|
grid: {
|
left: '3%',
|
right: '4%',
|
bottom: '3%',
|
containLabel: true
|
},
|
xAxis: [
|
{
|
type: 'category',
|
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
axisLine: { lineStyle: { color: '#5CADFE' } },
|
axisLabel: { color: '#5CADFE' },
|
splitLine: { lineStyle: { color: '#5CADFE', type: 'dashed' } }
|
}
|
],
|
yAxis: [
|
{
|
type: "value",
|
name: "水耗",
|
nameTextStyle: {
|
color: "#5CADFE",
|
fontSize: 12,
|
padding: [0, 0, 0, -30], //name文字位置 对应 上右下左
|
},
|
splitLine: {
|
// 网格线
|
show: true,
|
lineStyle: { //分割线
|
color: "#5CADFE",
|
width: 1,
|
type: "dashed" //dotted:虚线 solid:实线
|
}
|
},
|
axisLabel: {
|
// 轴文字
|
color: "#5CADFE",
|
fontSize: 12,
|
},
|
},
|
|
],
|
series: [
|
{
|
name: '水耗',
|
type: 'bar',
|
barWidth: '80%',
|
data: [10, 52, 200, 334, 390, 330, 220],
|
itemStyle: { color: '#5CADFE' }
|
},
|
|
]
|
},
|
|
|
|
tableHead: [{}],
|
selectDate: '',
|
tableData: [{}],
|
show: true,
|
showGlassType: '',
|
showGlassIndex: 0,
|
machineElectric:[{}],
|
machineWater:[{}],
|
loading:true
|
|
},
|
methods: {
|
echarsInit(type) {
|
let HisArr=[]
|
let datas=type==0?this.machineElectric:this.machineWater
|
for(let i=0;i<datas.length;i++){
|
if(type==0){
|
HisArr[i] = this.$echarts.init(document.getElementById('Histogram'+(i*2+2)));
|
}else{
|
HisArr[i] = this.$echarts.init(document.getElementById('Histogram'+(i*2+1)));
|
}
|
}
|
|
if(type==0){
|
this.val.yAxis[0].name="电耗";
|
this.val.series[0].name='电耗(kw·h)'
|
this.val.series[0].itemStyle.color='rgb(84,112,198)'
|
}else{
|
this.val.yAxis[0].name="水耗";
|
this.val.series[0].name='水耗(m³)'
|
this.val.series[0].itemStyle.color='#00ff00'
|
}
|
let danwei=type==0?"(kw·h)":'(m³)'
|
|
for(let i in datas){
|
this.val.title.text=datas[i]["0_machine_name"]+danwei
|
this.val.xAxis[0].data=datas[i]["6_shijian"].split(',');
|
this.val.series[0].data=datas[i]["5_jiqidianliang"].split(',');
|
HisArr[i].setOption(this.val);
|
}
|
},
|
},
|
computed: {
|
|
},
|
watch:{
|
machineElectric(){
|
if(Object.keys(this.machineElectric[0]).length==0){
|
return
|
}
|
this.echarsInit(0)
|
this.loading=false
|
},
|
machineWater(){
|
if(Object.keys(this.machineWater[0]).length==0){
|
return
|
}
|
this.echarsInit(1)
|
this.loading=false
|
}
|
},
|
async mounted() {
|
let sql=""
|
let flag=2
|
|
sql="{call AXJ_a_largeScreen_order_tableHead_select()}"
|
await this.loadAjxss('大屏显示水刀机器订单查询',sql,flag,"tableHead")
|
await this.getTableData('水刀') // 磨边倒角
|
await this.getMachineElectric('水刀','3')
|
await this.getMachineWater('水刀','1')
|
this.onmouseMove()
|
},
|
|
})
|
|
</script>
|
|
</html>
|