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
5c399a5c
authored
Jun 08, 2020
by
e
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
1c79b845
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
13 deletions
src/services/employee/employeeService.ts
src/servicesImpl/employee/employeeImpl.ts
src/views/Information.vue
src/services/employee/employeeService.ts
View file @
5c399a5c
...
...
@@ -26,6 +26,7 @@ export interface EmployeeInterface {
getTechnologyExperience
(
params
:
any
):
Promise
<
any
>
;
//获取技术特长
updateTechnologyExperience
(
params
:
any
):
Promise
<
any
>
;
//修改技术特长
getSalaryInfo
(
params
:
any
):
Promise
<
any
>
;
//通过身份证号和派遣公司ID拿到派遣员工的工资条信息
getFiles
(
params
:
any
):
Promise
<
any
>
;
// 获取文件
getAgileWorker
(
params
:
any
):
Promise
<
any
>
;
//灵活用工
...
...
src/servicesImpl/employee/employeeImpl.ts
View file @
5c399a5c
...
...
@@ -260,6 +260,16 @@ class EmployeeService implements EmployeeInterface {
return
request
.
get
(
url
,
params
,
this
.
header
)
}
/**
*
* 获取文件
* @param params
*/
public
getFiles
(
params
:
any
):
Promise
<
any
>
{
let
url
=
urls
.
employeeUrl
+
`/api/user/employee/
${
params
.
edId
}
/files`
;
return
request
.
get
(
url
,
params
,
this
.
header
)
}
public
getAgileWorker
(
params
:
any
):
Promise
<
any
>
{
let
url
=
urls
.
employeeUrl
+
`/api/user/employee/
${
params
.
idNo
}
/bill/item`
;
return
request
.
get
(
url
,
params
,
this
.
header
)
...
...
src/views/Information.vue
View file @
5c399a5c
<
template
>
<div
class=
"main main-information"
id=
"main_information"
>
<div
class=
"info-box"
>
<div
class=
"info-item"
>
<div
class=
"info-picture"
>
<img
class=
"uploaded"
/>
</div>
<p>
<span>
title
</span>
</p>
</div>
</div>
<div
class=
"main"
>
<p>
请先补充我的档案,如已补充完成,请下载并打印入职登记表.pdf,在打印文件上签字,然后拍照上传。
</p>
</div>
</
template
>
<
script
lang=
'ts'
>
import
"../assets/css/labor.css"
;
export
default
{};
import
Vue
from
"vue"
;
import
{
Button
,
Icon
,
Popup
,
Form
,
Picker
,
Field
,
Toast
}
from
"vant"
;
import
{
Component
}
from
"vue-property-decorator"
;
@
Component
({
components
:
{
[
Button
.
name
]:
Button
,
[
Icon
.
name
]:
Icon
,
[
Popup
.
name
]:
Popup
,
[
Form
.
name
]:
Form
,
[
Picker
.
name
]:
Picker
,
[
Field
.
name
]:
Field
}
})
export
default
class
Information
extends
Vue
{
private
obj
:
any
=
{};
private
getFiles
():
void
{
let
params
=
{
edId
:
this
.
$route
.
query
.
ed_id
};
this
.
$server
.
EmployeeService
.
getFiles
(
params
)
.
then
(
res
=>
{
console
.
log
(
"res="
+
JSON
.
stringify
(
res
)
+
'文件'
);
console
.
log
(
res
);
this
.
obj
=
res
;
})
.
catch
(
error
=>
{});
}
created
()
{
this
.
getFiles
();
}
}
</
script
>
<
style
lang=
"less"
>
...
...
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