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
89d937ef
Commit
89d937ef
authored
May 11, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级db_name
parent
f9e39353
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
523 additions
and
509 deletions
+523
-509
hsWebHttpClient.js
dist/hsWebHttpClient.js
+522
-508
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
No files found.
dist/hsWebHttpClient.js
View file @
89d937ef
...
@@ -16,8 +16,8 @@ return /******/ (function() { // webpackBootstrap
...
@@ -16,8 +16,8 @@ return /******/ (function() { // webpackBootstrap
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_root__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
1
);
/* harmony import */
var
_root__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
1
);
/* harmony import */
var
_packages_modules_billflow__WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
2
8
);
/* harmony import */
var
_packages_modules_billflow__WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
2
9
);
/* harmony import */
var
_packages_modules_webChartConfig__WEBPACK_IMPORTED_MODULE_2__
=
__webpack_require__
(
3
1
);
/* harmony import */
var
_packages_modules_webChartConfig__WEBPACK_IMPORTED_MODULE_2__
=
__webpack_require__
(
3
2
);
/* harmony import */
var
_packages_modules_restful__WEBPACK_IMPORTED_MODULE_3__
=
__webpack_require__
(
33
);
/* harmony import */
var
_packages_modules_restful__WEBPACK_IMPORTED_MODULE_3__
=
__webpack_require__
(
33
);
/* harmony import */
var
_packages_modules_system__WEBPACK_IMPORTED_MODULE_4__
=
__webpack_require__
(
34
);
/* harmony import */
var
_packages_modules_system__WEBPACK_IMPORTED_MODULE_4__
=
__webpack_require__
(
34
);
/* harmony import */
var
_packages_modules_webQueryClient__WEBPACK_IMPORTED_MODULE_5__
=
__webpack_require__
(
35
);
/* harmony import */
var
_packages_modules_webQueryClient__WEBPACK_IMPORTED_MODULE_5__
=
__webpack_require__
(
35
);
...
@@ -74,7 +74,12 @@ class HttpClient {
...
@@ -74,7 +74,12 @@ class HttpClient {
__webpack_require__
.
r
(
__webpack_exports__
);
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
2
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
2
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
axios__WEBPACK_IMPORTED_MODULE_0__
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
axios__WEBPACK_IMPORTED_MODULE_0__
);
/* harmony import */
var
hs_util_js__WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
28
);
/* harmony import */
var
hs_util_js__WEBPACK_IMPORTED_MODULE_1___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
hs_util_js__WEBPACK_IMPORTED_MODULE_1__
);
const
urlParam
=
hs_util_js__WEBPACK_IMPORTED_MODULE_1___default
().
SystemModule
.
getUrlParams
()
const
parseGlobalParams
=
hs_util_js__WEBPACK_IMPORTED_MODULE_1___default
().
SystemModule
.
parseGlobalParams
()
class
Root
{
class
Root
{
constructor
(
_axios
)
{
constructor
(
_axios
)
{
this
.
moduleName
=
'rootModule'
this
.
moduleName
=
'rootModule'
...
@@ -107,7 +112,7 @@ class Root {
...
@@ -107,7 +112,7 @@ class Root {
requestConfig
(
config
)
{
requestConfig
(
config
)
{
return
axios__WEBPACK_IMPORTED_MODULE_0___default
()(
config
)
return
axios__WEBPACK_IMPORTED_MODULE_0___default
()(
config
)
}
}
handleParams
(
params
)
{
handleParams
(
params
)
{
if
(
params
)
{
if
(
params
)
{
delete
params
.
token
delete
params
.
token
delete
params
.
_user_info
delete
params
.
_user_info
...
@@ -135,6 +140,11 @@ class Root {
...
@@ -135,6 +140,11 @@ class Root {
}
}
}
}
getDbName
()
{
if
(
urlParam
.
dbName
)
return
urlParam
.
dbName
if
(
parseGlobalParams
.
db_name
)
return
parseGlobalParams
.
db_name
return
''
}
request
(
method
,
url
,
data
,
params
,
headers
=
null
,
config
=
{})
{
request
(
method
,
url
,
data
,
params
,
headers
=
null
,
config
=
{})
{
this
.
filterEmptyValue
(
data
)
this
.
filterEmptyValue
(
data
)
// 公共头设置
// 公共头设置
...
@@ -146,6 +156,10 @@ class Root {
...
@@ -146,6 +156,10 @@ class Root {
params
&&
(
aixosCtx
.
params
=
params
)
params
&&
(
aixosCtx
.
params
=
params
)
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
token
)
delete
aixosCtx
.
params
.
token
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
token
)
delete
aixosCtx
.
params
.
token
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
_user_info
)
delete
aixosCtx
.
params
.
_user_info
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
_user_info
)
delete
aixosCtx
.
params
.
_user_info
// 给问号参数加上db_name,逻辑是 session中没有 就去取url上的
if
(
!
aixosCtx
.
params
.
db_name
)
{
aixosCtx
.
params
.
db_name
=
this
.
getDbName
()
}
data
&&
(
aixosCtx
.
data
=
data
)
data
&&
(
aixosCtx
.
data
=
data
)
headers
&&
(
aixosCtx
.
headers
=
headers
)
headers
&&
(
aixosCtx
.
headers
=
headers
)
const
result
=
this
.
axios
(
aixosCtx
)
const
result
=
this
.
axios
(
aixosCtx
)
...
@@ -1861,556 +1875,264 @@ module.exports = function spread(callback) {
...
@@ -1861,556 +1875,264 @@ module.exports = function spread(callback) {
/***/
}),
/***/
}),
/* 28 */
/* 28 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
)
{
(
function
webpackUniversalModuleDefinition
(
root
,
factory
)
{
if
(
true
)
module
.
exports
=
factory
();
else
{}
})(
self
,
function
()
{
return
/******/
(()
=>
{
// webpackBootstrap
/******/
var
__webpack_modules__
=
([
/* 0 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_504__
)
=>
{
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__nested_webpack_require_504__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
29
);
/* harmony export */
__nested_webpack_require_504__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
/* harmony import */
var
_loadModule__WEBPACK_IMPORTED_MODULE_0__
=
__nested_webpack_require_504__
(
1
);
// 单据流类
class
HsUtil
{
class
Billflow
{
constructor
()
{
constructor
(
requestClient
)
{
this
.
emptyList
=
[
undefined
,
null
]
this
.
requestClient
=
requestClient
_loadModule__WEBPACK_IMPORTED_MODULE_0__
.
default
.
forEach
(
item
=>
{
this
.
moduleName
=
'BillflowModule'
if
(
item
&&
item
.
moduleName
)
{
}
this
[
item
.
moduleName
]
=
item
billHandleCommon
(
obj
)
{
const
{
data
,
type
}
=
obj
let
url
=
''
switch
(
type
)
{
case
'billAudit'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
AUDIT_BILLS
}
`
break
case
'billUnAudit'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
UN_AUDIT_BILLS
}
`
break
case
'billSend'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
SEND_BILLS
}
`
break
case
'billUnSend'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
UN_SEND_BILLS
}
`
break
case
'billClose'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
CLOSE_BILLS
}
`
break
case
'billUnClose'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
UN_CLOSE_BILLS
}
`
break
case
'billReject'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
REJECT_BILLS
}
`
break
}
}
return
this
.
requestClient
.
post
(
url
,
data
)
}
)
}
}
}
}
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
Billflow
);
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
HsUtil
()
);
/***/
}),
/***/
}),
/*
29
*/
/*
1
*/
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
(
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_1232__
)
=>
{
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__nested_webpack_require_1232__
.
r
(
__webpack_exports__
);
/* harmony export */
__webpack_require__
.
d
(
__webpack_exports__
,
{
/* harmony export */
__nested_webpack_require_1232__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"WEB_QUERY"
:
function
()
{
return
/* binding */
WEB_QUERY
;
},
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
"WEB_QUERY_QUERY"
:
function
()
{
return
/* binding */
WEB_QUERY_QUERY
;
},
/* harmony export */
"WEB_QUERY_QUERY_VALUE"
:
function
()
{
return
/* binding */
WEB_QUERY_QUERY_VALUE
;
},
/* harmony export */
"WEB_QUERY_PAGE"
:
function
()
{
return
/* binding */
WEB_QUERY_PAGE
;
},
/* harmony export */
"SQL_GQL"
:
function
()
{
return
/* binding */
SQL_GQL
;
},
/* harmony export */
"SQL_GQL_SAVE"
:
function
()
{
return
/* binding */
SQL_GQL_SAVE
;
},
/* harmony export */
"TOOL_API"
:
function
()
{
return
/* binding */
TOOL_API
;
},
/* harmony export */
"AUDIT_BILLS"
:
function
()
{
return
/* binding */
AUDIT_BILLS
;
},
/* harmony export */
"UN_AUDIT_BILLS"
:
function
()
{
return
/* binding */
UN_AUDIT_BILLS
;
},
/* harmony export */
"CLOSE_BILLS"
:
function
()
{
return
/* binding */
CLOSE_BILLS
;
},
/* harmony export */
"UN_CLOSE_BILLS"
:
function
()
{
return
/* binding */
UN_CLOSE_BILLS
;
},
/* 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 */
});
/* harmony export */
});
/* harmony import */
var
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
30
);
const
WEB_QUERY
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_query/`
const
requireComponent
=
__nested_webpack_require_1232__
(
2
)
const
WEB_QUERY_QUERY
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_query/query/`
const
configRouter
=
[]
const
WEB_QUERY_QUERY_VALUE
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_query/query_value/`
requireComponent
.
keys
().
forEach
(
key
=>
{
const
WEB_QUERY_PAGE
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_chart_config/query_page/`
configRouter
.
push
(
requireComponent
(
key
).
default
)
const
SQL_GQL
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
GQL_PROXY
}
/sql_gql/`
})
const
SQL_GQL_SAVE
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
GQL_PROXY
}
/sql_gql/save/`
const
TOOL_API
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/api/`
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
configRouter
);
// 单据流
const
AUDIT_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/audit_bills/`
const
UN_AUDIT_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/un_audit_bills/`
const
CLOSE_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/close_bills/`
const
UN_CLOSE_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/un_close_bills/`
const
SEND_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/send_bills/`
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/`
/***/
}),
/***/
}),
/* 30 */
/* 2 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
((
module
,
__unused_webpack_exports
,
__nested_webpack_require_1786__
)
=>
{
var
map
=
{
"./_dom.js"
:
3
,
"./_excel.js"
:
4
,
"./_iframeMessage.js"
:
5
,
"./_interceptorsTokenAxios.js"
:
6
,
"./_system.js"
:
34
,
"./_tableHandle.js"
:
33
,
"./_tokenTool.js"
:
36
,
"./_typeObject.js"
:
38
};
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony export */
__webpack_require__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"OAUTH_PROXY"
:
function
()
{
return
/* binding */
OAUTH_PROXY
;
},
/* harmony export */
"TOOL_PROXY"
:
function
()
{
return
/* binding */
TOOL_PROXY
;
},
/* harmony export */
"HSRIGHT_TOOL_PROXY"
:
function
()
{
return
/* binding */
HSRIGHT_TOOL_PROXY
;
},
/* harmony export */
"COMMON_UTIL_PROXY"
:
function
()
{
return
/* binding */
COMMON_UTIL_PROXY
;
},
/* harmony export */
"COMMON_PROXY"
:
function
()
{
return
/* binding */
COMMON_PROXY
;
},
/* harmony export */
"GQL_PROXY"
:
function
()
{
return
/* binding */
GQL_PROXY
;
},
/* harmony export */
"FILE_RESOURCE_PROXY"
:
function
()
{
return
/* binding */
FILE_RESOURCE_PROXY
;
}
/* harmony export */
});
const
OAUTH_PROXY
=
'OAUTH_PROXY'
// `http://${api}/HSRight/api/`
const
TOOL_PROXY
=
'TOOL_PROXY'
// `http://${api}/Tool/api/`
const
HSRIGHT_TOOL_PROXY
=
'HSRIGHT_TOOL_PROXY'
// `http://${api}/HSRightTool/api/`
const
COMMON_UTIL_PROXY
=
'COMMON_UTIL_PROXY'
// `http://${api}/CommonUtil/api/`
const
COMMON_PROXY
=
'COMMON_PROXY'
// `http://${api}/`
const
GQL_PROXY
=
'GQL_PROXY'
// `http://${api}/GQL/api/`
const
FILE_RESOURCE_PROXY
=
'FILE_RESOURCE_PROXY'
// `http://${api}/fileresource/api/`
function
webpackContext
(
req
)
{
var
id
=
webpackContextResolve
(
req
);
return
__nested_webpack_require_1786__
(
id
);
}
function
webpackContextResolve
(
req
)
{
if
(
!
__nested_webpack_require_1786__
.
o
(
map
,
req
))
{
var
e
=
new
Error
(
"Cannot find module '"
+
req
+
"'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}
return
map
[
req
];
}
webpackContext
.
keys
=
function
webpackContextKeys
()
{
return
Object
.
keys
(
map
);
};
webpackContext
.
resolve
=
webpackContextResolve
;
module
.
exports
=
webpackContext
;
webpackContext
.
id
=
2
;
/***/
}),
/***/
}),
/* 3
1
*/
/* 3 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
(
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_2588__
)
=>
{
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__nested_webpack_require_2588__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
29
);
/* harmony export */
__nested_webpack_require_2588__
.
d
(
__webpack_exports__
,
{
/* harmony import */
var
hs_util_js__WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
32
);
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony import */
var
hs_util_js__WEBPACK_IMPORTED_MODULE_1___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
hs_util_js__WEBPACK_IMPORTED_MODULE_1__
);
/* harmony export */
});
class
Dom
{
constructor
()
{
this
.
moduleName
=
'DomModule'
}
hasClass
(
dom
,
selector
)
{
if
(
dom
.
classList
.
contains
(
selector
))
{
return
true
}
else
{
return
false
}
}
}
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
Dom
());
/***/
}),
/* 4 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_3184__
)
=>
{
const
urlParam
=
hs_util_js__WEBPACK_IMPORTED_MODULE_1___default
().
SystemModule
.
getUrlParams
()
"use strict"
;
class
Control
{
__nested_webpack_require_3184__
.
r
(
__webpack_exports__
);
constructor
(
requestClient
)
{
/* harmony export */
__nested_webpack_require_3184__
.
d
(
__webpack_exports__
,
{
this
.
requestClient
=
requestClient
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
this
.
moduleName
=
'WebChartConfigModule'
/* harmony export */
});
class
Excel
{
constructor
()
{
this
.
moduleName
=
'ExcelModule'
}
}
// 处理传入的data 如果有appCode,pageName dbName
exportToExcel
(
columnList
=
[],
dataList
=
[],
fileName
=
'data'
)
{
packParamHandle
(
parms
=
{})
{
const
tHeader
=
[]
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
userId
,
configType
}
=
parms
const
filterVal
=
[]
if
(
!
appCode
)
{
for
(
const
item
of
columnList
)
{
parms
.
appCode
=
this
.
requestClient
.
appCode
//|| urlParam.appCode
const
jtem
=
item
.
split
(
'='
)
tHeader
.
push
(
jtem
[
0
])
filterVal
.
push
(
jtem
[
1
])
}
}
if
(
!
pageName
)
{
Promise
.
all
(
/* require.ensure */
[
__nested_webpack_require_3184__
.
e
(
3
),
__nested_webpack_require_3184__
.
e
(
2
)]).
then
((()
=>
{
parms
.
pageName
=
this
.
requestClient
.
pageName
//|| urlParam.pageName
const
{
export_json_to_excel
}
=
__nested_webpack_require_3184__
(
39
)
const
data
=
this
.
formatJson
(
filterVal
,
dataList
)
export_json_to_excel
(
tHeader
,
data
,
fileName
)
}).
bind
(
null
,
__nested_webpack_require_3184__
)).
catch
(
__nested_webpack_require_3184__
.
oe
)
}
}
if
(
!
dbName
)
{
formatJson
(
filterVal
,
jsonData
)
{
parms
.
dbName
=
urlParam
.
dbName
||
''
return
jsonData
.
map
(
v
=>
filterVal
.
map
(
j
=>
v
[
j
]))
}
}
if
(
!
dbCode
)
{
exportJsonToExcelMuilt
(
dataList
=
[],
fileName
=
'data'
)
{
parms
.
dbCode
=
urlParam
.
dbCode
||
''
Promise
.
all
(
/* require.ensure */
[
__nested_webpack_require_3184__
.
e
(
3
),
__nested_webpack_require_3184__
.
e
(
2
)]).
then
((()
=>
{
const
{
export_json_to_excel_muilt
}
=
__nested_webpack_require_3184__
(
39
)
export_json_to_excel_muilt
(
dataList
,
fileName
)
}).
bind
(
null
,
__nested_webpack_require_3184__
)).
catch
(
__nested_webpack_require_3184__
.
oe
)
}
}
if
(
!
userId
)
{
}
parms
.
userId
=
-
1
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
Excel
());
/***/
}),
/* 5 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_4818__
)
=>
{
"use strict"
;
__nested_webpack_require_4818__
.
r
(
__webpack_exports__
);
/* harmony export */
__nested_webpack_require_4818__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
class
IframeMessage
{
constructor
()
{
this
.
moduleName
=
'IframeMessageModule'
}
}
if
(
!
configType
&&
configType
!==
0
)
{
sendErrorToWebframe
(
err
)
{
parms
.
configType
=
-
2
var
data
=
{
type
:
'errorMSg'
,
data
:
err
}
}
}
top
.
postMessage
(
data
,
'*'
)
// 保存控件配置
/**
* sAppCode:页面appCode
* sPage:页面名称
* sControl:控件名称
* sControlType: 类型
* sQuerySql: sql语句
* bMockData: 是否是模拟数据
* iUserId:用户id
* db_name: 数据库名
* db_code:数据库code
* sConfig:控件配置
* sData: 数据
* @param {*} data
*/
webChartConfigSave
(
param
)
{
// routerParms: page路由 position位置 other参数, sConfig 配置json sData 数据json
this
.
packParamHandle
(
param
)
const
{
appCode
,
pageName
,
controlName
,
controlType
,
querySql
,
mockData
,
userId
,
dbName
,
dbCode
,
config
,
data
,
configType
}
=
param
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_Save @sAppCode='
${
appCode
}
',@sPage='
${
pageName
}
',@sControl='
${
controlName
}
',@sControlType='
${
controlType
||
''
}
',@sConfig=:sConfig,@sData=:sData,@sQuerySql='
${
querySql
||
''
}
',@bMockData='
${
mockData
||
''
}
',@iUserId='
${
userId
}
',@iConfigType='
${
configType
}
'`
,
db_name
:
dbName
,
db_code
:
dbCode
,
param
:
{
sConfig
:
JSON
.
stringify
(
config
),
sData
:
JSON
.
stringify
(
data
)
}
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY
,
postData
)
}
// 查询配置
/**
* sAppCode:页面appCode
* sPage:页面名称
* sControl:控件名称
* sControlType: 类型
* sQuerySql: sql语句
* bMockData: 是否是模拟数据
* iUserId:用户id
* db_name: 数据库名
* db_code:数据库code
* sConfig:控件配置
* sData: 数据
* @param {*} data
*/
webChartConfigQuery
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
controlName
,
userId
,
dbName
,
dbCode
,
configType
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_Query @sAppCode='
${
appCode
}
',@sPage='
${
pageName
}
',@sControl='
${
controlName
}
',@iUserId='
${
userId
}
',@iConfigType='
${
configType
}
'`
,
db_name
:
dbName
,
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
// 获取将要另存到本地的配置
webChartConfigSaveAs
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_SaveAs @sAppCode='
${
appCode
}
',@sPage='
${
pageName
}
'`
,
db_name
:
dbName
,
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY_VALUE
,
postData
)
}
// 另存配置
async
saveAsDataToLocal
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
}
=
data
const
res
=
await
this
.
webChartConfigSaveAs
(
data
)
if
(
!
res
)
return
this
.
download
(
`spappWebChartConfig_Upgrade_
${
appCode
}
_
${
pageName
}
.sql`
,
res
.
data
)
}
download
(
name
,
data
)
{
var
urlObject
=
window
.
URL
||
window
.
webkitURL
||
window
var
downloadData
=
new
Blob
([
data
])
var
save_link
=
document
.
createElementNS
(
'http://www.w3.org/1999/xhtml'
,
'a'
)
save_link
.
href
=
urlObject
.
createObjectURL
(
downloadData
)
save_link
.
download
=
name
this
.
fake_click
(
save_link
)
}
fake_click
(
obj
)
{
var
ev
=
document
.
createEvent
(
'MouseEvents'
)
ev
.
initMouseEvent
(
'click'
,
true
,
false
,
window
,
0
,
0
,
0
,
0
,
0
,
false
,
false
,
false
,
false
,
0
,
null
)
obj
.
dispatchEvent
(
ev
)
}
// 直接执行sql语句
execSql
(
data
)
{
this
.
packParamHandle
(
data
=
{})
const
{
execSql
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
execSql
,
db_name
:
dbName
,
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigQueryLog
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
controlName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_QueryLog @sAppCode='
${
appCode
}
',@sPageName='
${
pageName
}
',@sControlName='
${
controlName
}
'`
,
db_name
:
dbName
,
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigRevert
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
controlName
,
version
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_Revert @sAppCode='
${
appCode
}
',@sPageName='
${
pageName
}
',@sControlName='
${
controlName
}
',@iVersion='
${
version
}
'`
,
db_name
:
dbName
,
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY
,
postData
)
}
// 控件配置查询
webControlQuery
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
dbName
,
pageName
,
param
,
appCode
,
controlName
,
returnType
,
dbCode
,
userId
,
configType
}
=
data
const
postData
=
{
db_name
:
dbName
,
app_code
:
appCode
,
page
:
pageName
,
param
:
JSON
.
stringify
(
param
||
{}),
control_name
:
controlName
,
return_type
:
returnType
||
3
,
db_code
:
dbCode
,
user_id
:
userId
,
config_type
:
configType
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_PAGE
,
postData
)
}
}
}
}
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
Control
);
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
IframeMessage
());
/***/
}),
/***/
}),
/* 32 */
/* 6 */
/***/
(
function
(
module
)
{
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_5475__
)
=>
{
(
function
webpackUniversalModuleDefinition
(
root
,
factory
)
{
if
(
true
)
module
.
exports
=
factory
();
else
{}
})(
self
,
function
()
{
return
/******/
(()
=>
{
// webpackBootstrap
/******/
var
__webpack_modules__
=
([
/* 0 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_504__
)
=>
{
"use strict"
;
"use strict"
;
__nested_webpack_require_5
04
__
.
r
(
__webpack_exports__
);
__nested_webpack_require_5
475
__
.
r
(
__webpack_exports__
);
/* harmony export */
__nested_webpack_require_5
04
__
.
d
(
__webpack_exports__
,
{
/* harmony export */
__nested_webpack_require_5
475
__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
/* harmony export */
});
/* harmony import */
var
_loadModule__WEBPACK_IMPORTED_MODULE_0__
=
__nested_webpack_require_504__
(
1
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0__
=
__nested_webpack_require_5475__
(
7
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0___default
=
/*#__PURE__*/
__nested_webpack_require_5475__
.
n
(
axios__WEBPACK_IMPORTED_MODULE_0__
);
/* harmony import */
var
_tableHandle__WEBPACK_IMPORTED_MODULE_1__
=
__nested_webpack_require_5475__
(
33
);
class
HsUtil
{
class
InterceptorsAxiosToken
{
constructor
()
{
constructor
()
{
this
.
emptyList
=
[
undefined
,
null
]
this
.
moduleName
=
'InterceptorsTokenAxiosModule'
_loadModule__WEBPACK_IMPORTED_MODULE_0__
.
default
.
forEach
(
item
=>
{
if
(
item
&&
item
.
moduleName
)
{
this
[
item
.
moduleName
]
=
item
}
}
})
initInterceptors
()
{
// 增加一个response拦截器
axios__WEBPACK_IMPORTED_MODULE_0___default
().
interceptors
.
response
.
use
(
function
(
response
)
{
return
response
},
async
function
(
error
)
{
// 如果返回的code中token 过期了则刷新token
const
code
=
error
.
response
&&
error
.
response
.
status
const
resData
=
(
error
.
response
&&
error
.
response
.
data
)
||
{}
if
(
code
===
401
&&
resData
.
error_type
===
'expired'
&&
self
!==
top
)
{
// 401时过期了把请求缓存起来,等待webframe刷新token后再统一请求!
return
_tableHandle__WEBPACK_IMPORTED_MODULE_1__
.
default
.
hand401Meaage
(
error
.
response
.
config
)
// 这是一个promise
}
else
{
return
error
}
}
)
axios__WEBPACK_IMPORTED_MODULE_0___default
().
interceptors
.
request
.
use
(
async
config
=>
{
config
.
headers
[
'Authorization'
]
=
sessionStorage
[
'token'
]
return
config
},
err
=>
{
return
err
}
)
}
}
}
}
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
HsUtil
());
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
InterceptorsAxiosToken
());
/***/
}),
/***/
}),
/*
1
*/
/*
7
*/
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_1232
__
)
=>
{
/***/
((
module
,
__unused_webpack_exports
,
__nested_webpack_require_7427
__
)
=>
{
"use strict"
;
module
.
exports
=
__nested_webpack_require_7427__
(
8
);
__nested_webpack_require_1232__
.
r
(
__webpack_exports__
);
/* harmony export */
__nested_webpack_require_1232__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
const
requireComponent
=
__nested_webpack_require_1232__
(
2
)
/***/
}),
const
configRouter
=
[]
/* 8 */
requireComponent
.
keys
().
forEach
(
key
=>
{
/***/
((
module
,
__unused_webpack_exports
,
__nested_webpack_require_7556__
)
=>
{
configRouter
.
push
(
requireComponent
(
key
).
default
)
})
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
configRouter
)
;
"use strict"
;
/***/
}),
var
utils
=
__nested_webpack_require_7556__
(
9
);
/* 2 */
var
bind
=
__nested_webpack_require_7556__
(
10
);
/***/
((
module
,
__unused_webpack_exports
,
__nested_webpack_require_1786__
)
=>
{
var
Axios
=
__nested_webpack_require_7556__
(
11
);
var
mergeConfig
=
__nested_webpack_require_7556__
(
29
);
var
defaults
=
__nested_webpack_require_7556__
(
17
);
var
map
=
{
/**
"./_dom.js"
:
3
,
* Create an instance of Axios
"./_excel.js"
:
4
,
*
"./_iframeMessage.js"
:
5
,
* @param {Object} defaultConfig The default config for the instance
"./_interceptorsTokenAxios.js"
:
6
,
* @return {Axios} A new instance of Axios
"./_system.js"
:
34
,
*/
"./_tableHandle.js"
:
33
,
function
createInstance
(
defaultConfig
)
{
"./_tokenTool.js"
:
36
,
var
context
=
new
Axios
(
defaultConfig
);
"./_typeObject.js"
:
38
var
instance
=
bind
(
Axios
.
prototype
.
request
,
context
);
};
// Copy axios.prototype to instance
utils
.
extend
(
instance
,
Axios
.
prototype
,
context
);
function
webpackContext
(
req
)
{
// Copy context to instance
var
id
=
webpackContextResolve
(
req
);
utils
.
extend
(
instance
,
context
);
return
__nested_webpack_require_1786__
(
id
);
}
return
instance
;
function
webpackContextResolve
(
req
)
{
if
(
!
__nested_webpack_require_1786__
.
o
(
map
,
req
))
{
var
e
=
new
Error
(
"Cannot find module '"
+
req
+
"'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}
return
map
[
req
];
}
webpackContext
.
keys
=
function
webpackContextKeys
()
{
return
Object
.
keys
(
map
);
};
webpackContext
.
resolve
=
webpackContextResolve
;
module
.
exports
=
webpackContext
;
webpackContext
.
id
=
2
;
/***/
}),
/* 3 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_2588__
)
=>
{
"use strict"
;
__nested_webpack_require_2588__
.
r
(
__webpack_exports__
);
/* harmony export */
__nested_webpack_require_2588__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
class
Dom
{
constructor
()
{
this
.
moduleName
=
'DomModule'
}
hasClass
(
dom
,
selector
)
{
if
(
dom
.
classList
.
contains
(
selector
))
{
return
true
}
else
{
return
false
}
}
}
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
Dom
());
/***/
}),
/* 4 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_3184__
)
=>
{
"use strict"
;
__nested_webpack_require_3184__
.
r
(
__webpack_exports__
);
/* harmony export */
__nested_webpack_require_3184__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
class
Excel
{
constructor
()
{
this
.
moduleName
=
'ExcelModule'
}
exportToExcel
(
columnList
=
[],
dataList
=
[],
fileName
=
'data'
)
{
const
tHeader
=
[]
const
filterVal
=
[]
for
(
const
item
of
columnList
)
{
const
jtem
=
item
.
split
(
'='
)
tHeader
.
push
(
jtem
[
0
])
filterVal
.
push
(
jtem
[
1
])
}
Promise
.
all
(
/* require.ensure */
[
__nested_webpack_require_3184__
.
e
(
3
),
__nested_webpack_require_3184__
.
e
(
2
)]).
then
((()
=>
{
const
{
export_json_to_excel
}
=
__nested_webpack_require_3184__
(
39
)
const
data
=
this
.
formatJson
(
filterVal
,
dataList
)
export_json_to_excel
(
tHeader
,
data
,
fileName
)
}).
bind
(
null
,
__nested_webpack_require_3184__
)).
catch
(
__nested_webpack_require_3184__
.
oe
)
}
formatJson
(
filterVal
,
jsonData
)
{
return
jsonData
.
map
(
v
=>
filterVal
.
map
(
j
=>
v
[
j
]))
}
exportJsonToExcelMuilt
(
dataList
=
[],
fileName
=
'data'
)
{
Promise
.
all
(
/* require.ensure */
[
__nested_webpack_require_3184__
.
e
(
3
),
__nested_webpack_require_3184__
.
e
(
2
)]).
then
((()
=>
{
const
{
export_json_to_excel_muilt
}
=
__nested_webpack_require_3184__
(
39
)
export_json_to_excel_muilt
(
dataList
,
fileName
)
}).
bind
(
null
,
__nested_webpack_require_3184__
)).
catch
(
__nested_webpack_require_3184__
.
oe
)
}
}
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
Excel
());
/***/
}),
/* 5 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_4818__
)
=>
{
"use strict"
;
__nested_webpack_require_4818__
.
r
(
__webpack_exports__
);
/* harmony export */
__nested_webpack_require_4818__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
class
IframeMessage
{
constructor
()
{
this
.
moduleName
=
'IframeMessageModule'
}
sendErrorToWebframe
(
err
)
{
var
data
=
{
type
:
'errorMSg'
,
data
:
err
}
top
.
postMessage
(
data
,
'*'
)
}
}
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
IframeMessage
());
/***/
}),
/* 6 */
/***/
((
__unused_webpack_module
,
__webpack_exports__
,
__nested_webpack_require_5475__
)
=>
{
"use strict"
;
__nested_webpack_require_5475__
.
r
(
__webpack_exports__
);
/* harmony export */
__nested_webpack_require_5475__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"default"
:
()
=>
__WEBPACK_DEFAULT_EXPORT__
/* harmony export */
});
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0__
=
__nested_webpack_require_5475__
(
7
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0___default
=
/*#__PURE__*/
__nested_webpack_require_5475__
.
n
(
axios__WEBPACK_IMPORTED_MODULE_0__
);
/* harmony import */
var
_tableHandle__WEBPACK_IMPORTED_MODULE_1__
=
__nested_webpack_require_5475__
(
33
);
class
InterceptorsAxiosToken
{
constructor
()
{
this
.
moduleName
=
'InterceptorsTokenAxiosModule'
}
initInterceptors
()
{
// 增加一个response拦截器
axios__WEBPACK_IMPORTED_MODULE_0___default
().
interceptors
.
response
.
use
(
function
(
response
)
{
return
response
},
async
function
(
error
)
{
// 如果返回的code中token 过期了则刷新token
const
code
=
error
.
response
&&
error
.
response
.
status
const
resData
=
(
error
.
response
&&
error
.
response
.
data
)
||
{}
if
(
code
===
401
&&
resData
.
error_type
===
'expired'
&&
self
!==
top
)
{
// 401时过期了把请求缓存起来,等待webframe刷新token后再统一请求!
return
_tableHandle__WEBPACK_IMPORTED_MODULE_1__
.
default
.
hand401Meaage
(
error
.
response
.
config
)
// 这是一个promise
}
else
{
return
error
}
}
)
axios__WEBPACK_IMPORTED_MODULE_0___default
().
interceptors
.
request
.
use
(
async
config
=>
{
config
.
headers
[
'Authorization'
]
=
sessionStorage
[
'token'
]
return
config
},
err
=>
{
return
err
}
)
}
}
/* harmony default export */
const
__WEBPACK_DEFAULT_EXPORT__
=
(
new
InterceptorsAxiosToken
());
/***/
}),
/* 7 */
/***/
((
module
,
__unused_webpack_exports
,
__nested_webpack_require_7427__
)
=>
{
module
.
exports
=
__nested_webpack_require_7427__
(
8
);
/***/
}),
/* 8 */
/***/
((
module
,
__unused_webpack_exports
,
__nested_webpack_require_7556__
)
=>
{
"use strict"
;
var
utils
=
__nested_webpack_require_7556__
(
9
);
var
bind
=
__nested_webpack_require_7556__
(
10
);
var
Axios
=
__nested_webpack_require_7556__
(
11
);
var
mergeConfig
=
__nested_webpack_require_7556__
(
29
);
var
defaults
=
__nested_webpack_require_7556__
(
17
);
/**
* Create an instance of Axios
*
* @param {Object} defaultConfig The default config for the instance
* @return {Axios} A new instance of Axios
*/
function
createInstance
(
defaultConfig
)
{
var
context
=
new
Axios
(
defaultConfig
);
var
instance
=
bind
(
Axios
.
prototype
.
request
,
context
);
// Copy axios.prototype to instance
utils
.
extend
(
instance
,
Axios
.
prototype
,
context
);
// Copy context to instance
utils
.
extend
(
instance
,
context
);
return
instance
;
}
}
// Create the default instance to be exported
// Create the default instance to be exported
...
@@ -21994,13 +21716,305 @@ class TypeObject {
...
@@ -21994,13 +21716,305 @@ class TypeObject {
.
default
;
.
default
;
});
});
/***/
}),
/* 29 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
30
);
// 单据流类
class
Billflow
{
constructor
(
requestClient
)
{
this
.
requestClient
=
requestClient
this
.
moduleName
=
'BillflowModule'
}
billHandleCommon
(
obj
)
{
const
{
data
,
type
}
=
obj
let
url
=
''
switch
(
type
)
{
case
'billAudit'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
AUDIT_BILLS
}
`
break
case
'billUnAudit'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
UN_AUDIT_BILLS
}
`
break
case
'billSend'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
SEND_BILLS
}
`
break
case
'billUnSend'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
UN_SEND_BILLS
}
`
break
case
'billClose'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
CLOSE_BILLS
}
`
break
case
'billUnClose'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
UN_CLOSE_BILLS
}
`
break
case
'billReject'
:
url
=
`
${
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
REJECT_BILLS
}
`
break
}
return
this
.
requestClient
.
post
(
url
,
data
)
}
}
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
Billflow
);
/***/
}),
/* 30 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony export */
__webpack_require__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"WEB_QUERY"
:
function
()
{
return
/* binding */
WEB_QUERY
;
},
/* harmony export */
"WEB_QUERY_QUERY"
:
function
()
{
return
/* binding */
WEB_QUERY_QUERY
;
},
/* harmony export */
"WEB_QUERY_QUERY_VALUE"
:
function
()
{
return
/* binding */
WEB_QUERY_QUERY_VALUE
;
},
/* harmony export */
"WEB_QUERY_PAGE"
:
function
()
{
return
/* binding */
WEB_QUERY_PAGE
;
},
/* harmony export */
"SQL_GQL"
:
function
()
{
return
/* binding */
SQL_GQL
;
},
/* harmony export */
"SQL_GQL_SAVE"
:
function
()
{
return
/* binding */
SQL_GQL_SAVE
;
},
/* harmony export */
"TOOL_API"
:
function
()
{
return
/* binding */
TOOL_API
;
},
/* harmony export */
"AUDIT_BILLS"
:
function
()
{
return
/* binding */
AUDIT_BILLS
;
},
/* harmony export */
"UN_AUDIT_BILLS"
:
function
()
{
return
/* binding */
UN_AUDIT_BILLS
;
},
/* harmony export */
"CLOSE_BILLS"
:
function
()
{
return
/* binding */
CLOSE_BILLS
;
},
/* harmony export */
"UN_CLOSE_BILLS"
:
function
()
{
return
/* binding */
UN_CLOSE_BILLS
;
},
/* 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 */
});
/* harmony import */
var
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
31
);
const
WEB_QUERY
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_query/`
const
WEB_QUERY_QUERY
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_query/query/`
const
WEB_QUERY_QUERY_VALUE
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_query/query_value/`
const
WEB_QUERY_PAGE
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/web_chart_config/query_page/`
const
SQL_GQL
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
GQL_PROXY
}
/sql_gql/`
const
SQL_GQL_SAVE
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
GQL_PROXY
}
/sql_gql/save/`
const
TOOL_API
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_PROXY
}
/api/`
// 单据流
const
AUDIT_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/audit_bills/`
const
UN_AUDIT_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/un_audit_bills/`
const
CLOSE_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/close_bills/`
const
UN_CLOSE_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/un_close_bills/`
const
SEND_BILLS
=
`
${
_commonProxy__WEBPACK_IMPORTED_MODULE_0__
.
COMMON_UTIL_PROXY
}
/send_bills/`
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/`
/***/
}),
/* 31 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony export */
__webpack_require__
.
d
(
__webpack_exports__
,
{
/* harmony export */
"OAUTH_PROXY"
:
function
()
{
return
/* binding */
OAUTH_PROXY
;
},
/* harmony export */
"TOOL_PROXY"
:
function
()
{
return
/* binding */
TOOL_PROXY
;
},
/* harmony export */
"HSRIGHT_TOOL_PROXY"
:
function
()
{
return
/* binding */
HSRIGHT_TOOL_PROXY
;
},
/* harmony export */
"COMMON_UTIL_PROXY"
:
function
()
{
return
/* binding */
COMMON_UTIL_PROXY
;
},
/* harmony export */
"COMMON_PROXY"
:
function
()
{
return
/* binding */
COMMON_PROXY
;
},
/* harmony export */
"GQL_PROXY"
:
function
()
{
return
/* binding */
GQL_PROXY
;
},
/* harmony export */
"FILE_RESOURCE_PROXY"
:
function
()
{
return
/* binding */
FILE_RESOURCE_PROXY
;
}
/* harmony export */
});
const
OAUTH_PROXY
=
'OAUTH_PROXY'
// `http://${api}/HSRight/api/`
const
TOOL_PROXY
=
'TOOL_PROXY'
// `http://${api}/Tool/api/`
const
HSRIGHT_TOOL_PROXY
=
'HSRIGHT_TOOL_PROXY'
// `http://${api}/HSRightTool/api/`
const
COMMON_UTIL_PROXY
=
'COMMON_UTIL_PROXY'
// `http://${api}/CommonUtil/api/`
const
COMMON_PROXY
=
'COMMON_PROXY'
// `http://${api}/`
const
GQL_PROXY
=
'GQL_PROXY'
// `http://${api}/GQL/api/`
const
FILE_RESOURCE_PROXY
=
'FILE_RESOURCE_PROXY'
// `http://${api}/fileresource/api/`
/***/
}),
/* 32 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
30
);
/* harmony import */
var
hs_util_js__WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
28
);
/* harmony import */
var
hs_util_js__WEBPACK_IMPORTED_MODULE_1___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
hs_util_js__WEBPACK_IMPORTED_MODULE_1__
);
const
urlParam
=
hs_util_js__WEBPACK_IMPORTED_MODULE_1___default
().
SystemModule
.
getUrlParams
()
class
Control
{
constructor
(
requestClient
)
{
this
.
requestClient
=
requestClient
this
.
moduleName
=
'WebChartConfigModule'
}
// 处理传入的data 如果有appCode,pageName dbName
packParamHandle
(
parms
=
{})
{
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
userId
,
configType
}
=
parms
if
(
!
appCode
)
{
parms
.
appCode
=
this
.
requestClient
.
appCode
//|| urlParam.appCode
}
if
(
!
pageName
)
{
parms
.
pageName
=
this
.
requestClient
.
pageName
//|| urlParam.pageName
}
if
(
!
dbName
)
{
parms
.
dbName
=
urlParam
.
dbName
||
''
}
if
(
!
dbCode
)
{
parms
.
dbCode
=
urlParam
.
dbCode
||
''
}
if
(
!
userId
)
{
parms
.
userId
=
-
1
}
if
(
!
configType
&&
configType
!==
0
)
{
parms
.
configType
=
-
2
}
}
// 保存控件配置
/**
* sAppCode:页面appCode
* sPage:页面名称
* sControl:控件名称
* sControlType: 类型
* sQuerySql: sql语句
* bMockData: 是否是模拟数据
* iUserId:用户id
* db_name: 数据库名
* db_code:数据库code
* sConfig:控件配置
* sData: 数据
* @param {*} data
*/
webChartConfigSave
(
param
)
{
// routerParms: page路由 position位置 other参数, sConfig 配置json sData 数据json
this
.
packParamHandle
(
param
)
const
{
appCode
,
pageName
,
controlName
,
controlType
,
querySql
,
mockData
,
userId
,
dbName
,
dbCode
,
config
,
data
,
configType
}
=
param
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_Save @sAppCode='
${
appCode
}
',@sPage='
${
pageName
}
',@sControl='
${
controlName
}
',@sControlType='
${
controlType
||
''
}
',@sConfig=:sConfig,@sData=:sData,@sQuerySql='
${
querySql
||
''
}
',@bMockData='
${
mockData
||
''
}
',@iUserId='
${
userId
}
',@iConfigType='
${
configType
}
'`
,
db_name
:
dbName
||
this
.
requestClient
.
getDbName
(),
db_code
:
dbCode
,
param
:
{
sConfig
:
JSON
.
stringify
(
config
),
sData
:
JSON
.
stringify
(
data
)
}
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY
,
postData
)
}
// 查询配置
/**
* sAppCode:页面appCode
* sPage:页面名称
* sControl:控件名称
* sControlType: 类型
* sQuerySql: sql语句
* bMockData: 是否是模拟数据
* iUserId:用户id
* db_name: 数据库名
* db_code:数据库code
* sConfig:控件配置
* sData: 数据
* @param {*} data
*/
webChartConfigQuery
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
controlName
,
userId
,
dbName
,
dbCode
,
configType
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_Query @sAppCode='
${
appCode
}
',@sPage='
${
pageName
}
',@sControl='
${
controlName
}
',@iUserId='
${
userId
}
',@iConfigType='
${
configType
}
'`
,
db_name
:
dbName
||
this
.
requestClient
.
getDbName
(),
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
// 获取将要另存到本地的配置
webChartConfigSaveAs
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_SaveAs @sAppCode='
${
appCode
}
',@sPage='
${
pageName
}
'`
,
db_name
:
dbName
||
this
.
requestClient
.
getDbName
(),
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY_VALUE
,
postData
)
}
// 另存配置
async
saveAsDataToLocal
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
}
=
data
const
res
=
await
this
.
webChartConfigSaveAs
(
data
)
if
(
!
res
)
return
this
.
download
(
`spappWebChartConfig_Upgrade_
${
appCode
}
_
${
pageName
}
.sql`
,
res
.
data
)
}
download
(
name
,
data
)
{
var
urlObject
=
window
.
URL
||
window
.
webkitURL
||
window
var
downloadData
=
new
Blob
([
data
])
var
save_link
=
document
.
createElementNS
(
'http://www.w3.org/1999/xhtml'
,
'a'
)
save_link
.
href
=
urlObject
.
createObjectURL
(
downloadData
)
save_link
.
download
=
name
this
.
fake_click
(
save_link
)
}
fake_click
(
obj
)
{
var
ev
=
document
.
createEvent
(
'MouseEvents'
)
ev
.
initMouseEvent
(
'click'
,
true
,
false
,
window
,
0
,
0
,
0
,
0
,
0
,
false
,
false
,
false
,
false
,
0
,
null
)
obj
.
dispatchEvent
(
ev
)
}
// 直接执行sql语句
execSql
(
data
)
{
this
.
packParamHandle
(
data
=
{})
const
{
execSql
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
execSql
,
db_name
:
dbName
||
this
.
requestClient
.
getDbName
(),
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigQueryLog
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
controlName
,
dbName
,
dbCode
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_QueryLog @sAppCode='
${
appCode
}
',@sPageName='
${
pageName
}
',@sControlName='
${
controlName
}
'`
,
db_name
:
dbName
||
this
.
requestClient
.
getDbName
(),
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_QUERY
,
postData
)
}
webChartConfigRevert
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
appCode
,
pageName
,
dbName
,
dbCode
,
controlName
,
version
}
=
data
const
postData
=
{
exec_sql
:
`EXEC dbo.spappWebChartConfig_Revert @sAppCode='
${
appCode
}
',@sPageName='
${
pageName
}
',@sControlName='
${
controlName
}
',@iVersion='
${
version
}
'`
,
db_name
:
dbName
||
this
.
requestClient
.
getDbName
(),
db_code
:
dbCode
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY
,
postData
)
}
// 控件配置查询
webControlQuery
(
data
=
{})
{
this
.
packParamHandle
(
data
)
const
{
dbName
,
pageName
,
param
,
appCode
,
controlName
,
returnType
,
dbCode
,
userId
,
configType
}
=
data
const
postData
=
{
db_name
:
dbName
||
this
.
requestClient
.
getDbName
(),
app_code
:
appCode
,
page
:
pageName
,
param
:
JSON
.
stringify
(
param
||
{}),
control_name
:
controlName
,
return_type
:
returnType
||
3
,
db_code
:
dbCode
,
user_id
:
userId
,
config_type
:
configType
}
return
this
.
requestClient
.
post
(
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
WEB_QUERY_PAGE
,
postData
)
}
}
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
Control
);
/***/
}),
/***/
}),
/* 33 */
/* 33 */
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
__unused_webpack_module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
29
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
30
);
class
RestFul
{
class
RestFul
{
constructor
(
requestClient
)
{
constructor
(
requestClient
)
{
...
@@ -22102,7 +22116,7 @@ class RestFul {
...
@@ -22102,7 +22116,7 @@ class RestFul {
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonProxy__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
3
0
);
/* harmony import */
var
_common_commonProxy__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
3
1
);
class
System
{
class
System
{
...
@@ -22180,7 +22194,7 @@ class System {
...
@@ -22180,7 +22194,7 @@ class System {
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
29
);
/* harmony import */
var
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
30
);
class
WebQuery
{
class
WebQuery
{
constructor
(
requestClient
)
{
constructor
(
requestClient
)
{
...
@@ -22203,7 +22217,7 @@ class WebQuery {
...
@@ -22203,7 +22217,7 @@ class WebQuery {
"use strict"
;
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_common_commonProxy__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
3
0
);
/* harmony import */
var
_common_commonProxy__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
3
1
);
class
Ref
{
class
Ref
{
...
...
dist/hsWebHttpClient.min.js
View file @
89d937ef
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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