Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zxtb_to_ssfwpt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Bugzilla
Bugzilla
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
卢世豪
zxtb_to_ssfwpt
Commits
5ec66ada
Commit
5ec66ada
authored
Sep 28, 2020
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件修改;添加一事一评
parent
5b6b21e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
+37
-4
config.js
static/config.js
+4
-4
result.js
static/js/tax/result.js
+33
-0
No files found.
static/config.js
View file @
5ec66ada
...
@@ -13,7 +13,7 @@ function getUrlParam (name) {
...
@@ -13,7 +13,7 @@ function getUrlParam (name) {
}
}
// 公共配置 生产环境
// 公共配置 生产环境
var
config
=
{
var
config
=
{
environmental
:
"
production
"
,
//production 生产 test 测试
environmental
:
"
test
"
,
//production 生产 test 测试
webUrl
:
"/web/onlineReport/jsp/"
,
// 预生产环境解开
webUrl
:
"/web/onlineReport/jsp/"
,
// 预生产环境解开
url
:
""
,
// 开发环境配置跨域设置 // 开发环境
url
:
""
,
// 开发环境配置跨域设置 // 开发环境
spreadUrl
:
"http://sbjs.tjsat.gov.cn"
,
// 局端生产 值为空 其余全部指向在线的域名
spreadUrl
:
"http://sbjs.tjsat.gov.cn"
,
// 局端生产 值为空 其余全部指向在线的域名
...
@@ -30,6 +30,6 @@ var config = {
...
@@ -30,6 +30,6 @@ var config = {
value:'',//加密token
value:'',//加密token
}*/
}*/
if
(
config
.
environmental
==
"production"
&&
getUrlParam
(
"djxh"
)){
//
if(config.environmental=="production" && getUrlParam("djxh")){
window
.
open
(
config
.
webUrl
+
"/error/newError.html"
,
'_self'
)
//
window.open(config.webUrl + "/error/newError.html",'_self')
}
//
}
static/js/tax/result.js
View file @
5ec66ada
...
@@ -1382,6 +1382,10 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
...
@@ -1382,6 +1382,10 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
}
else
{
// 申报校验未通过
}
else
{
// 申报校验未通过
saveResultHandler
(
data
,
operateType
,
isZcfxtx
);
saveResultHandler
(
data
,
operateType
,
isZcfxtx
);
}
}
if
(
data
.
bean
.
hcpResponse
&&
data
.
bean
.
hcpResponse
.
responseBean
){
var
responseBean
=
data
.
bean
.
hcpResponse
.
responseBean
ysypReview
(
JSON
.
parse
(
responseBean
))
//调用好差评 一事一评
}
}
}
}
else
{
}
else
{
hideLoading
();
hideLoading
();
...
@@ -2430,4 +2434,33 @@ function resolvePostData(flatAllData) {
...
@@ -2430,4 +2434,33 @@ function resolvePostData(flatAllData) {
delete
newData
.
jbxx
;
delete
newData
.
jbxx
;
delete
newData
.
jmxz
;
delete
newData
.
jmxz
;
return
JSON
.
stringify
(
newData
);
return
JSON
.
stringify
(
newData
);
}
// add 20200928 lmz 好差评 一事一评
function
ysypReview
(
hcpResponse
)
{
var
$eleForm
=
$
(
"<form id='hcpForm' method='post' target='_blank'></form>"
);
$eleForm
.
attr
(
"action"
,
hcpResponse
.
url
);
$
(
document
.
body
).
append
(
$eleForm
);
var
dsfxtDm
=
$
(
"<input>"
);
//创建input标签
dsfxtDm
.
attr
(
"type"
,
"hidden"
);
//设置隐藏域
dsfxtDm
.
attr
(
"name"
,
"dsfxtDm"
);
//设置发送后台数据的参数名
dsfxtDm
.
attr
(
"value"
,
hcpResponse
.
dsfxtDm
);
$
(
"#hcpForm"
).
append
(
dsfxtDm
);
var
sn
=
$
(
"<input>"
);
//创建input标签
sn
.
attr
(
"type"
,
"hidden"
);
//设置隐藏域
sn
.
attr
(
"name"
,
"sn"
);
//设置发送后台数据的参数名
sn
.
attr
(
"value"
,
hcpResponse
.
sn
);
$
(
"#hcpForm"
).
append
(
sn
);
var
data
=
$
(
"<input>"
);
//创建input标签
data
.
attr
(
"type"
,
"hidden"
);
//设置隐藏域
data
.
attr
(
"name"
,
"sn"
);
//设置发送后台数据的参数名
data
.
attr
(
"value"
,
hcpResponse
.
data
);
$
(
"#hcpForm"
).
append
(
data
);
// 提交表单,实现下载
try
{
$eleForm
.
submit
();
}
catch
(
e
)
{
window
.
open
(
config
.
webUrl
+
"/error/newError.html"
,
'_self'
)
}
$
(
"#hcpForm"
).
remove
();
}
}
\ No newline at end of file
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