Browse Source

修改常错词

newStyle
jyt 2 years ago
parent
commit
05505ab6b8
4 changed files with 102 additions and 94 deletions
  1. +23
    -22
      src/page/wel.vue
  2. +21
    -17
      src/views/Receive/index.vue
  3. +16
    -14
      src/views/Statistics/BuildingContrast.vue
  4. +42
    -41
      src/views/Statistics/trend.vue

+ 23
- 22
src/page/wel.vue View File

@@ -519,6 +519,25 @@
<div v-if="role != 2"> <div v-if="role != 2">
<!-- 卡片部分 --> <!-- 卡片部分 -->
<div class="page-container"> <div class="page-container">
<div class="pagechen">
<div class="pageboxtitle1">平均接待时长(分钟)</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.receptionTimeWithAvg || 0 }}</div>
<div class="span2">
<span class="span2-1">
环比:{{ sysCompare.receptionTimeWithAvg || 0 }}</span
>
<span class="span2-2" v-if="orderBy.receptionTimeWithAvg > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionTimeWithAvg || 0 }}
</span>
<span class="span2-3" v-if="orderBy.receptionTimeWithAvg < 0">
<i class="el-icon-bottom" style="color: #25ceba"></i>
{{ orderBy.receptionTimeWithAvg || 0 }}
</span>
</div>
</div>
</div>
<div class="pagechen"> <div class="pagechen">
<div class="pageboxtitle1">新增项目数</div> <div class="pageboxtitle1">新增项目数</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
@@ -610,7 +629,10 @@
</div> </div>
</div> </div>


<div class="pagechen">
</div>
<div style="margin-top: 20px" class="page-container">
<div class="pagechen">
<div class="pageboxtitle1">活跃用户数</div> <div class="pageboxtitle1">活跃用户数</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
<div class="span1">{{ sysSec.activeUserQuantity || 0 }}</div> <div class="span1">{{ sysSec.activeUserQuantity || 0 }}</div>
@@ -629,8 +651,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div style="margin-top: 20px" class="page-container">
<div class="pagechen"> <div class="pagechen">
<div class="pageboxtitle1">接待量</div> <div class="pageboxtitle1">接待量</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
@@ -688,25 +708,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="pagechen">
<div class="pageboxtitle1">平均接待时长(分钟)</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.receptionTimeWithAvg || 0 }}</div>
<div class="span2">
<span class="span2-1">
环比:{{ sysCompare.receptionTimeWithAvg || 0 }}</span
>
<span class="span2-2" v-if="orderBy.receptionTimeWithAvg > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionTimeWithAvg || 0 }}
</span>
<span class="span2-3" v-if="orderBy.receptionTimeWithAvg < 0">
<i class="el-icon-bottom" style="color: #25ceba"></i>
{{ orderBy.receptionTimeWithAvg || 0 }}
</span>
</div>
</div>
</div>
<div class="pagechen"> <div class="pagechen">
<div class="pageboxtitle1">录音总时长(小时)</div> <div class="pageboxtitle1">录音总时长(小时)</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">


+ 21
- 17
src/views/Receive/index.vue View File

