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 @@
-
+
- 合计/平均
- {{ scope.$index + 1 }}
+ {{ scope.$index + 1 }}
+
+ {{ row.fraction }}%
+
+
+
+ {{ Math.floor(scope.row.sumDuration / 60) || 0 }}
+
+
@@ -75,20 +88,8 @@
width="140"
>
-
-
- {{ Math.floor(scope.row.sumDuration / 60) || 0 }}
-
-
-
- {{ row.fraction }}%
-
+
+
{
+ 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 }}%
-
-
-
+