bug
This commit is contained in:
@@ -28,11 +28,12 @@
|
||||
:current.sync="search.current"
|
||||
:size.sync="search.size"
|
||||
@getList="getList">
|
||||
<el-table-column slot="options" label="操作" align="center" fixed="right" width="180">
|
||||
<el-table-column slot="options" label="操作" align="center" fixed="right" width="240">
|
||||
<template slot-scope="{ row }">
|
||||
<div class="table-options">
|
||||
<el-button type="text" @click="toEdit(row)">编辑</el-button>
|
||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||
<el-button type="text" @click="sync(row.appId)">同步数据</el-button>
|
||||
<el-button type="text" @click="change(row)">结算金额</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -138,6 +139,15 @@
|
||||
})
|
||||
},
|
||||
|
||||
sync (id) {
|
||||
this.instance.post(`/api/wxmppublisheradposgeneral/sync?appid=${id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getList()
|
||||
this.$message.success('数据同步成功')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toEdit (e) {
|
||||
this.id = e.id
|
||||
this.form.notes = e.notes
|
||||
|
||||
Reference in New Issue
Block a user