Правки под новый файл
This commit is contained in:
parent
c26ed9d057
commit
3fd00f9e3f
@ -82,7 +82,9 @@
|
||||
// console.log(res.form['some'].value)
|
||||
let file = await file_lib.toBase64(res.form["file"]);
|
||||
|
||||
let ans = await axios.post(`${back_url}/import/excel`, { name: "production_injection", file });
|
||||
const name_hash = {'well': 'well_name'}
|
||||
|
||||
let ans = await axios.post(`${back_url}/import/excel`, { name: "production_injection", file, name_hash });
|
||||
console.log(ans);
|
||||
// ui.modal.show(`Hallo ${res.form['some'].value}`, ['ok'])
|
||||
|
||||
|
||||
@ -502,13 +502,13 @@ async function build_map_pr(devobj) {
|
||||
async function start2() {
|
||||
const DATE = '2023-01-01'
|
||||
|
||||
const sql_objects = `SELECT distinct(object) as devobj FROM production_injections where devobj=1` //x.wopt
|
||||
const sql_objects = `SELECT distinct(object) as devobj FROM production_injections` // where devobj=1` //x.wopt
|
||||
|
||||
let objects = await axios.post(`${back_url}/proxy/sqlite`, { query: sql_objects }).then((x) => x.data.data.map(y => y.devobj));
|
||||
|
||||
// objects.map(build_map_pt)
|
||||
objects.map(build_map_pt)
|
||||
objects.map(build_map_it)
|
||||
// objects.map(build_map_pr)
|
||||
objects.map(build_map_pr)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user