This commit is contained in:
yanran200730
2023-06-09 14:50:08 +08:00
parent b89581c900
commit 8af5ea6f45
2 changed files with 12 additions and 1 deletions

View File

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