Commit a5dd2bba by 展昭

删除选择项目页,直接进入灵活用工页面

parent 98d56d80
......@@ -30,4 +30,9 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
必要参数
authcode
\ No newline at end of file
authcode
测试版发布
http://106.120.107.150:9999/
正式线发布
\ No newline at end of file
......@@ -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>
......
......@@ -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>
......
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