修改bug
This commit is contained in:
@@ -95,6 +95,9 @@
|
||||
</el-col> -->
|
||||
</el-row>
|
||||
<el-row v-else>
|
||||
<div class="blueTip">
|
||||
生产情况对比
|
||||
</div>
|
||||
<!-- <el-col :span="12"> -->
|
||||
<bm-line-bar :type="listQuery.type" :chartHeight="chartHeight" :legendList="legendList" :chartMsg="chartMsg"
|
||||
:chartId="chartId" :chartNum="chartNum" />
|
||||
@@ -257,9 +260,7 @@ export default {
|
||||
},
|
||||
axisLabel: {},
|
||||
},
|
||||
series: [
|
||||
|
||||
],
|
||||
series: [],
|
||||
},
|
||||
chartMsg: {
|
||||
color: ["#8EF0AB", "#288AFF", "#64BDFF", '#7164FF'],
|
||||
@@ -425,7 +426,7 @@ export default {
|
||||
watch: {
|
||||
// 监听左侧菜单栏是否展开
|
||||
isOpen(val) {
|
||||
if (this.$route.name === "ChipYieldBM") {
|
||||
if (this.$route.name === "productionSituationTablets") {
|
||||
this.chartNum++;
|
||||
}
|
||||
},
|
||||
@@ -440,7 +441,7 @@ export default {
|
||||
},
|
||||
activated() {
|
||||
// 图重新加载,为了防止窗口变化后尺寸图显示不佳,数据不更新
|
||||
if (this.$route.name === "ChipYieldBM") {
|
||||
if (this.$route.name === "productionSituationTablets") {
|
||||
this.chartNum++;
|
||||
}
|
||||
},
|
||||
@@ -570,6 +571,19 @@ export default {
|
||||
this.chartMsg.xData = []
|
||||
this.chartMsgTarget.xData = []
|
||||
this.chartMsgYearTarget.xData = []
|
||||
this.chartMsg.series[0].data = []
|
||||
this.chartMsg.series[1].data = []
|
||||
this.chartMsg.series[2].data = []
|
||||
if (this.chartMsg.series[3]) {
|
||||
this.chartMsg.series[3].data = []
|
||||
}
|
||||
this.chartMsgTarget.series = []
|
||||
this.chartMsgYearTarget.series[0].data = []
|
||||
this.chartMsgYearTarget.series[1].data = []
|
||||
this.chartMsgYearTarget.series[2].data = []
|
||||
if (this.chartMsgYearTarget.series[3]) {
|
||||
this.chartMsgYearTarget.series[3].data = []
|
||||
}
|
||||
console.log(this.listQuery);
|
||||
let arr = []
|
||||
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)
|
||||
@@ -1187,7 +1201,8 @@ export default {
|
||||
})
|
||||
for (let i in this.dataArr[0]) {
|
||||
this.chartMsg.series[0].name = this.dataArr[0]['item']
|
||||
if (i.search('value') === 0) {
|
||||
if (i.search('value') === 0) {
|
||||
console.log("this.dataArr[0]['item']", this.dataArr[0]['item'], this.dataArr[0][i]);
|
||||
this.chartMsg.series[0].data.push({
|
||||
name: this.dataArr[0]['item'],
|
||||
value: this.dataArr[0][i]
|
||||
@@ -1224,6 +1239,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(this.dataArr[0]['item'],this.chartMsg.series[0].data)
|
||||
this.tableData = res.data.length != 0 ? this.dataArr : []
|
||||
// this.tableProps = otherProps
|
||||
// res.data.list.forEach((ele) => {
|
||||
@@ -1253,7 +1269,7 @@ export default {
|
||||
_setTableHeight() {
|
||||
this.tableH = this.tableHeight(137) / 2 - 70;
|
||||
this.chartHeight = this.tableHeight(137) / 2 - 111;
|
||||
if (this.$route.name === "ChipYieldBM") {
|
||||
if (this.$route.name === "productionSituationTablets") {
|
||||
this.chartNum++;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user