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