BUG
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
<template v-slot="{ row }">
|
<template v-slot="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<el-button type="text" @click="edit(row)">修改姓名</el-button>
|
<el-button type="text" @click="edit(row)">修改姓名</el-button>
|
||||||
|
<el-button type="text" @click="remove(row)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -136,6 +137,19 @@
|
|||||||
this.isShowForm = true
|
this.isShowForm = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
remove (e) {
|
||||||
|
this.$confirm('确定要删除该条数据?', '温馨提示', {
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
this.$http.post(`/api/malluser/delWxuser?id=${e.id}`).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$message.success('删除成功!')
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
collection (id, isFavorite) {
|
collection (id, isFavorite) {
|
||||||
this.$confirm(isFavorite === '0' ? '确定收藏该文章?' : '确定取消收藏?', '温馨提示', {
|
this.$confirm(isFavorite === '0' ? '确定收藏该文章?' : '确定取消收藏?', '温馨提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
|||||||
Reference in New Issue
Block a user