添加参数
This commit is contained in:
parent
debdad5c5e
commit
4848f892c5
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
|
|
@ -43,16 +43,16 @@ export default {
|
||||||
// 2024-05-18到2024-05-24是有数据的
|
// 2024-05-18到2024-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':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user