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
c7d9bd65
authored
Jun 11, 2020
by
e
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
123
parent
fcbbb753
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
src/views/Index.vue
src/views/Information.vue
src/views/SelectIdentity.vue
src/views/Index.vue
View file @
c7d9bd65
...
...
@@ -81,14 +81,16 @@ export default class Index extends Vue {
private
ed_id
:
string
=
""
;
created
()
{
const
id_no
=
this
.
$route
.
query
.
id_no
as
string
;
//
const id_no = this.$route.query.id_no as string;
// this.id_no = window.atob(encodeURI(id_no));
this
.
sp_id
=
this
.
$route
.
query
.
sp_id
as
string
;
//
this.sp_id = this.$route.query.sp_id as string;
let
params
=
{
spId
:
"85"
,
idNo
:
"51090219750505229X"
};
console
.
log
(
params
);
// 通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据)
this
.
$server
.
EmployeeService
.
getDispatchInfo
(
params
)
.
then
(
res
=>
{
...
...
src/views/Information.vue
View file @
c7d9bd65
This diff is collapsed.
Click to expand it.
src/views/SelectIdentity.vue
View file @
c7d9bd65
...
...
@@ -61,15 +61,17 @@ export default class SelectIdentity extends Vue {
}
private
toIndex_click
():
void
{
this
.
ChooseCompany
();
// if (this.dispatch_list && this.dispatch_list.length > 1) {
// this.ChooseCompany();
// }
//this.ChooseCompany();
console
.
log
(
this
.
dispatch_list
);
if
(
this
.
dispatch_list
&&
this
.
dispatch_list
.
length
>
1
)
{
this
.
ChooseCompany
();
}
//
if (this.dispatch_list && this.dispatch_list.length == 1) {
//
const sp_id: string = this.dispatch_list[0].id as string;
//
this.toIndex(sp_id);
//
}
if
(
this
.
dispatch_list
&&
this
.
dispatch_list
.
length
==
1
)
{
const
sp_id
:
string
=
this
.
dispatch_list
[
0
].
id
as
string
;
this
.
toIndex
(
sp_id
);
}
}
private
async
getUserInfo
()
{
...
...
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