Browse Source

feat: 成员管理 - 到期时间

zhengxy 1 year ago
parent
commit
2dfc99fa61

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

240
         { key: customerStaffStatusCode.BANNED, val: '已封禁' },
240
         { key: customerStaffStatusCode.BANNED, val: '已封禁' },
241
       ]
241
       ]
242
       this.placeholderVal = '请选择'
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
     } else {
250
     } else {
244
       this.init()
251
       this.init()
245
     }
252
     }

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

220
         { key: customerStaffStatusCode.BANNED, val: '已封禁' },
220
         { key: customerStaffStatusCode.BANNED, val: '已封禁' },
221
       ]
221
       ]
222
       this.placeholderVal = '请选择'
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
     } else {
230
     } else {
224
       this.init()
231
       this.init()
225
     }
232
     }

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

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