Bläddra i källkod

Merge branch 'master' of http://118.190.145.217:3000/xiaojincai/yfadmin_web

xjc 5 år sedan
förälder
incheckning
530c6f35d0
1 ändrade filer med 7 tillägg och 7 borttagningar
  1. 7 7
      src/views/apply/Detail.vue

+ 7 - 7
src/views/apply/Detail.vue

@@ -161,23 +161,23 @@
                     </li>
                 </ul>
                 <ul>
-                    <li class="title">身份证正面照  <i @click="rotate(form.idnoimg_face)" class="el-icon-refresh-right"></i></li>
+                    <li class="title">身份证正面照  <i @click="rotate(form.idnoimg_face,'idnoimg_face')" class="el-icon-refresh-right"></i></li>
                     <img width="100%" :src="form.idnoimg_face" alt="">
                 </ul>
                 <ul>
-                    <li class="title">身份证反面照 <i @click="rotate(form.idnoimg_back)" class="el-icon-refresh-right"></i></li>
+                    <li class="title">身份证反面照 <i @click="rotate(form.idnoimg_back,'idnoimg_back')" class="el-icon-refresh-right"></i></li>
                     <img width="100%" :src="form.idnoimg_back" alt="">
                 </ul>
                 <ul>
-                    <li class="title">半身照 <i @click="rotate(form.halfbody_img)" class="el-icon-refresh-right"></i></li>
+                    <li class="title">半身照 <i @click="rotate(form.halfbody_img,'halfbody_img')" class="el-icon-refresh-right"></i></li>
                     <img width="100%" :src="form.halfbody_img" alt="">
                 </ul>
                 <ul>
-                    <li class="title">学历照 <i @click="rotate(form.education_img)" class="el-icon-refresh-right"></i></li>
+                    <li class="title">学历照 <i @click="rotate(form.education_img,'education_img')" class="el-icon-refresh-right"></i></li>
                     <img width="100%" :src="form.education_img" alt="">
                 </ul>
                 <ul v-if='form.train_type == "换证"||form.train_type=="复审"'>
-                    <li class="title">原证件照 <i @click="rotate(form.oldcard_img)" class="el-icon-refresh-right"></i></li>
+                    <li class="title">原证件照 <i @click="rotate(form.oldcard_img,'oldcard_img')" class="el-icon-refresh-right"></i></li>
                     <img width="100%" :src="form.oldcard_img" alt="">
                 </ul>
            </div>
@@ -202,11 +202,11 @@ export default {
               this.form.subject_items=this.form.subject_item.split('|')
           })
       },
-      rotate(url){
+      rotate(url,key){
           this.$api.rotateImg({url:url}).then(res=>{
               if(res.data.code==0){
                     let form=this.form;
-                    this.$set(form,url,res.data.data.url);
+                    this.$set(form,key,res.data.data.url);
                     this.form=form;
                     this.$message({message: '旋转成功!',type: 'success'});
               }else{