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
a5dd2bba
authored
Aug 25, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
删除选择项目页,直接进入灵活用工页面
parent
98d56d80
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
README.md
src/views/FlexEmployee.vue
src/views/SelectIdentity.vue
README.md
View file @
a5dd2bba
...
...
@@ -31,3 +31,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
必要参数
authcode
测试版发布
http://106.120.107.150:9999/
正式线发布
\ No newline at end of file
src/views/FlexEmployee.vue
View file @
a5dd2bba
...
...
@@ -6,7 +6,6 @@
<div
class=
"person-information-top"
>
<div
class=
"person-information-left"
>
<h3>
{{
name
}}
</h3>
<p>
{{
birthday
}}
</p>
</div>
</div>
...
...
@@ -58,8 +57,8 @@
</div>
<div
class=
"empty_data"
v-else
>
<p>
您
在亲亲小保未从事灵活用工的相关任务
<br
/>
暂无相关记录
您
还没有通过亲亲小保众包
<br
/>
平台领取过工作任务
</p>
</div>
</div>
...
...
src/views/SelectIdentity.vue
View file @
a5dd2bba
...
...
@@ -7,20 +7,20 @@
<p>
可查看专项订单服务,使用职场小工具
</p>
</div>
</a>
-->
<a
v-if=
"company_num>0"
class=
"si-child"
id=
"dispatch-employee"
@
click=
"toIndex_click"
>
<
!--
<
a
v-if=
"company_num>0"
class=
"si-child"
id=
"dispatch-employee"
@
click=
"toIndex_click"
>
<img
src=
"../assets/images/agent/dispatch-employee.png"
alt
/>
<div
class=
"si-child-desc"
>
<h4>
我是派遣员工
</h4>
<p>
可查看编辑自己的劳务派遣员工档案信息
</p>
</div>
</a>
<a
class=
"si-child"
id=
"flex-employee"
@
click=
"toFlex"
>
</a>
-->
<
!--
<
a
class=
"si-child"
id=
"flex-employee"
@
click=
"toFlex"
>
<img
src=
"../assets/images/agent/flex-employee.png"
alt
/>
<div
class=
"si-child-desc"
>
<h4>
我是灵活用工员工
</h4>
<p>
可查看灵活用工人员任务信息
</p>
</div>
</a>
</a>
-->
</div>
</
template
>
...
...
@@ -28,7 +28,7 @@
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
@
Component
({
components
:
{}
components
:
{}
,
})
export
default
class
SelectIdentity
extends
Vue
{
private
id_no
:
string
=
""
;
...
...
@@ -45,21 +45,21 @@ export default class SelectIdentity extends Vue {
private
toFlex
():
void
{
this
.
$router
.
push
({
name
:
"FlexEmployee"
,
query
:
{
id_no
:
this
.
id_no_encrytion
}
query
:
{
id_no
:
this
.
id_no_encrytion
}
,
});
}
private
toIndex
(
sp_id
:
string
):
void
{
this
.
$router
.
push
({
name
:
"Index"
,
query
:
{
id_no
:
this
.
id_no_encrytion
,
sp_id
:
sp_id
}
query
:
{
id_no
:
this
.
id_no_encrytion
,
sp_id
:
sp_id
}
,
});
}
private
ChooseCompany
()
{
this
.
$router
.
push
({
name
:
"ChooseCompany"
,
query
:
{
id_no
:
this
.
id_no_encrytion
}
query
:
{
id_no
:
this
.
id_no_encrytion
}
,
});
}
...
...
@@ -76,35 +76,39 @@ export default class SelectIdentity extends Vue {
private
async
getUserInfo
()
{
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
.
then
(
res
=>
{
.
then
(
(
res
)
=>
{
if
(
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
this
.
$router
.
push
({
name
:
"FlexEmployee"
,
query
:
{
id_no
:
encodeURI
(
window
.
btoa
(
this
.
id_no
))},
});
}
else
{
//TODO: 跳转到实名认证
console
.
log
(
"跳转到实名认证"
,
res
);
}
})
.
catch
(
err
=>
{
.
catch
(
(
err
)
=>
{
console
.
log
(
"err="
,
err
);
});
}
private
async
getDispatchList
()
{
await
this
.
$server
.
EmployeeService
.
getDispatchList
({
idNo
:
this
.
id_no
})
.
then
(
res
=>
{
.
then
(
(
res
)
=>
{
console
.
log
(
"getDispatchList res="
,
res
);
this
.
dispatch_list
=
res
;
})
.
catch
(
err
=>
{
.
catch
(
(
err
)
=>
{
console
.
log
(
"err="
,
err
);
});
}
async
created
()
{
await
this
.
getUserInfo
();
if
(
this
.
id_no
)
{
await
this
.
getDispatchList
();
}
//
if (this.id_no) {
//
await this.getDispatchList();
//
}
}
}
</
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