Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
59ded045
authored
2022-11-08 14:46:52 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:loading
1 parent
dca5777f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
src/utils/request.js
src/views/sqcx/sqcxjl/sqcxjl.vue
src/utils/request.js
View file @
59ded04
...
...
@@ -12,11 +12,6 @@ const service = axios.create({
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
,
'Authorization'
:
'bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6'
//token列表
//'Authorization': 'bearer AT-12-eRKHta5I8ZWftIU86sSyJ8rUkPhMvMJU'
//renc:bearer AT-30-KHB4LXc8-CZXwBEyaFJa9lRmMTc5sHVI
//tianh:bearer AT-33-3zFTGkhQ4eUv4nXvzAmbgN5RPZppzEY6
//zhangh:bearer AT-7-Tx8dlZH0LNRc33UjD1CX1xwa-1D7kQmQ
},
timeout
:
15000
})
...
...
@@ -24,7 +19,8 @@ const service = axios.create({
// request interceptor
service
.
interceptors
.
request
.
use
(
config
=>
{
if
(
config
.
headers
.
showLoading
!==
false
)
{
// config.headers.showLoading !== false
if
(
config
.
headers
.
target
)
{
startLoadingAddCount
(
config
.
headers
.
loadingTarget
?
config
.
headers
.
loadingTarget
:
'正在加载中...'
,
config
.
headers
.
target
?
config
.
headers
.
target
:
'body'
);
}
...
...
@@ -34,7 +30,8 @@ service.interceptors.request.use(
return
config
},
error
=>
{
if
(
error
.
headers
.
showLoading
!==
false
)
{
// error.headers.showLoading !== false
if
(
error
.
headers
.
target
)
{
endLoadingSubCount
(
config
.
headers
.
loadingTarget
?
config
.
headers
.
loadingTarget
:
'正在加载中...'
,
config
.
headers
.
target
?
config
.
headers
.
target
:
'body'
);
}
...
...
src/views/sqcx/sqcxjl/sqcxjl.vue
View file @
59ded04
...
...
@@ -61,7 +61,6 @@ export default {
queryClick
()
{
this
.
fetchData
();
},
// 初始化数据
fetchData
()
{
...
...
@@ -74,7 +73,6 @@ export default {
handleSort
(
name
,
sort
)
{
console
.
log
(
name
,
sort
);
},
// 查看
handleViewClick
(
scope
)
{
var
sqcxBsm
=
scope
.
row
.
bsmSqcx
;
...
...
@@ -91,10 +89,10 @@ export default {
confirm
:
function
()
{
// that.loadBdcdylist();
},
//确认事件的回调
})
;
}
,
}
,
}
;
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/public.scss"
;
...
...
Please
register
or
sign in
to post a comment