添加参数
This commit is contained in:
parent
debdad5c5e
commit
4848f892c5
|
|
@ -230,6 +230,7 @@ export default {
|
|||
},
|
||||
created() {},
|
||||
mounted() {
|
||||
this.chart()
|
||||
this.onSearch()
|
||||
this.getDataset()
|
||||
},
|
||||
|
|
@ -240,9 +241,10 @@ export default {
|
|||
})
|
||||
},
|
||||
onSearch () {
|
||||
debugger
|
||||
this.loading = true
|
||||
this.$axios.post(window.CONFIG.baseUrl + '/train-oneday/train_models', this.queryParams).then((res) => {
|
||||
this.$axios.post(window.CONFIG.baseUrl + '/train-oneday/train_models', this.queryParams, {
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
|
||||
}).then((res) => {
|
||||
this.tableData = res.data.items
|
||||
this.total = res.data.pagination.total_count
|
||||
}).finally(() => {
|
||||
|
|
|
|||
|
|
@ -43,16 +43,16 @@ export default {
|
|||
// 2024-05-18到2024-05-24是有数据的
|
||||
let params = {
|
||||
date: '2024-05-20',
|
||||
lon_center: 116.38,
|
||||
lat_center: 39.9,
|
||||
lon_center: 116,
|
||||
lat_center: 39,
|
||||
grid_halfwidth_deg: 1
|
||||
}
|
||||
this.loading = true
|
||||
const res = await this.$axios.post(window.CONFIG.baseUrl + '/nuclide-sim/calculate_atmospheric_stability', params)
|
||||
const res = await this.$axios.post(window.CONFIG.baseUrl + '/nuclide-sim/calculate_atmospheric_stability', params, {
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
|
||||
})
|
||||
this.loading = false
|
||||
|
||||
// const res = Atmospheric
|
||||
|
||||
this.atmosphericData = res.stability_result.stability_result
|
||||
},
|
||||
// 获取风场、温度场、气压场数据
|
||||
|
|
@ -65,7 +65,9 @@ export default {
|
|||
}
|
||||
try {
|
||||
this.loading = true
|
||||
const res = await this.$axios.post(window.CONFIG.baseUrl + '/nuclide-sim/get_wind_temperature_pressure_data', params)
|
||||
const res = await this.$axios.post(window.CONFIG.baseUrl + '/nuclide-sim/get_wind_temperature_pressure_data', params, {
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
|
||||
})
|
||||
this.loading = false
|
||||
// const res = Wind
|
||||
|
||||
|
|
@ -91,6 +93,7 @@ export default {
|
|||
loadWindfieldWithDataNew(this.viewer, this.windData)
|
||||
break
|
||||
case 'AtmosphericStability':
|
||||
debugger
|
||||
loadHeatmapByData(this.viewer, this.atmosphericData)
|
||||
break
|
||||
case 'AirPressure':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user