|
@@ -93,7 +93,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="推送状态" show-overflow-tooltipphone>
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{scope.row.sync===true?'推送成功':'推送失败'}}</span>
|
|
|
+ <span>{{scope.row.sync===true?'推送成功':'--'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="激活手机号" show-overflow-tooltip>
|
|
@@ -111,7 +111,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" v-if="scope.row.phone == null"
|
|
|
@click="activationVip(scope.row)">激活</el-button>
|
|
|
- <el-button type="text" size="small" v-else @click="synchronization">同步</el-button>
|
|
|
+ <el-button type="text" size="small" v-else @click="synchronization(scope.row)">同步</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -138,7 +138,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { debounce } from "@/utils/index";
|
|
|
-import { checkoutActivationCode, labourActivation } from "@/api/common";
|
|
|
+import { checkoutActivationCode, labourActivation,syncNotified } from "@/api/common";
|
|
|
import { timeFormat } from "@/utils/index";
|
|
|
|
|
|
export default {
|
|
@@ -192,8 +192,12 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// 同步和校园数据,待完成
|
|
|
- synchronization(){
|
|
|
- this.getList();
|
|
|
+ synchronization(item){
|
|
|
+ syncNotified({ticketId:item.id}).then((res)=>{
|
|
|
+ if(res.state == "Success"){
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
Cancel(){
|