Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fb8d001f
authored
May 28, 2020
by
lishengfu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
udpate
parent
fd70340e
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
728 additions
and
283 deletions
.env.development
.env.production
.env.staging
src/components/archives/contactInfo.vue
src/components/archives/eduExperience.vue
src/components/archives/personInfo.vue
src/components/archives/socialInfo.vue
src/components/archives/technologyExperience.vue
src/components/archives/wageCardInfo.vue
src/components/archives/workExperience.vue
src/components/archives/workInfo.vue
src/router/employee/employee-router.ts
src/services/employee/employeeService.ts
src/servicesImpl/employee/employeeImpl.ts
src/types/index.ts
src/utils/http.ts
src/utils/method.ts
src/views/Archives.vue
.env.development
View file @
fb8d001f
VUE_APP_OIDC_CONFIG = '{ "authority": "http://106.120.107.150:5000", "client_id": "teamix-personal-center-web-pc", "client_secret": "123456", "redirect_uri": "http://localhost:8080/callback.html", "response_type": "id_token token", "scope": "openid workapps.client api.workapps.user","post_logout_redirect_uri":"http://localhost:8080", "silent_redirect_uri": "http://localhost:8080/silent-renew.html", "automaticSilentRenew": true,"accessTokenExpiringNotificationTime":60,"filterProtocolClaims":true,"loadUserInfo":true,"loadUserInfo":true }'
VUE_APP_BASE_URL= "http://
106.120.107.150:8090
"
VUE_APP_BASE_URL= "http://
organization.test.hrs100.cn:18080/
"
# https开关
VUE_APP_OPEN_HTTPS=false
.env.production
View file @
fb8d001f
VUE_APP_OIDC_CONFIG = '{ "authority": "https://passport.teammix.com", "client_id": "qqxb-activity-web-mobile", "client_secret": "qqxb#teammix#2019", "redirect_uri": "https://invite.activity.h5.hrs100.com/callback.html", "response_type": "id_token token", "scope": "workapps.client api.workapps.user api.workapps.org api.workapps.open openid","post_logout_redirect_uri":"https://invite.activity.h5.hrs100.com", "silent_redirect_uri": "https://invite.activity.h5.hrs100.com/silent-renew-oidc.html", "automaticSilentRenew": true,"accessTokenExpiringNotificationTime":60,"filterProtocolClaims":true,"loadUserInfo":true }'
VUE_APP_API_BASEURL = 'https://apiplus.qinqinxiaobao.com/v1/qqxb/user/api'
#
VUE_APP_API_BASEURL = 'https://apiplus.qinqinxiaobao.com/v1/qqxb/user/api'
.env.staging
View file @
fb8d001f
VUE_APP_OIDC_CONFIG = '{ "authority": "http://106.120.107.150:5000", "client_id": "qqxb-activity-web-mobile", "client_secret": "123456", "redirect_uri": "http://106.120.107.150:7774/callback.html", "response_type": "id_token token", "scope": "workapps.client api.workapps.user api.workapps.org api.workapps.open openid","post_logout_redirect_uri":"http://106.120.107.150:7774", "silent_redirect_uri": "http://106.120.107.150:7774/silent-renew-oidc.html", "automaticSilentRenew": true,"automaticSilentSignin":true,"accessTokenExpiringNotificationTime":60,"filterProtocolClaims":true,"loadUserInfo":true }'
VUE_APP_API_BASEURL = 'http://106.120.107.145:7778/v1/qqxb/user/api'
#
VUE_APP_API_BASEURL = 'http://106.120.107.145:7778/v1/qqxb/user/api'
src/components/archives/contactInfo.vue
View file @
fb8d001f
<
template
>
<div
class=
"content"
>
<div
class=
"header"
>
<div
class=
"tip"
></div>
<div
class=
"title"
>
联系信息
</div>
</div>
<div
class=
"box"
>
<div
class=
"item"
>
<span>
手机号码
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
固定电话
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
紧急联系电话
</span>
<label>
福国际大厦A座88层市场推广专员2019-11-22
</label>
</div>
<div
class=
"item"
>
<span>
邮政编码
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
婚姻状况
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
户口所在地
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
现居住地
</span>
<label></label>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
// import { Button } from 'vant';
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
// components:{
// // [Cell.name]: Cell,
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
</
script
>
<
style
lang=
"less"
scoped
>
.content
{
margin-top
:
10px
;
.header
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.tip
{
width
:
3px
;
height
:
16px
;
background
:
rgba
(
34
,
189
,
122
,
1
);
}
.title
{
margin-left
:
17px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
}
.box
{
margin
:
0
20px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
align-items
:
center
;
span
{
min-width
:
98px
;
display
:
block
;
font-size
:
14px
;
color
:
rgba
(
149
,
152
,
158
,
1
);
line-height
:
30px
;
text-align
:
right
;
margin-bottom
:
auto
;
}
label
{
font-size
:
14px
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
30px
;
margin-left
:
20px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/archives/eduExperience.vue
View file @
fb8d001f
<
template
>
<div
class=
"content"
>
<div
class=
"header"
>
<div
class=
"tip"
></div>
<div
class=
"title"
>
教育经历
</div>
</div>
<div
class=
"box"
>
<div
class=
"item"
>
<span>
派遣公司
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
用工单位
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
工作地点
</span>
<label>
福国际大厦A座88层市场推广专员2019-11-22
</label>
</div>
<div
class=
"item"
>
<span>
工作职位
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
入职时间
</span>
<label></label>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
// import { Button } from 'vant';
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
// components:{
// // [Cell.name]: Cell,
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
</
script
>
<
style
lang=
"less"
scoped
>
.content
{
margin-top
:
10px
;
.header
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.tip
{
width
:
3px
;
height
:
16px
;
background
:
rgba
(
34
,
189
,
122
,
1
);
}
.title
{
margin-left
:
17px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
}
.box
{
margin
:
0
20px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
align-items
:
center
;
span
{
min-width
:
98px
;
display
:
block
;
font-size
:
14px
;
color
:
rgba
(
149
,
152
,
158
,
1
);
line-height
:
30px
;
text-align
:
right
;
margin-bottom
:
auto
;
}
label
{
font-size
:
14px
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
30px
;
margin-left
:
20px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/archives/personInfo.vue
View file @
fb8d001f
<
template
>
<div
class=
"content"
>
<div
class=
"header"
>
<div
class=
"tip"
></div>
<div
class=
"title"
>
个人信息
</div>
</div>
<div
class=
"box"
>
<div
class=
"item"
>
<span>
出生地
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
民族
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
政治面貌
</span>
<label>
福国际大厦A座88层市场推广专员2019-11-22
</label>
</div>
<div
class=
"item"
>
<span>
最高学历
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
婚姻状况
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
生育状况
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
档案所在地
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
开始工作时间
</span>
<label></label>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
// import { Button } from 'vant';
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
// components:{
// // [Cell.name]: Cell,
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
</
script
>
<
style
lang=
"less"
scoped
>
.content
{
margin-top
:
10px
;
.header
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.tip
{
width
:
3px
;
height
:
16px
;
background
:
rgba
(
34
,
189
,
122
,
1
);
}
.title
{
margin-left
:
17px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
}
.box
{
margin
:
0
20px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
align-items
:
center
;
span
{
min-width
:
98px
;
display
:
block
;
font-size
:
14px
;
color
:
rgba
(
149
,
152
,
158
,
1
);
line-height
:
30px
;
text-align
:
right
;
margin-bottom
:
auto
;
}
label
{
font-size
:
14px
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
30px
;
margin-left
:
20px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/archives/socialInfo.vue
View file @
fb8d001f
<
template
>
<div
class=
"content"
>
<div
class=
"header"
>
<div
class=
"tip"
></div>
<div
class=
"title"
>
个人信息
</div>
</div>
<div
class=
"box"
>
<div
class=
"item"
>
<span>
户口性质
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
前期社保状态
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
前期缴费种类
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
原社保缴纳省市
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
原社保缴纳单位
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
与原单位关系
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
前期就业状态
</span>
<label></label>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
// import { Button } from 'vant';
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
// components:{
// // [Cell.name]: Cell,
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
</
script
>
<
style
lang=
"less"
scoped
>
.content
{
margin-top
:
10px
;
.header
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.tip
{
width
:
3px
;
height
:
16px
;
background
:
rgba
(
34
,
189
,
122
,
1
);
}
.title
{
margin-left
:
17px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
}
.box
{
margin
:
0
20px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
align-items
:
center
;
span
{
min-width
:
98px
;
display
:
block
;
font-size
:
14px
;
color
:
rgba
(
149
,
152
,
158
,
1
);
line-height
:
30px
;
text-align
:
right
;
margin-bottom
:
auto
;
}
label
{
font-size
:
14px
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
30px
;
margin-left
:
20px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/archives/technologyExperience.vue
View file @
fb8d001f
<
template
>
<div
class=
"content"
>
<div
class=
"header"
>
<div
class=
"tip"
></div>
<div
class=
"title"
>
技术特长
</div>
</div>
<div
class=
"box"
>
<div
class=
"item"
>
<span>
技术特长
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
技术职称
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
资格证书
</span>
<label>
福国际大厦A座88层市场推广专员2019-11-22
</label>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
// import { Button } from 'vant';
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
// components:{
// // [Cell.name]: Cell,
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
</
script
>
<
style
lang=
"less"
scoped
>
.content
{
margin-top
:
10px
;
.header
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.tip
{
width
:
3px
;
height
:
16px
;
background
:
rgba
(
34
,
189
,
122
,
1
);
}
.title
{
margin-left
:
17px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
}
.box
{
margin
:
0
20px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
align-items
:
center
;
span
{
min-width
:
98px
;
display
:
block
;
font-size
:
14px
;
color
:
rgba
(
149
,
152
,
158
,
1
);
line-height
:
30px
;
text-align
:
right
;
margin-bottom
:
auto
;
}
label
{
font-size
:
14px
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
30px
;
margin-left
:
20px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/archives/wageCardInfo.vue
View file @
fb8d001f
<
template
>
<div
class=
"content"
>
<div
class=
"header"
>
<div
class=
"tip"
></div>
<div
class=
"title"
>
工资卡信息
</div>
</div>
<div
class=
"box"
>
<div
class=
"item"
>
<span>
账户姓名
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
银行名称
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
开户行
</span>
<label>
福国际大厦A座88层市场推广专员2019-11-22
</label>
</div>
<div
class=
"item"
>
<span>
银行卡号
</span>
<label></label>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
// import { Button } from 'vant';
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
// components:{
// // [Cell.name]: Cell,
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
</
script
>
<
style
lang=
"less"
scoped
>
.content
{
margin-top
:
10px
;
.header
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.tip
{
width
:
3px
;
height
:
16px
;
background
:
rgba
(
34
,
189
,
122
,
1
);
}
.title
{
margin-left
:
17px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
}
.box
{
margin
:
0
20px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
align-items
:
center
;
span
{
min-width
:
98px
;
display
:
block
;
font-size
:
14px
;
color
:
rgba
(
149
,
152
,
158
,
1
);
line-height
:
30px
;
text-align
:
right
;
margin-bottom
:
auto
;
}
label
{
font-size
:
14px
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
30px
;
margin-left
:
20px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/archives/workExperience.vue
View file @
fb8d001f
<
template
>
<div
class=
"content"
>
<div
class=
"header"
>
<div
class=
"tip"
></div>
<div
class=
"title"
>
工作经历
</div>
</div>
<div
class=
"box"
>
<div
class=
"item"
>
<span>
派遣公司
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
用工单位
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
工作地点
</span>
<label>
福国际大厦A座88层市场推广专员2019-11-22
</label>
</div>
<div
class=
"item"
>
<span>
工作职位
</span>
<label></label>
</div>
<div
class=
"item"
>
<span>
入职时间
</span>
<label></label>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
// import { Button } from 'vant';
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
// components:{
// // [Cell.name]: Cell,
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
</
script
>
<
style
lang=
"less"
scoped
>
.content
{
margin-top
:
10px
;
.header
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.tip
{
width
:
3px
;
height
:
16px
;
background
:
rgba
(
34
,
189
,
122
,
1
);
}
.title
{
margin-left
:
17px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
}
.box
{
margin
:
0
20px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
align-items
:
center
;
span
{
min-width
:
98px
;
display
:
block
;
font-size
:
14px
;
color
:
rgba
(
149
,
152
,
158
,
1
);
line-height
:
30px
;
text-align
:
right
;
margin-bottom
:
auto
;
}
label
{
font-size
:
14px
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
30px
;
margin-left
:
20px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/archives/workInfo.vue
View file @
fb8d001f
...
...
@@ -7,11 +7,11 @@
<div
class=
"box"
>
<div
class=
"item"
>
<span>
派遣公司
</span>
<label>
北京金色华勤数据服务有限公司
</label>
<label></label>
</div>
<div
class=
"item"
>
<span>
用工单位
</span>
<label>
北京金色华勤数据服务有限公司
</label>
<label></label>
</div>
<div
class=
"item"
>
<span>
工作地点
</span>
...
...
@@ -19,11 +19,11 @@
</div>
<div
class=
"item"
>
<span>
工作职位
</span>
<label>
北京金色华勤数据服务有限公司
</label>
<label></label>
</div>
<div
class=
"item"
>
<span>
入职时间
</span>
<label>
北京金色华勤数据服务有限公司
</label>
<label></label>
</div>
</div>
</div>
...
...
@@ -40,7 +40,16 @@ import { Component } from "vue-property-decorator";
// [Button.name]:Button
// }
})
export
default
class
workInfo
extends
Vue
{}
export
default
class
workInfo
extends
Vue
{
created
()
{
// let params = {
// edId: 1
// };
// this.$server.EmployeeService.getWorkInfoDetail(params).then(res => {
// console.log(res);
// });
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
@@ -57,7 +66,6 @@ export default class workInfo extends Vue {}
}
.title
{
margin-left
:
17px
;
height
:
16px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
...
...
@@ -65,7 +73,7 @@ export default class workInfo extends Vue {}
}
.box
{
margin
:
0
20px
;
padding
-top
:
8px
;
padding
:
12px
0
;
border-top
:
1px
solid
#eaeef5
;
.item
{
display
:
flex
;
...
...
src/router/employee/employee-router.ts
View file @
fb8d001f
...
...
@@ -36,6 +36,10 @@ export default [
// 档案查看
path
:
'/archives'
,
name
:
'Archives'
,
meta
:
{
title
:
'首页'
,
requiresAuth
:
true
},
component
:
()
=>
import
(
"@/views/Archives.vue"
)
},
{
...
...
@@ -85,9 +89,9 @@ export default [
path
:
'/test'
,
name
:
'test'
,
component
:
()
=>
import
(
"@/views/test.vue"
),
meta
:{
title
:
'测试页面'
,
meta
:
{
title
:
'测试页面'
,
}
}
]
\ No newline at end of file
src/services/employee/employeeService.ts
View file @
fb8d001f
...
...
@@ -3,5 +3,6 @@
*/
export
interface
EmployeeInterface
{
getUserInfo
(
params
:
any
):
Promise
<
any
>
;
getWorkInfoDetail
(
params
:
any
):
Promise
<
any
>
;
putEmail
(
params
:
any
):
Promise
<
any
>
;
}
src/servicesImpl/employee/employeeImpl.ts
View file @
fb8d001f
...
...
@@ -52,6 +52,16 @@ class EmployeeService implements EmployeeInterface {
}
/**
* 获取工作信息
* @param params 请求参数
*/
public
getWorkInfoDetail
(
params
:
any
):
Promise
<
any
>
{
let
url
=
`/api/user/employee/
${
params
.
edId
}
/work/detail`
;
return
request
.
get
(
url
,
params
,
this
.
header
)
}
/**
* 修改邮箱
* @param params 请求参数
*/
...
...
src/types/index.ts
View file @
fb8d001f
...
...
@@ -2,7 +2,7 @@
* 接口响应数据(基础)
*/
export
interface
ResponseData
{
errcode
:
number
;
status
:
boolean
;
data
?:
any
;
errmsg
:
string
;
message
:
string
;
}
src/utils/http.ts
View file @
fb8d001f
...
...
@@ -2,16 +2,16 @@ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
import
{
Toast
}
from
'vant'
;
import
{
ResponseData
}
from
'@/types/index'
;
let
service
:
AxiosInstance
|
any
;
service
=
axios
.
create
({
baseURL
:
process
.
env
.
VUE_APP_
SERVER
_URL
,
let
http
:
AxiosInstance
|
any
;
http
=
axios
.
create
({
baseURL
:
process
.
env
.
VUE_APP_
BASE
_URL
,
timeout
:
60000
,
});
/**
* 请求拦击器
*/
service
.
interceptors
.
request
.
use
(
http
.
interceptors
.
request
.
use
(
(
config
:
AxiosRequestConfig
)
=>
{
return
config
;
},
...
...
@@ -23,21 +23,21 @@ service.interceptors.request.use(
/**
* 响应拦截器
*/
service
.
interceptors
.
response
.
use
(
http
.
interceptors
.
response
.
use
(
(
response
:
AxiosResponse
)
=>
{
if
(
response
.
status
===
200
)
{
const
data
:
ResponseData
=
response
.
data
;
// 认证中心接口 响应
if
(
!
data
.
errcode
)
{
if
(
!
data
.
status
)
{
// console.log(data);
return
data
;
}
// 普通接口 响应
if
(
data
.
errcode
===
0
)
{
if
(
data
.
status
)
{
return
data
.
data
;
}
else
{
Toast
(
data
.
errmsg
);
Toast
(
data
.
message
);
}
return
Promise
.
reject
(
new
Error
(
response
.
data
.
errcode
||
"Error"
));
}
...
...
@@ -45,256 +45,4 @@ service.interceptors.response.use(
(
error
:
any
)
=>
Promise
.
reject
(
error
)
);
export
default
service
;
// /**
// * get请求方法(H5)
// * @param url
// * @param params
// * @returns {Promise}
// */
// export function mFetch(url: string, Headers = {}, params = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.get(url + param, {
// params: params,
// headers: Headers
// }).then((response: any) => {
// if (response.status === 200) {
// resolve(response.data);
// } else {
// Message.error(response.data.error_description);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * post请求方法(H5)
// * @param url
// * @param data
// * @returns {Promise}
// */
// export function mPost(url: string, data = {}, Headers = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.post(url + param, data, { headers: Headers })
// .then((response: any) => {
// if (response.data.errcode === 0) {
// resolve(response.data);
// } else {
// Message.error(response.data.errmsg);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * post请求方法(H5)
// * @param url
// * @param data
// * @Headers
// * @returns {Promise}
// */
// export function mBeforePost(url: string, data = {}, Headers = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.post(url + param, data, { headers: Headers })
// .then((response: any) => {
// if (response.data.errcode == undefined) {
// resolve(response.data);
// } else {
// if (response.data.errcode === 0) {
// resolve(response.data);
// } else {
// Message.error(response.data.errmsg);
// resolve(response.data);
// }
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * put请求方法(H5)
// * @param url
// * @param data
// * @returns {Promise}
// */
// export function mPut(url: string, data = {}, Headers = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.put(url + param, data, { headers: Headers })
// .then((response: any) => {
// if (response.data.errcode === 0) {
// resolve(response.data);
// } else {
// Message.error(response.data.errmsg);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * delete请求方法(H5)
// * @param url
// * @param data
// * @returns {Promise}
// */
// export function mDelete(url: string, Headers = {}, params = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.delete(url + param, {
// data: params,
// headers: Headers
// }).then((response: any) => {
// if (response.status === 200) {
// resolve(response.data);
// } else {
// Message.error(response.data.error_description);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * get请求方法
// * @param url
// * @param data
// * @returns {Promise}
// */
// export function toFetch(url: string, Headers = {}, params = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.get(url + param, {
// params: params,
// headers: Headers
// }).then((response: any) => {
// if (response.status === 200) {
// resolve(response.data);
// } else {
// Message.error(response.data.error_description);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * post请求方法
// * @param url
// * @param data
// * @Headers
// * @returns {Promise}
// */
// export function toPost(url: string, data = {}, Headers = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.post(url + param, data, { headers: Headers })
// .then((response: any) => {
// if (response.data.errcode === 0) {
// resolve(response.data);
// } else {
// Message.error(response.data.errmsg);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * post请求方法
// * @param url
// * @param data
// * @Headers
// * @returns {Promise}
// */
// export function beforePost(url: string, data = {}, Headers = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.post(url + param, data, { headers: Headers })
// .then((response: any) => {
// if (response.data.errcode == undefined) {
// resolve(response.data);
// } else {
// if (response.data.errcode === 0) {
// resolve(response.data);
// } else {
// Message.error(response.data.errmsg);
// resolve(response.data);
// }
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * put请求方法
// * @param url
// * @param data
// * @returns {Promise}
// */
// export function toPut(url: string, data = {}, Headers = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.put(url + param, data, { headers: Headers })
// .then((response: any) => {
// if (response.data.errcode === 0) {
// resolve(response.data);
// } else {
// Message.error(response.data.errmsg);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
// /**
// * delete请求方法
// * @param url
// * @param data
// * @returns {Promise}
// */
// export function toDelete(url: string, Headers = {}, params = {}) {
// return new Promise((resolve, reject) => {
// let param = '?' + GetCommonPms();
// axios.delete(url + param, {
// data: params,
// headers: Headers
// }).then((response: any) => {
// if (response.status === 200) {
// resolve(response.data);
// } else {
// Message.error(response.data.error_description);
// resolve(response.data);
// }
// }).catch((err: any) => {
// reject(err);
// });
// });
// }
\ No newline at end of file
export
default
http
;
src/utils/method.ts
View file @
fb8d001f
import
service
from
'./http'
;
import
http
from
'./http'
;
import
{
GetCommonPms
}
from
'@/utils/public'
;
...
...
@@ -12,7 +12,7 @@ class Request {
*/
public
get
(
url
:
string
,
params
:
any
=
{},
headers
:
any
=
{}):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
(
service
.
get
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
resolve
(
http
.
get
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
params
:
params
,
headers
:
headers
}));
...
...
@@ -28,7 +28,7 @@ class Request {
*/
public
post
(
url
:
string
,
params
:
any
=
{},
headers
:
any
=
{})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
(
service
.
post
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
resolve
(
http
.
post
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
params
:
params
,
headers
:
headers
}));
...
...
@@ -44,7 +44,7 @@ class Request {
*/
public
put
(
url
:
string
,
params
:
any
=
{},
headers
:
any
=
{})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
(
service
.
put
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
resolve
(
http
.
put
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
params
:
params
,
headers
:
headers
}));
...
...
@@ -60,7 +60,7 @@ class Request {
*/
public
delete
(
url
:
string
,
params
:
any
=
{},
headers
:
any
=
{})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
(
service
.
delete
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
resolve
(
http
.
delete
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
{
params
:
params
,
headers
:
headers
}));
...
...
src/views/Archives.vue
View file @
fb8d001f
<
template
>
<div>
<work-info
/>
<person-info
/>
<contact-info
/>
<social-info
/>
<wage-card-info
/>
<edu-experience
/>
<work-experience
/>
<teachnology-experience
/>
</div>
</
template
>
...
...
@@ -8,11 +15,25 @@
import
Vue
from
"vue"
;
import
{
Component
}
from
"vue-property-decorator"
;
import
workInfo
from
"@/components/archives/workInfo.vue"
;
import
personInfo
from
"@/components/archives/personInfo.vue"
;
import
contactInfo
from
"@/components/archives/contactInfo.vue"
;
import
socialInfo
from
"@/components/archives/socialInfo.vue"
;
import
wageCardInfo
from
"@/components/archives/wageCardInfo.vue"
;
import
eduExperience
from
"@/components/archives/eduExperience.vue"
import
workExperience
from
"@/components/archives/workExperience.vue"
import
teachnologyExperience
from
"@/components/archives/technologyExperience.vue"
@
Component
({
name
:
"Archives"
,
components
:
{
workInfo
workInfo
,
personInfo
,
contactInfo
,
socialInfo
,
wageCardInfo
,
eduExperience
,
workExperience
,
teachnologyExperience
}
})
export
default
class
archives
extends
Vue
{}
...
...
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