From c277424db3cfee12991a86246afb28519410a19d Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Tue, 26 Apr 2022 17:34:41 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=A5=BC=E7=9B=98=E7=AD=9B=E9=80=89=20?= =?UTF-8?q?=E5=90=88=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Statistics/BuildingContrast.vue | 38 +++++++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/src/views/Statistics/BuildingContrast.vue b/src/views/Statistics/BuildingContrast.vue index 9f0d48b..4132a62 100644 --- a/src/views/Statistics/BuildingContrast.vue +++ b/src/views/Statistics/BuildingContrast.vue @@ -52,11 +52,10 @@
- + @@ -329,6 +328,39 @@ export default { this.gethouseData(); }, methods: { + getSummaries(param) { + const { columns, data } = param; + const sums = []; + columns.forEach((column, index) => { + if (index === 0) { + sums[index] = '总价'; + return; + } + + const values = data.map(item => Number(item[column.property])); + if (!values.every(value => isNaN(value))) { + sums[index] = values.reduce((prev, curr) => { + const value = Number(curr); + if (!isNaN(value)) { + return prev + curr; + } else { + return prev; + } + }, 0); + // sums[index] += ' 元'; + if (index === 7) { + sums[index] += '%'; + return; + } + if (index === 8) { + sums[index] += '%'; + return; + } + } + }); + sums[1] = 'N/A'; + return sums; + }, downLoad() { let pamaet = { orgType: this.role, From 56bf1b0145111570a6421db75c62fbe54996957d Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Tue, 26 Apr 2022 17:48:06 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=A5=BC=E7=9B=98=E5=AF=B9=E6=AF=94=20?= =?UTF-8?q?=E5=90=88=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Statistics/BuildingContrast.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Statistics/BuildingContrast.vue b/src/views/Statistics/BuildingContrast.vue index 4132a62..d898d34 100644 --- a/src/views/Statistics/BuildingContrast.vue +++ b/src/views/Statistics/BuildingContrast.vue @@ -333,7 +333,7 @@ export default { const sums = []; columns.forEach((column, index) => { if (index === 0) { - sums[index] = '总价'; + sums[index] = '合计'; return; } From 265a70e0ca6cd52f9d65b8902a5a27d6351c7c03 Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Thu, 28 Apr 2022 11:25:51 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=B8=B8=E9=94=99=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Receive/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue index 7be91ba..b76a323 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -738,6 +738,7 @@ import { getStore, setStore } from "@/util/store"; export default { data() { return { + recordsText:[], roleVisible: false, roleFlag: "0", roleidx: "", @@ -1362,8 +1363,8 @@ export default { subMsg() { this.$refs.form.validate((valid) => { if (valid) { - this.form.correctWord = this.ruleForm.correctWord.replace(/[^\w\u4e00-\u9fa5]/g,"") - this.form.wrongWord = this.ruleForm.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, @@ -1382,7 +1383,8 @@ export default { cupid: this.form.cupid, wrongWord: this.form.wrongWord, customerId: this.fileId, - houseId: localStorage.getItem("houseId"), + houseId: this.userinformationlist.projectId, + translateHtmlContent:this.arr[this.aplayerId].audioContent }) .then((res) => { this.$message.success("保存成功"); From c18dcc1a57dc03c0183bb40ce4768639ffcba84b Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Thu, 28 Apr 2022 19:31:23 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E5=B8=B8=E9=94=99=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Receive/index.vue | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue index b76a323..e3cc803 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -1361,19 +1361,24 @@ export default { //常错词确认 subMsg() { - 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.dialogFormVisible = false; - let sas = this.textItself.replace( - this.form.wrongWord, - this.form.correctWord - ); - this.transcriptionlist[this.argtextindex].onebest = sas; - this.subWrongMsg(); - } - }); + let reg = /^[0-9]+$/ + if(reg.test(this.form.wrongWord)){ + this.$message.warning("常错词不能为纯数字!"); + }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.dialogFormVisible = false; + let sas = this.textItself.replace( + this.form.wrongWord, + this.form.correctWord + ); + this.transcriptionlist[this.argtextindex].onebest = sas; + this.subWrongMsg(); + } + }); + } }, //常错词提交 subWrongMsg() { From a5aa6867b23785e549368ba27c538b58dbeb473e Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Fri, 29 Apr 2022 13:44:00 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=B8=B8=E9=94=99=E8=AF=8D=E7=A6=81?= =?UTF-8?q?=E6=AD=A2=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Receive/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue index e3cc803..c96c2ce 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -400,7 +400,7 @@ > - + From 05505ab6b8bc83e6f6edbcd8fa3887c7b55f949f Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Mon, 16 May 2022 18:08:27 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B8=B8=E9=94=99?= =?UTF-8?q?=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/wel.vue | 45 ++++++------ src/views/Receive/index.vue | 38 ++++++----- src/views/Statistics/BuildingContrast.vue | 30 ++++---- src/views/Statistics/trend.vue | 83 ++++++++++++----------- 4 files changed, 102 insertions(+), 94 deletions(-) diff --git a/src/page/wel.vue b/src/page/wel.vue index ee6e6a9..c69bc25 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -519,6 +519,25 @@
+
+
平均接待时长(分钟)
+
+
{{ sysSec.receptionTimeWithAvg || 0 }}
+
+ + 环比:{{ sysCompare.receptionTimeWithAvg || 0 }} + + + {{ orderBy.receptionTimeWithAvg || 0 }} + + + + {{ orderBy.receptionTimeWithAvg || 0 }} + +
+
+
新增项目数
@@ -610,7 +629,10 @@
-
+ +
+
+
活跃用户数
{{ sysSec.activeUserQuantity || 0 }}
@@ -629,8 +651,6 @@
-
-
接待量
@@ -688,25 +708,6 @@
-
-
平均接待时长(分钟)
-
-
{{ sysSec.receptionTimeWithAvg || 0 }}
-
- - 环比:{{ sysCompare.receptionTimeWithAvg || 0 }} - - - {{ orderBy.receptionTimeWithAvg || 0 }} - - - - {{ orderBy.receptionTimeWithAvg || 0 }} - -
-
-
录音总时长(小时)
diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue index c96c2ce..c5b1b01 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -1361,24 +1361,28 @@ export default { //常错词确认 subMsg() { - let reg = /^[0-9]+$/ - if(reg.test(this.form.wrongWord)){ - this.$message.warning("常错词不能为纯数字!"); - }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.dialogFormVisible = false; - let sas = this.textItself.replace( - this.form.wrongWord, - this.form.correctWord - ); - this.transcriptionlist[this.argtextindex].onebest = sas; - this.subWrongMsg(); + if(this.form.wrongWord.length>8){ + this.$message.warning("常错词不能超过8个字!"); + }else{ + let reg = /^[0-9]+$/ + if(reg.test(this.form.wrongWord)){ + this.$message.warning("常错词不能为纯数字!"); + }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.dialogFormVisible = false; + let sas = this.textItself.replace( + this.form.wrongWord, + this.form.correctWord + ); + this.transcriptionlist[this.argtextindex].onebest = sas; + this.subWrongMsg(); + } + }); } - }); - } + } }, //常错词提交 subWrongMsg() { diff --git a/src/views/Statistics/BuildingContrast.vue b/src/views/Statistics/BuildingContrast.vue index d898d34..b9c2596 100644 --- a/src/views/Statistics/BuildingContrast.vue +++ b/src/views/Statistics/BuildingContrast.vue @@ -60,6 +60,20 @@ + + + + + + @@ -74,20 +88,8 @@ width="140" > - - - - - - + +
-
- 接待量 +
+ 平均执行率/%
-
- {{ compare.receptionCount || 0 }} +
+ {{ compare.fraction || 0 }}
对比时段: {{ - compare1.receptionCount || 0 + compare1.fraction || 0 }}
- {{ compare2.receptionCount || 0 }} + {{ compare2.fraction || 0 }}%
@@ -228,6 +220,39 @@
+
+
+ 接待量 +
+
+ {{ compare.receptionCount || 0 }} +
+
+
+ 对比时段: + {{ + compare1.receptionCount || 0 + }} +
+
+ {{ compare2.receptionCount || 0 }} +
+
+
-
-
- 平均执行率/% -
-
- {{ compare.fraction || 0 }} -
-
-
- 对比时段: - {{ - compare1.fraction || 0 - }} -
-
- {{ compare2.fraction || 0 }}% -
-
-
+