|
@@ -432,7 +432,11 @@ export default {
|
|
|
backFillData() {
|
|
|
if (Object.keys(this.historyData).length > 0 || this.historyData.id) {
|
|
|
for (let i in this.historyData) {
|
|
|
- this.$set(this.infoForm, i, this.historyData[i].value);
|
|
|
+ this.$set(
|
|
|
+ this.infoForm,
|
|
|
+ i,
|
|
|
+ this.historyData[i] ? this.historyData[i].value : null
|
|
|
+ );
|
|
|
if (i == "recent_photos") {
|
|
|
this.recent_photos_old = this.historyData[i].value;
|
|
|
}
|
|
@@ -577,7 +581,7 @@ export default {
|
|
|
//照片处理逻辑
|
|
|
async uploadImg(e, item) {
|
|
|
try {
|
|
|
- let A = ["idcard_face_photo", "idcard_national_photo"].indexOf(item);
|
|
|
+ let A = ["idcard_face_photo"].indexOf(item); //["idcard_face_photo","idcard_national_photo"]
|
|
|
let file = await this.uploadRules(e.target.files[0]);
|
|
|
if (A !== -1) {
|
|
|
const res = await this.faceCertificationIDCardOCR(A + 1, file);
|