From b2d83a4f0a7144ab2788bc18faf3fd482e5ed2db Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Mon, 5 Sep 2022 14:19:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=BE=85=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/center/consumer/consumerDetail.vue | 401 ++++++++++++----------- pages/mine/details2.vue | 38 +-- 2 files changed, 224 insertions(+), 215 deletions(-) diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index fa1dfcd..8c0650a 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -200,13 +200,6 @@ - - 指标 - - 执行率 - - @@ -219,207 +212,213 @@ - - + + 挖掘执行:{{customerInfo.wordFraction||0}}% + 挖掘成功:{{percent||0}}% + + + 指标 + 执行率 + 匹配标签 + + + + + + + + + 暂无数据 + + + + + + {{ item.name }} + + 执行{{ item.fraction || 0 }}% - 指标已匹配({{ + item.keywordsList&&item.keywordsList.length + }}) + 未匹配 + + + + + + + + + + 客户标签:{{ getKeywordsList(item.keywordsList) }} - 执行率话术内容 + + + {{inc+1}}.{{che.showFormatExpression || che.keywordsName}} + + + + + + + + + + + + + + + {{ subitem.name }} + + 已执行 + 未执行 + + + 已匹配 + 未匹配 + + + + + + + + 客户标签:{{ getKeywordsList(subitem.keywordsList) }} + 话术内容 匹配 - - - - - - - 暂无数据{{ inc + 1 }}.{{ + che.showFormatExpression || che.keywordsName + }} - - - - - - {{ item.name }} - - 执行{{ item.fraction || 0 }}% - 匹配({{ - item.keywordsList&&item.keywordsList.length||0 - }}) - + + - - - - - - - 客户标签:{{ getKeywordsList(item.keywordsList) }} - 话术内容 - - - {{inc+1}}.{{che.showFormatExpression || che.keywordsName}} - - - - - - - - - - - - - - - {{ subitem.name }} - - 已执行 - 未执行 - - - 已完成 - 未完成 - - - - - - - - 客户标签:{{ getKeywordsList(subitem.keywordsList) }} - 话术内容 - - {{ inc + 1 }}.{{ - che.showFormatExpression || che.keywordsName - }} - - - - - - - - + + + + @@ -451,6 +450,7 @@ }, data() { return { + percent: 0, tabactive: 0, activeTotal: 0, customerId: '', @@ -492,6 +492,15 @@ this.tabtimetap(0) }, methods: { + // 计算挖掘执行的完成率 + getPercent(){ + let countArr = this.KeyWordsfractionList.filter(item=> item.selected==0) + console.log(countArr) + this.percent = (countArr.length / this.KeyWordsfractionList.length)*100 + console.log(this.percent.toFixed(0)) + this.percent = this.percent.toFixed(0) + + }, //挖掘率话术客户标签展示 getKeywordsList(list) { let keywords = []; @@ -537,6 +546,7 @@ } }); this.KeyWordsfractionList = res; + this.getPercent() } else { this.KeyWordsfractionList = []; } @@ -766,6 +776,13 @@ .rotatearrow { transform: rotate(270deg); } + .top-box{ + height: 80rpx; + line-height: 80rpx; + display: flex; + color: #2671E2; + border-bottom: 1rpx solid #ccc; + } // 评分 .rate-box { diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 7eeaa90..07e7f09 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -326,21 +326,23 @@ 挖掘成功:{{percent||0}}% - 指标 + 指标 执行率 - 完成 + 匹配标签 + {{item.name}} 执行{{item.fraction || 0}}% - 匹配({{ - item.keywordsList&&item.keywordsList.length||0 + 已匹配({{ + item.keywordsList&&item.keywordsList.length }}) + 未匹配 未执行 - 已完成 - 未完成 + 已匹配 + 未匹配 - {{chend.text}} - - {{chend.text}} - - @@ -1529,7 +1526,6 @@ }); }, - //标签选择 tapbiaoqianclisck(index) { this.biaoqianindex = index; @@ -1576,14 +1572,16 @@ translateHtmlContent: this.messagelisy, id: uni.getStorageSync('buildingID').id } - this.isshow2 = false; + let sas = this.textItself.replace(this.thewrongword, this.reswrongword) + console.log(sas) this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest = sas - this.cancelBeast() this.$u.post("/corpus/addCorrectWord", parames).then(data => { + console.log(data) this.thewrongword = ""; this.reswrongword = ""; + this.isshow2 = false; }) } else { this.$refs.uToast.show({ @@ -1615,12 +1613,6 @@ this.reswrongword = ""; this.isshow2 = true; }, - // //加入挖掘话术 - // openwajue(item) { - // this.wajueItem = item - // this.wajueshow = true; - // item.isshow = false - // }, //加精华 Addtheessence() { this.refined = true @@ -2566,7 +2558,6 @@ .contentMain { display: flex; flex-direction: row-reverse; - align-items: center; .content { margin-left: 0; @@ -2608,7 +2599,7 @@ } .scroll-Y .text .avatar { - margin-top: 80rpx; + margin-top: 60rpx; width: 64upx; height: 64upx; line-height: 64upx; @@ -2669,6 +2660,7 @@ min-height: 30rpx; line-height: 30rpx; max-width: 420rpx; + text-align: left; } } }