|
@@ -64,7 +64,7 @@ export default {
|
|
|
{ label: '注册时间', prop: 'create_at' },
|
|
|
{ label: '禁言状态', prop: 'is_gag', type: 'tag', tags: arrToObj(this.$dictData.sys_yesno), tagTypeObj: {'2': 'success', '1': 'danger'} },
|
|
|
{ label: '备注', prop: 'tag', type: 'input', width: 100},
|
|
|
- { label: '操作', width: 160, type: 'handle2', operations:
|
|
|
+ { label: '操作', width: 220, type: 'handle2', operations:
|
|
|
[
|
|
|
{ label: '保存标签', func: this.saveHandle, btnType: 'primary' },
|
|
|
{ labelFor: 'is_gag', func: this.disHandle,
|
|
@@ -79,6 +79,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ { label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
]
|
|
|
}
|
|
|
]
|
|
@@ -98,6 +99,16 @@ export default {
|
|
|
})
|
|
|
}, null, true)
|
|
|
},
|
|
|
+ delHandle (row) {
|
|
|
+ this.$msg(`您确定要删除该用户吗?`, 'confirm', () => {
|
|
|
+ this.$api.user.admwechatuserpurge({
|
|
|
+ id: row.id,
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`已删除!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
saveHandle (row) {
|
|
|
this.$msg(`您确定要保存标签吗?`, 'confirm', () => {
|
|
|
this.$api.user.admwechatuseredit({
|