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
5dabb33c
Commit
5dabb33c
authored
Feb 15, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 附件样式
parent
95bbebf7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
33 deletions
+23
-33
api.js
src/api/api.js
+14
-25
iphone2.png
src/assets/iphone2.png
+0
-0
error.js
src/common/js/error.js
+4
-4
vue-office-header.vue
src/components/vue-office-header.vue
+1
-1
contacts.vue
src/views/business/contacts.vue
+1
-0
salutatory.vue
src/views/enterprise/salutatory.vue
+3
-3
salutatorySet.vue
src/views/enterprise/salutatorySet.vue
+0
-0
No files found.
src/api/api.js
View file @
5dabb33c
...
...
@@ -66,12 +66,12 @@ Vue.axios.interceptors.response.use(
removePending
(
data
.
config
);
//在一个ajax响应后再执行一下取消操作,把已经完成的请求从pending中移除
// console.log(data);
if
(
data
.
status
&&
data
.
status
==
200
&&
data
.
data
.
errorCode
!=
1
)
{
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 == 4) {
//
if (window.location.href.indexOf('gic-error') != -1) {
//
return false;
//
}
//
window.location.href = local + '/haoban-3/#/login';
//
}
if
(
data
.
data
.
errorCode
==
10
||
data
.
data
.
errorCode
==
7
)
{
window
.
location
.
href
=
local
+
'/haoban-3/#/index'
;
...
...
@@ -81,25 +81,14 @@ 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
{
window
.
location
.
href
=
local
+
'/haoban-3/#/login'
;
Message
.
error
({
message
:
'登录失效!'
});
}
// if (err.response.status == 502) {
// window.location.href = local + '/haoban-3/#/login';
// Message.error({ message: '服务异常⊙﹏⊙∥' });
// }
// if (err.response.status != 403) {
// window.location.href = local + '/haoban-3/#/login';
// Message.error({ message: '登录失效!' });
// }
return
Promise
.
resolve
(
err
);
}
);
...
...
src/assets/iphone2.png
0 → 100644
View file @
5dabb33c
43.2 KB
src/common/js/error.js
View file @
5dabb33c
...
...
@@ -17,10 +17,10 @@ export default {
local = 'http://www.gicdev.com';
} */
if
(
response
.
errorCode
!=
1
)
{
if
(
response
.
errorCode
==
4
)
{
window
.
location
.
href
=
local
+
'/haoban-3/#/login'
;
return
false
;
}
//
if (response.errorCode == 4) {
//
window.location.href = local + '/haoban-3/#/login';
//
return false;
//
}
if
(
response
.
errorCode
==
10
)
{
window
.
location
.
href
=
local
+
'/haoban-3/#/index'
;
return
false
;
...
...
src/components/vue-office-header.vue
View file @
5dabb33c
...
...
@@ -224,7 +224,7 @@ export default {
type
:
'success'
});
// 跳转登录页
window
.
location
.
href
=
window
.
location
.
origin
+
'/haoban-3/#/login'
;
//
window.location.href = window.location.origin + '/haoban-3/#/login';
return
;
}
that
.
$message
.
error
({
...
...
src/views/business/contacts.vue
View file @
5dabb33c
...
...
@@ -363,6 +363,7 @@ export default {
}
return
father
.
parentDepartmentId
==
0
;
//返回第一层
});
console
.
log
(
tree
);
return
tree
;
},
/**
...
...
src/views/enterprise/salutatory.vue
View file @
5dabb33c
...
...
@@ -52,7 +52,7 @@
<el-table-column
prop=
"suitDepartmentName"
label=
"适用范围"
width=
"120"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"180"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"changeRoute(row)"
>
编辑
</el-button>
<el-button
type=
"text"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -193,8 +193,8 @@ export default {
/**
* 跳转
*/
changeRoute
()
{
this
.
$router
.
push
(
'/salutatorySet'
);
changeRoute
(
row
)
{
this
.
$router
.
push
(
{
path
:
'/salutatorySet'
,
query
:
{
id
:
row
.
welcomeId
}
}
);
},
/**
...
...
src/views/enterprise/salutatorySet.vue
View file @
5dabb33c
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