修改bug
This commit is contained in:
@@ -195,26 +195,7 @@ export default {
|
||||
{
|
||||
name: "",
|
||||
// yAxisIndex: 0,
|
||||
data: [
|
||||
{
|
||||
value: 1,
|
||||
itemStyle: {
|
||||
color: '#8EF0AB'
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
itemStyle: {
|
||||
color: '#288AFF'
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
yAxisIndex: 1,
|
||||
itemStyle: {
|
||||
color: '#64BDFF'
|
||||
}
|
||||
}],
|
||||
data: [],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
@@ -229,13 +210,7 @@ export default {
|
||||
{
|
||||
name: '',
|
||||
type: 'bar',
|
||||
data: [0, 0, 0,
|
||||
{
|
||||
value: 5,
|
||||
itemStyle: {
|
||||
color: '#68C483'
|
||||
}
|
||||
}],
|
||||
data: [],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
@@ -370,7 +345,7 @@ export default {
|
||||
watch: {
|
||||
// 监听左侧菜单栏是否展开
|
||||
isOpen(val) {
|
||||
if (this.$route.name === "ChipYieldBM") {
|
||||
if (this.$route.name === "produceConversion") {
|
||||
this.chartNum++;
|
||||
}
|
||||
},
|
||||
@@ -385,7 +360,7 @@ export default {
|
||||
},
|
||||
activated() {
|
||||
// 图重新加载,为了防止窗口变化后尺寸图显示不佳,数据不更新
|
||||
if (this.$route.name === "ChipYieldBM") {
|
||||
if (this.$route.name === "produceConversion") {
|
||||
this.chartNum++;
|
||||
}
|
||||
},
|
||||
@@ -513,6 +488,12 @@ export default {
|
||||
async getDataList() {
|
||||
this.otherProps = []
|
||||
this.chartMsg.xData = []
|
||||
this.chartMsg.series[0].data = []
|
||||
this.chartMsg.series[1].data = []
|
||||
this.chartMsg.series[2].data = []
|
||||
this.chartMsgYearTarget.series[0].data = []
|
||||
this.chartMsgYearTarget.series[1].data = []
|
||||
|
||||
console.log(this.listQuery);
|
||||
if (this.listQuery.type == 3) {
|
||||
this.listQuery.beginTime = this.listQuery.reportTime[0]
|
||||
@@ -676,7 +657,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 === "produceConversion") {
|
||||
this.chartNum++;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user