Prechádzať zdrojové kódy

Merge branch 'dev' of http://120.79.166.78:19005/zhongzheng-edu/saas_pc into dev

xiexaing 1 rok pred
rodič
commit
a0135ba17a
1 zmenil súbory, kde vykonal 6 pridanie a 2 odobranie
  1. 6 2
      src/components/dataReview/index.vue

+ 6 - 2
src/components/dataReview/index.vue

@@ -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);