| | |
| | | </div> |
| | | |
| | | <div style="display: flex;justify-content: space-evenly;font-size: 20px;padding: 0 50px"> |
| | | <dv-decoration-11 style="width: 200px;height: 70px;margin: 0 10px">备件信息</dv-decoration-11> |
| | | <dv-decoration-11 style="width: 200px;height: 70px;margin: 0 10px">保养计划</dv-decoration-11> |
| | | <dv-decoration-11 style="width: 200px;height: 70px;margin: 0 10px">报修</dv-decoration-11> |
| | | <dv-decoration-11 style="width: 200px;height: 70px;margin: 0 10px">设备班次</dv-decoration-11> |
| | | <div v-for="(item,index) in buttonList" :key="index" @click="click(item)" |
| | | style="width: 200px;height: 70px;margin: 0 10px;cursor: pointer"> |
| | | <dv-decoration-11>{{item.label}}</dv-decoration-11> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </dv-border-box-12> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | equipmentId: '2140223', |
| | | equipmentList: [ |
| | | { |
| | | equipmentId: '2140223', |
| | |
| | | workshopSection: '407一工段', |
| | | operator: 'admin' |
| | | }, |
| | | buttonList: [ |
| | | { |
| | | label: '备件信息' |
| | | }, |
| | | { |
| | | label: '保养计划' |
| | | }, |
| | | { |
| | | label: '报修' |
| | | }, |
| | | { |
| | | label: '设备班次' |
| | | } |
| | | ], |
| | | lineChart: '', |
| | | lineChartData: [], |
| | | gaugeChart1: '', |
| | |
| | | gaugeChartData1: [], |
| | | gaugeChartData2: [], |
| | | gaugeChartData3: [], |
| | | gaugeChartData4: [], |
| | | equipmentId: '2140223' |
| | | gaugeChartData4: [] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | methods: { |
| | | selectEquipment(record) { |
| | | this.equipmentId = record.equipmentId |
| | | }, |
| | | |
| | | click(record) { |
| | | window.alert(record.label) |
| | | }, |
| | | |
| | | getChartDataByApi() { |
| | |
| | | // 主标题文本样式 |
| | | fontSize: 18, |
| | | fontWeight: 'normal', |
| | | color: '#00A8AC', |
| | | color: '#1AD8DE', |
| | | fontWeight: 'bold' |
| | | } |
| | | }, |
| | | tooltip: { |
| | | formatter: '{a} <br/>{b} : {c}%' |
| | | formatter: params => { |
| | | return params.seriesName + ':' + params.value + '%' |
| | | } |
| | | }, |
| | | grid: { |
| | | left: '1%', |
| | |
| | | }, |
| | | series: [ |
| | | { |
| | | name: '利用率', |
| | | name: '', |
| | | type: 'gauge', |
| | | radius: '80%', |
| | | center: ['50%', '60%'], // 默认全局居中 |
| | |
| | | axisLine: { |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [ //表盘颜色 |
| | | [0.3, '#E7781E'],//0-30%处的颜色 |
| | | [0.7, '#C5C039'],//30%-60%处的颜色 |
| | | [1, '#21C77F']//90%-100%处的颜色 |
| | | [0.3, '#F56436'],//0-30%处的颜色 |
| | | [0.7, '#FFFF40'],//30%-60%处的颜色 |
| | | [1, '#0FC61A']//90%-100%处的颜色 |
| | | ], |
| | | width: 15//表盘宽度 |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | data: [{ value: 100 }] |
| | | data: [] |
| | | } |
| | | ] |
| | | } |
| | |
| | | this.gaugeChart1 = this.$echarts.init(document.getElementById('gauge_chart1')) |
| | | const option = Object.assign({}, opt) |
| | | option.title.text = '利用率' |
| | | option.series[0].name = '利用率' |
| | | option.series[0].data = [56] |
| | | this.gaugeChart1.setOption(option, true) |
| | | }, |
| | | |
| | |
| | | this.gaugeChart2 = this.$echarts.init(document.getElementById('gauge_chart2')) |
| | | const option = Object.assign({}, opt) |
| | | option.title.text = '开动率' |
| | | option.series[0].name = '开动率' |
| | | option.series[0].data = [23] |
| | | this.gaugeChart2.setOption(option, true) |
| | | }, |
| | | |
| | |
| | | this.gaugeChart3 = this.$echarts.init(document.getElementById('gauge_chart3')) |
| | | const option = Object.assign({}, opt) |
| | | option.title.text = '开机率' |
| | | option.series[0].name = '开机率' |
| | | option.series[0].data = [44] |
| | | this.gaugeChart3.setOption(option, true) |
| | | }, |
| | | |
| | |
| | | this.gaugeChart4 = this.$echarts.init(document.getElementById('gauge_chart4')) |
| | | const option = Object.assign({}, opt) |
| | | option.title.text = 'OEE' |
| | | option.series[0].name = 'OEE' |
| | | option.series[0].data = [78] |
| | | this.gaugeChart4.setOption(option, true) |
| | | }, |
| | | |
| | |
| | | value: [90, 70, 40, 70, 80, 60, 73, 60, 70, 90, 40, 65] |
| | | } |
| | | ], |
| | | yAxisName: '整年度利用率' |
| | | yAxisName: '整年度利用率(%)' |
| | | } |
| | | let legendData = [] |
| | | let seriesData = [] |
| | |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: 'shadow' |
| | | }, |
| | | formatter: function(params) { |
| | | let result = '' |
| | | params.forEach((item, index) => { |
| | | let dom = `<span style="display:inline-block;width:10px;height:10px;border-radius:100px;margin-right:5px;background:${item.color}"></span>${item.seriesName}:${item.value}%` |
| | | if (index === 0) { |
| | | result = `<span style="font-weight:bolder;">${item.name}</span>` |
| | | } |
| | | result += '<br />' + dom |
| | | }) |
| | | return result |
| | | } |
| | | }, |
| | | legend: { |
| | |
| | | itemGap: 10, |
| | | textStyle: { |
| | | fontSize: 14, |
| | | color: '#ccc' |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | xAxis: { |
| | |
| | | interval: 0, |
| | | show: true, |
| | | fontSize: 12, |
| | | color: '#50729A' |
| | | color: '#fff' |
| | | // rotate: -30, |
| | | }, |
| | | axisLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#50729A' |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | axisTick: { |
| | |
| | | { |
| | | name: newData.yAxisName, |
| | | nameTextStyle: { |
| | | color: '#00A8AC', |
| | | color: '#1AD8DE', |
| | | fontSize: 18, |
| | | padding: [0, 0, 0, 90] |
| | | padding: [0, 0, 0, 110] |
| | | }, |
| | | nameGap: 25, |
| | | type: 'value', |
| | |
| | | axisLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#50729A' |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | axisTick: { |
| | |
| | | splitLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: '#3E4A82' |
| | | color: '#fff' |
| | | } |
| | | } |
| | | }, |
| | |
| | | splitNumber: 5, |
| | | axisLabel: { |
| | | show: true, |
| | | color: '#50729A' |
| | | color: '#fff' |
| | | }, |
| | | axisLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#50729A' |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | axisTick: { |
| | |
| | | splitLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: '#3E4A82' |
| | | color: '#fff' |
| | | } |
| | | } |
| | | } |
| | |
| | | .back-nav { |
| | | width: 100px; |
| | | height: 30px; |
| | | color: #eee; |
| | | color: #fff; |
| | | position: absolute; |
| | | top: 15px; |
| | | left: 15px; |
| | |
| | | } |
| | | |
| | | table { |
| | | color: #eee; |
| | | color: #fff; |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | border-spacing: 0; |
| | |
| | | |
| | | th { |
| | | font-weight: bold; |
| | | background-color: #10695D; |
| | | background-color: #1CB29D; |
| | | position: sticky; |
| | | z-index: 9999; |
| | | top: 0; |
| | |
| | | } |
| | | |
| | | .info-card-container { |
| | | background-color: #67C23A; |
| | | background-color: #0FC61A; |
| | | padding: 5px; |
| | | border-radius: 3px; |
| | | |
| | |
| | | } |
| | | |
| | | /deep/ .ant-descriptions-item-label, /deep/ .ant-descriptions-item-content { |
| | | color: #eee; |
| | | color: #fff; |
| | | font-size: 16px; |
| | | } |
| | | |