Compare commits
No commits in common. "f84d66dd7f4beb2d6e3f2e8ac859fa71a7115150" and "c1ca2db161c5427e04e38a4184275fe8ef01545f" have entirely different histories.
f84d66dd7f
...
c1ca2db161
@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
||||||
<title>编组 13</title>
|
|
||||||
<g id="·窑炉总览" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
||||||
<g id="总览" transform="translate(-1823.000000, -772.000000)">
|
|
||||||
<g id="编组-20备份-5" transform="translate(1786.000000, 764.000000)">
|
|
||||||
<g id="编组-13" transform="translate(37.000000, 8.000000)">
|
|
||||||
<rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="15" height="15"></rect>
|
|
||||||
<path d="M3.67840479,4.47768215 L12.3215952,4.47768215 C12.87388,4.47768215 13.3215952,4.9253974 13.3215952,5.47768215 C13.3215952,5.70423387 13.2446673,5.92407165 13.1034098,6.1011931 L8.78181462,11.5200015 C8.43745903,11.9517857 7.80827335,12.0226607 7.37648905,11.6783051 C7.31796217,11.6316289 7.2648616,11.5785283 7.21818538,11.5200015 L2.89659016,6.1011931 C2.55223458,5.6694088 2.62310955,5.04022312 3.05489384,4.69586753 C3.23201529,4.55461005 3.45185307,4.47768215 3.67840479,4.47768215 Z" id="路径-2" fill="#03233C"></path>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.3 KiB |
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-07-19 15:18:30
|
* @Date: 2021-07-19 15:18:30
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2024-01-25 14:18:42
|
* @LastEditTime: 2024-01-24 17:07:01
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
</base-container>
|
</base-container>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :style="{ margin: 8 + 'px' + ' 0' }" :span="14">
|
<el-col :style="{ margin: 8 + 'px' + ' 0' }" :span="14">
|
||||||
<base-container :height="318 + 338 + 16" :size="'eqStatus'"
|
<base-container :no-content-padding="true" :no-padding="true" :height="318 + 338 + 16" :size="'eqStatus'"
|
||||||
:title="'设备状态监控'" :title-icon="'eqMonitoring'">
|
:title="'设备状态监控'" :title-icon="'eqMonitoring'">
|
||||||
<!-- <div style="width: 45%;position: absolute; top: 3em; right: 3em;">
|
<!-- <div style="width: 45%;position: absolute; top: 3em; right: 3em;">
|
||||||
<top-radio-group />
|
<top-radio-group />
|
||||||
@ -92,21 +92,21 @@
|
|||||||
<div style="font-size:20px;margin: 5px 0 10px 0">融化风机</div>
|
<div style="font-size:20px;margin: 5px 0 10px 0">融化风机</div>
|
||||||
<!-- <base-table1 :page="1" :limit="999" :show-index="false" :table-config="EqMonitoringPropsFun"
|
<!-- <base-table1 :page="1" :limit="999" :show-index="false" :table-config="EqMonitoringPropsFun"
|
||||||
:table-data="funList" /> -->
|
:table-data="funList" /> -->
|
||||||
<dv-scroll-board :config="funConfig" style="width:100%;height:310px" ref='funScrollBoard' />
|
<dv-scroll-board :config="funConfig" style="width:100%;height:350px" ref='funScrollBoard' />
|
||||||
</el-col>
|
</el-col>
|
||||||
<span class="eqLine"></span>
|
<span class="eqLine"></span>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<div style="font-size:20px;margin: 5px 0 10px 0;">退火风机</div>
|
<div style="font-size:20px;margin: 5px 0 10px 0;">退火风机</div>
|
||||||
<!-- <base-table1 :page="1" :limit="999" :show-index="false" :table-config="EqMonitoringPropsFun"
|
<!-- <base-table1 :page="1" :limit="999" :show-index="false" :table-config="EqMonitoringPropsFun"
|
||||||
:table-data="annealFunList" /> -->
|
:table-data="annealFunList" /> -->
|
||||||
<dv-scroll-board :config="annealFunConfig" style="width:100%;height:310px" ref='annealFunScrollBoard' />
|
<dv-scroll-board :config="annealFunConfig" style="width:100%;height:350px" ref='annealFunScrollBoard' />
|
||||||
</el-col>
|
</el-col>
|
||||||
<span class="eqLineTwo"></span>
|
<span class="eqLineTwo"></span>
|
||||||
<el-col :span="12" style="float: right;">
|
<el-col :span="12" style="float: right;">
|
||||||
<div style="font-size:20px;margin: 5px 0 10px 0;">产线设备</div>
|
<div style="font-size:20px;margin: 5px 0 10px 0;">产线设备</div>
|
||||||
<!-- <base-table1 :page="1" :limit="999" :show-index="false" :table-config="EqMonitoringProps"
|
<!-- <base-table1 :page="1" :limit="999" :show-index="false" :table-config="EqMonitoringProps"
|
||||||
:table-data="realEqList" /> -->
|
:table-data="realEqList" /> -->
|
||||||
<dv-scroll-board :config="realEqConfig" style="width:100%;height:310px" ref='realEqScrollBoard' />
|
<dv-scroll-board :config="realEqConfig" style="width:100%;height:350px" ref='realEqScrollBoard' />
|
||||||
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <double-y-chart :id="'doubleYChart'" :name-list="cxNameList" :data-list="cxDataList" :height="359"
|
<!-- <double-y-chart :id="'doubleYChart'" :name-list="cxNameList" :data-list="cxDataList" :height="359"
|
||||||
@ -133,7 +133,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import baseContainer from './components/baseContainer'
|
import baseContainer from './components/baseContainer'
|
||||||
import baseTable1 from './components/baseTable'
|
import baseTable1 from './components/baseTable'
|
||||||
// import baseContainer1 from './components/baseContainer/indexcopy'
|
|
||||||
// import baseTable2 from './components/baseTable'
|
// import baseTable2 from './components/baseTable'
|
||||||
// import baseTable3 from './components/baseTable'
|
// import baseTable3 from './components/baseTable'
|
||||||
import TopRadioGroup from './components/topRadioGroup'
|
import TopRadioGroup from './components/topRadioGroup'
|
||||||
@ -259,8 +258,7 @@ export default {
|
|||||||
pileBarChart,
|
pileBarChart,
|
||||||
TopRadioGroup,
|
TopRadioGroup,
|
||||||
doubleYChart,
|
doubleYChart,
|
||||||
LinearBarChart,
|
LinearBarChart
|
||||||
// baseContainer1
|
|
||||||
// pieChart1,
|
// pieChart1,
|
||||||
// pieChart2
|
// pieChart2
|
||||||
// pieChart3
|
// pieChart3
|
||||||
@ -283,7 +281,7 @@ export default {
|
|||||||
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
||||||
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
|
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
|
||||||
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
|
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
|
||||||
columnWidth: [60,60, 132, 142, 105,105,90],
|
columnWidth: [70,70, 130, 150, 110,110,90],
|
||||||
align: ['center'],
|
align: ['center'],
|
||||||
data: [],
|
data: [],
|
||||||
// index:true,
|
// index:true,
|
||||||
@ -444,45 +442,6 @@ export default {
|
|||||||
// removeEventListener('resize', resizeFun)
|
// removeEventListener('resize', resizeFun)
|
||||||
// },
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
formatTime(time, option) {
|
|
||||||
// if (('' + time).length === 10) {
|
|
||||||
// time = parseInt(time) * 1000
|
|
||||||
// } else {
|
|
||||||
// time = +time
|
|
||||||
// }
|
|
||||||
console.log(time);
|
|
||||||
const d = new Date(time)
|
|
||||||
// const now = Date.now()
|
|
||||||
// console.log(time);
|
|
||||||
// const diff = (now - d) / 1000
|
|
||||||
|
|
||||||
// if (diff < 30) {
|
|
||||||
// return '刚刚'
|
|
||||||
// } else if (diff < 3600) {
|
|
||||||
// // less 1 hour
|
|
||||||
// return Math.ceil(diff / 60) + '分钟前'
|
|
||||||
// } else if (diff < 3600 * 24) {
|
|
||||||
// return Math.ceil(diff / 3600) + '小时前'
|
|
||||||
// } else if (diff < 3600 * 24 * 2) {
|
|
||||||
// return '1天前'
|
|
||||||
// }
|
|
||||||
// if (option) {
|
|
||||||
// return parseTime(time, option)
|
|
||||||
// } else {
|
|
||||||
return (
|
|
||||||
d.getMonth() +
|
|
||||||
1 +
|
|
||||||
'月' +
|
|
||||||
d.getDate() +
|
|
||||||
'日' +
|
|
||||||
d.getHours() +
|
|
||||||
'时'
|
|
||||||
// +
|
|
||||||
// d.getMinutes() +
|
|
||||||
// '分'
|
|
||||||
)
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
// getList() {
|
// getList() {
|
||||||
// // this.loading = true;
|
// // this.loading = true;
|
||||||
// // 执行查询
|
// // 执行查询
|
||||||
@ -625,7 +584,7 @@ export default {
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
this.annealFunConfig.data = arr
|
this.annealFunConfig.data = arr
|
||||||
this.$refs['annealFunScrollBoard'].updateRows(arr)
|
this.$refs['annealFanScrollBoard'].updateRows(arr)
|
||||||
}
|
}
|
||||||
if (this.funWsData.type === 'FanInfo') {
|
if (this.funWsData.type === 'FanInfo') {
|
||||||
let arr = []
|
let arr = []
|
||||||
@ -693,7 +652,7 @@ export default {
|
|||||||
`
|
`
|
||||||
<span style="color:rgba(255,255,255,0.5)" >${item.lineName || ''}
|
<span style="color:rgba(255,255,255,0.5)" >${item.lineName || ''}
|
||||||
</span>`,
|
</span>`,
|
||||||
`<span style="color:rgba(255,255,255,0.5)">${this.formatTime(item.time) || ''}</span>`,
|
`<span style="color:rgba(255,255,255,0.5)">${formatDate(item.time) || ''}</span>`,
|
||||||
`<span style="color:rgba(255,255,255,0.5)">${this.getSize(item.size) || ''}</span>`,
|
`<span style="color:rgba(255,255,255,0.5)">${this.getSize(item.size) || ''}</span>`,
|
||||||
`<span style="color:rgba(255,255,255,0.5)">${item.productArea + '㎡' || ''}</span>`,
|
`<span style="color:rgba(255,255,255,0.5)">${item.productArea + '㎡' || ''}</span>`,
|
||||||
`<span style="color:rgba(255,255,255,0.5)">${item.wasteArea + '㎡' || ''}</span>`,
|
`<span style="color:rgba(255,255,255,0.5)">${item.wasteArea + '㎡' || ''}</span>`,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-12-27 13:54:52
|
* @Date: 2023-12-27 13:54:52
|
||||||
* @LastEditTime: 2024-01-25 14:08:27
|
* @LastEditTime: 2024-01-22 16:04:18
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -103,7 +103,6 @@ export default {
|
|||||||
// itemStyle: {
|
// itemStyle: {
|
||||||
color: '#0fdedb',
|
color: '#0fdedb',
|
||||||
// },
|
// },
|
||||||
// barCategoryGap: '10%',
|
|
||||||
barWidth: 10,
|
barWidth: 10,
|
||||||
data: passRateList
|
data: passRateList
|
||||||
},
|
},
|
||||||
@ -111,9 +110,8 @@ export default {
|
|||||||
type: 'bar',
|
type: 'bar',
|
||||||
stack: 'total',
|
stack: 'total',
|
||||||
name: '废品',
|
name: '废品',
|
||||||
// barCategoryGap: '10%',
|
|
||||||
data: wasteList,
|
data: wasteList,
|
||||||
// barWidth: 10,
|
barWidth: 10,
|
||||||
// barWidth: 15,
|
// barWidth: 15,
|
||||||
// label: {
|
// label: {
|
||||||
// position: [10, 10],
|
// position: [10, 10],
|
||||||
@ -147,7 +145,7 @@ export default {
|
|||||||
right: '4%',
|
right: '4%',
|
||||||
// bottom: '3%',
|
// bottom: '3%',
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
height: '300',
|
height: 'auto',
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-07-19 15:18:30
|
* @Date: 2021-07-19 15:18:30
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2024-01-25 10:13:51
|
* @LastEditTime: 2024-01-24 17:10:28
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -131,7 +131,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import baseContainer from './components/baseContainer'
|
import baseContainer from './components/baseContainer'
|
||||||
|
|
||||||
import baseTable1 from './components/baseTable'
|
import baseTable1 from './components/baseTable'
|
||||||
// import baseTable2 from './components/baseTable'
|
// import baseTable2 from './components/baseTable'
|
||||||
// import baseTable3 from './components/baseTable'
|
// import baseTable3 from './components/baseTable'
|
||||||
@ -829,18 +828,21 @@ export default {
|
|||||||
if (item.id == ele.productionLineId) {
|
if (item.id == ele.productionLineId) {
|
||||||
if (item.name.substr(0, 1) == "D") {
|
if (item.name.substr(0, 1) == "D") {
|
||||||
nameList.push(item.name)
|
nameList.push(item.name)
|
||||||
outputNumList.push(ele.outputNum)
|
|
||||||
passRateList.push(ele.passRate * 100)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// progressRateList = EnergyNameList
|
// progressRateList = EnergyNameList
|
||||||
// let EnergyDataList = []
|
// let EnergyDataList = []
|
||||||
// this.SJGWsData.detData.forEach((ele) => {
|
this.SJGWsData.detData.forEach((ele) => {
|
||||||
// })
|
passRateList.push(ele.passRate *100
|
||||||
// this.SJGWsData.detData.forEach((ele) => {
|
)
|
||||||
// })
|
})
|
||||||
|
this.SJGWsData.detData.forEach((ele) => {
|
||||||
|
outputNumList.push(ele.outputNum
|
||||||
|
)
|
||||||
|
})
|
||||||
// console.log(this.EnergyMonitoringNameList)
|
// console.log(this.EnergyMonitoringNameList)
|
||||||
// console.log(this.EnergyMonitoringList)
|
// console.log(this.EnergyMonitoringList)
|
||||||
// this.$nextTick(() => {
|
// this.$nextTick(() => {
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 20 KiB |
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<NotMsg v-show="notMsg"/>
|
<NotMsg v-show="notMsg"/>
|
||||||
<div id="defectChart" style="width:580px;height:238px;" v-show="!notMsg"></div>
|
<div id="defectChart" style="width:600px;height:238px;" v-show="!notMsg"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -45,7 +45,6 @@ export default {
|
|||||||
if (this.chartTime === '日') {
|
if (this.chartTime === '日') {
|
||||||
this.tempData = this.israDayStatistic
|
this.tempData = this.israDayStatistic
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -54,7 +53,6 @@ export default {
|
|||||||
if (this.chartTime === '周') {
|
if (this.chartTime === '周') {
|
||||||
this.tempData = this.israWeekStatistic
|
this.tempData = this.israWeekStatistic
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -63,7 +61,6 @@ export default {
|
|||||||
if (this.chartTime === '月') {
|
if (this.chartTime === '月') {
|
||||||
this.tempData = this.israMonthStatistic
|
this.tempData = this.israMonthStatistic
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -72,7 +69,6 @@ export default {
|
|||||||
if (this.chartTime === '年') {
|
if (this.chartTime === '年') {
|
||||||
this.tempData = this.israYearStatistic
|
this.tempData = this.israYearStatistic
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -33,7 +33,6 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chartType: {// 监听类型变化,更新图
|
chartType: {// 监听类型变化,更新图
|
||||||
|
@ -1,86 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="drop-down-btn">
|
|
||||||
<button class="top-btn" @click='toggleExpand'><span style="margin-right: 3px;">{{active}}</span><svg-icon class-name="arrow" icon-class="arrow" :style="{transform:isExpand?'rotate(180deg)':'rotate(0deg)'}"/></button>
|
|
||||||
<div v-show="isExpand" class="btn-box">
|
|
||||||
<button
|
|
||||||
class="btn"
|
|
||||||
v-for="opt in options"
|
|
||||||
:key="opt"
|
|
||||||
@click="clickBtn(opt)"
|
|
||||||
v-show="active !== opt">
|
|
||||||
<span class="btn-text">
|
|
||||||
{{ opt }}
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'DropDownBtn',
|
|
||||||
components: {},
|
|
||||||
props: ['options', 'active'],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
isExpand: false
|
|
||||||
};
|
|
||||||
},
|
|
||||||
computed: {},
|
|
||||||
methods: {
|
|
||||||
clickBtn(opt) {
|
|
||||||
this.$emit('emitFun', opt)
|
|
||||||
this.isExpand = !this.isExpand
|
|
||||||
},
|
|
||||||
toggleExpand() {
|
|
||||||
this.isExpand = !this.isExpand
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
.drop-down-btn {
|
|
||||||
z-index: 1000;
|
|
||||||
button {
|
|
||||||
border: none;
|
|
||||||
appearance: none;
|
|
||||||
outline: none;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 14px;
|
|
||||||
padding: 8px 5px 8px 8px;
|
|
||||||
height: 32px;
|
|
||||||
}
|
|
||||||
.top-btn {
|
|
||||||
background: #02457E;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
.arrow {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.btn-box {
|
|
||||||
.btn {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
background: #03233C;
|
|
||||||
&:hover {
|
|
||||||
background: #02457E;
|
|
||||||
transition: all 0.5s ease-out;
|
|
||||||
}
|
|
||||||
.btn-text{
|
|
||||||
padding: 0px 5px 6px;
|
|
||||||
border-bottom: 1px solid #010D18;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.btn:last-child{
|
|
||||||
border-bottom-right-radius: 5px;
|
|
||||||
border-bottom-left-radius: 5px;
|
|
||||||
.btn-text{
|
|
||||||
height: 16px;
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -30,7 +30,6 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -53,7 +53,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '日') {
|
if (this.chartTime === '日') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -61,7 +60,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '周') {
|
if (this.chartTime === '周') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -69,7 +67,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '月') {
|
if (this.chartTime === '月') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -77,7 +74,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '年') {
|
if (this.chartTime === '年') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -53,7 +53,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '周' && this.chartType === '电耗能') {
|
if (this.chartTime === '周' && this.chartType === '电耗能') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -61,7 +60,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '月' && this.chartType === '电耗能') {
|
if (this.chartTime === '月' && this.chartType === '电耗能') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -69,7 +67,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '年' && this.chartType === '电耗能') {
|
if (this.chartTime === '年' && this.chartType === '电耗能') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -77,7 +74,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartType === '天然气I' || this.chartType === '天然气II') {
|
if (this.chartType === '天然气I' || this.chartType === '天然气II') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -246,7 +242,7 @@ export default {
|
|||||||
.map((_, index) => {
|
.map((_, index) => {
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const dtimestamp = today - (index+1) * 24 * 60 * 60 * 1000;
|
const dtimestamp = today - (index+1) * 24 * 60 * 60 * 1000;
|
||||||
return `${currentMonth < 10?'0'+currentMonth:currentMonth }.${new Date(
|
return `${new Date(dtimestamp).getMonth() + 1}.${new Date(
|
||||||
dtimestamp
|
dtimestamp
|
||||||
).getDate()}`;}).reverse()
|
).getDate()}`;}).reverse()
|
||||||
}else if (this.chartTime == "月") {
|
}else if (this.chartTime == "月") {
|
||||||
@ -263,7 +259,7 @@ export default {
|
|||||||
return Array(12)
|
return Array(12)
|
||||||
.fill(1)
|
.fill(1)
|
||||||
.map((_, index) => {
|
.map((_, index) => {
|
||||||
return `${12 - index}`;}).reverse()
|
return `${currentYear}.${12 - index}`;}).reverse()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isLeapYear(year) {
|
isLeapYear(year) {
|
||||||
|
@ -80,7 +80,7 @@ export default {
|
|||||||
.datetime {
|
.datetime {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 45px;
|
top: 45px;
|
||||||
right: 425px;
|
right: 240px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
|
@ -35,7 +35,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
this.chartData = newVal || []
|
this.chartData = newVal || []
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="height: 370px;">
|
<div>
|
||||||
<NotMsg v-show="notMsg"/>
|
<NotMsg v-show="notMsg"/>
|
||||||
<div id="numRateChart" class="num-rate-chart" style="width:900px;height:420px;" v-show='!notMsg'></div>
|
<div id="numRateChart" class="num-rate-chart" style="width:900px;height:420px;" v-show='!notMsg'></div>
|
||||||
</div>
|
</div>
|
||||||
@ -30,7 +30,6 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -52,11 +51,9 @@ export default {
|
|||||||
let outputNum = []
|
let outputNum = []
|
||||||
let passRate = []
|
let passRate = []
|
||||||
this.productline && this.productline.length > 0 && this.productline.map(item => {
|
this.productline && this.productline.length > 0 && this.productline.map(item => {
|
||||||
if ((item.lineName).includes('D')) {
|
xData.push(item.lineName)
|
||||||
xData.push(item.lineName)
|
outputNum.push(item.outputNum)
|
||||||
outputNum.push(item.outputNum)
|
passRate.push(item.passRate?item.passRate*100:null)
|
||||||
passRate.push(item.passRate?item.passRate*100:null)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
if (
|
if (
|
||||||
this.chart !== null &&
|
this.chart !== null &&
|
||||||
@ -67,7 +64,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.chart = echarts.init(document.getElementById('numRateChart'));
|
this.chart = echarts.init(document.getElementById('numRateChart'));
|
||||||
var option = {
|
var option = {
|
||||||
grid: { top: 82, right: 60, bottom: 20, left: 90 },
|
grid: { top: 82, right: 60, bottom: 20, left: 60 },
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
@ -148,6 +145,7 @@ export default {
|
|||||||
color: "#fff",
|
color: "#fff",
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
formatter: () =>{
|
formatter: () =>{
|
||||||
|
console.log(value)
|
||||||
return value ? '{value} %': '-'
|
return value ? '{value} %': '-'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,75 +0,0 @@
|
|||||||
<template>
|
|
||||||
<span
|
|
||||||
style="
|
|
||||||
font-size: 20px;
|
|
||||||
color:#52FFF8;
|
|
||||||
">
|
|
||||||
{{timestr}}
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'TimePrompt',
|
|
||||||
components: {},
|
|
||||||
props: ['timestr'],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
|
|
||||||
};
|
|
||||||
},
|
|
||||||
// watch: {
|
|
||||||
// timestr:{
|
|
||||||
// handler(){
|
|
||||||
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
.drop-down-btn {
|
|
||||||
z-index: 1000;
|
|
||||||
button {
|
|
||||||
border: none;
|
|
||||||
appearance: none;
|
|
||||||
outline: none;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 14px;
|
|
||||||
padding: 8px 5px 7px 8px;
|
|
||||||
height: 32px;
|
|
||||||
}
|
|
||||||
.top-btn {
|
|
||||||
background: #02457E;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
.arrow {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.btn-box {
|
|
||||||
.btn {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
background: #03233C;
|
|
||||||
&:hover {
|
|
||||||
background: #02457E;
|
|
||||||
transition: all 0.5s ease-out;
|
|
||||||
}
|
|
||||||
.btn-text{
|
|
||||||
padding: 0px 5px 6px;
|
|
||||||
border-bottom: 1px solid #010D18;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.btn:last-child{
|
|
||||||
border-bottom-right-radius: 5px;
|
|
||||||
border-bottom-left-radius: 5px;
|
|
||||||
.btn-text{
|
|
||||||
height: 16px;
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -5,6 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts';
|
import * as echarts from 'echarts';
|
||||||
import resize from './../mixins/resize'
|
import resize from './../mixins/resize'
|
||||||
|
import { formatDate } from '@/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GasChart',
|
name: 'GasChart',
|
||||||
@ -38,7 +39,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '日') {
|
if (this.chartTime === '日') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -46,7 +46,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '周') {
|
if (this.chartTime === '周') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -54,7 +53,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '月') {
|
if (this.chartTime === '月') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -62,7 +60,6 @@ export default {
|
|||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.chartTime === '年') {
|
if (this.chartTime === '年') {
|
||||||
this.updateChart()
|
this.updateChart()
|
||||||
this.$emit('emitFun')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="flex: 1;">
|
<div style="flex: 1;">
|
||||||
<Container name="各工序缺陷汇总" size="middle" style="">
|
<Container name="各工序缺陷汇总" size="middle" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div style="padding: 5px 10px;">
|
<div style="padding: 5px 10px;">
|
||||||
<dv-scroll-board :config="config" style="width:575px;height:380px" ref='defectScrollBoard'/>
|
<dv-scroll-board :config="config" style="width:575px;height:380px" ref='defectScrollBoard'/>
|
||||||
</div>
|
</div>
|
||||||
@ -10,11 +9,9 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container.vue';
|
import Container from '../components/Container.vue';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DefectSum',
|
name: 'DefectSum',
|
||||||
components: { Container, TimePrompt },
|
components: { Container },
|
||||||
computed: {
|
computed: {
|
||||||
defectSum() {
|
defectSum() {
|
||||||
return this.$store.state.websocket.defectSum
|
return this.$store.state.websocket.defectSum
|
||||||
@ -22,7 +19,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timestr: '',
|
|
||||||
config: {
|
config: {
|
||||||
header: ['序号', '产线', '工序','损耗片数','缺陷类型'],
|
header: ['序号', '产线', '工序','损耗片数','缺陷类型'],
|
||||||
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
||||||
@ -36,9 +32,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
|
||||||
watch:{
|
watch:{
|
||||||
defectSum: {
|
defectSum: {
|
||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
@ -51,16 +44,8 @@ export default {
|
|||||||
]);
|
]);
|
||||||
this.config.data = outArr
|
this.config.data = outArr
|
||||||
this.$refs['defectScrollBoard'].updateRows(outArr)
|
this.$refs['defectScrollBoard'].updateRows(outArr)
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 240px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,41 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<Container name="能源监控" size="large" style="">
|
<Container name="能源监控" size="large" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div class="chart" style="height: 370px; margin-top: 8px;">
|
<div class="chart" style="height: 370px; margin-top: 8px;">
|
||||||
<EnergeMonitoringChart @emitFun='dateUpdate'/>
|
<EnergeMonitoringChart/>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container.vue';
|
import Container from '../components/Container.vue';
|
||||||
import EnergeMonitoringChart from '../components/EnergeMonitoringChart';
|
import EnergeMonitoringChart from '../components/EnergeMonitoringChart';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EnergyMonitoring',
|
name: 'EnergyMonitoring',
|
||||||
components: { Container, EnergeMonitoringChart, TimePrompt },
|
components: { Container, EnergeMonitoringChart },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timestr: ''
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 数据更新
|
|
||||||
dateUpdate() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 18px;
|
|
||||||
left: 170px;
|
|
||||||
}
|
|
||||||
.timeToggle {
|
.timeToggle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="flex: 1;">
|
<div style="flex: 1;">
|
||||||
<Container name="设备报警" size="middle" style="">
|
<Container name="设备报警" size="middle" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div style="padding: 5px 10px;">
|
<div style="padding: 5px 10px;">
|
||||||
<dv-scroll-board :config="config" style="width:575px;height:380px" ref='eqScrollBoard'/>
|
<dv-scroll-board :config="config" style="width:575px;height:380px" ref='eqScrollBoard'/>
|
||||||
</div>
|
</div>
|
||||||
@ -10,11 +9,9 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container.vue';
|
import Container from '../components/Container.vue';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EqAlarm',
|
name: 'EqAlarm',
|
||||||
components: { Container, TimePrompt },
|
components: { Container },
|
||||||
computed: {
|
computed: {
|
||||||
sjgEquipment() {
|
sjgEquipment() {
|
||||||
return this.$store.state.websocket.sjgEquipment
|
return this.$store.state.websocket.sjgEquipment
|
||||||
@ -22,7 +19,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timestr: '',
|
|
||||||
config: {
|
config: {
|
||||||
header: ['序号', '设备名称', '设备编码','设备状态','是否故障'],
|
header: ['序号', '设备名称', '设备编码','设备状态','是否故障'],
|
||||||
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
||||||
@ -48,7 +44,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
sjgEquipment: {
|
sjgEquipment: {
|
||||||
@ -62,16 +57,8 @@ export default {
|
|||||||
]);
|
]);
|
||||||
this.config.data = outArr
|
this.config.data = outArr
|
||||||
this.$refs['eqScrollBoard'].updateRows(outArr)
|
this.$refs['eqScrollBoard'].updateRows(outArr)
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 170px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,41 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<Container name="产线产量及良品率" size="large" style="">
|
<Container name="产线产量及良品率" size="large" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div class="chart" style="height: 370px; margin-top: 8px;">
|
<div class="chart" style="height: 370px; margin-top: 8px;">
|
||||||
<NumRateChart @emitFun='dateUpdate'/>
|
<NumRateChart />
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container';
|
import Container from '../components/Container';
|
||||||
import NumRateChart from '../components/NumRateChart';
|
import NumRateChart from '../components/NumRateChart';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NumRate',
|
name: 'NumRate',
|
||||||
components: { Container, NumRateChart, TimePrompt },
|
components: { Container, NumRateChart },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timestr: ''
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 数据更新
|
|
||||||
dateUpdate() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 265px;
|
|
||||||
}
|
|
||||||
.timeToggle {
|
.timeToggle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Container name="工单监控" size="middle" style="">
|
<Container name="工单监控" size="middle" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div style="padding: 5px 10px;" class="WOMonitoring">
|
<div style="padding: 5px 10px;" class="WOMonitoring">
|
||||||
<dv-scroll-board :config="config" style="width:900px;height:380px" ref='worderScrollBoard'/>
|
<dv-scroll-board :config="config" style="width:900px;height:380px" ref='worderScrollBoard'/>
|
||||||
</div>
|
</div>
|
||||||
@ -8,12 +7,10 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container.vue';
|
import Container from '../components/Container.vue';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
import { formatDate } from '@/utils'
|
import { formatDate } from '@/utils'
|
||||||
export default {
|
export default {
|
||||||
name: 'WorkOrderMonitoring',
|
name: 'WorkOrderMonitoring',
|
||||||
components: { Container, TimePrompt },
|
components: { Container },
|
||||||
computed: {
|
computed: {
|
||||||
order() {
|
order() {
|
||||||
return this.$store.state.websocket.workOrder
|
return this.$store.state.websocket.workOrder
|
||||||
@ -21,7 +18,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timestr: '',
|
|
||||||
config: {
|
config: {
|
||||||
header: ['序号', '工单名称', '规格','产线','工单状态', '计划完成时间','计划产量','实际产量'],
|
header: ['序号', '工单名称', '规格','产线','工单状态', '计划完成时间','计划产量','实际产量'],
|
||||||
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
||||||
@ -34,8 +30,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
methods:{
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
order: {
|
order: {
|
||||||
@ -52,16 +47,8 @@ export default {
|
|||||||
]);
|
]);
|
||||||
this.config.data = outArr
|
this.config.data = outArr
|
||||||
this.$refs['worderScrollBoard'].updateRows(outArr)
|
this.$refs['worderScrollBoard'].updateRows(outArr)
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 170px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Container name="能耗" size="middle" style="">
|
<Container name="能耗" size="middle" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<EnergeTop />
|
<EnergeTop />
|
||||||
<SplitLine :horizontal="true" />
|
<SplitLine :horizontal="true" />
|
||||||
<div class="" style="flex: 2; padding: 8px">
|
<div class="" style="flex: 2; padding: 8px">
|
||||||
@ -36,7 +35,7 @@
|
|||||||
<SelectorBtnGroup :options="['周', '月', '年']" @emitFun='toggleDate' :active='chartTime'/>
|
<SelectorBtnGroup :options="['周', '月', '年']" @emitFun='toggleDate' :active='chartTime'/>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart" style="height: 200px; margin-top: 8px;">
|
<div class="chart" style="height: 200px; margin-top: 8px;">
|
||||||
<GasChart :chartType='chartType' :chartTime='chartTime' @emitFun='dateUpdate'/>
|
<GasChart :chartType='chartType' :chartTime='chartTime'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
@ -50,8 +49,6 @@ import SplitLine from '../components/line';
|
|||||||
import EnergeTop from './EnergeTop';
|
import EnergeTop from './EnergeTop';
|
||||||
import GasChart from '../components/GasChart.vue';
|
import GasChart from '../components/GasChart.vue';
|
||||||
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EnergeCost',
|
name: 'EnergeCost',
|
||||||
components: {
|
components: {
|
||||||
@ -61,19 +58,14 @@ export default {
|
|||||||
EnergeTop,
|
EnergeTop,
|
||||||
GasChart,
|
GasChart,
|
||||||
SelectorBtnGroup,
|
SelectorBtnGroup,
|
||||||
TimePrompt
|
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartType:'电耗能',
|
chartType:'电耗能',
|
||||||
chartTime:'周',
|
chartTime:'周'
|
||||||
timestr: ''
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
|
||||||
},
|
|
||||||
computed: {
|
computed: {
|
||||||
gasInfoMsg() {
|
gasInfoMsg() {
|
||||||
return this.$store.state.websocket.gasInfo
|
return this.$store.state.websocket.gasInfo
|
||||||
@ -82,27 +74,37 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 切换能源
|
// 切换能源
|
||||||
toggleType(val) {
|
toggleType(val) {
|
||||||
|
console.log('能源' + val)
|
||||||
this.chartType = val
|
this.chartType = val
|
||||||
|
// if (val === '天然气I' || val === '天然气II') {
|
||||||
|
// if (this.chartTime === '周') {
|
||||||
|
// this.chartType = val
|
||||||
|
// } else {
|
||||||
|
// this.$message.warning('暂无数据')
|
||||||
|
// }
|
||||||
|
// }else {
|
||||||
|
// this.chartType = val
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
// 切换时间
|
// 切换时间
|
||||||
toggleDate(val) {
|
toggleDate(val) {
|
||||||
|
console.log('时间' + val)
|
||||||
this.chartTime = val
|
this.chartTime = val
|
||||||
this.timestr = switchShowTime(val)
|
// if (val === '月' || val === '年') {
|
||||||
},
|
// if (this.chartType === '电耗能') {
|
||||||
// 数据更新
|
// this.chartTime = val
|
||||||
dateUpdate() {
|
// } else {
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
// this.$message.warning('暂无数据')
|
||||||
}
|
// }
|
||||||
|
// }else{
|
||||||
|
// this.chartTime = val
|
||||||
|
// }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 120px;
|
|
||||||
}
|
|
||||||
.lgd {
|
.lgd {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="gas-handle" style="flex: 2">
|
<div class="gas-handle" style="flex: 2">
|
||||||
<Container name="烟气处理" size="large" style="">
|
<Container name="烟气处理" size="large" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div
|
<div
|
||||||
class=""
|
class=""
|
||||||
style="
|
style="
|
||||||
@ -100,7 +99,7 @@
|
|||||||
<SelectorBtnGroup :options="['日', '周', '月', '年']" @emitFun='toggleDate' :active='chartTime' />
|
<SelectorBtnGroup :options="['日', '周', '月', '年']" @emitFun='toggleDate' :active='chartTime' />
|
||||||
</div>
|
</div>
|
||||||
<div class="chart" style="height: 250px;margin-top: 10px;">
|
<div class="chart" style="height: 250px;margin-top: 10px;">
|
||||||
<FlueGasChart :chartType='chartType' :chartTime='chartTime' @emitFun='dateUpdate'/>
|
<FlueGasChart :chartType='chartType' :chartTime='chartTime'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
@ -114,8 +113,6 @@ import KilnLine from '../components/line';
|
|||||||
// import Switcher from '../components/Switcher';
|
// import Switcher from '../components/Switcher';
|
||||||
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
||||||
import FlueGasChart from '../components/FlueGasChart';
|
import FlueGasChart from '../components/FlueGasChart';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GasHandle',
|
name: 'GasHandle',
|
||||||
@ -125,14 +122,12 @@ export default {
|
|||||||
KilnLine,
|
KilnLine,
|
||||||
SelectorBtnGroup,
|
SelectorBtnGroup,
|
||||||
FlueGasChart,
|
FlueGasChart,
|
||||||
TimePrompt
|
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartType:'氧气含量',
|
chartType:'氧气含量',
|
||||||
chartTime:'日',
|
chartTime:'日'
|
||||||
timestr: ''
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -140,9 +135,6 @@ export default {
|
|||||||
return this.$store.state.websocket.exhaustGasInfo
|
return this.$store.state.websocket.exhaustGasInfo
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 烟气
|
// 烟气
|
||||||
toggleType(val) {
|
toggleType(val) {
|
||||||
@ -151,23 +143,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 切换时间
|
// 切换时间
|
||||||
toggleDate(val) {
|
toggleDate(val) {
|
||||||
|
console.log('时间' + val)
|
||||||
this.chartTime = val
|
this.chartTime = val
|
||||||
this.timestr = switchShowTime(val)
|
}
|
||||||
},
|
|
||||||
// 数据更新
|
|
||||||
dateUpdate() {
|
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 170px;
|
|
||||||
}
|
|
||||||
.gas-handle {
|
.gas-handle {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,34 @@
|
|||||||
|
<!--
|
||||||
|
filename: IsraCheck.vue
|
||||||
|
author: liubin
|
||||||
|
date: 2023-12-06 09:50:13
|
||||||
|
description:
|
||||||
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Container name="ISRA缺陷检测" size="middle" style="">
|
<Container name="ISRA缺陷检测" size="middle" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
<ISRAChart />
|
||||||
<ISRAChart @emitFun='dateUpdate'/>
|
<!-- <div style="padding: 12px; display: flex; flex-direction: column; gap: 8px; height: 100%;">
|
||||||
|
<div class="f" style="flex: 9;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<ul
|
||||||
|
class="legend"
|
||||||
|
style="
|
||||||
|
flex: 1;
|
||||||
|
padding: 8px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 20px;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 14px;
|
||||||
|
">
|
||||||
|
<li class="fault-1">缺陷1</li>
|
||||||
|
<li class="fault-2">缺陷2</li>
|
||||||
|
<li class="fault-3">缺陷3</li>
|
||||||
|
<li class="fault-4">缺陷4</li>
|
||||||
|
</ul>
|
||||||
|
</div> -->
|
||||||
</Container>
|
</Container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -10,36 +36,20 @@
|
|||||||
import Container from '../components/Container';
|
import Container from '../components/Container';
|
||||||
import ShadowRect from '../components/ShadowRect.vue';
|
import ShadowRect from '../components/ShadowRect.vue';
|
||||||
import ISRAChart from '../components/ISRAChart.vue';
|
import ISRAChart from '../components/ISRAChart.vue';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'IsraCheck',
|
name: 'IsraCheck',
|
||||||
components: { Container, ShadowRect, ISRAChart, TimePrompt },
|
components: { Container, ShadowRect, ISRAChart },
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {};
|
||||||
timestr: ''
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
mounted() {
|
methods: {},
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 数据更新
|
|
||||||
dateUpdate() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 19px;
|
|
||||||
left: 210px;
|
|
||||||
}
|
|
||||||
ul,
|
ul,
|
||||||
li {
|
li {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
import moment from "moment";
|
|
||||||
export const switchShowTime = (type) => {
|
|
||||||
let nowTime = new Date
|
|
||||||
let startTime = ''
|
|
||||||
let endTime = ''
|
|
||||||
let currentYear = nowTime.getFullYear();
|
|
||||||
let startYear = null
|
|
||||||
switch(type) {
|
|
||||||
case '日':
|
|
||||||
let hour = nowTime.getHours()
|
|
||||||
if (hour > 6) {
|
|
||||||
startTime = moment(nowTime).format('yyyy.MM.DD')+' 7点'
|
|
||||||
endTime = moment(moment(nowTime)+86400000).format('yyyy.MM.DD')+' 7点'
|
|
||||||
}else{
|
|
||||||
endTime = moment(nowTime).format('yyyy.MM.DD')+' 7点'
|
|
||||||
startTime = moment(moment(nowTime)-86400000).format('yyyy.MM.DD')+' 7点'
|
|
||||||
}
|
|
||||||
return startTime+'-'+endTime
|
|
||||||
case '周':
|
|
||||||
let timestamp = nowTime- 24 * 60 * 60 * 1000
|
|
||||||
endTime = moment(timestamp).format('yyyy.MM.DD')
|
|
||||||
startTime = moment(timestamp-24 * 60 * 60 * 1000 * 6).format('yyyy.MM.DD')
|
|
||||||
return startTime+'-'+endTime
|
|
||||||
case '月':
|
|
||||||
let day = 29;
|
|
||||||
let lastMonth = nowTime.getMonth() === 0 ? 12 : nowTime.getMonth();
|
|
||||||
if (lastMonth === 2) {
|
|
||||||
day = isLeapYear(currentYear) ? 29 : 28;
|
|
||||||
}
|
|
||||||
if (lastMonth === 12) {
|
|
||||||
startYear = currentYear - 1
|
|
||||||
}
|
|
||||||
startTime = startYear+'.'+lastMonth+'.'+day
|
|
||||||
endTime = currentYear+'.'+(nowTime.getMonth()+1)+'.28'
|
|
||||||
return startTime+'-'+endTime
|
|
||||||
default:// 年
|
|
||||||
startTime = (currentYear - 1)+'.12.29'
|
|
||||||
endTime = currentYear+'.12.28'
|
|
||||||
return startTime+'-'+endTime
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const isLeapYear = (year) => {
|
|
||||||
return year % 400 == 0 || (year % 4 == 0 && year % 100 != 0);
|
|
||||||
}
|
|
@ -1,51 +1,36 @@
|
|||||||
<template>
|
<template>
|
||||||
<Container name="产线当日缺陷分类" size="middle">
|
<Container name="产线当日缺陷分类" size="middle">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
<SelectorBtnGroup class="typeToggle" :options="['Y61', 'Y62', 'Y63', 'Y64', 'Y65']" @emitFun='toggleType' :active='chartType' />
|
||||||
<DropDownBtn class="typeToggle" :options="['Y61', 'Y62', 'Y63', 'Y64', 'Y65']" @emitFun='toggleType' :active='chartType' />
|
|
||||||
<div class="chart" style="height: 375px; margin-top: 8px;">
|
<div class="chart" style="height: 375px; margin-top: 8px;">
|
||||||
<DefectClassChart :chartType='chartType' @emitFun='dateUpdate'/>
|
<DefectClassChart :chartType='chartType'/>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container';
|
import Container from '../components/Container';
|
||||||
import DropDownBtn from '../components/DropDownBtn';
|
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
||||||
import DefectClassChart from '../components/DefectClassChart';
|
import DefectClassChart from '../components/DefectClassChart';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DefectClass',
|
name: 'DefectClass',
|
||||||
components: { Container, DropDownBtn, DefectClassChart, TimePrompt },
|
components: { Container, SelectorBtnGroup, DefectClassChart },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartType:'Y61',
|
chartType:'Y61'
|
||||||
timestr: ''
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 切换产线
|
// 切换产线
|
||||||
toggleType(val) {
|
toggleType(val) {
|
||||||
|
console.log('产线' + val)
|
||||||
this.chartType = val
|
this.chartType = val
|
||||||
},
|
}
|
||||||
// 数据更新
|
|
||||||
dateUpdate() {
|
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 18px;
|
|
||||||
left: 260px;
|
|
||||||
}
|
|
||||||
.typeToggle {
|
.typeToggle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
top: 15px;
|
top: 30px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -1,54 +1,38 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="flex: 1;">
|
<div style="flex: 1;">
|
||||||
<Container name="产线缺陷统计" size="small">
|
<Container name="产线缺陷统计" size="small">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
<SelectorBtnGroup class="timeToggle" :options="['日', '周', '月', '年']" @emitFun='toggleDate' :active='chartTime' />
|
||||||
<DropDownBtn class="timeToggle" :options="['日', '周', '月', '年']" @emitFun='toggleDate' :active='chartTime' />
|
|
||||||
<div class="chart" style="height: 238px; margin-top: 8px;">
|
<div class="chart" style="height: 238px; margin-top: 8px;">
|
||||||
<DefectChart :chartTime='chartTime' @emitFun='dateUpdate'/>
|
<DefectChart :chartTime='chartTime'/>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container';
|
import Container from '../components/Container';
|
||||||
import DropDownBtn from '../components/DropDownBtn';
|
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import DefectChart from '../components/DefectChart';
|
import DefectChart from '../components/DefectChart';
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DefectStatistics',
|
name: 'DefectStatistics',
|
||||||
components: { Container, DropDownBtn, DefectChart, TimePrompt },
|
components: { Container, SelectorBtnGroup, DefectChart },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartTime:'日',
|
chartTime:'日'
|
||||||
timestr: ''
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 切换时间
|
// 切换时间
|
||||||
toggleDate(val) {
|
toggleDate(val) {
|
||||||
|
console.log('时间' + val)
|
||||||
this.chartTime = val
|
this.chartTime = val
|
||||||
this.timestr = switchShowTime(val)
|
}
|
||||||
},
|
|
||||||
// 数据更新
|
|
||||||
dateUpdate() {
|
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 210px;
|
|
||||||
}
|
|
||||||
.timeToggle {
|
.timeToggle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
top: 15px;
|
top: 20px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="flex: 1;" class="orderContainer">
|
<div style="flex: 1;" class="orderContainer">
|
||||||
<Container name="订单完成情况" size="small" style="">
|
<Container name="订单完成情况" size="small" style="">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div style="padding: 5px 10px;">
|
<div style="padding: 5px 10px;">
|
||||||
<dv-scroll-board :config="config" style="width:575px;height:230px" ref='orderScrollBoard'/>
|
<dv-scroll-board :config="config" style="width:575px;height:230px" ref='orderScrollBoard'/>
|
||||||
</div>
|
</div>
|
||||||
@ -10,12 +9,10 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Container from '../components/Container'
|
import Container from '../components/Container'
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { formatDate } from '@/utils'
|
import { formatDate } from '@/utils'
|
||||||
import { switchShowTime } from '../utils'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'OrderStatus',
|
name: 'OrderStatus',
|
||||||
components: { Container, TimePrompt },
|
components: { Container },
|
||||||
computed: {
|
computed: {
|
||||||
order() {
|
order() {
|
||||||
return this.$store.state.websocket.order
|
return this.$store.state.websocket.order
|
||||||
@ -23,7 +20,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timestr: '',
|
|
||||||
config: {
|
config: {
|
||||||
header: ['上线时间', '客户名称', '规格','完成度'],
|
header: ['上线时间', '客户名称', '规格','完成度'],
|
||||||
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
headerBGC: 'rgba(32, 55, 96, 0.8)',
|
||||||
@ -35,9 +31,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {},
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
},
|
|
||||||
watch:{
|
watch:{
|
||||||
order:{
|
order:{
|
||||||
handler() {
|
handler() {
|
||||||
@ -55,16 +49,8 @@ export default {
|
|||||||
]);
|
]);
|
||||||
this.config.data = outArr
|
this.config.data = outArr
|
||||||
this.$refs['orderScrollBoard'].updateRows(outArr)
|
this.$refs['orderScrollBoard'].updateRows(outArr)
|
||||||
this.timestr = switchShowTime('日')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 210px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Container name="本日生产良品率" size="large">
|
<Container name="本日生产良品率" size="large">
|
||||||
<TimePrompt class="timeShow" :timestr="timestr" />
|
|
||||||
<div style="padding: 5px 10px;">
|
<div style="padding: 5px 10px;">
|
||||||
<dv-scroll-board :config="config" style="width:575px;height:230px" ref='yieldRateScrollBoard'/>
|
<dv-scroll-board :config="config" style="width:575px;height:230px" ref='yieldRateScrollBoard'/>
|
||||||
</div>
|
</div>
|
||||||
@ -23,7 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart" style="height: 230px;">
|
<div class="chart" style="height: 230px;">
|
||||||
<YieldRateChart :chartTime='chartTime' :chartType='chartType' @emitFun='dateUpdate'/>
|
<YieldRateChart :chartTime='chartTime' :chartType='chartType'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
@ -34,12 +33,10 @@ import ScrollBoard from '../components/ScrollBoard'
|
|||||||
import KilnLine from '../components/line'
|
import KilnLine from '../components/line'
|
||||||
import Switcher from '../components/Switcher'
|
import Switcher from '../components/Switcher'
|
||||||
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
import SelectorBtnGroup from '../components/SelectorBtnGroup';
|
||||||
import YieldRateChart from '../components/YieldRateChart';
|
import YieldRateChart from '../components/YieldRateChart'
|
||||||
import TimePrompt from '../components/TimePrompt';
|
|
||||||
import { switchShowTime } from '../utils';
|
|
||||||
export default {
|
export default {
|
||||||
name: 'YieldRate',
|
name: 'YieldRate',
|
||||||
components: { Container, ScrollBoard, KilnLine, Switcher, SelectorBtnGroup, YieldRateChart, TimePrompt },
|
components: { Container, ScrollBoard, KilnLine, Switcher, SelectorBtnGroup, YieldRateChart },
|
||||||
computed: {
|
computed: {
|
||||||
yieldRateTable() {
|
yieldRateTable() {
|
||||||
return this.$store.state.websocket.yieldRateTable
|
return this.$store.state.websocket.yieldRateTable
|
||||||
@ -58,8 +55,7 @@ export default {
|
|||||||
rowNum: 5
|
rowNum: 5
|
||||||
},
|
},
|
||||||
chartType:false,
|
chartType:false,
|
||||||
chartTime: "日",
|
chartTime: "日"
|
||||||
timestr: ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@ -77,9 +73,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
changeType(val) {
|
changeType(val) {
|
||||||
this.chartType = val
|
this.chartType = val
|
||||||
@ -87,21 +80,11 @@ export default {
|
|||||||
// 切换时间
|
// 切换时间
|
||||||
toggleDate(val) {
|
toggleDate(val) {
|
||||||
this.chartTime = val
|
this.chartTime = val
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
}
|
||||||
},
|
|
||||||
// 数据更新
|
|
||||||
dateUpdate() {
|
|
||||||
this.timestr = switchShowTime(this.chartTime)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
.timeShow {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 235px;
|
|
||||||
}
|
|
||||||
.lgd {
|
.lgd {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user