看板修改

master
suixy 5 days ago
parent 745f873c31
commit 1c17d2ec39

@ -365,7 +365,7 @@ export default {
}) })
timer = setInterval(() => { timer = setInterval(() => {
this.getData() this.getData()
}, 1000 * 60 * 10) }, 1000 * 60 * 3)
}, },
methods: { methods: {
async getData() { async getData() {

@ -2,17 +2,17 @@
<div class="app-container"> <div class="app-container">
<div class="headTitle">数字化注塑车间管控中心</div> <div class="headTitle">数字化注塑车间管控中心</div>
<div class="centerDevice"></div> <div class="centerDevice"></div>
<div class="text1" style="top: 14.7%;left: 5.5%;">今日计划数: <span <div class="text1" style="top: 14.7%;left: 5.5%;">计划数: <span
style="color: #6ACBFD">{{ form.isSimulate ? form.text1 : orderStatisticsData.planCount }}</span> style="color: #6ACBFD">{{ form.isSimulate ? form.text1 : orderStatisticsData.planCount }}</span>
</div> </div>
<div class="text1" style="top: 14.7%;left: 16.8%;">今日完成数: <span style="color: #68FD82">{{ <div class="text1" style="top: 14.7%;left: 16.8%;">今日完成数: <span style="color: #68FD82">{{
form.isSimulate ? form.text2 : productionTotalData.dayTotal form.isSimulate ? form.text2 : productionTotalData.dayTotal
}}</span> }}</span>
</div> </div>
<div class="text1" style="top: 24%;left: 5.5%;">今日差异数: <span <div class="text1" style="top: 24%;left: 5.5%;">差异数: <span
style="color: #FEF16A">{{ form.isSimulate ? form.text3 : orderStatisticsData.diffCount }}</span> style="color: #FEF16A">{{ form.isSimulate ? form.text3 : orderStatisticsData.diffCount }}</span>
</div> </div>
<div class="text1" style="top: 24%;left: 16.8%;">今日完成率: <span <div class="text1" style="top: 24%;left: 16.8%;">完成率: <span
style="color: #69CBFE">{{ form.isSimulate ? form.text4 : orderStatisticsData.completeRate }}%</span> style="color: #69CBFE">{{ form.isSimulate ? form.text4 : orderStatisticsData.completeRate }}%</span>
</div> </div>
<div class="text1" style="top: 12%;left: 29%;">日累计产量</div> <div class="text1" style="top: 12%;left: 29%;">日累计产量</div>
@ -108,10 +108,10 @@
}}</span> }}</span>
</div> </div>
<div class="text3" style="top: 35.15%;left: 5.5%;">工单进度</div> <div class="text3" style="top: 35.15%;left: 5.5%;">工单进度</div>
<div class="text3" style="top: 35.15%;left: 75%;">维修分析</div> <div class="text3" style="top: 35.15%;left: 75%;">累计维修分析</div>
<div class="text3" style="top: 63.05%;left: 5.5%;">质量追溯</div> <div class="text3" style="top: 63.05%;left: 5.5%;">质量追溯</div>
<div class="text3" style="top: 63.05%;left: 30.2%;">设备分析</div> <div class="text3" style="top: 63.05%;left: 30.2%;">设备分析</div>
<div class="text3" style="top: 63.05%;left: 75%;">告警趋势</div> <div class="text3" style="top: 63.05%;left: 75%;">当日维修趋势</div>
<div class="deviceError" v-if="form.isSimulate ? form.view1 : alarmInfoData.hasAlarm "> <div class="deviceError" v-if="form.isSimulate ? form.view1 : alarmInfoData.hasAlarm ">
<div class="icon"></div> <div class="icon"></div>
<div class="text" style="left: 18%">{{ form.isSimulate ? form.info1.text1 : alarmInfoData.deviceName }}</div> <div class="text" style="left: 18%">{{ form.isSimulate ? form.info1.text1 : alarmInfoData.deviceName }}</div>
@ -593,6 +593,7 @@ export default {
setInterval(async () => { setInterval(async () => {
await this.getData() await this.getData()
}, 1000 * 60 * 10) }, 1000 * 60 * 10)
}, },
methods: { methods: {
async getData() { async getData() {
@ -708,75 +709,6 @@ export default {
}, },
] ]
}) })
this.$refs.chart4.setData({
radar: {
center: ["30%", "50%"],
radius: '40%',
shape: 'circle',
splitNumber: 1,
splitLine: {
lineStyle: {
color: '#fff4',
width: 1
}
},
splitArea: {
show: false
},
axisLine: {
show: false
},
axisNameGap: 3,
axisName: {
rotation: 90,
rotate: 90,
fontSize: 8,
color: '#ddd',
},
indicator: this.form.isSimulate ? this.form.chart4.map(e => {
return {name: e.value1, max: e.value3}
}) : this.qualityTraceList.map(e => {
return {name: e.materialName, max: e.passLimit}
}),
},
series: [
{
name: ' ',
type: 'radar',
symbolSize: 3,
itemStyle: {
color: '#FBFCFC'
},
lineStyle: {
color: '#478EEE',
width: 1,
},
data: [
{
value: this.form.isSimulate ? this.form.chart4.map(e => {
return e.value2
}) : this.qualityTraceList.map(e => {
return e.passRate
}),
name: 'Allocated Budget',
areaStyle: {
color: {
type: 'radial',
x: 0.5,
y: 0.5,
r: 0.5,
colorStops: [
{offset: 0, color: '#fff0'},
{offset: 1, color: '#4C92F266'}
]
},
}
}
]
}
]
})
this.$refs.chart2.setData({ this.$refs.chart2.setData({
xAxis: { xAxis: {
data: this.form.isSimulate ? this.form.chart2.map(e => e.value1) : this.deviceProductionList.map(e => e.deviceName), data: this.form.isSimulate ? this.form.chart2.map(e => e.value1) : this.deviceProductionList.map(e => e.deviceName),
@ -813,6 +745,9 @@ export default {
axisLabel: { axisLabel: {
fontSize: 14, fontSize: 14,
color: '#4C95C1', color: '#4C95C1',
formatter: function (value) {
return value === 0 ? '' : value
}
}, },
axisTick: { axisTick: {
show: true, show: true,
@ -836,9 +771,18 @@ export default {
bottom: 40, bottom: 40,
left: 50 left: 50
}, },
tooltip: {
trigger: "item",
axisPointer: {
type: "shadow",
textStyle: {
color: "#fff",
},
},
},
series: [ series: [
{ {
name: " ", name: "数量",
type: "bar", type: "bar",
barWidth: '50%', barWidth: '50%',
barMaxWidth: '34', barMaxWidth: '34',
@ -855,11 +799,10 @@ export default {
borderWidth: 1 borderWidth: 1
}, },
tooltip: { tooltip: {
show: false, // show: false,
}, },
label: { label: {
show: true, show: false,
distance: 10, distance: 10,
fontSize: 16, fontSize: 16,
color: '#66C7FA', color: '#66C7FA',
@ -877,6 +820,17 @@ export default {
symbolPosition: 'end', // symbolPosition: 'end', //
symbolOffset: [0, -2], // symbolOffset: [0, -2], //
z: 10, z: 10,
tooltip: {
show: false,
},
label: {
show: false,
distance: 10,
fontSize: 16,
color: '#66C7FA',
position: 'top',
},
itemStyle: { itemStyle: {
color: '#0D2DD7' color: '#0D2DD7'
}, },
@ -961,12 +915,81 @@ export default {
width: 2 width: 2
}, },
label: { label: {
show: false, // show: false,
}, },
data: this.form.isSimulate ? this.form.chart3.map(e => e.value2) : this.repairTrendList.map(e => e.repairCount), data: this.form.isSimulate ? this.form.chart3.map(e => e.value2) : this.repairTrendList.map(e => e.repairCount),
}, },
], ],
}) })
this.$refs.chart4.setData({
radar: {
center: ["30%", "50%"],
radius: '40%',
shape: 'circle',
splitNumber: 1,
splitLine: {
lineStyle: {
color: '#fff4',
width: 1
}
},
splitArea: {
show: false
},
axisLine: {
show: false
},
axisNameGap: 3,
axisName: {
rotation: 90,
rotate: 90,
fontSize: 8,
color: '#ddd',
},
indicator: this.form.isSimulate ? this.form.chart4.map(e => {
return {name: e.value1, max: e.value3}
}) : this.qualityTraceList.map(e => {
return {name: e.materialName, max: e.passLimit}
}),
},
series: [
{
name: ' ',
type: 'radar',
symbolSize: 3,
itemStyle: {
color: '#FBFCFC'
},
lineStyle: {
color: '#478EEE',
width: 1,
},
data: [
{
value: this.form.isSimulate ? this.form.chart4.map(e => {
return e.value2
}) : this.qualityTraceList.map(e => {
return e.passRate
}),
name: 'Allocated Budget',
areaStyle: {
color: {
type: 'radial',
x: 0.5,
y: 0.5,
r: 0.5,
colorStops: [
{offset: 0, color: '#fff0'},
{offset: 1, color: '#4C92F266'}
]
},
}
}
]
}
]
})
}, },
save() { save() {
updateCustomData({ updateCustomData({

@ -484,14 +484,14 @@ export default {
}, },
data: [ data: [
{ {
value: Math.min(parseFloat(this.form.isSimulate ? this.form.text15 : (this.maintStatisticsData.completeCount)), 100), value: Math.min(parseFloat(this.form.isSimulate ? this.form.text15 : (this.maintStatisticsData.completeRate)), 100),
name: '合格数', name: '合格数',
itemStyle: { itemStyle: {
color: '#00AFFF' color: '#00AFFF'
}, },
}, },
{ {
value: Math.max((100 - parseFloat((this.form.isSimulate ? this.form.text15 : this.maintStatisticsData.completeCount))), 0), value: Math.max((100 - parseFloat((this.form.isSimulate ? this.form.text15 : this.maintStatisticsData.completeRate))), 0),
name: '不合格数', name: '不合格数',
itemStyle: { itemStyle: {
color: '#0000' color: '#0000'

Loading…
Cancel
Save