添加参数

This commit is contained in:
pengjunchao 2025-12-03 17:37:14 +08:00
parent debdad5c5e
commit 4848f892c5
2 changed files with 13 additions and 8 deletions

View File

@ -230,6 +230,7 @@ export default {
}, },
created() {}, created() {},
mounted() { mounted() {
this.chart()
this.onSearch() this.onSearch()
this.getDataset() this.getDataset()
}, },
@ -240,9 +241,10 @@ export default {
}) })
}, },
onSearch () { onSearch () {
debugger
this.loading = true 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.tableData = res.data.items
this.total = res.data.pagination.total_count this.total = res.data.pagination.total_count
}).finally(() => { }).finally(() => {

View File

@ -43,16 +43,16 @@ export default {
// 2024-05-182024-05-24 // 2024-05-182024-05-24
let params = { let params = {
date: '2024-05-20', date: '2024-05-20',
lon_center: 116.38, lon_center: 116,
lat_center: 39.9, lat_center: 39,
grid_halfwidth_deg: 1 grid_halfwidth_deg: 1
} }
this.loading = true 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 this.loading = false
// const res = Atmospheric
this.atmosphericData = res.stability_result.stability_result this.atmosphericData = res.stability_result.stability_result
}, },
// //
@ -65,7 +65,9 @@ export default {
} }
try { try {
this.loading = true 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 this.loading = false
// const res = Wind // const res = Wind
@ -91,6 +93,7 @@ export default {
loadWindfieldWithDataNew(this.viewer, this.windData) loadWindfieldWithDataNew(this.viewer, this.windData)
break break
case 'AtmosphericStability': case 'AtmosphericStability':
debugger
loadHeatmapByData(this.viewer, this.atmosphericData) loadHeatmapByData(this.viewer, this.atmosphericData)
break break
case 'AirPressure': case 'AirPressure':