Browse Source

1、添加公告关键词搜索;2、日程管理修改已读状态;3、通话记录添加时间搜索。

lihai 6 years ago
parent
commit
3dc2d8b20b

+ 3 - 0
fuwaiCallCenterWeb.UI/src/views/notice/manage/index.vue

@@ -13,6 +13,7 @@
13 13
         range-separator="至"
14 14
         start-placeholder="开始日期"
15 15
         end-placeholder="结束日期"/>
16
+      <el-input v-model="keyword" placeholder="请输入关键词" class="filter-item"/>
16 17
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
17 18
       <el-button type="primary" class="filter-item" icon="el-icon-plus" @click="btn_add">添加</el-button>
18 19
     </div>
@@ -67,6 +68,7 @@ export default {
67 68
   data() {
68 69
     return {
69 70
       loading: false,
71
+      keyword: '',
70 72
       searchDate: '',
71 73
       pickerOptions,
72 74
       pageParams: {
@@ -92,6 +94,7 @@ export default {
92 94
         const params = {
93 95
           pageindex: this.pageParams.pageindex, // 第几页
94 96
           pagesize: this.pageParams.pagesize, // 每页几条信息
97
+          keyword: this.keyword, //	模糊查询    
95 98
           stime: this.searchDate && this.searchDate[0],
96 99
           etime: this.searchDate && this.searchDate[1]
97 100
         }

+ 16 - 2
fuwaiCallCenterWeb.UI/src/views/schedule/manage/index.vue

@@ -21,7 +21,12 @@
21 21
       <el-table-column type="index" label="编号" align="center" fixed width="80"/>
22 22
       <el-table-column prop="content" label="提醒内容" align="center" min-width=""/>
23 23
       <el-table-column prop="srdate" label="提醒时间" align="center" min-width=""/>
24
-      <el-table-column prop="isread" label="是否已读" align="center" min-width=""/>
24
+      <!-- <el-table-column prop="isread" label="是否已读" align="center" min-width=""/> -->
25
+      <el-table-column label="是否已读" align="center" min-width="">
26
+        <template slot-scope="scope">
27
+          {{ scope.row.isread | isreadFilter }}
28
+        </template>
29
+      </el-table-column>
25 30
       <el-table-column prop="createtime" label="创建时间" align="center" min-width=""/>
26 31
       <el-table-column prop="createuser" label="创建人" align="center" min-width=""/>
27 32
       <el-table-column label="操作" width="250" align="center" class-name="oparate_btn" fixed="right">
@@ -63,8 +68,17 @@ export default {
63 68
         2: 'warning'
64 69
       }
65 70
       return statusMap[status]
66
-    }
71
+    },
72
+    // 是否已读
73
+    isreadFilter(status) {
74
+      const statusMap = {
75
+        0: '未读',
76
+        1: '已读'
77
+      }
78
+      return statusMap[status]
79
+    },
67 80
   },
81
+  
68 82
   data() {
69 83
     return {
70 84
       loading: false,

+ 18 - 1
fuwaiCallCenterWeb.UI/src/views/trafficData/callRecord/index.vue

@@ -1,6 +1,18 @@
1 1
 <template>
2 2
   <div class="app-container">
3 3
     <div class="filter-container">
4
+      <el-date-picker
5
+        v-model="searchDate"
6
+        :picker-options="pickerOptions"
7
+        class="filter-item"
8
+        type="daterange"
9
+        format="yyyy年MM月dd日"
10
+        value-format="yyyy-MM-dd"
11
+        align="left"
12
+        unlink-panels
13
+        range-separator="至"
14
+        start-placeholder="开始日期"
15
+        end-placeholder="结束日期"/>
4 16
       <el-input v-model="keyword" placeholder="请输入呼叫号码" class="filter-item"/>
5 17
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
6 18
     </div>
@@ -83,6 +95,7 @@
83 95
 
84 96
 import { getCallRecords } from '@/api/trafficData/trafficData'
85 97
 import audioPlayer from '@/components/audioPlayer'
98
+import { pickerOptions } from '@/utils'
86 99
 import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
87 100
 export default {
88 101
   name: 'CallRecord',
@@ -150,6 +163,8 @@ export default {
150 163
     return {
151 164
       loading: false,
152 165
       keyword: '',
166
+      searchDate: '',
167
+      pickerOptions,
153 168
       recordpath: '', // 录音的路径
154 169
       pageParams: {
155 170
         pageindex: 1, // 当前第几页
@@ -174,7 +189,9 @@ export default {
174 189
         const params = {
175 190
           pageindex: this.pageParams.pageindex, // 第几页
176 191
           pagesize: this.pageParams.pagesize, // 每页几条信息
177
-          keyword: this.keyword //	否	string	模糊查询(呼叫号码)
192
+          keyword: this.keyword, //	否	string	模糊查询(呼叫号码)          
193
+          stime: this.searchDate && this.searchDate[0],
194
+          etime: this.searchDate && this.searchDate[1]
178 195
         }
179 196
         getCallRecords(params).then(response => {
180 197
           this.loading = false