// 当前选择的产品类型************
private _field: string;
public set field(field: string) {
this._field = field;
if (this.field) {
this.addLegend();
}
this.init();
switch (this.field) {
case 'ACCNPP':
this.unit = "gC/m²"
break;
case 'AVEFVC':
this.unit = "%"
break;
case 'QI-Monthly':
this.unit = ""
break;
case 'NPP-SLOPE':
this.unit = "gC/m²·a"
break;
default:
this.unit = ""
break
}
}
public get field(): string {
return this._field;
}
页面数据发生变化时,触发相应操作
最新推荐文章于 2022-08-12 17:59:17 发布