|
|
@@ -145,7 +145,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- 粉丝数 -->
|
|
|
- <el-table-column label="粉丝数" prop="fansNum" align="center" width="70px">
|
|
|
+ <el-table-column label="粉丝数" prop="fansNum" align="center" width="70px">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.fansNum}}</span>
|
|
|
</template>
|
|
|
@@ -234,17 +234,28 @@
|
|
|
<el-tag v-if="scope.row.status === '已发布'" type="success">已发布</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="发布时间" prop="publishTime" align="center">
|
|
|
+ <el-table-column label="发布时间" prop="publishTime" align="center" width="120px">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.publishTime}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="同步状态" prop="settleStatus" align="center" width="90px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-if="scope.row.syncStatus === '失败'" type="danger">失败</el-tag>
|
|
|
+ <el-tag v-if="scope.row.syncStatus === '成功'" type="success">成功</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="同步时间" prop="publishTime" align="center" width="120px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.syncTime}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" fixed="right" :label="$t('publics.operating')" width="auto">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="text-btn-con">
|
|
|
<div class="default-btn text-btn" @click="addOrUpdateHandle(scope.row.id)">{{$t("crud.updateBtn")}}</div>
|
|
|
<div class="default-btn text-btn" @click.stop="deleteHandle(scope.row.id)">{{$t("text.delBtn")}}</div>
|
|
|
- <el-button class="default-btn text-btn" :loading="syncVisible" @click.stop="syncHandle(scope.row.id)">同步</el-button>
|
|
|
+ <el-button class="default-btn text-btn" :loading="syncVisible" @click.stop="syncHandle(scope.row, scope.$index)">同步</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -316,21 +327,23 @@ export default {
|
|
|
this.getShopList()
|
|
|
},
|
|
|
methods: {
|
|
|
- syncHandle(videoId){
|
|
|
+ syncHandle(row, index){
|
|
|
this.syncVisible = true
|
|
|
this.$http({
|
|
|
url: this.$http.adornUrl('/promotion/promotionVideo/syncVideoData'),
|
|
|
method: 'POST',
|
|
|
- data: this.$http.adornData({id: videoId})
|
|
|
+ data: this.$http.adornData({id: row.id})
|
|
|
}).then(({ data }) => {
|
|
|
this.syncVisible = false
|
|
|
this.$message({
|
|
|
message: this.$i18n.t('publics.operation'),
|
|
|
type: 'success',
|
|
|
})
|
|
|
- this.refreshChange()
|
|
|
+ this.$set(this.dataList, index, data);
|
|
|
+ // this.dataList[index] = data
|
|
|
}).catch((error) =>{
|
|
|
this.syncVisible = false
|
|
|
+ this.$set(this.dataList, index, data);
|
|
|
})
|
|
|
},
|
|
|
openUploadDialog(){
|