Commit 0be9d63e by e

1111

parent c7d9bd65
Showing with 492 additions and 133 deletions
......@@ -6,279 +6,374 @@
<div class="upload-child">
<van-uploader
v-model="uploadIdFront"
:after-read="afterRead"
:after-read="afterRead5"
:before-delete="afterDelete"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-count="1"
preview-size="120"
@click-preview="click_preview(hrefIdFront)"
preview-image
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>身份证首页</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefIdFront" download="文件模板.txt">
<van-icon name="down" color="#5e6066" class="down" />
</a>-->
</div>
</div>
<!-- 身份证反面6 -->
<div class="upload-child">
<van-uploader
v-model="uploadIdReverse"
:after-read="afterRead"
:after-read="afterRead6"
:before-delete="afterDelete"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
:max-count="1"
preview-size="120"
@click-preview="click_preview(hrefIdReverse)"
preview-image
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>身份证背面</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefIdReverse" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 毕业证照片7 -->
<div class="upload-child">
<van-uploader
v-model="uploadDiploma"
:after-read="afterRead"
:after-read="afterRead7"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefDiploma)"
preview-image
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>毕业证照片</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefDiploma" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 学位证照片8 -->
<div class="upload-child">
<van-uploader
v-model="uploadCertificate"
:after-read="afterRead"
:after-read="afterRead8"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefCertificate)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>学位证照片</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefCertificate" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 个人简历9 -->
<div class="upload-child">
<van-uploader
v-model="uploadResume"
:after-read="afterRead"
:after-read="afterRead9"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefResume)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>个人简历</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefResume" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 上家公司离职证明10 -->
<div class="upload-child">
<van-uploader
v-model="uploadDimission"
:after-read="afterRead"
:after-read="afterRead10"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefDimission)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>上家公司离职证明</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefDimission" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 户口首页11 -->
<div class="upload-child">
<van-uploader
v-model="uploadRegistered"
:after-read="afterRead"
:after-read="afterRead11"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefRegistered)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>户口首页</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefRegistered" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 户口本人页12 -->
<div class="upload-child">
<van-uploader
v-model="uploadRegisteredSelf"
:after-read="afterRead"
:after-read="afterRead12"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefRegisteredSelf)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>户口本人页</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefRegisteredSelf" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 入职登记表签字上传13 -->
<div class="upload-child">
<van-uploader
v-model="entryRegister"
:after-read="afterRead"
:after-read="afterRead13"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefentryRegister)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>入职登记表签字上传</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefentryRegister" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 银行卡照片14 -->
<div class="upload-child">
<van-uploader
v-model="uploadWageCard"
:after-read="afterRead"
:after-read="afterRead14"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefWageCard)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>工资银行卡</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefWageCard" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 入职体检表15 -->
<div class="upload-child">
<van-uploader
v-model="entryPhysical"
:after-read="afterRead"
:after-read="afterRead15"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefEntryPhysical)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>入职体检表</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefEntryPhysical" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 其他1 16 -->
<div class="upload-child">
<van-uploader
v-model="uploadElse1"
:after-read="afterRead"
:after-read="afterRead16"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse1)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>其他文件</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefElse1" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 其他2 17 -->
<div class="upload-child">
<van-uploader
v-model="uploadElse2"
:after-read="afterRead"
:after-read="afterRead17"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse2)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>其他文件</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefElse2" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 其他3 18 -->
<div class="upload-child">
<van-uploader
v-model="uploadElse3"
:after-read="afterRead"
:after-read="afterRead18"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse3)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>其他文件</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefElse3" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 其他4 19 -->
<div class="upload-child">
<van-uploader
v-model="uploadElse4"
:after-read="afterRead"
:after-read="afterRead19"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse4)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>其他文件</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefElse4" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
<!-- 其他5 20 -->
<div class="upload-child">
<van-uploader
v-model="uploadElse5"
:after-read="afterRead"
:after-read="afterRead20"
:before-delete="afterDelete"
:max-count="1"
@oversize="oversize"
:max-size="2 * 1024 * 1024 "
preview-size="120"
@click-preview="click_preview(hrefElse5)"
preview-image
:deletable="false"
>
<div class="upload-add"></div>
</van-uploader>
<div class="upload-detil">
<p>其他文件</p>
<!-- <van-icon name="delete" @click="delImg(nn)" color="#5e6066" class="delete" /> -->
<!-- <a :href="hrefElse5" >
<van-icon name="down" color="#5e6066" class="down"/>
</a>-->
</div>
</div>
</div>
<div style="margin: 16px 0 0 0;">
<!-- <div style="margin: 16px 0 0 0;">
<van-button block type="primary" native-type="submit" @click="updateContactInfo_click">提交信息</van-button>
</div>
</div>-->
</van-form>
</div>
</template>
......@@ -310,9 +405,24 @@ import { Component } from "vue-property-decorator";
})
export default class Information extends Vue {
private objs: any = {};
private postData: any = [];
private fileIds: any = [];
private fileList: any = [];
// 16个下载
private hrefIdFront: any = {}; // 身份证正面5
private hrefIdReverse: any = {}; // 身份证反面6
private hrefDiploma: any = {}; // 毕业证照片7
private hrefCertificate: any = {}; // 学位证照片8
private hrefResume: any = {}; // 个人简历9
private hrefDimission: any = {}; // 上家公司离职证明10
private hrefRegistered: any = {}; // 户口首页11
private hrefRegisteredSelf: any = {}; // 户口本人页12
private hrefentryRegister: any = {}; // 入职登记表签字上传13
private hrefWageCard: any = {}; // 银行卡照片14
private hrefEntryPhysical: any = {}; // 入职体检表15
private hrefElse1: any = {}; // 其他1 16
private hrefElse2: any = {}; // 其他2 17
private hrefElse3: any = {}; // 其他3 18
private hrefElse4: any = {}; // 其他4 19
private hrefElse5: any = {}; // 其他5 20
// 16个坑放对应图
private uploadIdFront: any = []; // 身份证正面5
......@@ -332,32 +442,64 @@ export default class Information extends Vue {
private uploadElse4: any = []; // 其他4 19
private uploadElse5: any = []; // 其他5 20
delImg(index: any) {
// 删除指定下标的图片对象
if (isNaN(index) || index >= this.postData.length) {
return false;
}
let tmp = [];
for (let i = 0, len = this.postData.length; i < len; i++) {
if (this.postData[i] !== this.postData[index]) {
tmp.push(this.postData[i]);
// 身份证正面5
async afterRead5(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "5"
}
}
this.postData = tmp;
this.fileIds.splice(index, 1);
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
console.log(res);
// file.edfId="115"
})
.catch(error => {});
}
async afterRead(file: any) {
//文件读取完成后的回调函数
//let uploadImg = await upLoaderImg(file.file); //使用上传的方法。setFiles
console.log(file, "afterRead");
// console.log(file.content, "afterRead.content");
// console.log(this.$route.query.ed_id, "ed_id");
// 身份证反面6
async afterRead6(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "5"
fileTypeId: "6"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
// file.edfId="116"
})
.catch(error => {});
}
// 毕业证照片7
async afterRead7(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "7"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 学位证照片8
async afterRead8(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "8"
}
};
this.$server.EmployeeService.setFiles(params)
......@@ -367,39 +509,234 @@ export default class Information extends Vue {
.catch(error => {});
}
// 个人简历9
async afterRead9(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "9"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 上家公司离职证明10
async afterRead10(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "10"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 户口首页11
async afterRead11(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "11"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 户口本人页12
async afterRead12(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "12"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 入职登记表签字上传13
async afterRead13(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "13"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 银行卡照片14
async afterRead14(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "14"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 入职体检表15
async afterRead15(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "15"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 其他1 16
async afterRead16(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "16"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 其他2 17
async afterRead17(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "17"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 其他3 18
async afterRead18(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "18"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 其他4 19
async afterRead19(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "19"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 其他5 20
async afterRead20(file: any) {
let params = {
edId: this.$route.query.ed_id,
req: {
attachment: file.content,
fileTypeId: "20"
}
};
this.$server.EmployeeService.setFiles(params)
.then(res => {
Toast.success("保存成功");
})
.catch(error => {});
}
// 删除文件
async afterDelete(file: any) {
console.log(file.edfId);
let params = {
fileId: "42"
fileId: file.edfId
};
this.$server.EmployeeService.delFiles(params)
.then(res => {
// this.getFiles();
Toast.success("删除成功");
})
.catch(error => {});
}
// 删除待上传的文件
// delBtn(index: any) {
// // 先判断当前的选中的索引是否是在有效范围中,如果不是则跳出方法
// if (isNaN(index) || index >= this.uploadVideoList.length) {
// return false;
// }
// let tmp = [];
// // 将没被选中的上传文件存放进一个临时数组中
// for (let i = 0; i < this.uploadVideoList.length; i++) {
// if (this.uploadVideoList[i] !== this.uploadVideoList[index]) {
// tmp.push(this.uploadVideoList[i]);
// }
// }
// // 存放当前未被选中的上传文件
// this.uploadVideoList = tmp;
// }
//上传文件超出规定大小的提示
private oversize() {
Toast.fail("上传文件大小不能超过2M");
}
// 底部提交按钮
updateContactInfo_click() {
Toast.success("保存成功");
// 点击下载
private click_preview(href: any) {
window.location.href = href;
}
async downloadExcel(){
console.log(12313);
let a = document.createElement('a')
a.href ="http://file.qinqinxiaobao.com/1/20200612/6b3167ef-930f-4af7-8ded-3879a928341c.txt"
a.click();
}
// 底部提交按钮
// updateContactInfo_click() {
// Toast.success("保存成功");
// }
// 获取文件
private getFiles(): void {
let params = {
......@@ -408,153 +745,176 @@ export default class Information extends Vue {
this.$server.EmployeeService.getFiles(params)
.then(res => {
console.log(res);
this.objs = res;
const vueThis = this;
this.objs.forEach(function(obj: any) {
if (obj.edftId == 5) {
console.log("身份证正面url=" + obj.attachment);
// console.log("身份证正面url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadIdFront = [];
} else {
vueThis.uploadIdFront = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadIdFront);
vueThis.uploadIdFront = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefIdFront = obj.attachment;
//vueThis.hrefIdFront ="http://file.qinqinxiaobao.com/1/20200612/6b3167ef-930f-4af7-8ded-3879a928341c.txt";
}
}
if (obj.edftId == 6) {
console.log("身份证反面url=" + obj.attachment);
// console.log("身份证反面url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadIdReverse = [];
} else {
vueThis.uploadIdReverse = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadIdReverse);
vueThis.uploadIdReverse = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefIdReverse = obj.attachment;
}
//vueThis.testurl = obj.attachment;
}
if (obj.edftId == 7) {
console.log("毕业证照片url=" + obj.attachment);
// console.log("毕业证照片url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadDiploma = [];
} else {
vueThis.uploadDiploma = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadDiploma);
vueThis.uploadDiploma = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefDiploma = obj.attachment;
}
}
if (obj.edftId == 8) {
console.log("学位证照片url=" + obj.attachment);
// console.log("学位证照片url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadCertificate = [];
} else {
vueThis.uploadCertificate = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadCertificate);
vueThis.uploadCertificate = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefCertificate = obj.attachment;
}
}
if (obj.edftId == 9) {
console.log("个人简历url=" + obj.attachment);
// console.log("个人简历url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadResume = [];
} else {
vueThis.uploadResume = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadResume);
vueThis.uploadResume = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefResume = obj.attachment;
}
}
if (obj.edftId == 10) {
console.log("上家公司离职证明url=" + obj.attachment);
// console.log("上家公司离职证明url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadDimission = [];
} else {
vueThis.uploadDimission = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadDimission);
vueThis.uploadDimission = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefDimission = obj.attachment;
}
}
if (obj.edftId == 11) {
console.log("户口首页url=" + obj.attachment);
// console.log("户口首页url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadRegistered = [];
} else {
vueThis.uploadRegistered = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadRegistered);
vueThis.uploadRegistered = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefRegistered = obj.attachment;
}
}
if (obj.edftId == 12) {
console.log("户口本人页url=" + obj.attachment);
// console.log("户口本人页url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadRegisteredSelf = [];
} else {
vueThis.uploadRegisteredSelf = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadRegisteredSelf);
vueThis.uploadRegisteredSelf = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefRegisteredSelf = obj.attachment;
}
}
if (obj.edftId == 13) {
console.log("入职登记表签字上传url=" + obj.attachment);
// console.log("入职登记表签字上传url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.entryRegister = [];
} else {
vueThis.entryRegister = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.entryRegister);
vueThis.entryRegister = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefentryRegister = obj.attachment;
}
}
if (obj.edftId == 14) {
console.log("银行卡照片url=" + obj.attachment);
// console.log("银行卡照片url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadWageCard = [];
} else {
vueThis.uploadWageCard = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadWageCard);
vueThis.uploadWageCard = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefWageCard = obj.attachment;
}
}
if (obj.edftId == 15) {
console.log("入职体检表url=" + obj.attachment);
// console.log("入职体检表url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.entryPhysical = [];
} else {
vueThis.entryPhysical = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.entryPhysical);
vueThis.entryPhysical = [
{ url: obj.attachment, edfId: obj.edfId }
];
vueThis.hrefEntryPhysical = obj.attachment;
}
}
if (obj.edftId == 16) {
console.log("其他文件1url=" + obj.attachment);
// console.log("其他文件1url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadElse1 = [];
} else {
vueThis.uploadElse1 = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadElse1);
vueThis.uploadElse1 = [{ url: obj.attachment, edfId: obj.edfId }];
vueThis.hrefElse1 = obj.attachment;
}
}
if (obj.edftId == 17) {
console.log("其他文件2url=" + obj.attachment);
// console.log("其他文件2url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadElse2 = [];
} else {
vueThis.uploadElse2 = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadElse2);
vueThis.uploadElse2 = [{ url: obj.attachment, edfId: obj.edfId }];
vueThis.hrefElse2 = obj.attachment;
}
}
if (obj.edftId == 18) {
console.log("其他文件3url=" + obj.attachment);
// console.log("其他文件3url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadElse3 = [];
} else {
vueThis.uploadElse3 = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadElse3);
vueThis.uploadElse3 = [{ url: obj.attachment, edfId: obj.edfId }];
vueThis.hrefElse3 = obj.attachment;
}
}
if (obj.edftId == 19) {
console.log("其他文件4url=" + obj.attachment);
// console.log("其他文件4url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadElse4 = [];
} else {
vueThis.uploadElse4 = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadElse4);
vueThis.uploadElse4 = [{ url: obj.attachment, edfId: obj.edfId }];
vueThis.hrefElse4 = obj.attachment;
}
}
if (obj.edftId == 20) {
console.log("其他文件5url=" + obj.attachment);
// console.log("其他文件5url=" + obj.attachment);
if (obj.attachment == null) {
vueThis.uploadElse5 = [];
} else {
vueThis.uploadElse5 = [{ url: obj.attachment }];
console.log("uploadIdFront=", vueThis.uploadElse5);
vueThis.uploadElse5 = [{ url: obj.attachment, edfId: obj.edfId }];
vueThis.hrefElse5 = obj.attachment;
}
}
});
......@@ -570,27 +930,26 @@ export default class Information extends Vue {
<style lang="less" scoped>
.upload-body {
width: 335px;
width: 300px;
margin: 20px auto 20px;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.upload-child {
height: 164px;
width: 160px;
width: 120px;
.van-uploader {
width: 160px;
height: 120px;
width: 120px;
height: 128px;
.upload-add {
width: 160px;
width: 120px;
height: 120px;
background-color: #f5f7fa;
background-image: url(../assets/images/upload-icon.png);
background-repeat: no-repeat;
background-size: 36px 36px;
background-position: 62px 42px;
background-position: 42px 42px;
}
}
.upload-detil {
......
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