Commit b1dec4be by 展昭

直接进入灵活用工页面

parent f5c88fe2
......@@ -15,7 +15,7 @@ export default [
name: 'SelectIdentity',
component: () => import("@/views/SelectIdentity.vue"),
meta: {
title: '身份选择',
title: '跳转中...',
requiresAuth: true
}
},
......
......@@ -6,25 +6,23 @@
<div class="person-information-top">
<div class="person-information-left">
<h3>{{name}}</h3>
<p>{{birthday}}</p>
</div>
</div>
<div class="person-information-bottom">
<div class="person-information-bottom-child" id="person-information-yjrw">
<h3>{{accept_work | isEmpty}}</h3>
<h3>{{accept_work}}</h3>
<p>已接任务</p>
</div>
<div class="person-information-bottom-child" id="person-information-wcrw">
<h3>{{perform_work | isEmpty}}</h3>
<h3>{{perform_work}}</h3>
<p>完成任务</p>
</div>
<div class="person-information-bottom-child" id="person-information-ysbc">
<h3>{{Payment_receivable | money(true,false) | isEmpty}}</h3>
<h3>{{Payment_receivable|money}}</h3>
<p>应收报酬</p>
</div>
<div class="person-information-bottom-child" id="person-information-yysbc">
<h3>{{receive_receivable | isEmpty}}</h3>
<h3>{{receive_receivable|money}}</h3>
<p>已收报酬</p>
</div>
</div>
......@@ -58,8 +56,8 @@
</div>
<div class="empty_data" v-else>
<p>
在亲亲小保未从事灵活用工的相关任务
<br />暂无相关记录
还没有通过亲亲小保众包
<br />平台领取过工作任务
</p>
</div>
</div>
......@@ -67,21 +65,21 @@
<script lang='ts'>
import { Component, Vue } from "vue-property-decorator";
// import { toMoney, formatDate, isNull } from "../utils/public";
import { toMoney, formatDate, isNull } from "../utils/public";
@Component({
// filters: {
// money: (value: String, isSymbol: boolean, isConvertPoint: boolean) =>
// toMoney(value, isSymbol, isConvertPoint),
// format: (value: String, pattern: String) => {
// return value.replace(/\d{2}:\d{2}:\d{2}/i, "");
// },
// isEmpty: (value: string) => isNull(value)
// }
filters: {
money: (value: String, isSymbol: boolean, isConvertPoint: boolean) =>
toMoney(value, isSymbol, isConvertPoint),
format: (value: String, pattern: String) => {
return value.replace(/\d{2}:\d{2}:\d{2}/i, "");
},
isEmpty: (value: string) => isNull(value)
}
})
export default class FlexEmployee extends Vue {
private name: string = "迪丽热巴";//入参
private birthday: string = "1987-10-16";//入参
private name: string | null = localStorage.getItem("name"); //入参
private birthday: string = ""; //入参
private accept_work: string = "";
private perform_work: string = "";
......@@ -109,9 +107,8 @@ export default class FlexEmployee extends Vue {
}
mounted() {
let params = {
idNo: this.$route.query.id_no //371327198511175134
idNo: this.$route.query.id_no, //371327198511175134
};
this.$server.EmployeeService.getAgileWorker(params).then((res: any) => {
console.log(res);
......
......@@ -81,7 +81,7 @@ export default class SelectIdentity extends Vue {
if (this.id_no_encrytion) {
this.$router.push({
name: "FlexEmployee",
query: { id_no: this.id_no_encrytion }
query: { id_no: this.id_no }
});
} else {
console.log("this.id_no_encrytion=", this.id_no_encrytion);
......@@ -128,11 +128,14 @@ export default class SelectIdentity extends Vue {
localStorage.setItem("name", res.data.personalName);
localStorage.setItem("sex", res.data.sex);
localStorage.setItem("birthday", res.data.birthday);
if (res.data.personalName == "乐晓飞"||res.data.personalName == "李鹏飞"||res.data.personalName == "张天翔") {
const VConsole = require("vconsole");
const my_console = new VConsole();
}
this.$router.push({
name: "FlexEmployee",
query: { id_no: this.id_no }
});
// if (res.data.personalName == "乐晓飞"||res.data.personalName == "李鹏飞"||res.data.personalName == "张天翔") {
// const VConsole = require("vconsole");
// const my_console = new VConsole();
// }
} else {
//TODO: 跳转到实名认证
this.no_data = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment