Browse Source

修改回归bug,常错词去除特殊符号,顾问右边,客户左边

newStyle
douzhuo 2 years ago
parent
commit
738b0d31b2
3 changed files with 19 additions and 28 deletions
  1. +13
    -13
      src/page/wel.vue
  2. +4
    -4
      src/views/Receive/index.vue
  3. +2
    -11
      src/views/Template/wrongword.vue

+ 13
- 13
src/page/wel.vue View File

@@ -1,7 +1,7 @@
<template>
<div class="box-center">
<div class="house-only" v-if="role == 3 && info.userRoleType != 6">
<!-- 楼盘后台 -->
<!-- 项目后台 -->
<div class="app-titel">
<div class="titel-text">时间</div>
<div class="toptimeqhuan">
@@ -464,7 +464,7 @@
</div>

<div class="pagechen" @click="jumpto('2')">
<div class="pageboxtitle1">45天到期的楼盘</div>
<div class="pageboxtitle1">45天到期的项目</div>
<div class="pageboxtitle3">
{{ sysTop.matuityOfHouse || 0 }}
</div>
@@ -520,7 +520,7 @@
<!-- 卡片部分 -->
<div class="page-container">
<div class="pagechen">
<div class="pageboxtitle1">新增楼盘数</div>
<div class="pageboxtitle1">新增项目数</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.newAddHouseQuantity || 0 }}</div>
<div class="span2">
@@ -539,7 +539,7 @@
</div>
</div>
<div class="pagechen">
<div class="pageboxtitle1">活跃楼盘数</div>
<div class="pageboxtitle1">活跃项目数</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.activeHouseQuantity || 0 }}</div>
<div class="span2">
@@ -926,7 +926,7 @@
</div>

<div class="pagechen">
<div class="pageboxtitle1">活跃楼盘数</div>
<div class="pageboxtitle1">活跃项目数</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.activeHouseQuantity || 0 }}</div>
<div class="span2">
@@ -951,7 +951,7 @@
<div class="zuo">
<div class="title1" style="cursor: pointer">
<div>
{{ role == 2 ? "楼盘排名(TOP10)" : "公司排名(TOP10)" }}
{{ role == 2 ? "项目排名(TOP10)" : "公司排名(TOP10)" }}
</div>
<div style="display: flex">
<div
@@ -980,7 +980,7 @@
>>
<el-table-column
prop="companyName"
:label="role == 2 ? '楼盘名称' : '公司名称'"
:label="role == 2 ? '项目名称' : '公司名称'"
align="center"
>
<template slot-scope="{ row }">
@@ -1018,7 +1018,7 @@
<div class="you">
<div class="title1" style="cursor: pointer">
<div>
{{ role == 2 ? "顾问排名(TOP10)" : "楼盘排名(TOP10)" }}
{{ role == 2 ? "顾问排名(TOP10)" : "项目排名(TOP10)" }}
</div>
<div style="display: flex">
<div
@@ -1048,7 +1048,7 @@
>>
<el-table-column
prop="houseName"
:label="role == 2 ? '顾问名称' : '楼盘名称'"
:label="role == 2 ? '顾问名称' : '项目名称'"
align="center"
>
<template slot-scope="{ row }">
@@ -1106,7 +1106,7 @@ export default {
houseId: "",
houseList: [],
houseRank: [],
allHouseRank: {}, // 全部的楼盘排名
allHouseRank: {}, // 全部的项目排名
companyRank: [],
allCompanyRank: {}, // 全部的排名列表
classatec: 1,
@@ -1268,7 +1268,7 @@ export default {
let gettime = yy + "-" + mm + "-" + dd;
return gettime;
},
//切换楼盘
//切换项目
houseChange() {
this.TimetoAhoose = 0;
this.statDateStart = "";
@@ -1313,7 +1313,7 @@ export default {
});
},

// 选择公司类型切换 classatec1 公司/楼盘 classatec2 楼盘/顾问
// 选择公司类型切换 classatec1 公司/项目 classatec2 项目/顾问
chooseCompanyRank(keys, index) {
this[keys] = index;
console.log(keys);
@@ -1349,7 +1349,7 @@ export default {
}
},

//获取楼盘
//获取项目
zkhousePage() {
this.$api.api
.findHouseByUser({


+ 4
- 4
src/views/Receive/index.vue View File

@@ -173,7 +173,7 @@
v-for="(item, index) in transcriptionlist"
:class="{
right: item.isShow == 1,
actRight: item.speaker % 2 == 0,
actRight: item.isShow == 1,
}"
:key="index"
:data-speaker="item.speaker"
@@ -1362,8 +1362,8 @@ export default {
subMsg() {
this.$refs.form.validate((valid) => {
if (valid) {
this.form.correctWord = this.ruleForm.correctWord.replace(/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?/\,/\。/\;/\:/\“/\”/\》/\《/\|/\{/\}/\、/\!/\~/\`]/g,"")
this.form.wrongWord = this.ruleForm.wrongWord.replace(/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?/\,/\。/\;/\:/\“/\”/\》/\《/\|/\{/\}/\、/\!/\~/\`]/g,"")
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,
@@ -1830,7 +1830,7 @@ export default {

.textcontent {
flex-direction: row-reverse;
text-align: left;
text-align: left;
}
}



+ 2
- 11
src/views/Template/wrongword.vue View File

@@ -284,17 +284,8 @@ export default {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
// this.loadingFlag = true;
this.ruleForm.correctWord = this.ruleForm.correctWord.replace(
/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?/\,/\。/\;/\:/\“/\”/\》/\《/\|/\{/\}/\、/\!/\~/\`]/g,
""
);
this.ruleForm.wrongWord = this.ruleForm.wrongWord.replace(
/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?/\,/\。/\;/\:/\“/\”/\》/\《/\|/\{/\}/\、/\!/\~/\`]/g,
""
);
// mistakenList: [], // 常错词数组
// correctList: [], // 正确词数组

this.ruleForm.correctWord = this.ruleForm.correctWord.replace(/[^\w\u4e00-\u9fa5]/g,"");
this.ruleForm.wrongWord = this.ruleForm.wrongWord.replace(/[^\w\u4e00-\u9fa5]/g,"");
// 编辑
if (this.editFlag) {
console.log("编辑");


Loading…
Cancel
Save