修改看板

master
夜笙歌 11 months ago
parent e60b379e97
commit 3281005500

@ -269,9 +269,11 @@
"value17": "100",
"value18": "100",
"value19": "100"
},
}
],
"table32": [
{
"value1": "7",
"value1": "1",
"value2": "A-07",
"value3": "生产中",
"value4": "1000",
@ -292,7 +294,7 @@
"value19": "100"
},
{
"value1": "8",
"value1": "2",
"value2": "A-08",
"value3": "生产中",
"value4": "1000",
@ -313,7 +315,7 @@
"value19": "100"
},
{
"value1": "9",
"value1": "3",
"value2": "A-09",
"value3": "生产中",
"value4": "1000",
@ -334,7 +336,7 @@
"value19": "100"
},
{
"value1": "10",
"value1": "4",
"value2": "A-010",
"value3": "生产中",
"value4": "1000",
@ -353,6 +355,48 @@
"value17": "100",
"value18": "100",
"value19": "100"
},
{
"value1": "5",
"value2": "A-11",
"value3": "生产中",
"value4": "1000",
"value5": "1000%",
"value6": "100%",
"value7": "100",
"value8": "100",
"value9": "100",
"value10": "100",
"value11": "100",
"value12": "100",
"value13": "100",
"value14": "100",
"value15": "100",
"value16": "100",
"value17": "100",
"value18": "100",
"value19": "100"
},
{
"value1": "6",
"value2": "A-12",
"value3": "生产中",
"value4": "1000",
"value5": "1000%",
"value6": "100%",
"value7": "100",
"value8": "100",
"value9": "100",
"value10": "100",
"value11": "100",
"value12": "100",
"value13": "100",
"value14": "100",
"value15": "100",
"value16": "100",
"value17": "100",
"value18": "100",
"value19": "100"
}
],
"table4": [
@ -769,12 +813,10 @@
},
"chart5": {
"x": [
"1",
"2",
"3",
"4",
"5",
"6"
"A1",
"A2",
"B1",
"B2"
],
"y": [
{
@ -783,8 +825,6 @@
10.5,
8,
11,
10.5,
11.6,
10.5
]
},
@ -794,9 +834,7 @@
9.8,
11,
9.5,
10,
10.3,
10.6
10
]
}
]
@ -1246,7 +1284,6 @@
681
]
}
},
"foamFixtureState": {
"x": [
@ -1254,14 +1291,40 @@
"停止",
"故障"
],
"y": {
"name": "数量",
"y": [
{
"name": "A",
"data": [
163,
12,
5,
1,
3
]
},
{
"name": "B",
"data": [
2,
5,
2
]
},
{
"name": "C",
"data": [
4,
3,
6
]
},
{
"name": "D",
"data": [
3,
8,
2
]
}
]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 782 KiB

@ -112,7 +112,7 @@ export default {
},
{
top: 70.5,
left: 53
left: 68.5
},
],
team: '白班',
@ -676,6 +676,7 @@ export default {
width: 98%;
height: 93%;
}
.headTitle {
position: absolute;
top: 5%;
@ -754,15 +755,15 @@ export default {
position: absolute;
top: 74%;
left: 3.6%;
width: 45.5%;
width: 29.5%;
height: 20.7%;
}
.chart3 {
position: absolute;
top: 74%;
left: 51%;
width: 45.5%;
left: 67%;
width: 29.5%;
height: 20.7%;
}
</style>

@ -12,6 +12,9 @@
<div class="scrollTable">
<div style="background-color: #094170">
<div class="scrollTableItem" style="font-weight: bold;">
计划工单
</div>
<div class="scrollTableItem" style="font-weight: bold;">
产品型号
</div>
@ -19,13 +22,16 @@
计划数量
</div>
<div class="scrollTableItem" style="font-weight: bold;">
实际数量
前板计划
</div>
<div class="scrollTableItem" style="font-weight: bold;">
后板计划
</div>
<div class="scrollTableItem" style="font-weight: bold;">
生产进度
</div>
<div class="scrollTableItem" style="font-weight: bold;">
开始时间
计划时间
</div>
</div>
<vue-seamless-scroll
@ -60,6 +66,14 @@
class="scrollTableItem">
{{ item.value5 }}
</div>
<div
class="scrollTableItem">
{{ item.value5 }}
</div>
<div
class="scrollTableItem">
{{ item.value5 }}
</div>
</div>
</div>
</vue-seamless-scroll>
@ -487,7 +501,7 @@ export default {
text-overflow: ellipsis;
text-align: center;
display: inline-block;
width: 20%;
width:calc(100% / 7);
}
.chart1 {

@ -9,7 +9,7 @@
<div class="scrollTable">
<div style="background-color: #094170">
<div class="scrollTableItem" style="font-weight: bold;">
订单
</div>
<div class="scrollTableItem" style="font-weight: bold;">
产品型号
@ -18,13 +18,13 @@
计划数量
</div>
<div class="scrollTableItem" style="font-weight: bold;">
完成数量
上线数量
</div>
<div class="scrollTableItem" style="font-weight: bold;">
生产进度
上线进度
</div>
<div class="scrollTableItem" style="font-weight: bold;">
开始时间
计划时间
</div>
</div>
<vue-seamless-scroll
@ -144,7 +144,7 @@ export default {
containLabel: true,
},
xAxis: {
data: e.chart4.x,
data: e.chart3.x,
axisLine: {
lineStyle: {
color: "#3d5269",
@ -212,7 +212,7 @@ export default {
position: "top",
},
},
data: e.chart4.y.data,
data: e.chart3.y.data,
},
],
})

@ -5,6 +5,9 @@
<div class="topNum practicalNum">{{ practicalNum }}</div>
<div class="topNum differenceValue">{{ differenceValue }}</div>
<div class="supplementInfo">注射压力标准范围10.0-12.0Mpa AB组份枪头压力差1Mpa</div>
<div class="supplementInfo1">发泡料温度标准范围:18.0-24.0</div>
<div class="scrollTable">
<div style="background-color: #094170">
<div class="scrollTableItem" style="font-weight: bold;width: 20%">
@ -71,8 +74,9 @@
<div class="chart4">
<Chart ref="chart4"></Chart>
</div>
<div class="scrollTable1">
<div style="background-color: #094170">
<transition name="table1">
<div class="scrollTable1" v-if="show">
<div style="background-color: #094170; height: calc(25vh/7)">
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
工位
</div>
@ -131,16 +135,16 @@
18:30
</div>
</div>
<vue-seamless-scroll
:class-option="scrollTableOption"
:data="scrollTableData1"
class="case-item"
style="height: 84%;overflow: hidden;"
>
<!-- <vue-seamless-scroll-->
<!-- :class-option="scrollTableOption"-->
<!-- :data="scrollTableData1"-->
<!-- class="case-item"-->
<!-- style="height: 84%;overflow: hidden;"-->
<!-- >-->
<div
v-for="(item, index) in scrollTableData1"
:key="index"
style="height: calc(25vh/7)"
>
<div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '>
<div
@ -221,8 +225,163 @@
</div>
</div>
</div>
</vue-seamless-scroll>
<!-- </vue-seamless-scroll>-->
</div>
</transition>
<transition name="table2">
<div class="scrollTable1" v-if="!show">
<div style="background-color: #094170;height: calc(25vh/7)">
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
工位
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 8%">
型号
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
状态
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
目标
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
计划
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
累计
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 7%">
达成率
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
7:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
8:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
9:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
10:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
11:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
12:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
13:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
14:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
15:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
16:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
17:30
</div>
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
18:30
</div>
</div>
<!-- <vue-seamless-scroll-->
<!-- :class-option="scrollTableOption"-->
<!-- :data="scrollTableData1"-->
<!-- class="case-item"-->
<!-- style="height: 84%;overflow: hidden;"-->
<!-- >-->
<div
v-for="(item, index) in scrollTableData2"
:key="index"
style="height: calc(25vh/7)"
>
<div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value1 }}
</div>
<div
class="scrollTableItem" style="width: 8%">
{{ item.value2 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value3 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value4 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value5 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value6 }}
</div>
<div
class="scrollTableItem" style="width: 7%">
{{ item.value7 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value8 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value9 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value10 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value11 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value12 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value13 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value14 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value15 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value16 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value17 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value18 }}
</div>
<div
class="scrollTableItem" style="width: 5%">
{{ item.value19 }}
</div>
</div>
</div>
<!-- </vue-seamless-scroll>-->
</div>
</transition>
<div class="total">
<div style="background-color: #094170">
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
@ -300,6 +459,7 @@ export default {
name: "Liner",
data() {
return {
show: true,
planNum: 1000,
practicalNum: 1000,
differenceValue: 1000,
@ -315,12 +475,17 @@ export default {
},
scrollTableData: [],
scrollTableData1: [],
scrollTableData2: [],
}
},
mounted() {
let timeInter = setInterval(() => {
this.show = !this.show
}, 30 * 1000)
getData().then(e => {
this.scrollTableData = e.table2
this.scrollTableData1 = e.table3
this.scrollTableData2 = e.table32
this.$refs.chart1.setData({
tooltip: {
trigger: "axis",
@ -563,6 +728,7 @@ export default {
},
xAxis: [
{
show: false,
type: "category",
axisLine: {
show: true,
@ -616,9 +782,7 @@ export default {
{
name: e.chart6.y[0].name,
type: "line",
// smooth: true, //
showAllSymbol: true,
// symbol: 'image://./static/images/guang-circle.png',
symbol: "circle",
symbolSize: 5,
lineStyle: {
@ -908,4 +1072,47 @@ export default {
width: 68%;
height: 3%;
}
.table1-enter-active {
animation: table-in .5s;
}
.table1-leave-active {
animation: table-in .5s reverse;
}
.table2-enter-active {
animation: table-in .5s;
}
.table2-leave-active {
animation: table-in .5s reverse;
}
@keyframes table-in {
0% {
opacity: 0;
transform: scale(0);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.supplementInfo {
position: absolute;
top: 35.5%;
left: 73.6%;
font-size: 0.7vw;
color: #fff;
}
.supplementInfo1 {
position: absolute;
top: 59%;
left: 73.6%;
font-size: 0.7vw;
color: #fff;
}
</style>

@ -425,6 +425,17 @@ export default {
],
})
this.$refs.chart4.setData({
legend: {
data: e.liner.foamFixtureState.y.map(val => val.name),
right: 'center',
top: 0,
textStyle: {
color: "#fff",
},
itemWidth: 12,
itemHeight: 10,
// itemGap: 35
},
tooltip: {
trigger: "axis",
axisPointer: {
@ -469,11 +480,11 @@ export default {
},
axisLabel: {},
},
series: [
{
name: e.liner.foamFixtureState.y.name,
series: e.liner.foamFixtureState.y.map(val => {
return {
name: val.name,
type: "bar",
barWidth: "30%",
barWidth: 100 / (e.liner.foamFixtureState.y.length + 2) + "%",
barMaxWidth: 50,
itemStyle: {
normal: {
@ -489,9 +500,9 @@ export default {
]),
},
},
data: e.liner.foamFixtureState.y.data,
},
],
data: val.data,
}
})
})
})
},
@ -535,8 +546,9 @@ export default {
.title {
position: absolute;
transform: translateY(-50%);
color: #5db9e8;
font-size: 0.9vw;
color: #dddddd;
font-size: 1vw;
letter-spacing: 2px;
}
.topNum {

@ -0,0 +1,209 @@
<template>
<div class="app-container">
<div class="headTitle">综合安全生产平台</div>
<div class="title" v-for="(i,k) in title"
:style="'top:'+(titlePosition[k]&&titlePosition[k].top||0)+'%;left:'+(titlePosition[k]&&titlePosition[k].left||0)+'%'">
{{ i }}
</div>
<!--每日人力出勤-->
<div class="manpowerAttendance" id="manpowerAttendance">
<Chart ref="manpowerAttendance"></Chart>
</div>
<!--IQC-->
<div class="IQC" id="IQC"><
<Chart ref="IQC"></Chart>
</div>
<!--生产效率-->
<div class="productionEfficiency" id="productionEfficiency">
<Chart ref="productionEfficiency"></Chart>
</div>
<!--周质量分析-->
<div class="equipmentPowerOne" id="equipmentPowerOne">
<Chart ref="equipmentPowerOne"></Chart>
</div>
<div class="equipmentPowerTwo" id="equipmentPowerTwo">
<Chart ref="equipmentPowerTwo"></Chart>
</div>
<div class="equipmentPowerThree" id="equipmentPowerThree">
<Chart ref="equipmentPowerThree"></Chart>
</div>
<div class="equipmentPowerFour" id="equipmentPowerFour">
<Chart ref="equipmentPowerFour"></Chart>
</div>
<div class="equipmentPowerFive" id="equipmentPowerFive">
<Chart ref="equipmentPowerFive"></Chart>
</div>
<!--设备功率-->
<div class="topLeft" id="topLeft">
<Chart ref="topLeft"></Chart>
</div>
</div>
</template>
<script>
import vueSeamlessScroll from "vue-seamless-scroll";
import Chart from "../../../components/board/Chart";
import * as echarts from 'echarts'
import {getData} from "@/api/board/getData";
export default {
components: {
vueSeamlessScroll,
Chart
},
name: "Liner",
data() {
return {
title: [
'产量统计',
'三日订单执行情况',
'班组 6s 排行榜',
'周生产型号统计',
'周质量分析',
'安全生产',
],
titlePosition: [
{
top: 11.5,
left: 5.5
},
{
top: 11.5,
left: 32
},
{
top: 11.5,
left: 73.5
},
{
top: 55.4,
left: 5.5
},
{
top: 55.4,
left: 32
},
{
top: 55.4,
left: 73.6
},
],
scrollTableOption: {
step: 0.5, //
limitMoveNum: 5, // this.dataList.length
hoverStop: true, // stop
direction: 1, // 0 1 2 3
openWatch: true, // dom
singleHeight: 0, // (0) direction => 0/1
singleWidth: 0, // (0) direction => 2/3
waitTime: 0,
},
scrollTableData: [],
}
},
mounted(){
},
methods: {}
};
</script>
<style scoped>
.app-container {
background-image: url("../../../assets/board/week.jpg");
background-repeat: no-repeat;
background-size: 100% 100%;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.headTitle {
position: absolute;
top: 5%;
left: 50%;
transform: translate(-50%, -100%);
font-size: 1.5vw;
color: #d6eaed;
letter-spacing: 10px;
}
.title {
position: absolute;
transform: translateY(-50%);
color: #dddddd;
font-size: 1vw;
letter-spacing: 2px;
}
.manpowerAttendance{
position: absolute;
width: 25%;
height: 35%;
top: 15%;
left: 71.5%;
}
.IQC{
position: absolute;
width: 40%;
height: 35%;
top: 15%;
left: 30%;
}
.productionEfficiency{
position: absolute;
width: 25%;
height: 35%;
top: 60%;
left: 3%;
}
.topLeft{
position: absolute;
width: 25%;
height: 34%;
top: 15.5%;
left: 3.5%;
}
.equipmentPowerOne{
position: absolute;
width: 13%;
height: 16%;
top: 60%;
left: 30.5%;
}
.equipmentPowerTwo{
position: absolute;
width: 13%;
height: 16%;
top: 60%;
left: 43.5%;
}
.equipmentPowerThree{
position: absolute;
width: 13%;
height: 16%;
top: 60%;
left: 56.5%;
}
.equipmentPowerFour{
position: absolute;
width: 19%;
height: 16%;
top: 76%;
left: 30.5%;
}
.equipmentPowerFive{
position: absolute;
width: 19%;
height: 16%;
top: 76%;
left: 49.5%;
}
</style>
Loading…
Cancel
Save