|
|
@ -1,8 +1,8 @@ |
|
|
|
import { Moment } from "moment"; |
|
|
|
import { format } from "../uilts/String"; |
|
|
|
import { format } from "./String"; |
|
|
|
|
|
|
|
export class Config { |
|
|
|
public static parentUrl: string = "http://112.124.40.88:8890/product/picture"; |
|
|
|
public static parentUrl: string = "http://112.124.40.88:8002/product/picture"; |
|
|
|
} |
|
|
|
|
|
|
|
export class MicrowaveRadiationConfig { |
|
|
@ -21,13 +21,15 @@ export class RamanLidarConfig { |
|
|
|
} |
|
|
|
|
|
|
|
export class SynergyEvaluationConfig { |
|
|
|
private static url: string = Config.parentUrl + "/images"; |
|
|
|
public static getUrl(tabName: string, elementName: string, type: string): string { |
|
|
|
return format('/images/ecological-environment/{0}/{1}/{2}.tif', tabName, elementName, type) |
|
|
|
return format('{3}/ecological-environment/{0}/{1}/{2}.tif', tabName, elementName, type, this.url); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export class DecisionSupportConfig { |
|
|
|
private static url: string = Config.parentUrl + "/images"; |
|
|
|
public static getUrl(productName: string, imgName: string): string { |
|
|
|
return format('/images/decision-support/{0}/{1}.tif', productName, imgName) |
|
|
|
return format('{2}/decision-support/{0}/{1}.tif', productName, imgName, this.url); |
|
|
|
} |
|
|
|
} |