Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hsWebHttpClient
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何虹
hsWebHttpClient
Commits
c59c0a6e
Commit
c59c0a6e
authored
Dec 06, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问号参数dB_NAME
parent
e9e8c905
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
commonModule.js
src/packages/common/commonModule.js
+2
-2
webChartConfig.js
src/packages/modules/webChartConfig.js
+21
-7
No files found.
src/packages/common/commonModule.js
View file @
c59c0a6e
import
{
TOOL_PROXY
,
GQL_PROXY
,
COMMON_UTIL_PROXY
,
SERVICE_PROXY
}
from
'./commonProxy'
import
{
TOOL_PROXY
,
GQL_PROXY
,
COMMON_UTIL_PROXY
,
SERVICE_PROXY
,
CONFIG_TOOL_PROXY
}
from
'./commonProxy'
export
const
WEB_QUERY
=
`
${
TOOL_PROXY
}
/web_query/`
export
const
WEB_QUERY_QUERY
=
`
${
TOOL_PROXY
}
/web_query/query/`
export
const
WEB_QUERY_QUERY_VALUE
=
`
${
TOOL_PROXY
}
/web_query/query_value/`
...
...
@@ -15,5 +15,5 @@ export const UN_CLOSE_BILLS = `${COMMON_UTIL_PROXY}/un_close_bills/`
export
const
SEND_BILLS
=
`
${
COMMON_UTIL_PROXY
}
/send_bills/`
export
const
UN_SEND_BILLS
=
`
${
COMMON_UTIL_PROXY
}
/un_send_bills/`
export
const
REJECT_BILLS
=
`
${
COMMON_UTIL_PROXY
}
/reject_bills/`
export
const
CONFIG_TOOL_API
=
`
${
CO
MMON_UTI
L_PROXY
}
/`
export
const
CONFIG_TOOL_API
=
`
${
CO
NFIG_TOO
L_PROXY
}
/`
src/packages/modules/webChartConfig.js
View file @
c59c0a6e
...
...
@@ -82,7 +82,8 @@ class Control {
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
WEB_QUERY
,
postData
postData
,
this
.
getInitDbConfigParam
()
)
}
// 查询配置
...
...
@@ -118,7 +119,8 @@ class Control {
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
WEB_QUERY_QUERY
,
postData
postData
,
this
.
getInitDbConfigParam
()
)
}
// 获取将要另存到本地的配置
...
...
@@ -132,7 +134,8 @@ class Control {
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
WEB_QUERY_QUERY_VALUE
,
postData
postData
,
this
.
getInitDbConfigParam
()
)
}
// 另存配置
...
...
@@ -189,7 +192,8 @@ class Control {
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
WEB_QUERY_QUERY
,
postData
postData
,
this
.
getInitDbConfigParam
()
)
}
webChartConfigQueryLog
(
data
=
{})
{
...
...
@@ -202,7 +206,8 @@ class Control {
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
WEB_QUERY_QUERY
,
postData
postData
,
this
.
getInitDbConfigParam
()
)
}
webChartConfigRevert
(
data
=
{})
{
...
...
@@ -215,7 +220,8 @@ class Control {
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
WEB_QUERY
,
postData
postData
,
this
.
getInitDbConfigParam
()
)
}
// 控件配置查询
...
...
@@ -246,7 +252,8 @@ class Control {
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
WEB_QUERY_PAGE
,
postData
postData
,
this
.
getInitDbConfigParam
()
)
}
getRealDbName
()
{
...
...
@@ -256,5 +263,12 @@ class Control {
getConfigDbNameApiProxy
()
{
return
config_db_name
?
CONFIG_TOOL_API
:
''
}
getInitDbConfigParam
()
{
return
config_db_name
?
{
db_name
:
config_db_name
}
:
false
}
}
export
default
Control
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment