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
57352cb3
Commit
57352cb3
authored
Mar 01, 2022
by
zqm
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.Authorization优化,避免变量名字重复
parent
9b20ea5d
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 @
57352cb3
...
@@ -30,8 +30,8 @@ function getInitTable() {
...
@@ -30,8 +30,8 @@ function getInitTable() {
hideLoading
();
hideLoading
();
//el表达式变jq
//el表达式变jq
// $("#token").attr("value","");
// $("#token").attr("value","");
var
Authorization
=
xhr
.
getResponseHeader
(
"Authoriza
tion"
)
var
authorization_sbzj2
=
xhr
.
getResponseHeader
(
"Encryp
tion"
)
sessionStorage
.
setItem
(
"
Authorization"
,
Authorization
);
sessionStorage
.
setItem
(
"
authorization_sbzj2"
,
authorization_sbzj2
);
var
companyInfo
=
data
;
var
companyInfo
=
data
;
$
(
"#djxh"
).
attr
(
"value"
,
companyInfo
.
djxh
);
$
(
"#djxh"
).
attr
(
"value"
,
companyInfo
.
djxh
);
if
(
companyInfo
.
returnCode
==
"00"
)
{
if
(
companyInfo
.
returnCode
==
"00"
)
{
...
@@ -354,7 +354,7 @@ function initPage(companyInfo) {
...
@@ -354,7 +354,7 @@ function initPage(companyInfo) {
data
:
param
,
data
:
param
,
type
:
"POST"
,
type
:
"POST"
,
dataType
:
"JSON"
,
dataType
:
"JSON"
,
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
}).
done
(
function
(
data
)
{
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
if
(
data
.
success
)
{
companyInfo
=
data
.
content
;
companyInfo
=
data
.
content
;
...
...
static/biz/declare_grid.js
View file @
57352cb3
...
@@ -29,8 +29,8 @@ function getInitTable() {
...
@@ -29,8 +29,8 @@ function getInitTable() {
},
},
success
:
function
(
data
,
status
,
xhr
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
success
:
function
(
data
,
status
,
xhr
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
hideLoading
();
var
Authorization
=
xhr
.
getResponseHeader
(
"Authoriza
tion"
)
var
authorization_sbzj2
=
xhr
.
getResponseHeader
(
"Encryp
tion"
)
sessionStorage
.
setItem
(
"
Authorization"
,
Authorization
);
sessionStorage
.
setItem
(
"
authorization_sbzj2"
,
authorization_sbzj2
);
var
companyInfo
=
data
;
var
companyInfo
=
data
;
if
(
companyInfo
.
success
)
{
if
(
companyInfo
.
success
)
{
operateType
=
companyInfo
.
bean
.
operateType
;
operateType
=
companyInfo
.
bean
.
operateType
;
...
@@ -96,7 +96,7 @@ function getJjkjTag(djxh, nsrsbq) {
...
@@ -96,7 +96,7 @@ function getJjkjTag(djxh, nsrsbq) {
type
:
"post"
,
type
:
"post"
,
url
:
config
.
url
+
"/online/zxtb/get_yffyjjkcbz"
,
url
:
config
.
url
+
"/online/zxtb/get_yffyjjkcbz"
,
dataType
:
"json"
,
// 请求方式为jsonp
dataType
:
"json"
,
// 请求方式为jsonp
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
// async: false
// async: false
data
:
{
data
:
{
djxh
:
djxh
,
djxh
:
djxh
,
...
@@ -338,7 +338,7 @@ function initPage(companyInfo) {
...
@@ -338,7 +338,7 @@ function initPage(companyInfo) {
data
:
param
,
data
:
param
,
type
:
"POST"
,
type
:
"POST"
,
dataType
:
"JSON"
,
dataType
:
"JSON"
,
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
}).
done
(
function
(
data
)
{
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
if
(
data
.
success
)
{
if
(
data
.
bean
.
url
==
"error.jsp"
)
{
if
(
data
.
bean
.
url
==
"error.jsp"
)
{
...
...
static/biz/overdue_grid.js
View file @
57352cb3
...
@@ -38,8 +38,8 @@ function getInitTable() {
...
@@ -38,8 +38,8 @@ function getInitTable() {
hideLoading
();
hideLoading
();
//el表达式变jq
//el表达式变jq
// $("#token").attr("value","");
// $("#token").attr("value","");
var
Authorization
=
xhr
.
getResponseHeader
(
"Authoriza
tion"
)
var
authorization_sbzj2
=
xhr
.
getResponseHeader
(
"Encryp
tion"
)
sessionStorage
.
setItem
(
"
Authorization"
,
Authorization
);
sessionStorage
.
setItem
(
"
authorization_sbzj2"
,
authorization_sbzj2
);
var
companyInfo
=
data
;
var
companyInfo
=
data
;
$
(
"#djxh"
).
attr
(
"value"
,
companyInfo
.
djxh
);
$
(
"#djxh"
).
attr
(
"value"
,
companyInfo
.
djxh
);
if
(
companyInfo
.
success
)
{
if
(
companyInfo
.
success
)
{
...
@@ -360,7 +360,7 @@ function initPage(companyInfo) {
...
@@ -360,7 +360,7 @@ function initPage(companyInfo) {
data
:
param
,
data
:
param
,
type
:
"POST"
,
type
:
"POST"
,
dataType
:
"JSON"
,
dataType
:
"JSON"
,
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
Authorization
"
)
},
headers
:
{
'Authorization'
:
sessionStorage
.
getItem
(
"
authorization_sbzj2
"
)
},
}).
done
(
function
(
data
)
{
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
if
(
data
.
success
)
{
drawGrid
(
data
.
bean
);
drawGrid
(
data
.
bean
);
...
...
周琦梦
@zhouqimeng
mentioned in commit
813a9e56
·
Mar 07, 2022
mentioned in commit
813a9e56
mentioned in commit 813a9e568097edd53c2c04ab7de65792d31a8c83
Toggle commit list
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