|
|
@ -1,6 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="headTitle">一线成品入库数据监控平台</div>
|
|
|
|
<div class="headTitle">{{line}}线成品入库数据监控平台</div>
|
|
|
|
<div class="title" v-for="(i,k) in title"
|
|
|
|
<div class="title" v-for="(i,k) in title"
|
|
|
|
:style="'top:'+(titlePosition[k]&&titlePosition[k].top||0)+'%;left:'+(titlePosition[k]&&titlePosition[k].left||0)+'%'">
|
|
|
|
:style="'top:'+(titlePosition[k]&&titlePosition[k].top||0)+'%;left:'+(titlePosition[k]&&titlePosition[k].left||0)+'%'">
|
|
|
|
{{ i }}
|
|
|
|
{{ i }}
|
|
|
@ -99,6 +99,7 @@ export default {
|
|
|
|
name: "Liner",
|
|
|
|
name: "Liner",
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
line:'一',
|
|
|
|
loss:100,
|
|
|
|
loss:100,
|
|
|
|
meter:30,
|
|
|
|
meter:30,
|
|
|
|
title: [
|
|
|
|
title: [
|
|
|
@ -150,6 +151,13 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
console.log(this.$route.query.id)
|
|
|
|
|
|
|
|
if(this.$route.query.id === '1'){
|
|
|
|
|
|
|
|
this.line = '一'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(this.$route.query.id === '2'){
|
|
|
|
|
|
|
|
this.line = '二'
|
|
|
|
|
|
|
|
}
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
getData().then(e => {
|
|
|
|
getData().then(e => {
|
|
|
|
this.scrollTableData = e.table8
|
|
|
|
this.scrollTableData = e.table8
|
|
|
|