Browse Source

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

lihai 6 years ago
parent
commit
3dc2d8b20b

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

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

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

21
       <el-table-column type="index" label="编号" align="center" fixed width="80"/>
21
       <el-table-column type="index" label="编号" align="center" fixed width="80"/>
22
       <el-table-column prop="content" label="提醒内容" align="center" min-width=""/>
22
       <el-table-column prop="content" label="提醒内容" align="center" min-width=""/>
23
       <el-table-column prop="srdate" label="提醒时间" align="center" min-width=""/>
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
       <el-table-column prop="createtime" label="创建时间" align="center" min-width=""/>
30
       <el-table-column prop="createtime" label="创建时间" align="center" min-width=""/>
26
       <el-table-column prop="createuser" label="创建人" align="center" min-width=""/>
31
       <el-table-column prop="createuser" label="创建人" align="center" min-width=""/>
27
       <el-table-column label="操作" width="250" align="center" class-name="oparate_btn" fixed="right">
32
       <el-table-column label="操作" width="250" align="center" class-name="oparate_btn" fixed="right">
63
         2: 'warning'
68
         2: 'warning'
64
       }
69
       }
65
       return statusMap[status]
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
   data() {
82
   data() {
69
     return {
83
     return {
70
       loading: false,
84
       loading: false,

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

1
 <template>
1
 <template>
2
   <div class="app-container">
2
   <div class="app-container">
3
     <div class="filter-container">
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
       <el-input v-model="keyword" placeholder="请输入呼叫号码" class="filter-item"/>
16
       <el-input v-model="keyword" placeholder="请输入呼叫号码" class="filter-item"/>
5
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
17
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
6
     </div>
18
     </div>
83
 
95
 
84
 import { getCallRecords } from '@/api/trafficData/trafficData'
96
 import { getCallRecords } from '@/api/trafficData/trafficData'
85
 import audioPlayer from '@/components/audioPlayer'
97
 import audioPlayer from '@/components/audioPlayer'
98
+import { pickerOptions } from '@/utils'
86
 import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
99
 import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
87
 export default {
100
 export default {
88
   name: 'CallRecord',
101
   name: 'CallRecord',
150
     return {
163
     return {
151
       loading: false,
164
       loading: false,
152
       keyword: '',
165
       keyword: '',
166
+      searchDate: '',
167
+      pickerOptions,
153
       recordpath: '', // 录音的路径
168
       recordpath: '', // 录音的路径
154
       pageParams: {
169
       pageParams: {
155
         pageindex: 1, // 当前第几页
170
         pageindex: 1, // 当前第几页
174
         const params = {
189
         const params = {
175
           pageindex: this.pageParams.pageindex, // 第几页
190
           pageindex: this.pageParams.pageindex, // 第几页
176
           pagesize: this.pageParams.pagesize, // 每页几条信息
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
         getCallRecords(params).then(response => {
196
         getCallRecords(params).then(response => {
180
           this.loading = false
197
           this.loading = false