|
|
@ -339,8 +339,7 @@ export const actions = { |
|
|
|
// result = await state.sqlMgr.sqlOpPlus(args, op, opArgs);
|
|
|
|
// result = await state.sqlMgr.sqlOpPlus(args, op, opArgs);
|
|
|
|
result = (await this.$axios({ |
|
|
|
result = (await this.$axios({ |
|
|
|
url: '?q=sqlOpPlus_' + op, |
|
|
|
url: '?q=sqlOpPlus_' + op, |
|
|
|
baseURL: process.env.NODE_ENV === 'production' ? './' : 'http://localhost:8080/dashboard', |
|
|
|
baseURL: `${this.$axios.defaults.baseURL}/dashboard`, |
|
|
|
// baseURL: 'http://localhost:8080/dashboard',
|
|
|
|
|
|
|
|
data: {api: op, ...args, ...params, args: opArgs, sqlOpPlus: true}, |
|
|
|
data: {api: op, ...args, ...params, args: opArgs, sqlOpPlus: true}, |
|
|
|
headers, |
|
|
|
headers, |
|
|
|
method: 'post' |
|
|
|
method: 'post' |
|
|
@ -377,8 +376,7 @@ export const actions = { |
|
|
|
} |
|
|
|
} |
|
|
|
return (await this.$axios({ |
|
|
|
return (await this.$axios({ |
|
|
|
url: '?q=sqlOp_' + op, |
|
|
|
url: '?q=sqlOp_' + op, |
|
|
|
baseURL: process.env.NODE_ENV === 'production' ? './' : 'http://localhost:8080/dashboard', |
|
|
|
baseURL: `${this.$axios.defaults.baseURL}/dashboard`, |
|
|
|
// baseURL: 'http://localhost:8080/dashboard',
|
|
|
|
|
|
|
|
data: {api: op, ...args, ...params, args: opArgs}, |
|
|
|
data: {api: op, ...args, ...params, args: opArgs}, |
|
|
|
headers, |
|
|
|
headers, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
@ -423,8 +421,7 @@ export const actions = { |
|
|
|
|
|
|
|
|
|
|
|
return (await this.$axios({ |
|
|
|
return (await this.$axios({ |
|
|
|
url: '?q=sqlOp_' + op, |
|
|
|
url: '?q=sqlOp_' + op, |
|
|
|
baseURL: process.env.NODE_ENV === 'production' ? './' : 'http://localhost:8080/dashboard', |
|
|
|
baseURL: `${$this.axios.defaults.baseURL}/dashboard`, |
|
|
|
// baseURL: 'http://localhost:8080/dashboard',
|
|
|
|
|
|
|
|
data: formData, //{api: op, ...args, args: opArgs},
|
|
|
|
data: formData, //{api: op, ...args, args: opArgs},
|
|
|
|
headers, |
|
|
|
headers, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
@ -445,6 +442,7 @@ export const actions = { |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Naveen MR <oof1lab@gmail.com> |
|
|
|
* @author Naveen MR <oof1lab@gmail.com> |
|
|
|
* @author Pranav C Balan <pranavxc@gmail.com> |
|
|
|
* @author Pranav C Balan <pranavxc@gmail.com> |
|
|
|
|
|
|
|
* @author Wing-Kam Wong <wingkwong.code@gmail.com> |
|
|
|
* |
|
|
|
* |
|
|
|
* @license GNU AGPL version 3 or any later version |
|
|
|
* @license GNU AGPL version 3 or any later version |
|
|
|
* |
|
|
|
* |
|
|
|