@@ -1361,24 +1361,28 @@ export default {


//常错词确认 //常错词确认
subMsg() { 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() { subWrongMsg() {


+ 16
- 14
src/views/Statistics/BuildingContrast.vue View File

@@ -60,6 +60,20 @@
</el-table-column> </el-table-column>
<el-table-column prop="houseName" label="项目" align="center"> <el-table-column prop="houseName" label="项目" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="fraction" label="平均执行率" align="center" width="110" sortable>
<template slot-scope="{ row }"> {{ row.fraction }}% </template>
</el-table-column>
<el-table-column
prop="sumDuration"
label="接待时长(分钟)"
align="center"
sortable
width="140"
>
<template slot-scope="scope">
{{ Math.floor(scope.row.sumDuration / 60) || 0 }}
</template>
</el-table-column>
<el-table-column prop="accountNum" label="顾问数" align="center" sortable> <el-table-column prop="accountNum" label="顾问数" align="center" sortable>
</el-table-column> </el-table-column>
<el-table-column prop="receptionCount" label="接待量" align="center" sortable> <el-table-column prop="receptionCount" label="接待量" align="center" sortable>
@@ -74,20 +88,8 @@
width="140" width="140"
> >
</el-table-column> </el-table-column>
<el-table-column
prop="sumDuration"
label="接待时长(分钟)"
align="center"
sortable
width="140"
>
<template slot-scope="scope">
{{ Math.floor(scope.row.sumDuration / 60) || 0 }}
</template>
</el-table-column>
<el-table-column prop="fraction" label="平均执行率" align="center" width="110" sortable>
<template slot-scope="{ row }"> {{ row.fraction }}% </template>
</el-table-column>
<el-table-column <el-table-column
prop="prohibitedZb" prop="prohibitedZb"
label="违禁接待占比" label="违禁接待占比"


+ 42
- 41
src/views/Statistics/trend.vue View File

@@ -172,34 +172,26 @@
<div class="container"> <div class="container">
<div <div
class="grid-content" class="grid-content"
@click="secondChange('receptionCount', '接待客户/个')"
@click="secondChange('fraction', '平均执行率/%')"
style="height: auto; padding-bottom: 10px" style="height: auto; padding-bottom: 10px"
> >
<div
class="text1"
:class="{ tophovese: secindex == 'receptionCount' }"
>
接待量
<div class="text1" :class="{ tophovese: secindex == 'fraction' }">
平均执行率/%
</div> </div>
<div
class="text2"
:class="{ tophovese: secindex == 'receptionCount' }"
>
{{ compare.receptionCount || 0 }}
<div class="text2" :class="{ tophovese: secindex == 'fraction' }">
{{ compare.fraction || 0 }}
</div> </div>
<div class="text33" v-if="selectTime1"> <div class="text33" v-if="selectTime1">
<div> <div>
对比时段: 对比时段:
<span style="text-indent: 20px">{{ <span style="text-indent: 20px">{{
compare1.receptionCount || 0
compare1.fraction || 0
}}</span> }}</span>
</div> </div>
<div <div
:style="
compare2.receptionCount >= 0 ? 'color:green;' : 'color:red;'
"
:style="compare2.fraction >= 0 ? 'color:green;' : 'color:red;'"
> >
{{ compare2.receptionCount || 0 }}
{{ compare2.fraction || 0 }}%
</div> </div>
</div> </div>
</div> </div>
@@ -228,6 +220,39 @@
</div> </div>
</div> </div>
</div> </div>
<div
class="grid-content"
@click="secondChange('receptionCount', '接待客户/个')"
style="height: auto; padding-bottom: 10px"
>
<div
class="text1"
:class="{ tophovese: secindex == 'receptionCount' }"
>
接待量
</div>
<div
class="text2"
:class="{ tophovese: secindex == 'receptionCount' }"
>
{{ compare.receptionCount || 0 }}
</div>
<div class="text33" v-if="selectTime1">
<div>
对比时段:
<span style="text-indent: 20px">{{
compare1.receptionCount || 0
}}</span>
</div>
<div
:style="
compare2.receptionCount >= 0 ? 'color:green;' : 'color:red;'
"
>
{{ compare2.receptionCount || 0 }}
</div>
</div>
</div>
<div <div
class="grid-content" class="grid-content"
@click="secondChange('prohibitedCustomer', '违禁接待次数/次')" @click="secondChange('prohibitedCustomer', '违禁接待次数/次')"
@@ -327,31 +352,7 @@
</div> </div>
</div> </div>
</div> </div>
<div
class="grid-content"
@click="secondChange('fraction', '平均执行率/%')"
style="height: auto; padding-bottom: 10px"
>
<div class="text1" :class="{ tophovese: secindex == 'fraction' }">
平均执行率/%
</div>
<div class="text2" :class="{ tophovese: secindex == 'fraction' }">
{{ compare.fraction || 0 }}
</div>
<div class="text33" v-if="selectTime1">
<div>
对比时段:
<span style="text-indent: 20px">{{
compare1.fraction || 0
}}</span>
</div>
<div
:style="compare2.fraction >= 0 ? 'color:green;' : 'color:red;'"
>
{{ compare2.fraction || 0 }}%
</div>
</div>
</div>
</div> </div>
<div id="main"></div> <div id="main"></div>
</div> </div>


Loading…
Cancel
Save