|
|
@ -26,16 +26,16 @@ |
|
|
|
<div class="menu-item"> |
|
|
|
<h2 class="tip">区域选择</h2> |
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === 'jiang-ning'}" |
|
|
|
@click="onRegionClick('jiang-ning')">江宁</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === 'liu-he'}" |
|
|
|
@click="onRegionClick('liu-he')">六合</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === 'pu-kou'}" |
|
|
|
@click="onRegionClick('pu-kou')">浦口</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === 'gao-chun'}" |
|
|
|
@click="onRegionClick('gao-chun')">高淳</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === 'li-shui'}" |
|
|
|
@click="onRegionClick('li-shui')">溧水</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === '58238'}" |
|
|
|
@click="onRegionClick('58238')">江宁</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === '58235'}" |
|
|
|
@click="onRegionClick('58235')">六合</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === '58237'}" |
|
|
|
@click="onRegionClick('58237')">浦口</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === '58339'}" |
|
|
|
@click="onRegionClick('58339')">高淳</span></el-col> |
|
|
|
<el-col :span="8"><span :class="{'active': currentRegion === '58340'}" |
|
|
|
@click="onRegionClick('58340')">溧水</span></el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<div class="menu-item"> |
|
|
@ -251,11 +251,11 @@ export default { |
|
|
|
|
|
|
|
let options = reactive({ |
|
|
|
currentTab: 'MWR', |
|
|
|
currentRegion: 'jiang-ning', |
|
|
|
currentRegion: '58238', |
|
|
|
currentType: 'TEMP', |
|
|
|
currentElement: 'six-minute', |
|
|
|
currentCategory: 'CAPE', |
|
|
|
date: moment('2021-12-05').format('YYYY-MM-DD'), |
|
|
|
date: moment().format('YYYY-MM-DD'), |
|
|
|
currentHour: '00', |
|
|
|
hours: [], |
|
|
|
times: [], |
|
|
@ -469,6 +469,7 @@ export default { |
|
|
|
|
|
|
|
const onRegionClick = (region) => { |
|
|
|
options.currentRegion = region; |
|
|
|
reloadChangeData(); |
|
|
|
} |
|
|
|
|
|
|
|
const onElementClick = (element, apiTimeLength, apiTimeInterval) => { |
|
|
@ -605,7 +606,8 @@ export default { |
|
|
|
const reloadTLogPData = () => { |
|
|
|
let params = { |
|
|
|
startTime: moment(options.titleEndTime).add(-options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'), |
|
|
|
endTime: options.titleEndTime |
|
|
|
endTime: options.titleEndTime, |
|
|
|
station: options.currentRegion |
|
|
|
} |
|
|
|
|
|
|
|
post("/tLogP/findLater", params).then((response: any) => { |
|
|
@ -932,7 +934,8 @@ export default { |
|
|
|
return { |
|
|
|
radar_data_code: radarDataCode, |
|
|
|
data_time_start: startTime, |
|
|
|
data_time_end: endTime |
|
|
|
data_time_end: endTime, |
|
|
|
station: options.currentRegion |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|