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.
 
 
 
 

30 lines
1.2 KiB

import { Moment } from "moment";
import { format } from "./String";
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");
}
}
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 url: string = "/images/ecological-environment/111.tif";
public static getUrl(tabName: string, elementName: string, type: string): string {
return format('/images/ecological-environment/{0}/{1}/{2}.tif', tabName, elementName, type)
//return this.url+ '/' + station + '/' + type + '/' + time.format("YYYY/YYYYMM/YYYYMMDD/YYYYMMDDHHmmss.png");
}
}