Commit a5dd2bba by 展昭

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

parent 98d56d80
...@@ -30,4 +30,9 @@ See [Configuration Reference](https://cli.vuejs.org/config/). ...@@ -30,4 +30,9 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
必要参数 必要参数
authcode authcode
\ No newline at end of file
测试版发布
http://106.120.107.150:9999/
正式线发布
\ No newline at end of file
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
<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>
...@@ -58,8 +57,8 @@ ...@@ -58,8 +57,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>
......
...@@ -7,20 +7,20 @@ ...@@ -7,20 +7,20 @@
<p>可查看专项订单服务,使用职场小工具</p> <p>可查看专项订单服务,使用职场小工具</p>
</div> </div>
</a>--> </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 /> <img src="../assets/images/agent/dispatch-employee.png" alt />
<div class="si-child-desc"> <div class="si-child-desc">
<h4>我是派遣员工</h4> <h4>我是派遣员工</h4>
<p>可查看编辑自己的劳务派遣员工档案信息</p> <p>可查看编辑自己的劳务派遣员工档案信息</p>
</div> </div>
</a> </a>-->
<a class="si-child" id="flex-employee" @click="toFlex"> <!-- <a class="si-child" id="flex-employee" @click="toFlex">
<img src="../assets/images/agent/flex-employee.png" alt /> <img src="../assets/images/agent/flex-employee.png" alt />
<div class="si-child-desc"> <div class="si-child-desc">
<h4>我是灵活用工员工</h4> <h4>我是灵活用工员工</h4>
<p>可查看灵活用工人员任务信息</p> <p>可查看灵活用工人员任务信息</p>
</div> </div>
</a> </a>-->
</div> </div>
</template> </template>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
import { Component, Vue } from "vue-property-decorator"; import { Component, Vue } from "vue-property-decorator";
@Component({ @Component({
components: {} components: {},
}) })
export default class SelectIdentity extends Vue { export default class SelectIdentity extends Vue {
private id_no: string = ""; private id_no: string = "";
...@@ -45,21 +45,21 @@ export default class SelectIdentity extends Vue { ...@@ -45,21 +45,21 @@ export default class SelectIdentity extends Vue {
private toFlex(): void { private toFlex(): void {
this.$router.push({ this.$router.push({
name: "FlexEmployee", name: "FlexEmployee",
query: { id_no: this.id_no_encrytion } query: { id_no: this.id_no_encrytion },
}); });
} }
private toIndex(sp_id: string): void { private toIndex(sp_id: string): void {
this.$router.push({ this.$router.push({
name: "Index", 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() { private ChooseCompany() {
this.$router.push({ this.$router.push({
name: "ChooseCompany", 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 { ...@@ -76,35 +76,39 @@ 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 (res.data && res.data.uthStatus && res.data.uthStatus > 0) {
this.id_no = res.data.personalIdCardNo; this.id_no = res.data.personalIdCardNo;
this.$router.push({
name: "FlexEmployee",
query: { id_no: encodeURI(window.btoa(this.id_no))},
});
} else { } else {
//TODO: 跳转到实名认证 //TODO: 跳转到实名认证
console.log("跳转到实名认证", res); console.log("跳转到实名认证", res);
} }
}) })
.catch(err => { .catch((err) => {
console.log("err=", err); console.log("err=", err);
}); });
} }
private async getDispatchList() { private async getDispatchList() {
await this.$server.EmployeeService.getDispatchList({ idNo: this.id_no }) await this.$server.EmployeeService.getDispatchList({ idNo: this.id_no })
.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);
}); });
} }
async created() { async created() {
await this.getUserInfo(); await this.getUserInfo();
if (this.id_no) { // if (this.id_no) {
await this.getDispatchList(); // await this.getDispatchList();
} // }
} }
} }
</script> </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