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
b1dec4be
authored
Aug 25, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
直接进入灵活用工页面
parent
f5c88fe2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
src/router/employee/employee-router.ts
src/views/FlexEmployee.vue
src/views/SelectIdentity.vue
src/router/employee/employee-router.ts
View file @
b1dec4be
...
@@ -15,7 +15,7 @@ export default [
...
@@ -15,7 +15,7 @@ export default [
name
:
'SelectIdentity'
,
name
:
'SelectIdentity'
,
component
:
()
=>
import
(
"@/views/SelectIdentity.vue"
),
component
:
()
=>
import
(
"@/views/SelectIdentity.vue"
),
meta
:
{
meta
:
{
title
:
'
身份选择
'
,
title
:
'
跳转中...
'
,
requiresAuth
:
true
requiresAuth
:
true
}
}
},
},
...
...
src/views/FlexEmployee.vue
View file @
b1dec4be
...
@@ -6,25 +6,23 @@
...
@@ -6,25 +6,23 @@
<div
class=
"person-information-top"
>
<div
class=
"person-information-top"
>
<div
class=
"person-information-left"
>
<div
class=
"person-information-left"
>
<h3>
{{
name
}}
</h3>
<h3>
{{
name
}}
</h3>
<p>
{{
birthday
}}
</p>
</div>
</div>
</div>
</div>
<div
class=
"person-information-bottom"
>
<div
class=
"person-information-bottom"
>
<div
class=
"person-information-bottom-child"
id=
"person-information-yjrw"
>
<div
class=
"person-information-bottom-child"
id=
"person-information-yjrw"
>
<h3>
{{
accept_work
|
isEmpty
}}
</h3>
<h3>
{{
accept_work
}}
</h3>
<p>
已接任务
</p>
<p>
已接任务
</p>
</div>
</div>
<div
class=
"person-information-bottom-child"
id=
"person-information-wcrw"
>
<div
class=
"person-information-bottom-child"
id=
"person-information-wcrw"
>
<h3>
{{
perform_work
|
isEmpty
}}
</h3>
<h3>
{{
perform_work
}}
</h3>
<p>
完成任务
</p>
<p>
完成任务
</p>
</div>
</div>
<div
class=
"person-information-bottom-child"
id=
"person-information-ysbc"
>
<div
class=
"person-information-bottom-child"
id=
"person-information-ysbc"
>
<h3>
{{
Payment_receivable
|
money
(
true
,
false
)
|
isEmpt
y
}}
</h3>
<h3>
{{
Payment_receivable
|
mone
y
}}
</h3>
<p>
应收报酬
</p>
<p>
应收报酬
</p>
</div>
</div>
<div
class=
"person-information-bottom-child"
id=
"person-information-yysbc"
>
<div
class=
"person-information-bottom-child"
id=
"person-information-yysbc"
>
<h3>
{{
receive_receivable
|
isEmpt
y
}}
</h3>
<h3>
{{
receive_receivable
|
mone
y
}}
</h3>
<p>
已收报酬
</p>
<p>
已收报酬
</p>
</div>
</div>
</div>
</div>
...
@@ -58,8 +56,8 @@
...
@@ -58,8 +56,8 @@
</div>
</div>
<div
class=
"empty_data"
v-else
>
<div
class=
"empty_data"
v-else
>
<p>
<p>
您
在亲亲小保未从事灵活用工的相关任务
您
还没有通过亲亲小保众包
<br
/>
暂无相关记录
<br
/>
平台领取过工作任务
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -67,21 +65,21 @@
...
@@ -67,21 +65,21 @@
<
script
lang=
'ts'
>
<
script
lang=
'ts'
>
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
//
import { toMoney, formatDate, isNull } from "../utils/public";
import
{
toMoney
,
formatDate
,
isNull
}
from
"../utils/public"
;
@
Component
({
@
Component
({
//
filters: {
filters
:
{
//
money: (value: String, isSymbol: boolean, isConvertPoint: boolean) =>
money
:
(
value
:
String
,
isSymbol
:
boolean
,
isConvertPoint
:
boolean
)
=>
//
toMoney(value, isSymbol, isConvertPoint),
toMoney
(
value
,
isSymbol
,
isConvertPoint
),
//
format: (value: String, pattern: String) => {
format
:
(
value
:
String
,
pattern
:
String
)
=>
{
//
return value.replace(/\d{2}:\d{2}:\d{2}/i, "");
return
value
.
replace
(
/
\d{2}
:
\d{2}
:
\d{2}
/i
,
""
);
//
},
},
//
isEmpty: (value: string) => isNull(value)
isEmpty
:
(
value
:
string
)
=>
isNull
(
value
)
//
}
}
})
})
export
default
class
FlexEmployee
extends
Vue
{
export
default
class
FlexEmployee
extends
Vue
{
private
name
:
string
=
"迪丽热巴"
;
//入参
private
name
:
string
|
null
=
localStorage
.
getItem
(
"name"
);
//入参
private
birthday
:
string
=
"
1987-10-16"
;
//入参
private
birthday
:
string
=
"
"
;
//入参
private
accept_work
:
string
=
""
;
private
accept_work
:
string
=
""
;
private
perform_work
:
string
=
""
;
private
perform_work
:
string
=
""
;
...
@@ -109,9 +107,8 @@ export default class FlexEmployee extends Vue {
...
@@ -109,9 +107,8 @@ export default class FlexEmployee extends Vue {
}
}
mounted
()
{
mounted
()
{
let
params
=
{
let
params
=
{
idNo
:
this
.
$route
.
query
.
id_no
//371327198511175134
idNo
:
this
.
$route
.
query
.
id_no
,
//371327198511175134
};
};
this
.
$server
.
EmployeeService
.
getAgileWorker
(
params
).
then
((
res
:
any
)
=>
{
this
.
$server
.
EmployeeService
.
getAgileWorker
(
params
).
then
((
res
:
any
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
...
...
src/views/SelectIdentity.vue
View file @
b1dec4be
...
@@ -81,7 +81,7 @@ export default class SelectIdentity extends Vue {
...
@@ -81,7 +81,7 @@ export default class SelectIdentity extends Vue {
if
(
this
.
id_no_encrytion
)
{
if
(
this
.
id_no_encrytion
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"FlexEmployee"
,
name
:
"FlexEmployee"
,
query
:
{
id_no
:
this
.
id_no
_encrytion
}
query
:
{
id_no
:
this
.
id_no
}
});
});
}
else
{
}
else
{
console
.
log
(
"this.id_no_encrytion="
,
this
.
id_no_encrytion
);
console
.
log
(
"this.id_no_encrytion="
,
this
.
id_no_encrytion
);
...
@@ -128,11 +128,14 @@ export default class SelectIdentity extends Vue {
...
@@ -128,11 +128,14 @@ export default class SelectIdentity extends Vue {
localStorage
.
setItem
(
"name"
,
res
.
data
.
personalName
);
localStorage
.
setItem
(
"name"
,
res
.
data
.
personalName
);
localStorage
.
setItem
(
"sex"
,
res
.
data
.
sex
);
localStorage
.
setItem
(
"sex"
,
res
.
data
.
sex
);
localStorage
.
setItem
(
"birthday"
,
res
.
data
.
birthday
);
localStorage
.
setItem
(
"birthday"
,
res
.
data
.
birthday
);
this
.
$router
.
push
({
if
(
res
.
data
.
personalName
==
"乐晓飞"
||
res
.
data
.
personalName
==
"李鹏飞"
||
res
.
data
.
personalName
==
"张天翔"
)
{
name
:
"FlexEmployee"
,
const
VConsole
=
require
(
"vconsole"
);
query
:
{
id_no
:
this
.
id_no
}
const
my_console
=
new
VConsole
();
});
}
// if (res.data.personalName == "乐晓飞"||res.data.personalName == "李鹏飞"||res.data.personalName == "张天翔") {
// const VConsole = require("vconsole");
// const my_console = new VConsole();
// }
}
else
{
}
else
{
//TODO: 跳转到实名认证
//TODO: 跳转到实名认证
this
.
no_data
=
true
;
this
.
no_data
=
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