Bläddra i källkod

1.ip更换后,旧数据编码异常问题

“liuhy” 2 år sedan
förälder
incheckning
ce0c12fba5

+ 29 - 8
src/views/lotCheck/modules/TaskCheckAudit.vue

@@ -2705,16 +2705,16 @@ export default {
           that.infoModel = result;
           that.lotDataValue(data);
           that.dataList = result.history;
-          that.infoModel.testCard = JSON.parse(result.testCard);
-          that.infoModel.contract = JSON.parse(result.contract);
+          that.infoModel.testCard = this.urlBase64(JSON.parse(result.testCard));
+          that.infoModel.contract = this.urlBase64(JSON.parse(result.contract));
           that.steps.current = 0;
           that.steps.currentId = that.steps.stepsNow[0].id
-          that.infoModel.handlingContract = JSON.parse(result.handlingContract);
-          that.infoModel.handlingCard = JSON.parse(result.handlingCard);
-          that.infoModel.customerCardScanning = JSON.parse(result.customerCardScanning);
-          that.infoModel.riskTable = JSON.parse(result.riskTable);
-          that.infoModel.priceTable = JSON.parse(result.priceTable);
-          that.infoModel.commitment = JSON.parse(result.commitment);
+          that.infoModel.handlingContract = this.urlBase64(JSON.parse(result.handlingContract));
+          that.infoModel.handlingCard = this.urlBase64(JSON.parse(result.handlingCard));
+          that.infoModel.customerCardScanning = this.urlBase64(JSON.parse(result.customerCardScanning));
+          that.infoModel.riskTable = this.urlBase64(JSON.parse(result.riskTable));
+          that.infoModel.priceTable = this.urlBase64(JSON.parse(result.priceTable));
+          that.infoModel.commitment = this.urlBase64(JSON.parse(result.commitment));
           that.checkState = result.checkState;
           if (that.$route.query.checkState!==''&& that.$route.query.checkState!=null){
             that.checkState = that.$route.query.checkState
@@ -2778,6 +2778,27 @@ export default {
 
       })
     },
