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
f911efd5
authored
Jun 29, 2020
by
xws
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://gitlab.corp.qinqinxiaobao.com:9880/frontend_vue/qqxb-self-service
parents
7eaf4efa
633af64b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
src/views/Index.vue
src/views/SelectIdentity.vue
src/views/Index.vue
View file @
f911efd5
...
...
@@ -73,7 +73,7 @@
/>
</router-link>
<router-link
class=
"entrance"
:to=
"`/PaySlips?sp_id=$
{sp_id}
&
id_no=
371327198511175134
`" >
<router-link
class=
"entrance"
:to=
"`/PaySlips?sp_id=$
{sp_id}
&
id_no=
${id_no}
`" >
<img
src=
"../assets/images/slips_icon.png"
alt=
"我的工资条"
...
...
@@ -115,6 +115,7 @@ export default class Index extends Vue {
private
ed_id
:
string
=
""
;
private
showPopup
:
boolean
=
true
;
private
expand
:
boolean
=
true
;
private
id_no_decode
:
string
=
""
;
get
popupStyle
()
{
if
(
this
.
expand
)
{
...
...
@@ -130,6 +131,7 @@ export default class Index extends Vue {
created
()
{
const
id_no
=
this
.
$route
.
query
.
id_no
as
string
;
this
.
id_no_decode
=
id_no
;
this
.
id_no
=
window
.
atob
(
encodeURI
(
id_no
));
this
.
sp_id
=
this
.
$route
.
query
.
sp_id
as
string
;
...
...
src/views/SelectIdentity.vue
View file @
f911efd5
...
...
@@ -44,6 +44,7 @@ export default class SelectIdentity extends Vue {
private
id_no
:
string
=
""
;
private
dispatch_list
:
any
[]
=
[];
private
no_data
:
boolean
=
false
;
private
loading
:
any
;
get
id_no_encrytion
():
string
{
return
encodeURI
(
window
.
btoa
(
this
.
id_no
));
...
...
@@ -122,6 +123,7 @@ export default class SelectIdentity extends Vue {
.
then
(
res
=>
{
console
.
log
(
"getDispatchList res="
,
res
);
this
.
dispatch_list
=
res
;
this
.
loading
.
clear
();
})
.
catch
(
err
=>
{
console
.
log
(
"err="
,
err
);
...
...
@@ -129,6 +131,10 @@ export default class SelectIdentity extends Vue {
}
async
created
()
{
this
.
loading
=
Toast
.
loading
({
message
:
"加载中..."
,
forbidClick
:
true
});
await
this
.
getUserInfo
();
if
(
this
.
id_no
)
{
await
this
.
getDispatchList
();
...
...
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