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
abcdb447
authored
2023-08-16 15:17:32 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:全局修改
1 parent
83d5ddee
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
14 deletions
src/utils/request.js
src/views/registerBook/djbFrame.vue
src/views/ywbl/ywsq/components/cfdj.vue
src/utils/request.js
View file @
abcdb44
...
...
@@ -2,7 +2,7 @@
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-0
7-21 10:30:53
* @LastEditTime: 2023-0
8-16 15:16:49
*/
import
axios
from
'axios'
import
Router
from
'@/router'
...
...
@@ -54,10 +54,10 @@ service.interceptors.response.use(
*/
if
(
response
.
status
==
200
)
{
return
response
.
data
;
}
else
if
(
response
.
status
==
2002
)
{
}
else
if
(
response
.
status
==
2002
)
{
Message
.
error
(
response
.
message
);
}
else
{
handleErrorData
(
response
.
data
);
}
else
{
handleErrorData
(
response
.
status
);
}
return
response
;
},
...
...
@@ -97,10 +97,7 @@ service.interceptors.response.use(
)
//对错误信息的处理函数
function
handleErrorData
(
errMes
)
{
if
(
errMes
.
message
)
{
Message
.
error
(
errMes
.
message
);
}
else
{
switch
(
errMes
.
code
)
{
switch
(
errMes
)
{
case
401
:
Message
.
error
(
"未授权,请重新登录!"
);
break
;
...
...
@@ -117,7 +114,6 @@ function handleErrorData (errMes) {
Message
.
error
(
"服务正在联调中,请稍后!"
);
break
;
}
}
}
export
default
service
...
...
src/views/registerBook/djbFrame.vue
View file @
abcdb44
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-1
5 10:57:30
* @LastEditTime: 2023-08-1
6 15:00:12
-->
<
template
>
<div
class=
"content"
>
...
...
@@ -46,7 +46,6 @@
},
methods
:
{
getBdcdyh
(
val
)
{
console
.
log
(
val
,
';222222222222'
);
// this.loadData(val);
},
/**
...
...
@@ -65,6 +64,8 @@
this
.
$refs
.
tree
.
setCurrentKey
(
this
.
defaultNode
.
id
);
//data[0].id为默认选中的节点
this
.
loadComponent
(
this
.
defaultNode
.
form
);
})
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
})
this
.
currentSelectProps
=
{
...
...
@@ -90,7 +91,6 @@
* @author: renchao
*/
loadComponent
(
form
)
{
console
.
log
(
form
,
'form'
);
this
.
componentTag
=
(
r
)
=>
require
.
ensure
([],
()
=>
r
(
require
(
"@/views/registerBook/"
+
form
)))
}
...
...
src/views/ywbl/ywsq/components/cfdj.vue
View file @
abcdb44
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-
02 09:53:35
* @LastEditTime: 2023-08-
16 14:59:46
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -239,7 +239,6 @@
* @author: miaofang
*/
openBook
(
row
)
{
console
.
log
(
"的急急急急急急"
);
var
param
=
{
bdcdyid
:
row
.
bdcdyid
,
qllx
:
row
.
qllx
,
...
...
Please
register
or
sign in
to post a comment