From 93a6341573de08ce2172558c823306aacf176853 Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Wed, 18 May 2022 21:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=85=B3=E9=94=AE=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/wel.vue | 85 ++++++++++--------- src/views/Receive/index.vue | 65 ++++++++++++-- src/views/Statistics/ReceptionStatistical.vue | 11 ++- vue.config.js | 4 +- 4 files changed, 110 insertions(+), 55 deletions(-) diff --git a/src/page/wel.vue b/src/page/wel.vue index 7c320f9..0952ef2 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -728,6 +728,44 @@
+
+
平均执行率
+
+
{{ sysSec.avgFration || 0 }}
+
+ + 环比:{{ sysCompare.avgFration || 0 }} + + + {{ orderBy.avgFration || 0 }}% + + + + {{ orderBy.avgFration || 0 }}% + +
+
+
+
+
平均接待时长(分钟)
+
+
{{ sysSec.receptionTimeWithAvg || 0 }}
+
+ + 环比:{{ sysCompare.receptionTimeWithAvg || 0 }} + + + {{ orderBy.receptionTimeWithAvg || 0 }} + + + + {{ orderBy.receptionTimeWithAvg || 0 }} + +
+
+
接待量
@@ -747,7 +785,6 @@
-
有效接待
@@ -786,6 +823,11 @@
+ + +
+ +
接待时长(小时)
@@ -807,47 +849,6 @@
-
-
平均接待时长(分钟)
-
-
{{ sysSec.receptionTimeWithAvg || 0 }}
-
- - 环比:{{ sysCompare.receptionTimeWithAvg || 0 }} - - - {{ orderBy.receptionTimeWithAvg || 0 }} - - - - {{ orderBy.receptionTimeWithAvg || 0 }} - -
-
-
- -
-
-
平均执行率
-
-
{{ sysSec.avgFration || 0 }}
-
- - 环比:{{ sysCompare.avgFration || 0 }} - - - {{ orderBy.avgFration || 0 }}% - - - - {{ orderBy.avgFration || 0 }}% - -
-
-
-
违禁接待次数
diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue index c95cea5..00f1e96 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -562,6 +562,22 @@ > 文本优化
+
+
+ + + + +
+ +
纠正     - 删除 + 删除 { + return value.onebest.match(this.searchText) + }) + } }, destroyed() { this.aplayer.destroy(); @@ -898,6 +922,27 @@ export default { }, methods: { + // searchTextFun(){ + // let arr = this.optimizetext + // if(this.searchText==""){ + // this.optimizetext = arr + // }else{ + // this.optimizetext = this.optimizetext.filter(item=>{ + // return item.onebest.match(this.searchText) + // }) + // } + // let arr = this.optimizetext.filter((item,index)=>{ + // var reg = new RegExp(this.searchText); + // return item.onebest.match(reg); + // }) + // let tempArr = [] + // for (let i = 0; i < arr.length; i++) { + // tempArr.push(arr[i]); + // console.log(tempArr) + // } + // this.optimizetext = tempArr + + // }, // 格式化话术内容 formatAudioList() { let list = this.arr[0].audioContent @@ -1011,7 +1056,7 @@ export default { customerId: this.fileId, }, }).then((res) => { - this.optimizetext[this.roleidx].speaker = this.roleFlag / 1 + 1; + this.optimizetext1[this.roleidx].speaker = this.roleFlag / 1 + 1; this.roleVisible = false; }); }, @@ -1159,6 +1204,7 @@ export default { .then((res) => { this.dialogFormtext = false; this.$message.success("优化完成"); + if (i == 1) { this.init(); } @@ -1166,7 +1212,7 @@ export default { }, //文本编辑确认 summunct() { - this.optimizetext[this.textareaindex].onebest = this.textarea; + this.optimizetext1[this.textareaindex].onebest = this.textarea; this.texteditorishow = false; }, //文本编辑 @@ -1177,7 +1223,7 @@ export default { this.texteditorishow = true; }, //文本优化删除 - optimdel(i) { + optimdel(t,i) { console.log(i); var that = this; this.$confirm("此操作将删除该条, 是否继续?", "提示", { @@ -1186,7 +1232,8 @@ export default { type: "warning", }) .then(() => { - that.optimizetext.splice(i, 1); + this.optimizetext = this.optimizetext.filter(tt=>tt.onebest!=t.onebest) + this.$forceUpdate() this.$message({ type: "success", message: "删除成功!", @@ -1203,12 +1250,14 @@ export default { texttap() { this.optimizeobj = {}; this.optimizetext = []; + this.optimizetextTemp = []; this.$api.http .findText({ corpusId: this.arr[this.aplayerId].id }) .then((res) => { console.log(res, "获取文本"); this.optimizeobj = res.data; this.optimizetext = JSON.parse(res.data.textContent); + this.optimizetextTemp = JSON.parse(res.data.textContent); this.dialogFormtext = true; }); }, @@ -1459,8 +1508,8 @@ export default { }else{ this.$refs.form.validate((valid) => { if (valid) { - this.form.correctWord = this.form.correctWord.replace(/[^\w\u4e00-\u9fa5]/g,"") - this.form.wrongWord = this.form.wrongWord.replace(/[^\w\u4e00-\u9fa5]/g,"") + // this.form.correctWord = this.form.correctWord.replace(/[^\w\u4e00-\u9fa5]/g,"") + // this.form.wrongWord = this.form.wrongWord.replace(/[^\w\u4e00-\u9fa5]/g,"") this.dialogFormVisible = false; let sas = this.textItself.replace( this.form.wrongWord, diff --git a/src/views/Statistics/ReceptionStatistical.vue b/src/views/Statistics/ReceptionStatistical.vue index da7b260..c48c7a1 100644 --- a/src/views/Statistics/ReceptionStatistical.vue +++ b/src/views/Statistics/ReceptionStatistical.vue @@ -246,24 +246,29 @@ - + + +