+    /**
+     * url重新编码
+     * @param data
+     */
+    urlBase64(list){
+      if (list && list.length > 0){
+        for (let i=0;i<list.length;i++){
+          let data = list[i];
+          if (data.urlBase && data.url){
+            data.urlBase = window._CONFIG['onlinePreviewDomainURL'] + '?url='
+              + encodeURIComponent(
+                Base64.encode(
+                  (data.url)
+                ))
+            list[i] = data;
+          }
+        }
+
+      }
+      return list;
+    },
     lotDataValue(data) {
       let that = this;
       if (data.control === '' || data.control === null) {

+ 30 - 8
src/views/lotCheck/modules/TaskCheckAuditSelect.vue

@@ -2705,16 +2705,16 @@ export default {
           that.infoModel = result;
           that.lotDataValue(data);
           that.dataList = result.history;
-          that.infoModel.testCard = JSON.parse(result.testCard);
-          that.infoModel.contract = JSON.parse(result.contract);
+          that.infoModel.testCard = this.urlBase64(JSON.parse(result.testCard));
+          that.infoModel.contract = this.urlBase64(JSON.parse(result.contract));
           that.steps.current = 0;
           that.steps.currentId = that.steps.stepsNow[0].id
-          that.infoModel.handlingContract = JSON.parse(result.handlingContract);
-          that.infoModel.handlingCard = JSON.parse(result.handlingCard);
-          that.infoModel.customerCardScanning = JSON.parse(result.customerCardScanning);
-          that.infoModel.riskTable = JSON.parse(result.riskTable);
-          that.infoModel.priceTable = JSON.parse(result.priceTable);
-          that.infoModel.commitment = JSON.parse(result.commitment);
+          that.infoModel.handlingContract = this.urlBase64(JSON.parse(result.handlingContract));
+          that.infoModel.handlingCard = this.urlBase64(JSON.parse(result.handlingCard));
+          that.infoModel.customerCardScanning = this.urlBase64(JSON.parse(result.customerCardScanning));
+          that.infoModel.riskTable = this.urlBase64(JSON.parse(result.riskTable));
+          that.infoModel.priceTable = this.urlBase64( JSON.parse(result.priceTable));
+          that.infoModel.commitment = this.urlBase64(JSON.parse(result.commitment));
           that.checkState = result.checkState;
           if (that.$route.query.checkState!==''&& that.$route.query.checkState!=null){
             that.checkState = that.$route.query.checkState
@@ -2778,6 +2778,28 @@ export default {
 
       })
     },
+
+    /**
+     * url重新编码
+     * @param data
+     */
+    urlBase64(list){
+      if (list && list.length > 0){
+        for (let i=0;i<list.length;i++){
+          let data = list[i];
+          if (data.urlBase && data.url){
+            data.urlBase = window._CONFIG['onlinePreviewDomainURL'] + '?url='
+              + encodeURIComponent(
+                Base64.encode(
+                  (data.url)
+                ))
+            list[i] = data;
+          }
+        }
+
+      }
+      return list;
+    },
     lotDataValue(data) {
       let that = this;
       if (data.control === '' || data.control === null) {

+ 29 - 8
src/views/lotCheck/modules/TaskCheckAuditZG.vue

@@ -2705,16 +2705,16 @@ export default {
           that.infoModel = result;
           that.lotDataValue(data);
           that.dataList = result.history;
-          that.infoModel.testCard = JSON.parse(result.testCard);
-          that.infoModel.contract = JSON.parse(result.contract);
+          that.infoModel.testCard = this.urlBase64(JSON.parse(result.testCard));
+          that.infoModel.contract = this.urlBase64(JSON.parse(result.contract));
           that.steps.current = 0;
           that.steps.currentId = that.steps.stepsNow[0].id
-          that.infoModel.handlingContract = JSON.parse(result.handlingContract);
-          that.infoModel.handlingCard = JSON.parse(result.handlingCard);
-          that.infoModel.customerCardScanning = JSON.parse(result.customerCardScanning);
-          that.infoModel.riskTable = JSON.parse(result.riskTable);
-          that.infoModel.priceTable = JSON.parse(result.priceTable);
-          that.infoModel.commitment = JSON.parse(result.commitment);
+          that.infoModel.handlingContract = this.urlBase64(JSON.parse(result.handlingContract));
+          that.infoModel.handlingCard = this.urlBase64(JSON.parse(result.handlingCard));
+          that.infoModel.customerCardScanning = this.urlBase64(JSON.parse(result.customerCardScanning));
+          that.infoModel.riskTable = this.urlBase64(JSON.parse(result.riskTable));
+          that.infoModel.priceTable = this.urlBase64(JSON.parse(result.priceTable));
+          that.infoModel.commitment = this.urlBase64(JSON.parse(result.commitment));
           that.checkState = result.checkState;
           if (that.$route.query.checkState!==''&& that.$route.query.checkState!=null){
             that.checkState = that.$route.query.checkState
@@ -2778,6 +2778,27 @@ export default {
 
       })
     },
+    /**
+     * url重新编码
+     * @param data
+     */
+    urlBase64(list){
+      if (list && list.length > 0){
+        for (let i=0;i<list.length;i++){
+          let data = list[i];
+          if (data.urlBase && data.url){
+            data.urlBase = window._CONFIG['onlinePreviewDomainURL'] + '?url='
+              + encodeURIComponent(
+                Base64.encode(
+                  (data.url)
+                ))
+            list[i] = data;
+          }
+        }
+
+      }
+      return list;
+    },
     lotDataValue(data) {
       let that = this;
       if (data.control === '' || data.control === null) {

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 394 - 279
src/views/networkAccess/registration.vue


+ 31 - 9
src/views/networkAccess/registrationSelect.vue

@@ -586,13 +586,25 @@
                 <a-form ref="form" :model="model"  >
                   <!-- 这个的v-for是核心是重点,一定要明白! -->
                   <div v-for="(item,index) in array" :key="index"  >
+                    <a-row>
+                      <a-col :span="10">
+                        <a-form-model-item  label=" 新办号码"   prop="industry" :labelCol="{ span: 3 }" :wrapperCol="{ span:  10}"  >
+                          <span  class="cornflowerblue">{{ form.value[index]}}</span>
+                          <!--                      <a-input style="width:20%;margin-right:10px" v-model="form.value[index]" placeholder="请输入新办号码" :disabled="isDisabled"></a-input>-->
+                          <!--                      <a-button type="link"  @click="add">[ + ]</a-button>-->
+                          <!--                      <a-button type="link"  @click="del(index)">[ - ]</a-button>-->
+                        </a-form-model-item>
+                      </a-col>
+                      <a-col :span="10">
+                        <a-form-model-item  label=" 用户编号"   prop="industry" :labelCol="{ span: 3 }" :wrapperCol="{ span: 18 }"  >
+                          <span  class="cornflowerblue">{{ form.phoneUserId[index]}}</span>
+                        </a-form-model-item>
+                      </a-col>
+
+
+
+                    </a-row>
 
-                    <a-form-model-item  label=" 新办号码"   prop="industry" :labelCol="{ span: 3 }" :wrapperCol="{ span: 18 }"  >
-                      <span  class="cornflowerblue">{{ form.value[index]}}</span>
-<!--                      <a-input style="width:20%;margin-right:10px" v-model="form.value[index]" placeholder="请输入新办号码" :disabled="isDisabled"></a-input>-->
-<!--                      <a-button type="link"  @click="add">[ + ]</a-button>-->
-<!--                      <a-button type="link"  @click="del(index)">[ - ]</a-button>-->
-                    </a-form-model-item>
 
                   </div>
                 </a-form>
@@ -990,7 +1002,8 @@ export default {
     return {
       array:[],  //创建一个数组
       form:{
-        value:[]  //接收每个input框的值
+        value:[],  //接收每个input框的值
+        phoneUserId:[]  //接收每个input框的值
       },
 
       riskShow:true,
@@ -1453,6 +1466,7 @@ export default {
         positionInformation: '',
         businessAddress: '',
         newPhone: '',
+        phoneUserId:'',
         newPhone2: '',
         newPhone3: '',
         newPhone4: '',
@@ -2368,6 +2382,7 @@ export default {
           "id": this.model.id
         }
         var newPhones;
+        var phoneUserIds;
        //this.getSysCompany();
         getAction(that.url.queryByCardNo, data).then((res) => {
           if (res.success) {
@@ -2385,6 +2400,11 @@ export default {
                       newPhones = result[0][key].split(',');
                     }
                   }
+                  if (key === 'phoneUserId'){
+                    if (  result[0][key]!==null &&  result[0][key]!==''){
+                      phoneUserIds = result[0][key].split(',');
+                    }
+                  }
                   if (key==='industry'){
 
                     var a=0;
@@ -2405,6 +2425,10 @@ export default {
                 this.form.value.push(item)
                 this.array.push(1)
               }
+              for (var userId of phoneUserIds){
+                this.form.phoneUserId.push(userId)
+              }
+
                 for (var item of this.sysCompany) {
                   if (item.id === this.model.company) {
                     this.companyName = item.name;
@@ -3164,8 +3188,6 @@ export default {
       }
 
 
-
-
       let data = {
         "sysBusinessHall": this.model.sysBusinessHall,
         "company": this.model.company,

+ 8 - 1
src/views/networkAccess/registrationUpdate.vue

@@ -548,6 +548,7 @@
                       <a-form-model-item  label=" 新办号码"   prop="industry" :labelCol="{ span: 3 }" :wrapperCol="{ span: 18 }">
 
                         <a-input style="width:20%;margin-right:10px" v-model="form.value[index]" placeholder="请输入新办号码"></a-input>
+                        <a-input style="width:20%;margin-right:10px" v-model="form.phoneUserId[index]" placeholder="请输入此号码的用户编号"></a-input>
                         <a-button type="link"  @click="add">[ + ]</a-button>
                         <a-button type="link"  @click="del(index)">[ - ]</a-button>
                       </a-form-model-item>
@@ -944,7 +945,8 @@ export default {
     return {
       array:[],  //创建一个数组
       form:{
-        value:[]  //接收每个input框的值
+        value:[],  //接收每个input框的值
+        phoneUserId:[]
       },
       riskShow:true,
       columns:[{ title: '证件编号', width: 180, dataIndex: 'cardNo', key: 'cardNo'  },
@@ -1408,6 +1410,7 @@ export default {
         positionInformation: '',
         businessAddress: '',
         newPhone: '',
+        phoneUserId:'',
         newPhone2: '',
         newPhone3: '',
         newPhone4: '',
@@ -3141,6 +3144,9 @@ export default {
         }
       }
       if (info==='submit'){
+        if (this.form.phoneUserId.length>0){
+          this.model.phoneUserId=this.form.phoneUserId.join(',');
+        }
         if (this.form.value.length>0) {
           this.model.newPhone=this.form.value.join(',');
         }else {
@@ -3196,6 +3202,7 @@ export default {
         "judgmentResearch":this.model.judgmentResearch,
         "industry":this.model.industry,
         "newPhone": this.model.newPhone,
+        "phoneUserId": this.model.phoneUserId,
         //客户名下无电信号码
         "isDxNumber": this.model.isDxNumber,
         //客户名下无电信号码备注

+ 29 - 0
src/views/networkAccess/userStatistics.vue

@@ -248,6 +248,9 @@
           <template v-slot:newPhone="text, record">
             <div>{{newPhone(text)}}</div>
           </template>
+          <template v-slot:phoneUserId="text, record">
+            <div>{{phoneUserId(text)}}</div>
+          </template>
           <template v-slot:newBusinessAddress="text, record">
             <div>{{getSysCompany(text)}}</div>
           </template>
@@ -424,6 +427,13 @@ export default {
           width: 200,
           dataIndex: 'newPhone',
           scopedSlots: {customRender: 'newPhone'}
+        },
+        {
+          title: '用户编号',
+          align: "center",
+          width: 200,
+          dataIndex: 'phoneUserId',
+          scopedSlots: {customRender: 'phoneUserId'}
         },{
           title: '当前处理部门',
           align: "center",
@@ -725,6 +735,25 @@ export default {
       }
       return phone
     },
+
+    phoneUserId(phoneUserId){
+      if (!phoneUserId){
+        return null
+      }
+      var phoneUserIds='';
+      phoneUserId = phoneUserId.split(',');
+      for (var item of  phoneUserId) {
+
+        phoneUserIds+=item+' '
+
+      }
+      if (!phoneUserIds){
+        return null;
+      }
+      console.log(phoneUserIds)
+      return phoneUserIds
+    },
+
     currentCom(record){
       //新建未报
       if (record.status==='0'){

+ 39 - 16
src/views/smscheck/modules/TaskCheckCheck.vue

@@ -2807,22 +2807,22 @@ export default {
             that.infoModel=result;
             result=this.getInfoDataById(infoId,result);
             that.dataList=result.history;
-            that.infoModel.contractDate= JSON.parse(result.contractDate);
-            that.infoModel.businessLicenseDate= result.businessLicenseDate===''?'':JSON.parse(result.businessLicenseDate);
-            that.infoModel.codeNumberDate= result.codeNumberDate===''?'':JSON.parse(result.codeNumberDate);
-            that.infoModel.filingsDate= result.filingsDate===''?'':JSON.parse(result.filingsDate);
-            that.infoModel.permitDate= result.permitDate===''?'':JSON.parse(result.permitDate);
-            that.infoModel.corporationCard= result.corporationCard===''?'':JSON.parse(result.corporationCard);
-            that.infoModel.personResponsible= result.personResponsible===''?'':JSON.parse(result.personResponsible);
-            that.infoModel.operatorCard=result.operatorCard ===''?'':JSON.parse(result.operatorCard);
-            that.infoModel.operatorCardPhone= result.operatorCardPhone===''?'':JSON.parse(result.operatorCardPhone);
-            that.infoModel.devicePhone= result.devicePhone===''?'':JSON.parse(result.devicePhone);
-            that.infoModel.textMessage= result.textMessage===''?'':JSON.parse(result.textMessage);
-            that.infoModel.textMessageBook=result.textMessageBook ===''?'':JSON.parse(result.textMessageBook);
-            that.infoModel.secureBook=result.secureBook ===''?'':JSON.parse(result.secureBook);
-            that.infoModel.special= result.special===''?'':JSON.parse(result.special);
-            that.infoModel.networkAccess=result.networkAccess ===''?'':JSON.parse(result.networkAccess);
-            that.infoModel.groupPriceApproval=result.groupPriceApproval===''?'':JSON.parse(result.groupPriceApproval);
+            that.infoModel.contractDate= this.urlBase64(JSON.parse(result.contractDate));
+            that.infoModel.businessLicenseDate= result.businessLicenseDate===''?'':this.urlBase64(JSON.parse(result.businessLicenseDate));
+            that.infoModel.codeNumberDate= result.codeNumberDate===''?'':this.urlBase64(JSON.parse(result.codeNumberDate));
+            that.infoModel.filingsDate= result.filingsDate===''?'':this.urlBase64(JSON.parse(result.filingsDate));
+            that.infoModel.permitDate= result.permitDate===''?'':this.urlBase64(JSON.parse(result.permitDate));
+            that.infoModel.corporationCard= result.corporationCard===''?'':this.urlBase64(JSON.parse(result.corporationCard));
+            that.infoModel.personResponsible= result.personResponsible===''?'':this.urlBase64(JSON.parse(result.personResponsible));
+            that.infoModel.operatorCard=result.operatorCard ===''?'':this.urlBase64(JSON.parse(result.operatorCard));
+            that.infoModel.operatorCardPhone= result.operatorCardPhone===''?'':this.urlBase64(JSON.parse(result.operatorCardPhone));
+            that.infoModel.devicePhone= result.devicePhone===''?'':this.urlBase64(JSON.parse(result.devicePhone));
+            that.infoModel.textMessage= result.textMessage===''?'':this.urlBase64(JSON.parse(result.textMessage));
+            that.infoModel.textMessageBook=result.textMessageBook ===''?'':this.urlBase64(JSON.parse(result.textMessageBook));
+            that.infoModel.secureBook=result.secureBook ===''?'':this.urlBase64(JSON.parse(result.secureBook));
+            that.infoModel.special= result.special===''?'':this.urlBase64(JSON.parse(result.special));
+            that.infoModel.networkAccess=result.networkAccess ===''?'':this.urlBase64(JSON.parse(result.networkAccess));
+            that.infoModel.groupPriceApproval=result.groupPriceApproval===''?'':this.urlBase64(JSON.parse(result.groupPriceApproval));
             for (var i in that.steps.stepsNow) {
               for (var j in result[that.steps.stepsNow[i].id]){
                 if (result[that.steps.stepsNow[i].id+'Result']!=undefined &&result[that.steps.stepsNow[i].id+'Result']!=null&&result[that.steps.stepsNow[i].id+'Result'][0]!==undefined){
@@ -2853,9 +2853,32 @@ export default {
           }
         })
       }
+    },
+
+    /**
+     * url重新编码
+     * @param data
+     */
+    urlBase64(list){
+      if (list && list.length > 0){
+        for (let i=0;i<list.length;i++){
+          let data = list[i];
+          if (data.urlBase && data.url){
+            data.urlBase = window._CONFIG['onlinePreviewDomainURL'] + '?url='
+              + encodeURIComponent(
+                Base64.encode(
+                  (data.url)
+                ))
+            list[i] = data;
+          }
+        }
 
+      }
+      return list;
     }
 
+
+
   }
 
 

+ 38 - 16
src/views/smscheck/modules/TaskUploadDataSelect.vue

@@ -3052,22 +3052,22 @@ export default {
             result=this.getInfoDataById(infoId,result)
             that.infoModel=result;
             that.dataList=result.history;
-            that.infoModel.contractDate= JSON.parse(result.contractDate);
-            that.infoModel.businessLicenseDate= JSON.parse(result.businessLicenseDate);
-            that.infoModel.codeNumberDate= JSON.parse(result.codeNumberDate);
-            that.infoModel.filingsDate= JSON.parse(result.filingsDate);
-            that.infoModel.permitDate= JSON.parse(result.permitDate);
-            that.infoModel.corporationCard= JSON.parse(result.corporationCard);
-            that.infoModel.personResponsible= JSON.parse(result.personResponsible);
-            that.infoModel.operatorCard= JSON.parse(result.operatorCard);
-            that.infoModel.operatorCardPhone= JSON.parse(result.operatorCardPhone);
-            that.infoModel.devicePhone= JSON.parse(result.devicePhone);
-            that.infoModel.textMessage= JSON.parse(result.textMessage);
-            that.infoModel.textMessageBook= JSON.parse(result.textMessageBook);
-            that.infoModel.secureBook= JSON.parse(result.secureBook);
-            that.infoModel.special= JSON.parse(result.special);
-            that.infoModel.networkAccess= JSON.parse(result.networkAccess);
-            that.infoModel.groupPriceApproval= JSON.parse(result.groupPriceApproval);
+            that.infoModel.contractDate= this.urlBase64(JSON.parse(result.contractDate));
+            that.infoModel.businessLicenseDate= this.urlBase64(JSON.parse(result.businessLicenseDate));
+            that.infoModel.codeNumberDate= this.urlBase64(JSON.parse(result.codeNumberDate));
+            that.infoModel.filingsDate= this.urlBase64(JSON.parse(result.filingsDate));
+            that.infoModel.permitDate= this.urlBase64(JSON.parse(result.permitDate));
+            that.infoModel.corporationCard= this.urlBase64(JSON.parse(result.corporationCard));
+            that.infoModel.personResponsible= this.urlBase64(JSON.parse(result.personResponsible));
+            that.infoModel.operatorCard= this.urlBase64(JSON.parse(result.operatorCard));
+            that.infoModel.operatorCardPhone= this.urlBase64(JSON.parse(result.operatorCardPhone));
+            that.infoModel.devicePhone= this.urlBase64(JSON.parse(result.devicePhone));
+            that.infoModel.textMessage=  this.urlBase64(JSON.parse(result.textMessage));
+            that.infoModel.textMessageBook= this.urlBase64(JSON.parse(result.textMessageBook));
+            that.infoModel.secureBook= this.urlBase64(JSON.parse(result.secureBook));
+            that.infoModel.special= this.urlBase64(JSON.parse(result.special));
+            that.infoModel.networkAccess= this.urlBase64(JSON.parse(result.networkAccess));
+            that.infoModel.groupPriceApproval= this.urlBase64(JSON.parse(result.groupPriceApproval));
             for (var i in that.steps.stepsNow) {
               for (var j in result[that.steps.stepsNow[i].id]){
                 if (result[that.steps.stepsNow[i].id+'Result']!=undefined &&result[that.steps.stepsNow[i].id+'Result']!=null&&result[that.steps.stepsNow[i].id+'Result'][0]!==undefined){
@@ -3095,7 +3095,29 @@ export default {
         })
       }
 
+    },
+    /**
+     * url重新编码
+     * @param data
+     */
+    urlBase64(list){
+      if (list && list.length > 0){
+        for (let i=0;i<list.length;i++){
+          let data = list[i];
+          if (data.urlBase && data.url){
+            data.urlBase = window._CONFIG['onlinePreviewDomainURL'] + '?url='
+              + encodeURIComponent(
+                Base64.encode(
+                  (data.url)
+                ))
+            list[i] = data;
+          }
+        }
+
+      }
+      return list;
     }
+
   },
   /**获取客户DataLog信息*/
   getInfoDataLogByInfoId(infoId) {

+ 2 - 0
src/views/specialApply/TaskUploadData.vue

@@ -394,12 +394,14 @@
                 height="500px"
                 scrolling="auto">
               </iframe>
+
               <img style="width: 100%;height: 500px;border: 1px solid;"
                    v-if="!item.urlBase" :src="noDataPng" border="1">
               <a-button v-if="infoModel.fileListIdCard.length &&  item.urlBase && specialResult.idCardState != 1"
                         style="display: block;margin-top: 10px;border-color: red;color: red;float: left"
                         danger @click="removeFile(item,'fileListIdCard')">移除
               </a-button>
+
               <a-button
                 style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                 v-if="infoModel.fileListIdCard.length && item.urlBase"

+ 40 - 18
src/views/truckCheck/modules/TaskCheckAuditSelect.vue

@@ -4861,24 +4861,24 @@ export default {
             // result=this.getInfoDataById(infoId,result)
             that.infoModel=result;
             that.dataList=result.history;
-            that.infoModel.applySign= JSON.parse(result.applySign);
-            that.infoModel.threePhotos= JSON.parse(result.threePhotos);
-            that.infoModel.commitmentBook= JSON.parse(result.commitmentBook);
-            that.infoModel.isPriceApproval= JSON.parse(result.isPriceApproval);
-            that.infoModel.legalIdCard= JSON.parse(result.legalIdCard);
-            that.infoModel.operatorIdCard= JSON.parse(result.operatorIdCard);
-            that.infoModel.authorizeBook= JSON.parse(result.authorizeBook);
-            that.infoModel.businessLicense= JSON.parse(result.businessLicense);
-            that.infoModel.zZBusinessLicense= JSON.parse(result.zZBusinessLicense);
-            that.infoModel.centerBusiness= JSON.parse(result.centerBusiness);
-            that.infoModel.contractOrProve= JSON.parse(result.contractOrProve);
-            that.infoModel.riskTable= JSON.parse(result.riskTable);
-            that.infoModel.trunkTable= JSON.parse(result.trunkTable);
-            that.infoModel.trunkContract= JSON.parse(result.trunkContract);
-            that.infoModel.accessPhone= JSON.parse(result.accessPhone);
-            that.infoModel.accessPhoto= JSON.parse(result.accessPhoto);
-            that.infoModel.accessTable= JSON.parse(result.accessTable);
-            that.infoModel.commitment = JSON.parse(result.commitment);
+            that.infoModel.applySign= this.urlBase64(JSON.parse(result.applySign));
+            that.infoModel.threePhotos= this.urlBase64(JSON.parse(result.threePhotos));
+            that.infoModel.commitmentBook= this.urlBase64(JSON.parse(result.commitmentBook));
+            that.infoModel.isPriceApproval= this.urlBase64(JSON.parse(result.isPriceApproval));
+            that.infoModel.legalIdCard= this.urlBase64(JSON.parse(result.legalIdCard));
+            that.infoModel.operatorIdCard= this.urlBase64(JSON.parse(result.operatorIdCard));
+            that.infoModel.authorizeBook= this.urlBase64(JSON.parse(result.authorizeBook));
+            that.infoModel.businessLicense= this.urlBase64(JSON.parse(result.businessLicense));
+            that.infoModel.zZBusinessLicense= this.urlBase64(JSON.parse(result.zZBusinessLicense));
+            that.infoModel.centerBusiness= this.urlBase64(JSON.parse(result.centerBusiness));
+            that.infoModel.contractOrProve= this.urlBase64(JSON.parse(result.contractOrProve));
+            that.infoModel.riskTable= this.urlBase64(JSON.parse(result.riskTable));
+            that.infoModel.trunkTable= this.urlBase64(JSON.parse(result.trunkTable));
+            that.infoModel.trunkContract= this.urlBase64(JSON.parse(result.trunkContract));
+            that.infoModel.accessPhone= this.urlBase64(JSON.parse(result.accessPhone));
+            that.infoModel.accessPhoto= this.urlBase64(JSON.parse(result.accessPhoto));
+            that.infoModel.accessTable= this.urlBase64(JSON.parse(result.accessTable));
+            that.infoModel.commitment = this.urlBase64(JSON.parse(result.commitment));
             that.infoModel.customType= result.customType ;
             that.infoModel.scene= result.scene ;
             var customType =result.customType;
@@ -5377,6 +5377,28 @@ export default {
       }
       return newArr;
     },
+
+    /**
+     * url重新编码
+     * @param data
+     */
+    urlBase64(list){
+      if (list && list.length > 0){
+        for (let i=0;i<list.length;i++){
+          let data = list[i];
+          if (data.urlBase && data.url){
+            data.urlBase = window._CONFIG['onlinePreviewDomainURL'] + '?url='
+              + encodeURIComponent(
+                Base64.encode(
+                  (data.url)
+                ))
+            list[i] = data;
+          }
+        }
+
+      }
+      return list;
+    }
   },
 
 }

Vissa filer visades inte eftersom för många filer har ändrats