Przeglądaj źródła

feat: 成员管理 - 到期时间

zhengxy 1 rok temu
rodzic
commit
2dfc99fa61

+ 7 - 0
project/src/components/assembly/screen/channel.vue

@@ -240,6 +240,13 @@ export default {
240 240
         { key: customerStaffStatusCode.BANNED, val: '已封禁' },
241 241
       ]
242 242
       this.placeholderVal = '请选择'
243
+    } else if (this.type == 'expireDays') { // 到期时间
244
+      this.options = [
245
+        { key: 3, val: '3天' },
246
+        { key: 7, val: '7天' },
247
+        { key: 15, val: '15天' },
248
+      ]
249
+      this.placeholderVal = '请选择'
243 250
     } else {
244 251
       this.init()
245 252
     }

+ 7 - 0
project/src/components/assembly/screen/channelMultiple.vue

@@ -220,6 +220,13 @@ export default {
220 220
         { key: customerStaffStatusCode.BANNED, val: '已封禁' },
221 221
       ]
222 222
       this.placeholderVal = '请选择'
223
+    } else if (this.type == 'expireDays') { // 到期时间
224
+      this.options = [
225
+        { key: 3, val: '3天' },
226
+        { key: 7, val: '7天' },
227
+        { key: 15, val: '15天' },
228
+      ]
229
+      this.placeholderVal = '请选择'
223 230
     } else {
224 231
       this.init()
225 232
     }

+ 11 - 0
project/src/components/manage/memberManage.vue

@@ -21,6 +21,8 @@
21 21
       <selfChannel :reset="resetFlag" title="公众号" type="officialAccount" placeholder="公众号" @channelDefine="onChangeAppId" />
22 22
       <!-- 运营人员 -->
23 23
       <selfChannel :reset="resetFlag" title="运营人员" type="circleCreate" placeholder="运营人员" @channelDefine="onChangeOperatorId" />
24
+      <!-- 到期时间 -->
25
+      <selfChannel :reset="resetFlag" title="到期时间" type="expireDays" placeholder="到期时间" @channelDefine="onChangeExpireDays" />
24 26
       <div class="reset" @click="resetEvent">重置</div>
25 27
     </div>
26 28
     <div class="tableInfo">
@@ -325,6 +327,7 @@ export default {
325 327
       account_id: '', // ADQ账号
326 328
       app_id: '', // 公众号
327 329
       operator_id: '', // 运营人员
330
+      expire_days: '', // 到期时间
328 331
       resetFlag: false,
329 332
     }
330 333
   },
@@ -385,6 +388,7 @@ export default {
385 388
           app_id: this.app_id,
386 389
           account_id: this.account_id,
387 390
           operator_id: this.operator_id,
391
+          expire_days: this.expire_days,
388 392
           page: this.page,
389 393
           page_size: this.page_size
390 394
         }
@@ -506,6 +510,12 @@ export default {
506 510
       this.init(1, this.keyword)
507 511
       this.handleGetWaitForAssignNum()
508 512
     },
513
+    // 监听到期时间筛选变化
514
+    onChangeExpireDays(val) {
515
+      this.expire_days = val
516
+      this.init(1, this.keyword)
517
+      this.handleGetWaitForAssignNum()
518
+    },
509 519
     resetEvent () {//重置
510 520
       this.resetFlag = !this.resetFlag
511 521
       this.is_active = ''
@@ -514,6 +524,7 @@ export default {
514 524
       this.account_id = ''
515 525
       this.app_id = ''
516 526
       this.operator_id = ''
527
+      this.expire_days = ''
517 528
       this.init(1, this.keyword)
518 529
     },
519 530