From f626b5dd36ab9bbe7eeb9dd0e154b44535eddc5b Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Fri, 6 May 2022 11:35:41 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9D=E7=A6=81=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 2 +-
pages/center/prohibited/details.vue | 33 ++++-
pages/center/prohibited/index.vue | 198 ++++++++++++++++------------
3 files changed, 141 insertions(+), 92 deletions(-)
diff --git a/pages.json b/pages.json
index 358ea3e..29353c5 100644
--- a/pages.json
+++ b/pages.json
@@ -480,7 +480,7 @@
"navigationBarTitleText": "违禁记录",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
- "enablePullDownRefresh": false
+ "enablePullDownRefresh": true
}
},
{
diff --git a/pages/center/prohibited/details.vue b/pages/center/prohibited/details.vue
index e32a799..62b0754 100644
--- a/pages/center/prohibited/details.vue
+++ b/pages/center/prohibited/details.vue
@@ -45,8 +45,19 @@
{{ item.speaker | toCapital }}
-
-
+
+
+
+ {{ item.speaker | toCapital }}
+ {{conversionTiame(item.bg/1000)}}
+
+
+
+
+
+
+
@@ -308,9 +319,16 @@
// 下一条
nextValid() {
- this.innerAudioContext.pause()
- this.nextPageObj.pageSize++
- this.keyWordsMatching(this.nextPageObj)
+ if (this.nextPageObj.pageSize < this.nextPageObj.num) {
+ this.innerAudioContext.pause()
+ this.nextPageObj.pageSize++
+ this.keyWordsMatching(this.nextPageObj)
+ } else {
+ uni.showToast({
+ title: '已经是最后一条了~',
+ icon: 'none'
+ })
+ }
},
// 上一条
@@ -728,7 +746,10 @@
},
//长按点击播放
- clickbofang(dialog, item) {
+ clickbofang(dialog, item, type) {
+ if (type == 'show') {
+ this.current = 1
+ }
this.innerAudioContext.pause()
this.dialogList.forEach(res => {
res.message.forEach(asd => {
diff --git a/pages/center/prohibited/index.vue b/pages/center/prohibited/index.vue
index 28f636b..06eb93b 100644
--- a/pages/center/prohibited/index.vue
+++ b/pages/center/prohibited/index.vue
@@ -3,19 +3,23 @@
- {{ timeText }}
+ {{ timeText }}
+
- {{ guwenText }}
+ {{ guwenText }}
+
-
+
- {{ steyStatus }}
+ {{ steyStatus }}
+
- {{ weijinTag }}
+ {{ weijinTag }}
+
-
+
筛选结果:{{totalRecords}} 条
@@ -35,23 +39,30 @@
@click="tapThevisiting(item, index)">
-
+ 顾
{{item.agentName}}
代接待
-
+
+ {{ item.violatedStatus | ViolatedStatus }}
+
-
-
- 客户:{{item.name || '--'}} |
- {{item.visitRecord || "--"}}次到访
-
-
- {{item.createTime}} | {{item.mm || '0'}} min
+
+
+ {{item.createTime}}
+
+
+
+ {{item.mm || '0'}}
+
+
+
+ {{violatedFrequency || '0'}}
+
@@ -67,7 +78,7 @@
-
+
@@ -77,16 +88,15 @@
data() {
return {
orderBylist: [{
- label: '全部',
- value: null
- },{
- label: '待处理',
- value: 0
- },{
- label: '已处理',
- value: 1
- }
- ],
+ label: '全部',
+ value: null
+ }, {
+ label: '待处理',
+ value: 0
+ }, {
+ label: '已处理',
+ value: 1
+ }],
activeTotal: 5,
activeList: [ // 时间筛选数组
{
@@ -149,17 +159,17 @@
soltishow: false,
orderBy: null,
userInfo: {},
- totalRecords: '',
+ totalRecords: '', // 列表全部的条数
isRefresh: false,
nextPageObj: {}, // 跳转详情页面的参数
-
-
+
+
// 页面文字展示内容
timeText: '接待时间', //
guwenText: '顾问', //
steyStatus: '处理状态', //
weijinTag: '违禁标识', // 违禁标识
-
+
}
},
onLoad(options) {
@@ -191,6 +201,7 @@
this.nextPage = 1;
this.isRefresh = true;
this.getMyCustom()
+ this.resetRefreshParams()
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
@@ -210,6 +221,18 @@
}
},
methods: {
+ // 重置参数
+ resetRefreshParams() {
+ this.timeText = '接待时间'
+ this.activeTotal = 5
+ this.guwenText = '顾问'
+ this.screen.agentId = '' // 顾问id
+ this.steyStatus = '处理状态'
+ this.orderBy = null
+ this.weijinTag = '违禁标识'
+ this.violatedStatus = null // 违禁状态
+ },
+
tapsoltishow() {
this.soltishow = true;
},
@@ -217,7 +240,7 @@
taptimeisshow() {
this.timeshow = true;
},
-
+
//选择标签
selectCallback2(e) {
this.orderBy = e[0].value;
@@ -227,7 +250,7 @@
this.isRefresh = false;
this.getMyCustom();
},
-
+
// 选择违禁标识
selectIdent(e) {
this.violatedStatus = e[0].value
@@ -237,7 +260,7 @@
this.isRefresh = false;
this.getMyCustom();
},
-
+
//时间选择
tabtimetap(index, title) {
this.timeshow = false;
@@ -304,6 +327,7 @@
if (res[0].merge == 0) {
let obj = {
pageSize: index,
+ num: this.totalRecords,
query: {
...this.nextPageObj
}
@@ -323,6 +347,8 @@
}
},
+
+ // 获取围巾列表
getMyCustom() {
let dateType = 0;
if (this.activeTotal == 5) {
@@ -389,19 +415,34 @@
this.isRefresh = false;
this.getMyCustom();
},
-
-
-
-
-
},
+
+
+ filters: {
+ // violatedStatus
+ ViolatedStatus(status) {
+ let str = '';
+ switch (status) {
+ case 0:
+ str = '待处理'
+ break;
+ case 1:
+ str = '有效违禁'
+ break;
+ case 2:
+ str = '无效违禁'
+ break;
+ }
+ return str
+ },
+ }
}