@@ -77,7 +100,7 @@
import { onMounted, reactive, toRefs } from 'vue';
import moment from "moment";
import { RamanLidarConfig } from '../uilts/Config';
-import { post } from '../uilts/axios';
+ import { post } from '../uilts/axios';
export default {
name: 'RamanLidar',
@@ -85,14 +108,16 @@ import { post } from '../uilts/axios';
let timer = null;
let options = reactive({
currentRegion: 'jiangning',
- currentElement: 'lidar-ratio',
- currentType: '激光雷达比',
- date: moment('2021-08-21').format('YYYY-MM-DD'),
+ currentElement: 'PBLH',
+ currentType: '边界层高度',
+ date: moment('2021-11-15').format('YYYY-MM-DD'),
times: [],
currentTime: null,
- imgUrl: '/images/default-picture.png',
downloadImgUrl: '/images/default-picture.png',
- srcList: [],
+ imgUrl: '/images/default-picture.png',
+ signalPBLHImgUrl: '/images/default-picture.png',
+ previewUrl: [],
+ signalPBLHPreviewUrl: [],
isPlay: false,
title: null,
index: 0,
@@ -132,7 +157,10 @@ import { post } from '../uilts/axios';
const activeImage = () => {
options.imgUrl = RamanLidarConfig.getUrl(options.currentRegion, options.currentElement, moment(options.currentTime, 'YYYY-MM-DD'));
- options.srcList = [options.imgUrl];
+ options.previewUrl = [options.imgUrl];
+
+ options.signalPBLHImgUrl = RamanLidarConfig.getUrl(options.currentRegion, 'signal_' + options.currentElement, moment(options.currentTime, 'YYYY-MM-DD'));
+ options.signalPBLHPreviewUrl = [options.signalPBLHImgUrl];
}
const onImageLoad = (event) => {
@@ -211,7 +239,7 @@ import { post } from '../uilts/axios';
let now = moment(options.date).add(1, 'day');
- for (let i = 0; i < 21 ; i++) {
+ for (let i = 0; i < 15 ; i++) {
options.times.push({
day: now.add(-1, 'day').format('DD'),
date: now.format('YYYY-MM-DD'),
@@ -219,6 +247,7 @@ import { post } from '../uilts/axios';
}
options.times.reverse();
+ console.log(options.times)
options.index = options.times.length - 1;
}
@@ -277,9 +306,11 @@ import { post } from '../uilts/axios';
}
const onRefreshClick = () => {
+ options.date = moment('2021-11-15').format('YYYY-MM-DD');
+ options.currentTime = options.times[options.times.length - 1].date;
+
cancelActive();
- options.date = moment('2021-08-21').format('YYYY-MM-DD');
- options.currentTime = options.times[options.times.length - 1];
+ activeImage();
}
const onPlayClick = () => {
@@ -349,4 +380,17 @@ import { post } from '../uilts/axios';
}
diff --git a/04.系统编码/Frontend/src/uilts/Config.ts b/04.系统编码/Frontend/src/uilts/Config.ts
index d0f8ba6..e85472d 100644
--- a/04.系统编码/Frontend/src/uilts/Config.ts
+++ b/04.系统编码/Frontend/src/uilts/Config.ts
@@ -2,9 +2,9 @@ import { Moment } from "moment";
import { format } from "./String";
export class Config {
- // public static parentUrl: string = "http://112.124.40.88:8002/product/picture";
+ public static parentUrl: string = "http://112.124.40.88:8002/product/picture";
// public static parentUrl: string = "http://10.124.102.10:8002/product/picture";
- public static parentUrl: string = "http://rdp.nagr.com.cn:8082/product/picture";
+ // public static parentUrl: string = "http://rdp.nagr.com.cn:8082/product/picture";
}
export class MicrowaveRadiationConfig {
@@ -18,7 +18,7 @@ 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");
+ return this.url+ '/' + station + '/' + type + '/' + time.format("YYYY/YYYYMM/YYYYMMDD/") + type + '_day_' + time.format('D.png');
}
}