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
51a7a47a
authored
Jun 29, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
c5a932f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
public/index.html
src/views/SelectIdentity.vue
public/index.html
View file @
51a7a47a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
员工自助
</title>
<title></title>
</head>
</head>
<body>
<body>
...
...
src/views/SelectIdentity.vue
View file @
51a7a47a
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<
script
lang=
'ts'
>
<
script
lang=
'ts'
>
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
Toast
}
from
"vant"
;
import
{
Toast
,
Dialog
}
from
"vant"
;
@
Component
({
@
Component
({
components
:
{}
components
:
{}
})
})
...
@@ -44,7 +44,7 @@ export default class SelectIdentity extends Vue {
...
@@ -44,7 +44,7 @@ export default class SelectIdentity extends Vue {
private
id_no
:
string
=
""
;
private
id_no
:
string
=
""
;
private
dispatch_list
:
any
[]
=
[];
private
dispatch_list
:
any
[]
=
[];
private
no_data
:
boolean
=
false
;
private
no_data
:
boolean
=
false
;
private
loading
:
any
;
private
loading
:
any
;
get
id_no_encrytion
():
string
{
get
id_no_encrytion
():
string
{
return
encodeURI
(
window
.
btoa
(
this
.
id_no
));
return
encodeURI
(
window
.
btoa
(
this
.
id_no
));
...
@@ -91,7 +91,7 @@ export default class SelectIdentity extends Vue {
...
@@ -91,7 +91,7 @@ export default class SelectIdentity extends Vue {
private
async
getUserInfo
()
{
private
async
getUserInfo
()
{
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
if
(
false
&&
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
...
@@ -101,15 +101,9 @@ export default class SelectIdentity extends Vue {
...
@@ -101,15 +101,9 @@ export default class SelectIdentity extends Vue {
localStorage
.
setItem
(
"birthday"
,
res
.
data
.
birthday
);
localStorage
.
setItem
(
"birthday"
,
res
.
data
.
birthday
);
}
else
{
}
else
{
//TODO: 跳转到实名认证
//TODO: 跳转到实名认证
console
.
log
(
"您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
);
this
.
no_data
=
true
;
this
.
no_data
=
true
;
Toast
.
fail
({
Dialog
.
alert
({
duration
:
0
,
message
:
"您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
message
:
"您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
});
});
}
}
})
})
...
@@ -123,7 +117,6 @@ export default class SelectIdentity extends Vue {
...
@@ -123,7 +117,6 @@ export default class SelectIdentity extends Vue {
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
"getDispatchList res="
,
res
);
console
.
log
(
"getDispatchList res="
,
res
);
this
.
dispatch_list
=
res
;
this
.
dispatch_list
=
res
;
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
"err="
,
err
);
console
.
log
(
"err="
,
err
);
...
@@ -131,8 +124,9 @@ export default class SelectIdentity extends Vue {
...
@@ -131,8 +124,9 @@ export default class SelectIdentity extends Vue {
}
}
async
created
()
{
async
created
()
{
this
.
loading
=
Toast
.
loading
({
duration
:
0
,
this
.
loading
=
Toast
.
loading
({
duration
:
0
,
message
:
"加载中..."
,
message
:
"加载中..."
,
forbidClick
:
true
forbidClick
:
true
});
});
...
...
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