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