Przeglądaj źródła

fix: 客服数据统计 - 默认按照"每日新增"排序

zhengxy 1 rok temu
rodzic
commit
c7ab79fab1

+ 6 - 6
project/src/components/dataBoard/customerStaff/index.vue

112
       enterprise: {}, // 当前选择的企微信息
112
       enterprise: {}, // 当前选择的企微信息
113
 
113
 
114
       filter: {
114
       filter: {
115
-        sort_field: '', // 排序字段 - 默认值
116
-        sort_type: '', // 升序/降序
115
+        sort_field: 'daily_new_contact_cnt', // 排序字段 - 默认值 daily_new_contact_cnt
116
+        sort_type: 'desc', // 升序/降序
117
         corpid: '', // 企微主体
117
         corpid: '', // 企微主体
118
         user_name: '', // 成员
118
         user_name: '', // 成员
119
         status: '', // 客服状态
119
         status: '', // 客服状态
217
       if (this.filter.sort_field === sort_field) {
217
       if (this.filter.sort_field === sort_field) {
218
         if (this.filter.sort_type === sort_type) {
218
         if (this.filter.sort_type === sort_type) {
219
           // 点击的是当前排序字段 && 是当前排序类型 => 重置 取消排序
219
           // 点击的是当前排序字段 && 是当前排序类型 => 重置 取消排序
220
-          this.filter.sort_field = ''
221
-          this.filter.sort_type = ''
220
+          this.filter.sort_field = 'daily_new_contact_cnt'
221
+          this.filter.sort_type = 'desc'
222
         } else {
222
         } else {
223
           // 点击的是当前排序字段 && 非当前排序类型 => 设置排序类型
223
           // 点击的是当前排序字段 && 非当前排序类型 => 设置排序类型
224
           this.filter.sort_type = sort_type
224
           this.filter.sort_type = sort_type
273
       this.filter.operator_uid = ''
273
       this.filter.operator_uid = ''
274
       this.filter.active_status = ''
274
       this.filter.active_status = ''
275
 
275
 
276
-      this.filter.sort_field = ''
277
-      this.filter.sort_type = ''
276
+      this.filter.sort_field = 'daily_new_contact_cnt'
277
+      this.filter.sort_type = 'desc'
278
       this.pagination.page = 1
278
       this.pagination.page = 1
279
       this.handleGetData()
279
       this.handleGetData()
280
     },
280
     },