处理station台站变化是,对应的图表更新问题
This commit is contained in:
parent
3e5f97f55a
commit
5c73a26d21
|
@ -346,7 +346,10 @@ export default {
|
||||||
},
|
},
|
||||||
stationChange(val) {
|
stationChange(val) {
|
||||||
if (val.length != 0) {
|
if (val.length != 0) {
|
||||||
// this.isDefault = false
|
if (this.chartLayout.length == 2) {
|
||||||
|
let index = this.chartLayout.findIndex((item) => item !== val[0])
|
||||||
|
this.chartLayout.splice(index, 1)
|
||||||
|
}
|
||||||
if (val.length == 2) {
|
if (val.length == 2) {
|
||||||
this.stationOptions.forEach((item) => {
|
this.stationOptions.forEach((item) => {
|
||||||
if (!val.includes(item.value)) {
|
if (!val.includes(item.value)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user