Browse Source

feat: 客服数据统计

zhengxy 1 year ago
parent
commit
bf0bc727fb

+ 10 - 3
project/src/components/assembly/screen/inputV2.vue

@@ -3,7 +3,7 @@
3 3
     <label class="common-screen-label" :style="labelWidth ? 'width:auto;margin-left:20px' : ''"
4 4
       v-if="hasLabel">{{ label_name }}</label>
5 5
     <el-input :style="width ? 'width:' + width : ''" :placeholder="placeholder || `请输入${label_name}`" v-model="input_keyword" clearable size="small" class="common-input-select" @input="onInput" @change="onChange">
6
-      <el-button slot="append" icon="el-icon-search" @click="onChange" />
6
+      <el-button slot="append" icon="el-icon-search" @click="onClickBtn" />
7 7
     </el-input>
8 8
   </div>
9 9
 </template>
@@ -45,10 +45,17 @@ export default {
45 45
     },
46 46
   },
47 47
   methods: {
48
-    onInput() {
48
+    async onInput(val) {
49
+      this.input_keyword = val
50
+      await this.$nextTick()
49 51
       this.$emit('onInput', this.input_keyword)
50 52
     },
51
-    onChange() {
53
+    async onChange(val) {
54
+      this.input_keyword = val
55
+      await this.$nextTick()
56
+      this.$emit('change', this.input_keyword)
57
+    },
58
+    onClickBtn() {
52 59
       this.$emit('change', this.input_keyword)
53 60
     },
54 61
   }

+ 10 - 0
project/src/components/dataBoard/customerStaff.vue

@@ -48,6 +48,12 @@
48 48
               <span>{{ (row[item.column] || row[item.column] == 0) ? $formatNum(row[item.column]) : '-' }}</span>
49 49
             </template>
50 50
           </ux-table-column>
51
+
52
+          <ux-table-column :width="120" fixed="right" align="center" title="操作">
53
+            <template v-slot="{ row }">
54
+              <span class="c-00B38A pointer" @click="onClickStatus(row)">客服状态</span>
55
+            </template>
56
+          </ux-table-column>
51 57
         </ux-grid>
52 58
         <div class="pagination" v-show="pagination.total > 0">
53 59
           <el-pagination background :current-page="pagination.page" @current-change="handleCurrentChange" layout="prev, pager, next" :page-count='Number(pagination.pages)' />
@@ -380,6 +386,10 @@ export default {
380 386
       }
381 387
     },
382 388
     // E 企微主体数据
389
+
390
+    onClickStatus(row) {
391
+      console.log('row => ', row)
392
+    },
383 393
   },
384 394
 }
385 395
 </script>