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
813a9e56
Commit
813a9e56
authored
Mar 07, 2022
by
zqm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "1.Authorization优化,避免变量名字重复"
This reverts commit
57352cb3
.
parent
30e52ba5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
cancellation_grid.js
static/biz/cancellation_grid.js
+3
-3
declare_grid.js
static/biz/declare_grid.js
+4
-4
overdue_grid.js
static/biz/overdue_grid.js
+3
-3
No files found.
static/biz/cancellation_grid.js
View file @
813a9e56
...
...
@@ -30,8 +30,8 @@ function getInitTable() {
hideLoading
();
//el表达式变jq
// $("#token").attr("value","");
var
authorization_sbzj2
=
xhr
.
getResponseHeader
(
"Encryp
tion"
)
sessionStorage
.
setItem
(
"
authorization_sbzj2"
,
authorization_sbzj2
);
var
Authorization
=
xhr
.
getResponseHeader
(
"Authoriza
tion"
)
sessionStorage
.
setItem
(
"
Authorization"
,
Authorization
);
var
companyInfo
=
data
;
$
(
"#djxh"
).
attr
(
"value"
,
companyInfo
.
djxh
);
if
(
companyInfo
.
returnCode
==
"00"
)
{
...
...
@@ -354,7 +354,7 @@ function initPage(companyInfo) {
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
,
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
companyInfo
=
data
.
content
;
...
...
static/biz/declare_grid.js
View file @
813a9e56
...
...
@@ -28,8 +28,8 @@ function getInitTable() {
},
success
:
function
(
data
,
status
,
xhr
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
var
authorization_sbzj2
=
xhr
.
getResponseHeader
(
"Encryp
tion"
)
sessionStorage
.
setItem
(
"
authorization_sbzj2"
,
authorization_sbzj2
);
var
Authorization
=
xhr
.
getResponseHeader
(
"Authoriza
tion"
)
sessionStorage
.
setItem
(
"
Authorization"
,
Authorization
);
var
companyInfo
=
data
;
if
(
companyInfo
.
success
)
{
zjhm
=
companyInfo
.
bean
.
zjhm
...
...
@@ -93,7 +93,7 @@ function getJjkjTag(djxh, nsrsbq) {
type
:
"post"
,
url
:
config
.
url
+
"/online/zxtb/get_yffyjjkcbz"
,
dataType
:
"json"
,
// 请求方式为jsonp
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
// async: false
data
:
{
djxh
:
djxh
,
...
...
@@ -335,7 +335,7 @@ function initPage(companyInfo) {
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
,
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
if
(
data
.
bean
.
url
==
"error.jsp"
)
{
...
...
static/biz/overdue_grid.js
View file @
813a9e56
...
...
@@ -38,8 +38,8 @@ function getInitTable() {
hideLoading
();
//el表达式变jq
// $("#token").attr("value","");
var
authorization_sbzj2
=
xhr
.
getResponseHeader
(
"Encryp
tion"
)
sessionStorage
.
setItem
(
"
authorization_sbzj2"
,
authorization_sbzj2
);
var
Authorization
=
xhr
.
getResponseHeader
(
"Authoriza
tion"
)
sessionStorage
.
setItem
(
"
Authorization"
,
Authorization
);
var
companyInfo
=
data
;
$
(
"#djxh"
).
attr
(
"value"
,
companyInfo
.
djxh
);
if
(
companyInfo
.
success
)
{
...
...
@@ -360,7 +360,7 @@ function initPage(companyInfo) {
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
,
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
drawGrid
(
data
.
bean
);
...
...
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