You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
3 years ago
|
import { Moment } from "moment";
|
||
3 years ago
|
import { format } from "../uilts/String";
|
||
3 years ago
|
|
||
|
export class Config {
|
||
|
public static parentUrl: string = "http://112.124.40.88:8890/product/picture";
|
||
|
}
|
||
|
|
||
|
export class MicrowaveRadiationConfig {
|
||
|
private static url: string = Config.parentUrl + "/weibo";
|
||
|
public static getUrl(station: string, type: string, time: Moment): string {
|
||
|
return this.url+ '/' + station + '/' + type + '/' + time.format("YYYY/YYYYMM/YYYYMMDD/YYYYMMDDHHmmss.png");
|
||
|
}
|
||
3 years ago
|
}
|
||
|
|
||
|
export class RamanLidarConfig {
|
||
|
private static url: string = Config.parentUrl + "/radar";
|
||
|
|
||
|
public static getUrl(station: string, type: string, time: Moment): string {
|
||
|
return this.url+ '/' + station + '/' + type + '/' + time.format("YYYY/YYYYMM/YYYYMMDD/YYYYMMDDHHmmss.png");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class SynergyEvaluationConfig {
|
||
|
public static getUrl(tabName: string, elementName: string, type: string): string {
|
||
|
return format('/images/ecological-environment/{0}/{1}/{2}.tif', tabName, elementName, type)
|
||
3 years ago
|
}
|
||
|
}
|
||
|
|
||
|
export class DecisionSupportConfig {
|
||
|
public static getUrl(productName: string, imgName: string): string {
|
||
|
return format('/images/decision-support/{0}/{1}.tif', productName, imgName)
|
||
3 years ago
|
}
|
||
3 years ago
|
}
|