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
755a68be
Commit
755a68be
authored
Dec 07, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
action查询保存
parent
a389d4de
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
18 deletions
+62
-18
hsWebHttpClient.js
dist/hsWebHttpClient.js
+30
-14
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
commonModule.js
src/packages/common/commonModule.js
+4
-1
webChartConfig.js
src/packages/modules/webChartConfig.js
+27
-2
No files found.
dist/hsWebHttpClient.js
View file @
755a68be
...
...
@@ -21798,7 +21798,11 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */
"SEND_BILLS"
:
function
()
{
return
/* binding */
SEND_BILLS
;
},
/* harmony export */
"UN_SEND_BILLS"
:
function
()
{
return
/* binding */
UN_SEND_BILLS
;
},
/* harmony export */
"REJECT_BILLS"
:
function
()
{
return
/* binding */
REJECT_BILLS
;
},
/* harmony export */
"CONFIG_API"
:
function
()
{
return
/* binding */
CONFIG_API
;
}
/* harmony export */
"CONFIG_API"
:
function
()
{
return
/* binding */
CONFIG_API
;
},
/* harmony export */
"getWEB_QUERY"
:
function
()
{
return
/* binding */
getWEB_QUERY
;
},
/* harmony export */
"getWEB_QUERY_QUERY"
:
function
()
{
return
/* binding */
getWEB_QUERY_QUERY
;
},
/* harmony export */
"getWEB_QUERY_QUERY_VALUE"
:
function
()
{
return
/* binding */
getWEB_QUERY_QUERY_VALUE
;
},
/* harmony export */
"getWEB_QUERY_PAGE"
:
function
()
{
return
/* binding */
getWEB_QUERY_PAGE
;
}
/* harmony export */
});
/* harmony import */
var
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
31
);
...
...
@@ -21819,8 +21823,22 @@ const SEND_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_PROX
const
UN_SEND_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/un_send_bills/`
const
REJECT_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/reject_bills/`
const
CONFIG_API
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
CONFIG_PROXY
}
/`
function
getWEB_QUERY
(
isConfig
)
{
const
start
=
isConfig
?
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
CONFIG_PROXY
:
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
return
`
${
start
}
/web_query/`
}
function
getWEB_QUERY_QUERY
(
isConfig
)
{
const
start
=
isConfig
?
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
CONFIG_PROXY
:
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
return
`
${
start
}
/web_query/query/`
}
function
getWEB_QUERY_QUERY_VALUE
(
isConfig
){
const
start
=
isConfig
?
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
CONFIG_PROXY
:
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
return
`
${
start
}
/web_query/query_value/`
}
function
getWEB_QUERY_PAGE
(
isConfig
){
const
start
=
isConfig
?
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
CONFIG_PROXY
:
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
return
`
${
start
}
/web_chart_config/query_page/`
}
/***/
}),
/* 31 */
...
...
@@ -21936,7 +21954,7 @@ class Control {
}
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY
,
(
0
,
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
getWEB_QUERY
)(
this
.
hasConfigDb
())
,
postData
,
this
.
getInitDbConfigParam
()
)
...
...
@@ -21973,7 +21991,7 @@ class Control {
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
(
0
,
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
getWEB_QUERY_QUERY
)(
this
.
hasConfigDb
())
,
postData
,
this
.
getInitDbConfigParam
()
)
...
...
@@ -21988,7 +22006,7 @@ class Control {
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY_VALUE
,
(
0
,
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
getWEB_QUERY_QUERY_VALUE
)(
this
.
hasConfigDb
())
,
postData
,
this
.
getInitDbConfigParam
()
)
...
...
@@ -22046,7 +22064,7 @@ class Control {
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
(
0
,
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
getWEB_QUERY_QUERY
)(
this
.
hasConfigDb
())
,
postData
,
this
.
getInitDbConfigParam
()
)
...
...
@@ -22060,7 +22078,7 @@ class Control {
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
(
0
,
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
getWEB_QUERY_QUERY
)(
this
.
hasConfigDb
())
,
postData
,
this
.
getInitDbConfigParam
()
)
...
...
@@ -22074,7 +22092,7 @@ class Control {
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY
,
(
0
,
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
getWEB_QUERY
)(
this
.
hasConfigDb
())
,
postData
,
this
.
getInitDbConfigParam
()
)
...
...
@@ -22106,7 +22124,7 @@ class Control {
config_type
:
configType
}
return
this
.
requestClient
.
post
(
this
.
getConfigDbNameApiProxy
()
||
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_PAGE
,
(
0
,
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
getWEB_QUERY_PAGE
)(
this
.
hasConfigDb
())
,
postData
,
this
.
getInitDbConfigParam
()
)
...
...
@@ -22115,10 +22133,8 @@ class Control {
const
db_name
=
config_db_name
||
this
.
requestClient
.
getDbName
()
return
db_name
}
getConfigDbNameApiProxy
()
{
const
str
=
config_db_name
?
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
CONFIG_API
:
''
console
.
log
(
str
)
return
str
hasConfigDb
(){
return
!!
config_db_name
}
getInitDbConfigParam
()
{
return
config_db_name
...
...
dist/hsWebHttpClient.min.js
View file @
755a68be
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/packages/common/commonModule.js
View file @
755a68be
...
...
@@ -21,7 +21,6 @@ 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_API
=
`
${
CONFIG_PROXY
}
/`
export
function
getWEB_QUERY
(
isConfig
)
{
const
start
=
isConfig
?
CONFIG_PROXY
:
TOOL_PROXY
return
`
${
start
}
/web_query/`
...
...
@@ -37,4 +36,8 @@ export function getWEB_QUERY_QUERY_VALUE(isConfig){
export
function
getWEB_QUERY_PAGE
(
isConfig
){
const
start
=
isConfig
?
CONFIG_PROXY
:
TOOL_PROXY
return
`
${
start
}
/web_chart_config/query_page/`
}
export
function
getPbWebDyncCode
(
isConfig
){
const
start
=
isConfig
?
CONFIG_PROXY
:
TOOL_PROXY
return
`
${
start
}
/api/queryBi/pbWebDyncCode/`
}
\ No newline at end of file
src/packages/modules/webChartConfig.js
View file @
755a68be
...
...
@@ -2,7 +2,8 @@ import {
getWEB_QUERY
,
getWEB_QUERY_QUERY
,
getWEB_QUERY_QUERY_VALUE
,
getWEB_QUERY_PAGE
getWEB_QUERY_PAGE
,
getPbWebDyncCode
}
from
'../common/commonModule'
import
hsUtil
from
'hs-util-js'
const
urlParam
=
hsUtil
.
SystemModule
.
getUrlParams
()
...
...
@@ -259,7 +260,7 @@ class Control {
const
db_name
=
config_db_name
||
this
.
requestClient
.
getDbName
()
return
db_name
}
hasConfigDb
()
{
hasConfigDb
()
{
return
!!
config_db_name
}
getInitDbConfigParam
()
{
...
...
@@ -269,5 +270,29 @@ class Control {
}
:
false
}
// 获取 动态中的action列表
queryBillpbWebDyncCode
(
data
=
{})
{
const
{
appCode
,
pageName
}
=
data
const
param
=
{
app_code
:
appCode
||
this
.
requestClient
.
appCode
,
page_name
:
pageName
||
this
.
requestClient
.
pageName
,
usable
:
1
}
const
url
=
getPbWebDyncCode
(
this
.
hasConfigDb
())
return
this
.
restfulClient
.
get
(
url
,
param
)
}
// 获取 动态中的action列表
saveBillpbWebDyncCode
(
data
=
{})
{
const
{
appCode
,
pageName
,
app_code
,
page_name
}
=
data
if
(
!
appCode
&&
!
app_code
)
{
data
.
app_code
=
this
.
requestClient
.
appCode
}
if
(
!
pageName
&&
!
page_name
)
{
data
.
page_name
=
this
.
requestClient
.
pageName
data
.
page_url
=
this
.
requestClient
.
pageName
}
const
url
=
getPbWebDyncCode
(
this
.
hasConfigDb
())
return
this
.
restfulClient
.
post
(
url
,
data
,
getInitDbConfigParam
)
}
}
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