small refac
This commit is contained in:
parent
d700b28fb6
commit
3bca8d15c5
@ -20,9 +20,10 @@ const selected = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const urll = computed(() => {
|
const urll = computed(() => {
|
||||||
const path = encodeURIComponent(selected.path)
|
const query = new URLSearchParams()
|
||||||
const day = encodeURIComponent(selected.day)
|
query.set('path', selected.path)
|
||||||
const query = `path=${path}&day=${day}&cycle_no=${selected.cycle_no}`
|
query.set('day', selected.day)
|
||||||
|
query.set('cycle_no', selected.cycle_no.toString())
|
||||||
return `${API_BASE_URL}/saber/render/day_cycle_power_wave_plot?${query}`
|
return `${API_BASE_URL}/saber/render/day_cycle_power_wave_plot?${query}`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -20,9 +20,13 @@ const selected = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const urll = computed(() => {
|
const urll = computed(() => {
|
||||||
const path = encodeURIComponent(selected.path)
|
// const path = encodeURIComponent(selected.path)
|
||||||
const day = encodeURIComponent(selected.day)
|
// const day = encodeURIComponent(selected.day)
|
||||||
const query = `path=${path}&day=${day}&cycle_no=${selected.cycle_no}`
|
// const query = `path=${path}&day=${day}&cycle_no=${selected.cycle_no}`
|
||||||
|
const query = new URLSearchParams()
|
||||||
|
query.set('path', selected.path)
|
||||||
|
query.set('day', selected.day)
|
||||||
|
query.set('cycle_no', selected.cycle_no.toString())
|
||||||
return `${API_BASE_URL}/saber/render/day_fft_ifft_plot?${query}`
|
return `${API_BASE_URL}/saber/render/day_fft_ifft_plot?${query}`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -18,8 +18,8 @@ const selected = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const urll = computed(() => {
|
const urll = computed(() => {
|
||||||
const path = encodeURIComponent(selected.path)
|
const query = new URLSearchParams()
|
||||||
const query = `path=${path}`
|
query.set('path', selected.path)
|
||||||
return `${API_BASE_URL}/saber/render/month_power_wave_plot?${query}`
|
return `${API_BASE_URL}/saber/render/month_power_wave_plot?${query}`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -20,9 +20,10 @@ const selected = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const urll = computed(() => {
|
const urll = computed(() => {
|
||||||
const path = encodeURIComponent(selected.path)
|
const query = new URLSearchParams()
|
||||||
const day = encodeURIComponent(selected.day)
|
query.set('path', selected.path)
|
||||||
const query = `path=${path}&day=${day}&height=${selected.height_no}`
|
query.set('day', selected.day)
|
||||||
|
query.set('height_no', selected.height_no.toString())
|
||||||
return `${API_BASE_URL}/saber/render/plot_wave_fitting?${query}`
|
return `${API_BASE_URL}/saber/render/plot_wave_fitting?${query}`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user