From 31f851387dc8004207ba855431378d7355f6d514 Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Wed, 10 Nov 2021 18:24:36 +0800 Subject: [PATCH] init --- public/index.html | 1 + src/api/modules/http.js | 10 ++ src/router/views/index.js | 7 +- src/views/Customer/index.vue | 22 ++++- src/views/File/index.vue | 179 ++++++++++++++------------------- src/views/Receive/index.vue | 185 ++++++++++++++++++++++++++++++----- 6 files changed, 270 insertions(+), 134 deletions(-) diff --git a/public/index.html b/public/index.html index 69d3db3..a7e23ea 100644 --- a/public/index.html +++ b/public/index.html @@ -33,6 +33,7 @@ font-size: 14px !important; } + diff --git a/src/api/modules/http.js b/src/api/modules/http.js index 432f8bc..3eb2b47 100644 --- a/src/api/modules/http.js +++ b/src/api/modules/http.js @@ -665,3 +665,13 @@ export function findByCusIdcusId(query) { } +export function filefindByPage(obj) { + return request({ + url: 'autoSR/zk/file/findByPage', + method: 'post', + data: obj + }) +} + + + diff --git a/src/router/views/index.js b/src/router/views/index.js index aa2b89a..0412b02 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -22,7 +22,12 @@ export default [{ import(/* webpackChunkName: "page" */ '@/views/Template/Pinspeakwords'), name: '销讲模板', }, - + { + path: '/Receive/index', + component: () => + import(/* webpackChunkName: "page" */ '@/views/Receive/index'), + name: '接待详情', + }, ] }, { diff --git a/src/views/Customer/index.vue b/src/views/Customer/index.vue index fd1d1b7..08e2909 100644 --- a/src/views/Customer/index.vue +++ b/src/views/Customer/index.vue @@ -266,11 +266,11 @@ @@ -421,6 +421,22 @@ export default { this.zkhousePage(); }, methods: { + // 跳转接待详情 + Receivedetailsabout(row){ + this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => { + if(res.data.length==0){ + this.$message({ + message: '无录音', + type: 'warning' + }); + }else{ + this.$router.push({ + path: "/Receive/index", + query: { flag: row.id }, + }); + } + }) + }, // 转交 tranfser(row){ console.log(row); diff --git a/src/views/File/index.vue b/src/views/File/index.vue index 8a6d61a..65f9ba7 100644 --- a/src/views/File/index.vue +++ b/src/views/File/index.vue @@ -6,15 +6,15 @@
用户名:
- +
设备编号:
- +
录音来源:
- +
筛选相关:
- 筛选 + 筛选
- 清空筛选条件 -
-
- 上传 + 清空筛选条件
@@ -47,77 +40,67 @@ + + + + align="center"> - - - -
+ :total="total">
- - - - @@ -126,65 +109,19 @@ import { mapGetters } from "vuex"; export default { data() { return { - currentPage4:4, - value: "", - input: "", - tableData: [ - { - date: "2016-05-03", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-02", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-04", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-01", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-08", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-06", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-07", - name: "王小虎", - address: " 1518 弄", - }, - ], - multipleSelection:[], - dialogVisible:false, - options: [{ - value: '选项1', - label: '黄金糕' - }, { - value: '选项2', - label: '双皮奶' - }, { - value: '选项3', - label: '蚵仔煎' - }, { - value: '选项4', - label: '龙须面' - }, { - value: '选项5', - label: '北京烤鸭' - }], - value: '' + tableHeight: window.innerHeight * 0.58, + currentPage4:1, + tableData: [], + options: [ + {value: '2',label: 'SIM设备'}, + {value: '6',label: 'wifi设备'} + ], + username:'', + imei:'', + sourceCode:'', + size:10, + current:1, + total:0 }; }, computed: { @@ -195,33 +132,61 @@ export default { this.file_index_edit = this.permissions["file_index_edit"]; this.file_index_start = this.permissions["file_index_start"]; }, - mounted() {}, + mounted() { + this.filefindByPage() + }, methods: { - editorinfo(){ - this.dialogVisible=true; + noempty(){ + this.current=1; + this.filefindByPage() }, - editor(){ - this.dialogVisible=false; + empty(){ + this.username=''; + this.imei=''; + this.sourceCode=''; + this.current=1; + this.filefindByPage() + }, + filefindByPage(){ + this.tableData=[]; + this.$api.http.filefindByPage({ + username:this.username, + imei:this.imei, + sourceCode:Number(this.sourceCode), + size:this.size, + current:this.current + }).then((res) => { + res.data.records.map(item=>{ + item.recordDuration=Math.floor(item.recordDuration/60) + }) + this.tableData=res.data.records; + this.total=res.data.total + }) }, - handleSelectionChange(val) { - this.multipleSelection = val; - }, handleSizeChange(val) { console.log(`每页 ${val} 条`); + this.size=val; + this.filefindByPage() }, handleCurrentChange(val) { console.log(`当前页: ${val}`); + this.current=val; + this.filefindByPage() } }, };