更新
This commit is contained in:
@@ -26,9 +26,9 @@
|
||||
<el-table
|
||||
:data="tableDataA"
|
||||
border
|
||||
style="width: 100%;max-height: 450px;margin-top: 10px"
|
||||
style="width: 100%;max-height: 450px"
|
||||
stripe
|
||||
height="450px"
|
||||
highlight-current-row
|
||||
size="small">
|
||||
<el-table-column
|
||||
type="index"
|
||||
@@ -82,7 +82,7 @@
|
||||
@current-change="handleCurrentChange"/>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card style="width: 49.7%; float: left;margin-right: 5px">
|
||||
<el-card style="width: 49.8%; float: left;margin-right: 5px">
|
||||
<div id="myChart1" style="width: 1000px; height: 570px; margin: auto"/>
|
||||
</el-card>
|
||||
<el-card style="width: 49.7%;margin-left: 5px">
|
||||
@@ -268,7 +268,6 @@ export default {
|
||||
const xData = []
|
||||
const lineData = []
|
||||
for (let i = 0; i < this.table.length; i++) {
|
||||
console.log(this.table[i].日期, 1111)
|
||||
xData.push(this.table[i].日期.split(' ')[0])
|
||||
lineData.push(this.table[i].利用率.toFixed(2))
|
||||
}
|
||||
@@ -324,8 +323,8 @@ export default {
|
||||
myChart.clear()
|
||||
myChart.setOption({
|
||||
title: {
|
||||
text: '单台设备状态',
|
||||
x: 350
|
||||
text: this.MachineValue + '设备状态' + '(' + this.Time + ')',
|
||||
x: 250
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
@@ -364,8 +363,8 @@ export default {
|
||||
myChart.clear()
|
||||
myChart.setOption({
|
||||
title: {
|
||||
text: '全员设备状态',
|
||||
x: 350
|
||||
text: '全员设备状态' + '(' + this.Time + ')',
|
||||
x: 300
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
|
||||
Reference in New Issue
Block a user