230320a303 10 mesi fa
parent
commit
f3aef24905

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.a69e6fa2.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.c01b8702.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-7441b538.e26df983.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-d43c9a16.a7029ec3.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-d43c9a16.d75e53f9.js


+ 3 - 0
src/api/user.js

@@ -109,6 +109,9 @@ export default {
   admwechatuserpartner: params => { //  用户 -  用户角色设置 - 渠道合伙人 普通用户
     return getRequestNoSort('/adm/wechat/user/partner', params, 'loading')
   },
+  admwechatuserban: params => { //  用户 -  拉黑
+    return getRequestNoSort('/adm/wechat/user/ban', params, 'loading')
+  },
   admsaleuserlist: params => { // 销售列表 置业经理
     return getRequest('/adm/sale/user/list', params)
   },

+ 27 - 0
src/views/user/app.vue

@@ -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 ? '解禁' : '禁言'

Some files were not shown because too many files changed in this diff