Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
office
haoban-3
Commits
0186f589
Commit
0186f589
authored
Feb 16, 2022
by
crushh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/2月迭代' into dev
parents
1f02393b
d30be4c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
21 deletions
+6
-21
index.html
index.html
+2
-2
api.js
src/api/api.js
+3
-19
iphone2.png
src/assets/iphone2.png
+0
-0
contacts.vue
src/views/business/contacts.vue
+1
-0
salutatory.vue
src/views/enterprise/salutatory.vue
+0
-0
salutatorySet.vue
src/views/enterprise/salutatorySet.vue
+0
-0
No files found.
index.html
View file @
0186f589
...
...
@@ -14,8 +14,8 @@
<link
rel=
"shortcut icon"
href=
"./favicon.ico"
/>
<title>
好办管理平台
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.69.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//at.alicdn.com/t/font_1628375_
cl07xa4zqij
.css"
/>
<!--好办后台3.0-->
<script
src=
"//at.alicdn.com/t/font_1628375_
cl07xa4zqij
.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//at.alicdn.com/t/font_1628375_
b9ejwjvcr7
.css"
/>
<!--好办后台3.0-->
<script
src=
"//at.alicdn.com/t/font_1628375_
b9ejwjvcr7
.js"
></script>
</head>
<body
style=
"min-width: 1400px;"
class=
"damolish"
>
...
...
src/api/api.js
View file @
0186f589
...
...
@@ -66,17 +66,13 @@ Vue.axios.interceptors.response.use(
removePending
(
data
.
config
);
//在一个ajax响应后再执行一下取消操作,把已经完成的请求从pending中移除
// console.log(data);
if
(
data
.
status
&&
data
.
status
==
200
&&
data
.
data
.
errorCode
!=
1
)
{
// Message.error({message: data.data.message});
if
(
data
.
data
.
errorCode
==
4
)
{
if
(
window
.
location
.
href
.
indexOf
(
'gic-error'
)
!=
-
1
)
{
return
false
;
}
window
.
location
.
href
=
local
+
'/haoban-3/#/login'
;
}
/* if (data.data.errorCode == 3) {
Message.error({ message: data.data.message });
window.location.href = local + '/haoban-3/#/login';
} */
if
(
data
.
data
.
errorCode
==
10
||
data
.
data
.
errorCode
==
7
)
{
window
.
location
.
href
=
local
+
'/haoban-3/#/index'
;
}
...
...
@@ -85,22 +81,11 @@ Vue.axios.interceptors.response.use(
return
data
;
},
err
=>
{
// console.log(err, typeof err, err.response);
if
(
Vue
.
axios
.
isCancel
(
err
))
{
// console.log('请求取消');
}
if
(
err
.
response
.
status
==
502
)
{
window
.
location
.
href
=
local
+
'/haoban-3/#/login'
;
Message
.
error
({
message
:
'服务异常⊙﹏⊙∥'
});
}
// Message.error({message: err.response.message});
if
(
err
.
response
.
status
==
504
||
err
.
response
.
status
==
404
)
{
// window.location.href= local + "/haoban-3/#/login"
// Message.error({message: '服务异常⊙﹏⊙∥'});
}
else
if
(
err
.
response
.
status
==
403
)
{
// window.location.href= local + "/haoban-3/#/login"
// Message.error({message: '权限不足,请联系管理员!'});
}
else
{
if
(
err
.
response
.
status
!=
403
)
{
window
.
location
.
href
=
local
+
'/haoban-3/#/login'
;
Message
.
error
({
message
:
'登录失效!'
});
}
...
...
@@ -154,8 +139,7 @@ export const postJsonRequest = (url, params) => {
return
Vue
.
axios
({
method
:
'post'
,
url
:
`
${
local
}${
url
}
`
,
data
:
'{}'
,
params
:
params
,
data
:
params
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
//multipart/form-data{"token": token}
});
};
...
...
src/assets/iphone2.png
0 → 100644
View file @
0186f589
43.2 KB
src/views/business/contacts.vue
View file @
0186f589
...
...
@@ -363,6 +363,7 @@ export default {
}
return
father
.
parentDepartmentId
==
0
;
//返回第一层
});
console
.
log
(
tree
);
return
tree
;
},
/**
...
...
src/views/enterprise/salutatory.vue
View file @
0186f589
This diff is collapsed.
Click to expand it.
src/views/enterprise/salutatorySet.vue
View file @
0186f589
This diff is collapsed.
Click to expand it.
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