diff --git a/src/page/wel.vue b/src/page/wel.vue index 9d1fa3d..7c320f9 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -515,6 +515,25 @@
+
+
平均接待时长(分钟)
+
+
{{ sysSec.receptionTimeWithAvg || 0 }}
+
+ + 环比:{{ sysCompare.receptionTimeWithAvg || 0 }} + + + {{ orderBy.receptionTimeWithAvg || 0 }} + + + + {{ orderBy.receptionTimeWithAvg || 0 }} + +
+
+
新增项目数
@@ -606,7 +625,10 @@
-
+ +
+
+
活跃用户数
{{ sysSec.activeUserQuantity || 0 }}
@@ -625,8 +647,6 @@
-
-
接待量
@@ -684,25 +704,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 cc9b716..63aded1 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -767,6 +767,7 @@ import { saveAs } from "file-saver"; export default { data() { return { + recordsText:[], roleVisible: false, roleFlag: "0", roleidx: "", @@ -1453,25 +1454,28 @@ 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.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() { @@ -1481,7 +1485,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("保存成功"); diff --git a/src/views/Statistics/BuildingContrast.vue b/src/views/Statistics/BuildingContrast.vue index a49aee3..3fbb356 100644 --- a/src/views/Statistics/BuildingContrast.vue +++ b/src/views/Statistics/BuildingContrast.vue @@ -52,15 +52,28 @@
- + + + + + + + @@ -75,20 +88,8 @@ width="140" > - - - - - - + + { + 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, diff --git a/src/views/Statistics/trend.vue b/src/views/Statistics/trend.vue index d4eae3f..284d6b3 100644 --- a/src/views/Statistics/trend.vue +++ b/src/views/Statistics/trend.vue @@ -172,34 +172,26 @@
-
- 接待量 +
+ 平均执行率/%
-
- {{ 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 }}% -
-
-
+