Commit 7eaf4efa by xws

up629

parent 72a37477
Showing with 111 additions and 71 deletions
......@@ -9,11 +9,13 @@
:after-read="afterRead5"
:before-delete="afterDelete"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
:max-count="1"
preview-size="120"
@click-preview="click_preview(hrefIdFront)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -32,11 +34,13 @@
:after-read="afterRead6"
:before-delete="afterDelete"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
:max-count="1"
preview-size="120"
@click-preview="click_preview(hrefIdReverse)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -56,10 +60,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefDiploma)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -78,10 +84,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefCertificate)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -101,10 +109,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefResume)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -124,10 +134,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefDimission)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -147,10 +159,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefRegistered)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -170,10 +184,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefRegisteredSelf)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -193,10 +209,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefentryRegister)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -216,10 +234,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefWageCard)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -239,10 +259,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefEntryPhysical)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -262,10 +284,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse1)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -285,10 +309,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse2)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -308,10 +334,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse3)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -331,10 +359,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse4)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -354,10 +384,12 @@
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-size="20 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse5)"
preview-image
:disabled="flage"
:deletable="flag"
>
<div class="upload-add"></div>
</van-uploader>
......@@ -371,9 +403,9 @@
</div>
</div>
<!-- <div style="margin: 16px 0 0 0;">
<van-button block type="primary" native-type="submit" @click="updateContactInfo_click">提交信息</van-button>
</div>-->
<div style="margin: 16px 0 0 0;" v-if="this.isEdit==0 || this.isEdit==-1">
<van-button :disabled="flage" block type="primary" native-type="submit" @click="updateContactInfo_click">提交信息</van-button>
</div>
</van-form>
</div>
</template>
......@@ -405,6 +437,9 @@ import { Component } from "vue-property-decorator";
})
export default class Information extends Vue {
private objs: any = {};
private flag:any = true
private flage:any = false
private isEdit:any=""
// 16个下载
private hrefIdFront: any = {}; // 身份证正面5
......@@ -466,9 +501,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 身份证反面6
......@@ -495,9 +528,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 毕业证照片7
......@@ -524,9 +555,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 学位证照片8
......@@ -553,9 +582,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 个人简历9
......@@ -582,9 +609,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 上家公司离职证明10
......@@ -611,9 +636,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 户口首页11
......@@ -640,9 +663,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 户口本人页12
......@@ -669,9 +690,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 入职登记表签字上传13
......@@ -698,9 +717,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 银行卡照片14
......@@ -727,9 +744,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 入职体检表15
......@@ -756,9 +771,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 其他1 16
......@@ -785,9 +798,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 其他2 17
......@@ -814,9 +825,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 其他3 18
......@@ -843,9 +852,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 其他4 19
......@@ -872,9 +879,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 其他5 20
......@@ -901,9 +906,7 @@ export default class Information extends Vue {
})
.catch(error => {});
})
.catch(error => {
});
.catch(error => {});
}
// 删除文件
......@@ -922,7 +925,7 @@ export default class Information extends Vue {
//上传文件超出规定大小的提示
private oversize() {
Toast.fail("上传文件大小不能超过2M");
Toast.fail("上传文件大小不能超过20M");
}
// 点击下载
......@@ -937,10 +940,25 @@ export default class Information extends Vue {
// a.click();
// }
// 底部提交按钮
// updateContactInfo_click() {
// Toast.success("保存成功");
// }
updateContactInfo_click() {
let params = {
edId: this.$route.query.ed_id
};
this.$server.EmployeeService.putFiles(params)
.then(res => {
console.log(res);
if(res==true){
Toast.success("保存成功");
window.location.reload();
}else{
Toast.success("保存失败");
}
})
.catch(error => {});
}
// 获取文件
private getFiles(): void {
......@@ -1127,8 +1145,30 @@ export default class Information extends Vue {
.catch(error => {});
}
private handleInfo(): void{
let params = {
spId: this.$route.query.sp_id,
idNo: this.$route.query.id_no
};
this.$server.EmployeeService.getDispatchInfo(params).then(res => {
console.log(res.auditInfoStatus);
this.isEdit = res.auditInfoStatus;
if(this.isEdit == 0 || this.isEdit== -1){
this.flag = true
this.flage = false
}else{
this.flag = false
this.flage = true
}
});
}
created() {
this.getFiles();
this.handleInfo();
}
}
</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