修改界面显示

master
夜笙歌 12 months ago
parent fae47815c7
commit 745818a7f0

@ -8,3 +8,11 @@ export function getData(query) {
params: query params: query
}) })
} }
export function generalInterfaceList(query) {
return request({
url: '/boardReport/generalInterfaceList',
method: 'post',
data: query
})
}

@ -1,10 +1,7 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询工单计划
export function getPlan(query) {
return request({
url: '../data.json',
method: 'get',
params: query
})
}

@ -72,7 +72,7 @@
</div> </div>
</vue-seamless-scroll> </vue-seamless-scroll>
</div> </div>
<div class="meter">平均节拍{{meter}} /</div> <div class="meter">平均节拍{{ meter }} /</div>
<div class="chart1"> <div class="chart1">
<Chart ref="chart1"></Chart> <Chart ref="chart1"></Chart>
</div> </div>
@ -92,7 +92,7 @@
import vueSeamlessScroll from "vue-seamless-scroll"; import vueSeamlessScroll from "vue-seamless-scroll";
import Chart from "../../../components/board/Chart"; import Chart from "../../../components/board/Chart";
import * as echarts from 'echarts' import * as echarts from 'echarts'
import {getData} from '@/api/board/getData' import {getData, generalInterfaceList} from '@/api/board/getData'
export default { export default {
components: { components: {
@ -109,7 +109,7 @@ export default {
'泡前库存统计', '泡前库存统计',
'箱体发泡实时状态', '箱体发泡实时状态',
], ],
meter:30, meter: 30,
linerNum: 50, linerNum: 50,
caseNum: 44, caseNum: 44,
titlePosition: [ titlePosition: [
@ -154,6 +154,31 @@ export default {
}, },
mounted() { mounted() {
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100 const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
generalInterfaceList({
"method": "SCADA_INV_STATS_01('')"
}).then(e => {
console.log(e)
})
generalInterfaceList({
"method": "SCADA_INV_STATS_SUM('')"
}).then(e => {
console.log(e)
})
generalInterfaceList({
"method": "scada_inv_stats_02('')"
}).then(e => {
console.log(e)
})
generalInterfaceList({
"method": "scada_in_store_01('')"
}).then(e => {
console.log(e)
})
generalInterfaceList({
"method": "scada_xk_pro_01('')"
}).then(e => {
console.log(e)
})
getData().then(e => { getData().then(e => {
this.scrollTableData = e.table1 this.scrollTableData = e.table1
this.$refs.chart1.setData({ this.$refs.chart1.setData({
@ -672,7 +697,8 @@ export default {
color: #fff; color: #fff;
letter-spacing: 1px; letter-spacing: 1px;
} }
.meter{
.meter {
position: absolute; position: absolute;
top: 19.7%; top: 19.7%;
left: 62.5%; left: 62.5%;

@ -116,6 +116,9 @@ export default {
{ {
axisTick: { axisTick: {
show: false show: false
},
axisLabel:{
formatter:'{value}%'
} }
} }
], ],
@ -125,7 +128,7 @@ export default {
series: [ series: [
{ {
name: '订单违约率', name: '订单违约率',
type: 'bar', type: 'line',
yAxisIndex:1, yAxisIndex:1,
itemStyle: { itemStyle: {
normal: { normal: {
@ -146,7 +149,7 @@ export default {
{ {
name: '产量', name: '产量',
smooth: false, smooth: false,
type: 'line', type: 'bar',
itemStyle: { itemStyle: {
normal: { normal: {
color: '#3888fa', color: '#3888fa',

@ -40,15 +40,18 @@ const lineChartData = {
}, },
messages: { messages: {
expectedData: [200, 192, 120, 144, 160, 130, 140], expectedData: [200, 192, 120, 144, 160, 130, 140],
actualData: [180, 160, 151, 106, 145, 150, 130] actualData: [180, 160, 151, 106, 145, 150, 130],
expedData: [200, 192, 120, 144, 160, 130, 140]
}, },
purchases: { purchases: {
expectedData: [80, 100, 121, 104, 105, 90, 100], expectedData: [80, 100, 121, 104, 105, 90, 100],
actualData: [120, 90, 100, 138, 142, 130, 130] actualData: [120, 90, 100, 138, 142, 130, 130],
expedData: [200, 192, 120, 144, 160, 130, 140]
}, },
shoppings: { shoppings: {
expectedData: [130, 140, 141, 142, 145, 150, 160], expectedData: [130, 140, 141, 142, 145, 150, 160],
actualData: [120, 82, 91, 154, 162, 140, 130] actualData: [120, 82, 91, 154, 162, 140, 130],
expedData: [200, 192, 120, 144, 160, 130, 140]
} }
} }

Loading…
Cancel
Save