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

@@ -187,6 +187,7 @@ export default {
...this.form ...this.form
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.getTableData()
this.$message.success('提交成功!') this.$message.success('提交成功!')
this.isShow = false this.isShow = false

View File

@@ -28,11 +28,12 @@
:current.sync="search.current" :current.sync="search.current"
:size.sync="search.size" :size.sync="search.size"
@getList="getList"> @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 }"> <template slot-scope="{ row }">
<div class="table-options"> <div class="table-options">
<el-button type="text" @click="toEdit(row)">编辑</el-button> <el-button type="text" @click="toEdit(row)">编辑</el-button>
<el-button type="text" @click="remove(row.id)">删除</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> <el-button type="text" @click="change(row)">结算金额</el-button>
</div> </div>
</template> </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) { toEdit (e) {
this.id = e.id this.id = e.id
this.form.notes = e.notes this.form.notes = e.notes