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
5775e840
authored
Jun 04, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
getDispatchList
parent
0a7a72ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
15 deletions
src/views/Index.vue
src/views/SelectIdentity.vue
src/views/Index.vue
View file @
5775e840
...
...
@@ -80,21 +80,26 @@ export default class Index extends Vue {
private
position
:
string
=
""
;
private
entry_date
:
string
=
""
;
private
id_no
:
string
=
""
;
private
ed_id
:
string
=
"8
"
;
private
sp_id
:
string
=
"
"
;
private
ed_id
:
string
=
""
;
created
()
{
const
id_no
=
this
.
$route
.
query
.
id_no
as
string
;
this
.
id_no
=
window
.
atob
(
encodeURI
(
id_no
));
let
params
=
{
spId
:
1
,
idNo
:
this
.
$route
.
query
.
id_no
}
this
.
$server
.
EmployeeService
.
getDispatchInfo
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
}).
catch
(
error
=>
{
console
.
log
(
error
)
})
this
.
sp_id
=
this
.
$route
.
query
.
sp_id
as
string
;
let
params
=
{
spId
:
this
.
sp_id
,
idNo
:
this
.
id_no
};
this
.
$server
.
EmployeeService
.
getDispatchInfo
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
);
})
.
catch
(
error
=>
{
console
.
log
(
error
);
});
}
}
</
script
>
...
...
src/views/SelectIdentity.vue
View file @
5775e840
...
...
@@ -7,7 +7,7 @@
<p>
可查看专项订单服务,使用职场小工具
</p>
</div>
</a>
-->
<a
class=
"si-child"
id=
"dispatch-employee"
@
click=
"toIndex"
>
<a
class=
"si-child"
id=
"dispatch-employee"
@
click=
"toIndex
_click
"
>
<img
src=
"../assets/images/agent/company-employee.png"
alt
/>
<div
class=
"si-child-desc"
>
<h4>
我是派遣员工
</h4>
...
...
@@ -37,17 +37,24 @@ export default class SelectIdentity extends Vue {
this
.
$router
.
push
({
name
:
"FlexEmployee"
,
query
:
{
id_no
:
this
.
id_no
}
});
}
private
toIndex
():
void
{
this
.
$router
.
push
({
name
:
"Index"
,
query
:
{
id_no
:
this
.
id_no
}
});
private
toIndex
(
sp_id
:
string
):
void
{
this
.
$router
.
push
({
name
:
"Index"
,
query
:
{
id_no
:
this
.
id_no
,
sp_id
:
sp_id
}
});
// this.$router.push({ name: "ChooseCompany", query: { id_no: this.id_no } });
}
private
toIndex_click
():
void
{
const
sp_id
:
string
=
""
;
this
.
toIndex
(
sp_id
);
}
async
created
()
{
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
.
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
console
.
log
(
"this.id_no="
,
this
.
id_no
);
}
else
{
//TODO: 跳转到实名认证
}
...
...
@@ -55,6 +62,13 @@ export default class SelectIdentity extends Vue {
.
catch
(
err
=>
{
console
.
log
(
"err="
,
err
);
});
this
.
$server
.
EmployeeService
.
getDispatchList
({
idNo
:
this
.
id_no
})
.
then
(
res
=>
{
console
.
log
(
"getDispatchList res="
,
res
);
})
.
catch
(
err
=>
{
console
.
log
(
"err="
,
err
);
});
}
}
</
script
>
...
...
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