|
@@ -90,6 +90,7 @@ export default {
|
|
|
{ label: '保存标签', func: this.saveHandle, btnType: 'primary' },
|
|
|
{ label: '成长值编辑', func: this.openPopup, btnType: 'success' },
|
|
|
{ label: '成长值明细', func: this.openPDPopup, btnType: 'success' },
|
|
|
+ // admwechatuserban
|
|
|
{ labelFor: 'is_gag', func: this.disHandle,
|
|
|
labelConfig: {
|
|
|
texts: {
|
|
@@ -102,6 +103,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ { labelFor: 'is_ban', func: this.banHandle,
|
|
|
+ labelConfig: {
|
|
|
+ texts: {
|
|
|
+ 1: '解除拉黑',
|
|
|
+ 2: '拉黑'
|
|
|
+ },
|
|
|
+ btnTypes: {
|
|
|
+ 1: 'success',
|
|
|
+ 2: 'danger'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{ labelFor: 'is_sale', func: this.isSaleHandle,
|
|
|
labelConfig: {
|
|
|
texts: {
|
|
@@ -187,6 +200,20 @@ export default {
|
|
|
})
|
|
|
}, null, true)
|
|
|
},
|
|
|
+
|
|
|
+ banHandle (row) {
|
|
|
+ const is_ban = Number(row.is_ban) === 1 ? 2 : 1
|
|
|
+ const msgText = Number(row.is_ban) === 1 ? '解除拉黑' : '拉黑'
|
|
|
+ this.$msg(`确定要${msgText}${row.nickname}吗?`, 'confirm', ()=> {
|
|
|
+ this.$api.user.admwechatuserban({
|
|
|
+ id: row.id,
|
|
|
+ is_ban
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`${msgText}成功!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ }, null, true)
|
|
|
+ },
|
|
|
disHandle (row) {
|
|
|
const is_gag = Number(row.is_gag) === 1 ? 2 : 1
|
|
|
const msgText = Number(row.is_gag) === 1 ? '解禁' : '禁言'
|