Commit c7d9bd65 by e

123

parent fcbbb753
......@@ -81,14 +81,16 @@ export default class Index extends Vue {
private ed_id: string = "";
created() {
const id_no = this.$route.query.id_no as string;
// const id_no = this.$route.query.id_no as string;
// this.id_no = window.atob(encodeURI(id_no));
this.sp_id = this.$route.query.sp_id as string;
// this.sp_id = this.$route.query.sp_id as string;
let params = {
spId: "85",
idNo: "51090219750505229X"
};
console.log(params);
// 通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据)
this.$server.EmployeeService.getDispatchInfo(params)
.then(res => {
......
......@@ -61,15 +61,17 @@ export default class SelectIdentity extends Vue {
}
private toIndex_click(): void {
this.ChooseCompany();
// if (this.dispatch_list && this.dispatch_list.length > 1) {
// this.ChooseCompany();
// }
//this.ChooseCompany();
console.log(this.dispatch_list);
if (this.dispatch_list && this.dispatch_list.length > 1) {
this.ChooseCompany();
}
// if (this.dispatch_list && this.dispatch_list.length == 1) {
// const sp_id: string = this.dispatch_list[0].id as string;
// this.toIndex(sp_id);
// }
if (this.dispatch_list && this.dispatch_list.length == 1) {
const sp_id: string = this.dispatch_list[0].id as string;
this.toIndex(sp_id);
}
}
private async getUserInfo() {
......
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