xiaojincai 5 vuotta sitten
vanhempi
commit
fe66152dfd

+ 4 - 1
src/views/apply/Change.vue

@@ -234,7 +234,8 @@ export default {
       url:'',
       loading:false,
       subject_id:'',
-      subject_item:''
+      subject_item:'',
+      download_loading:false
     }
   },
   methods:{
@@ -441,6 +442,7 @@ export default {
               type:type
           }
           if(val.length>0){
+                this.download_loading = true;
                 this.$api.downloadzip(parm).then(res=>{
                     // if(res.data.code == 0){
                         var elink = document.createElement('a');
@@ -453,6 +455,7 @@ export default {
                         document.body.appendChild(elink);
                         elink.click();
                         document.body.removeChild(elink);      
+                        this.download_loading = false;
                     // }else{
                     //     this.$message.error(res.data.message);
                     // }

+ 4 - 1
src/views/apply/Detail.vue

@@ -162,7 +162,7 @@
                 </ul>
                 <ul>
                     <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="">
+                    <img width="100%" :src="idnoimg_face" alt="">
                 </ul>
                 <ul>
                     <li class="title">身份证反面照 <i @click="rotate(form.idnoimg_back,'idnoimg_back')" class="el-icon-refresh-right"></i></li>
@@ -189,6 +189,7 @@ export default {
 
   data(){
     return{
+      idnoimg_face:"",
       form:{},
       radios:1,
       id:'',
@@ -199,6 +200,7 @@ export default {
       getData(){
           this.$api.getSign({id:this.id}).then(res=>{
               this.form=res.data.data
+              this.idnoimg_face = res.data.data.idnoimg_face
               this.form.subject_items=this.form.subject_item.split('|')
           })
       },
@@ -208,6 +210,7 @@ export default {
                     // let form=this.form;
                     this.$set(this.form,key,res.data.data.url);
                     // this.form=form;
+                    ths.idnoimg_face = res.data.data.url;
                     this.$message({message: '旋转成功!',type: 'success'});
               }else{
                   this.$message.error(res.data.message);

+ 5 - 2
src/views/apply/New.vue

@@ -3,7 +3,7 @@
     
 </style>
 <template>
-    <section class="apply">
+    <section class="apply" v-loading="download_loading">
         <p>报名列表 > {{subject_item}} > 新办</p>
         <div class="filter">
             <el-form label-width="75px" :inline="true" size="small">
@@ -237,7 +237,8 @@ export default {
       url:'',
       loading:false,
       subject_id:'',
-      subject_item:''
+      subject_item:'',
+      download_loading:false
     }
   },
   methods:{
@@ -444,6 +445,7 @@ export default {
               type:type
           }
           if(val.length>0){
+                this.download_loading = true;
                 this.$api.downloadzip(parm).then(res=>{
                     // if(res.data.code == 0){
                         var elink = document.createElement('a');
@@ -456,6 +458,7 @@ export default {
                         document.body.appendChild(elink);
                         elink.click();
                         document.body.removeChild(elink);      
+                        this.download_loading = false;
                     // }else{
                     //     this.$message.error(res.data.message);
                     // }

+ 4 - 1
src/views/apply/Update.vue

@@ -235,7 +235,8 @@ export default {
       url:'',
       loading:false,
       subject_id:'',
-      subject_item:''
+      subject_item:'',
+      download_loading:false
     }
   },
   methods:{
@@ -442,6 +443,7 @@ export default {
               type:type
           }
           if(val.length>0){
+                this.download_loading = true;
                 this.$api.downloadzip(parm).then(res=>{
                     // if(res.data.code == 0){
                         var elink = document.createElement('a');
@@ -454,6 +456,7 @@ export default {
                         document.body.appendChild(elink);
                         elink.click();
                         document.body.removeChild(elink);      
+                        this.download_loading = false;
                     // }else{
                     //     this.$message.error(res.data.message);
                     // }