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
4c611427
Commit
4c611427
authored
Jan 15, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化健壮
parent
d1447e4a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
19 deletions
+19
-19
hsWebHttpClient.js
dist/hsWebHttpClient.js
+9
-9
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
system.js
src/packages/modules/system.js
+2
-2
webChartConfig.js
src/packages/modules/webChartConfig.js
+7
-7
No files found.
dist/hsWebHttpClient.js
View file @
4c611427
...
...
@@ -1990,7 +1990,7 @@ class Control {
this
.
moduleName
=
'WebChartConfigModule'
}
// 处理传入的data 如果有appCode,pageName dbName
packParamHandle (parms) {
packParamHandle
(
parms
=
{}
)
{
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
userId
}
=
parms
if
(
!
appCode
)
{
parms
.
appCode
=
this
.
requestClient
.
appCode
//|| urlParam.appCode
...
...
@@ -2063,7 +2063,7 @@ class Control {
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
// 获取将要另存到本地的配置
webChartConfigSaveAs (data) {
webChartConfigSaveAs
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
...
...
@@ -2074,7 +2074,7 @@ class Control {
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY_VALUE
,
postData
)
}
// 另存配置
async saveAsDataToLocal (data) {
async
saveAsDataToLocal
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
}
=
data
const
res
=
await
this
.
webChartConfigSaveAs
(
data
)
...
...
@@ -2099,7 +2099,7 @@ class Control {
}
// 直接执行sql语句
execSql
(
data
)
{
this.packParamHandle(data)
this
.
packParamHandle
(
data
=
{}
)
const
{
execSql
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
execSql
,
...
...
@@ -2108,7 +2108,7 @@ class Control {
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigQueryLog (data) {
webChartConfigQueryLog
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
controlName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
...
...
@@ -2118,7 +2118,7 @@ class Control {
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigRevert (data) {
webChartConfigRevert
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
controlName
,
version
}
=
data
const
postData
=
{
...
...
@@ -2129,7 +2129,7 @@ class Control {
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY
,
postData
)
}
// 控件配置查询
webControlQuery (data) {
webControlQuery
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
dbName
,
pageName
,
param
,
appCode
,
controlName
,
returnType
,
dbCode
,
userId
}
=
data
const
postData
=
{
...
...
@@ -22099,7 +22099,7 @@ class System {
return
this
.
requestClient
.
get
(
`
${
_common_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/common/new_id/
${
number
}
/`
)
}
// 获取 动态中的action列表
queryBillpbWebDyncCode (data) {
queryBillpbWebDyncCode
(
data
=
{}
)
{
const
{
appCode
,
pageName
}
=
data
const
params
=
{
parms
:
{
...
...
@@ -22113,7 +22113,7 @@ class System {
return
this
.
restfulClient
.
query
(
params
)
}
// 获取 动态中的action列表
saveBillpbWebDyncCode (data) {
saveBillpbWebDyncCode
(
data
=
{}
)
{
const
{
appCode
,
pageName
,
app_code
,
page_name
}
=
data
if
(
!
appCode
&&
!
app_code
)
{
data
.
app_code
=
this
.
requestClient
.
appCode
...
...
dist/hsWebHttpClient.min.js
View file @
4c611427
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/packages/modules/system.js
View file @
4c611427
...
...
@@ -11,7 +11,7 @@ class System {
return
this
.
requestClient
.
get
(
`
${
TOOL_PROXY
}
/common/new_id/
${
number
}
/`
)
}
// 获取 动态中的action列表
queryBillpbWebDyncCode
(
data
)
{
queryBillpbWebDyncCode
(
data
=
{}
)
{
const
{
appCode
,
pageName
}
=
data
const
params
=
{
parms
:
{
...
...
@@ -25,7 +25,7 @@ class System {
return
this
.
restfulClient
.
query
(
params
)
}
// 获取 动态中的action列表
saveBillpbWebDyncCode
(
data
)
{
saveBillpbWebDyncCode
(
data
=
{}
)
{
const
{
appCode
,
pageName
,
app_code
,
page_name
}
=
data
if
(
!
appCode
&&
!
app_code
)
{
data
.
app_code
=
this
.
requestClient
.
appCode
...
...
src/packages/modules/webChartConfig.js
View file @
4c611427
...
...
@@ -9,7 +9,7 @@ class Control {
this
.
moduleName
=
'WebChartConfigModule'
}
// 处理传入的data 如果有appCode,pageName dbName
packParamHandle
(
parms
)
{
packParamHandle
(
parms
=
{}
)
{
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
userId
}
=
parms
if
(
!
appCode
)
{
parms
.
appCode
=
this
.
requestClient
.
appCode
//|| urlParam.appCode
...
...
@@ -82,7 +82,7 @@ class Control {
return
this
.
requestClient
.
post
(
WEB_QUERY_QUERY
,
postData
)
}
// 获取将要另存到本地的配置
webChartConfigSaveAs
(
data
)
{
webChartConfigSaveAs
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
...
...
@@ -93,7 +93,7 @@ class Control {
return
this
.
requestClient
.
post
(
WEB_QUERY_QUERY_VALUE
,
postData
)
}
// 另存配置
async
saveAsDataToLocal
(
data
)
{
async
saveAsDataToLocal
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
}
=
data
const
res
=
await
this
.
webChartConfigSaveAs
(
data
)
...
...
@@ -118,7 +118,7 @@ class Control {
}
// 直接执行sql语句
execSql
(
data
)
{
this
.
packParamHandle
(
data
)
this
.
packParamHandle
(
data
=
{}
)
const
{
execSql
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
execSql
,
...
...
@@ -127,7 +127,7 @@ class Control {
}
return
this
.
requestClient
.
post
(
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigQueryLog
(
data
)
{
webChartConfigQueryLog
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
controlName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
...
...
@@ -137,7 +137,7 @@ class Control {
}
return
this
.
requestClient
.
post
(
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigRevert
(
data
)
{
webChartConfigRevert
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
controlName
,
version
}
=
data
const
postData
=
{
...
...
@@ -148,7 +148,7 @@ class Control {
return
this
.
requestClient
.
post
(
WEB_QUERY
,
postData
)
}
// 控件配置查询
webControlQuery
(
data
)
{
webControlQuery
(
data
=
{}
)
{
this
.
packParamHandle
(
data
)
const
{
dbName
,
pageName
,
param
,
appCode
,
controlName
,
returnType
,
dbCode
,
userId
}
=
data
const
postData
=
{
...
...
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