朱鑫波 4 vuotta sitten
vanhempi
commit
214b4a24ef
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      src/views/modules/advertiser/UserAllocationList.vue

+ 5 - 2
src/views/modules/advertiser/UserAllocationList.vue

@@ -102,7 +102,8 @@
 
         <div slot="authName" slot-scope="text, record">
           <span>{{ text }}</span>
-          <a @click="renew(record)" style="float: right">更新</a>
+          <a-button size="small" @click="renew(record)" style="float: right" :loading="record.showVideo"> 更新 </a-button>
+          <!-- showVideo -->
         </div>
 
         <span slot="action" slot-scope="text, record">
@@ -404,12 +405,14 @@ export default {
   methods: {
     renew(item) {
       console.log(item)
+      item.showVideo = true
       getAction('/ctop/userAllocation/updateAuthName', { accountId: item.accountId, mediaId: item.mediaId }).then(
         (res) => {
           if (res.success) {
             this.loadData()
-          }else{
+          } else {
             this.$message.error('更新数据失败,请稍后重试!!!')
+            item.showVideo = false
           }
         }
       )