Browse Source

修改detail2页面标记顾问问题

yun
douzhuo 2 years ago
parent
commit
0beffdd9e4
1 changed files with 323 additions and 288 deletions
  1. +323
    -288
      pages/mine/details2.vue

+ 323
- 288
pages/mine/details2.vue View File

@@ -11,7 +11,7 @@
</view>
<view class="headboxbott">
<view class="headovfu">
<!-- <u-tabs ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex"
<!-- <u-tabs ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex"
@change="tapspagek" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist"
:is-scroll="true">
</u-tabs> -->
@@ -150,7 +150,8 @@

<!-- 加入挖掘话术 -->
<view class="zhezhao" v-if="wajueshow" @tap="CancelAdd"></view>
<u-modal width="600rpx" v-model="wajueshow" title="新增挖掘话术" :show-cancel-button="true" @cancel="CancelAdd" @confirm="wajueConfirm()">
<u-modal width="600rpx" v-model="wajueshow" title="新增挖掘话术" :show-cancel-button="true" @cancel="CancelAdd"
@confirm="wajueConfirm()">
<view class="tian-view" style="margin-left: 20rpx;">
<view class="tian-view-t2">
话术分类:<view class="word" @click="treeshow=true">{{wordBiao.wordBiaoqian}}</view>
@@ -159,19 +160,22 @@
<view class="tian-view" style="margin-left: 20rpx;">
<view class="tian-view-t2">
话术内容:<view class="word1">
<u-input :auto-height="false" height="30" type="textarea" v-model="thewrongword" :border="false" :custom-style="customStyle" placeholder="请输入" />
</view>
<u-input :auto-height="false" height="30" type="textarea" v-model="thewrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view>
</view>
</view>
</u-modal>
<!-- 加入常错词 -->
<view class="zhezhao" v-if="isshow2" @tap="Cancelout"></view>
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="$noMultipleClicks(Confirmtheexit)">
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout"
@confirm="$noMultipleClicks(Confirmtheexit)">
<view class="tian-view">
<view class="tian-view-t2" style="margin-left: 20rpx;">
常错词:<view class="word1">
<u-input :auto-height="false" height="30" type="textarea" v-model="thewrongword" :border="false" :custom-style="customStyle" placeholder="请输入" />
</view>
<u-input :auto-height="false" height="30" type="textarea" v-model="thewrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view>
<!-- <u-input :auto-height="false" height="40" type="textarea" v-model="reswrongword" :border="false" :custom-style="customStyle" placeholder="请输入" /> -->
<!-- <view class="word">{{thewrongword}}</view> -->
</view>
@@ -179,8 +183,10 @@
<view class="tian-view">
<view class="tian-view-t2" style="margin-left: 20rpx;">
正确词:<view class="word1">
<u-input :auto-height="false" height="30" type="textarea" v-model="reswrongword" :border="false" :custom-style="customStyle" placeholder="请输入" /></view>
<u-input :auto-height="false" height="30" type="textarea" v-model="reswrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view>
</view>
</view>
</u-modal>

@@ -243,150 +249,166 @@
</view>

<!-- 销讲执行 -->
<view class="zhezhao" @click="clenReceivedetailsabout()" v-if="Pinspeak"></view>
<view class="followingpop-up" v-if="Pinspeak">
<view class="guanbibox">
<image class="guanbixen" @click="clenReceivedetailsabout()" src="../../static/images/Shutdown.png"
mode=""></image>
<view class="cenisboxtab">
<view class="cenisboxtabview">
<view>销讲执行</view>
<template v-if="Pinspeak">
<view class="zhezhao" @click="clenReceivedetailsabout()"></view>
<view class="followingpop-up">
<view class="guanbibox">
<image class="guanbixen" @click="clenReceivedetailsabout()" src="../../static/images/Shutdown.png"
mode=""></image>
<view class="cenisboxtab">
<view class="cenisboxtabview">
<view>销讲执行</view>
</view>
</view>
</view>
</view>
<view class="pingfenbox">
<view :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">
销讲总执行率{{totalRate||0}}%</view>
<view v-if="methodsisshow==true" :class="{ activecllasscet: zhixingcenterindex == 1 }"
@click="recordclick(1)">禁忌执行</view>
<view :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="recordclick(2)">
需求挖掘率{{KeyWordsfraction||0}}%</view>
</view>
<view v-if="zhixingcenterindex == 0" class="cenisbox">
<view
style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
</view>
<view class="pingfenbox">
<view :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">
销讲总执行率{{totalRate||0}}%</view>
<view v-if="methodsisshow==true" :class="{ activecllasscet: zhixingcenterindex == 1 }"
@click="recordclick(1)">禁忌执行</view>
<view :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="recordclick(2)">
需求挖掘率{{KeyWordsfraction||0}}%</view>
</view>
<view class="Level-box" v-for="(item,index) in ratelist" :key="index">
<view class="Level1che" @click="hangeshow2(item,1)">
<view class="title1">{{item.name.substring(0,8)}}</view>
<view class="leve1-jindu">
<view class="jindutiao">
<view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
<view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
</view>
<view v-if="zhixingcenterindex == 0" class="cenisbox">
<view
style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标
</view>
<view class="jiantobox">
<image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
<image v-else class="arrow" src="/static/images/up.png" mode="" />
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
</view>
</view>
<view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
<view class="Level2che" @click="hangeshow2(subitem,1)">
<view class="title1">{{subitem.name.substring(0,8)}}</view>
<view class="Level-box" v-for="(item,index) in ratelist" :key="index">
<view class="Level1che" @click="hangeshow2(item,1)">
<view class="title1">{{item.name.substring(0,8)}}</view>
<view class="leve1-jindu">
<view class="zhixing" v-if="!subitem.selected">已执行</view>
<view class="zhixing2" v-else>未执行</view>
<view class="jindutiao">
<view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
<view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%
</view>
</view>
</view>
<view class="jiantobox">
<image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
<image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png"
mode="" />
<image v-else class="arrow" src="/static/images/up.png" mode="" />
</view>
</view>
<view class="hsnrtest" v-if="subitem.show">话术内容</view>
<view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show"
v-for="(che,inc) in subitem.children" :key='inc'>
<!-- che.selected==0 为本次接待 ,viewFlag==1 为2次接待 -->
<view class="title1" :style="che.viewFlag==1?'color:#FF8C13':che.selected!=0?'color: #666':''">{{inc+1}}.{{che.name}}</view>
<view class="jiantobox">
<image v-if="che.selected==0&&che.viewFlag != 1" class="arrow" src="/static/images/rate-checked.png"
mode="" />
<image v-else-if="che.selected==0&&che.viewFlag == 1" class="arrow" src="/static/images/checked-yellow.png"
mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
<view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
<view class="Level2che" @click="hangeshow2(subitem,1)">
<view class="title1">{{subitem.name.substring(0,8)}}</view>
<view class="leve1-jindu">
<view class="zhixing" v-if="!subitem.selected">已执行</view>
<view class="zhixing2" v-else>未执行</view>
</view>
<view class="jiantobox">
<image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
mode="" />
<image v-else class="arrow" src="/static/images/up.png" mode="" />
</view>
</view>
<view class="hsnrtest" v-if="subitem.show">话术内容</view>
<view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show"
v-for="(che,inc) in subitem.children" :key='inc'>
<!-- che.selected==0 为本次接待 ,viewFlag==1 为2次接待 -->
<view class="title1"
:style="che.viewFlag==1?'color:#FF8C13':che.selected!=0?'color: #666':''">
{{inc+1}}.{{che.name}}
</view>
<view class="jiantobox">
<image v-if="che.selected==0&&che.viewFlag != 1" class="arrow"
src="/static/images/rate-checked.png" mode="" />
<image v-else-if="che.selected==0&&che.viewFlag == 1" class="arrow"
src="/static/images/checked-yellow.png" mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
</view>
</view>
<view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
</view>
<view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
</view>
</view>


</view>
<view v-if="zhixingcenterindex == 1">
<view v-if="prohibitedlist.length!=0" class="title1-12" @click="tapbadge(item)"
v-for="(item,index) in prohibitedlist" :key='index'>{{index+1}}.{{item}}</view>
<view v-if="prohibitedlist.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">暂无数据
</view>
</view>
<view v-if="zhixingcenterindex == 2" class="cenisbox">
<view
style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
<view v-if="zhixingcenterindex == 1">
<view v-if="prohibitedlist.length!=0" class="title1-12" @click="tapbadge(item)"
v-for="(item,index) in prohibitedlist" :key='index'>{{index+1}}.{{item}}</view>
<view v-if="prohibitedlist.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">暂无数据
</view>
</view>
<view class="Level-box" v-for="(item,index) in KeyWordsfractionList" :key="index">
<view class="Level1che" @click="hangeshow2(item,1)">
<view class="title1">{{item.name}}</view>
<view class="leve1-jindu">
<view class="jindutiao">
<view class="huanxing" v-if="item.selected==0" :style="{width: item.fraction+'%'}">
</view>
<view class="huanxing" v-else style="width: 0"></view>
<view class="text">{{item.selected==0?item.fraction:0}}%</view>
</view>
<view v-if="zhixingcenterindex == 2" class="cenisbox">
<view
style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标
</view>
<view class="jiantobox">
<image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
<image v-else class="arrow" src="/static/images/up.png" mode="" />
<view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
</view>
</view>
<!-- 话术在一级下 -->
<view v-if="item.showLevel==1">
<view class="hhhbox" v-if="item.show" style="padding: 30rpx;">
<view class="hsnrtest">话术内容</view>
<view class="Level3che" v-for="(che,inc) in item.questionList" :key='inc'>
<view class="title1" :style="che.selected==2?'color:#FF8C13':che.selected==1?'color: #666':''">{{inc+1}}.{{che.question}}</view>
<view class="jiantobox">
<!-- 0本次选中 1未选中 2上次选中 -->
<image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
mode="" />
<image v-else-if="che.selected==2" class="arrow" src="/static/images/checked-yellow.png"
mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
<view class="Level-box" v-for="(item,index) in KeyWordsfractionList" :key="index">
<view class="Level1che" @click="hangeshow2(item,1)">
<view class="title1">{{item.name}}</view>
<view class="leve1-jindu">
<view class="jindutiao">
<view class="huanxing" v-if="item.selected==0" :style="{width: item.fraction+'%'}">
</view>
<view class="huanxing" v-else style="width: 0"></view>
<view class="text">{{item.selected==0?item.fraction:0}}%</view>
</view>
</view>
</view>
</view>
<!-- 话术在二级下 -->
<view v-if="item.showLevel==2">
<view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
<view class="Level2che" @click="hangeshow2(subitem,1)">
<view class="title1 u-line-1">{{subitem.name}}</view>
<view class="leve1-jindu">
<view class="zhixing" v-if="!subitem.selected">已执行</view>
<view class="zhixing2" v-else>未执行</view>
</view>
<view class="jiantobox">
<image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
mode="" />
<image v-else class="arrow" src="/static/images/up.png" mode="" />
</view>
<view class="jiantobox">
<image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png"
mode="" />
<image v-else class="arrow" src="/static/images/up.png" mode="" />
</view>
<view v-if="subitem.show" style="padding: 30rpx 0;">
</view>
<!-- 话术在一级下 -->
<view v-if="item.showLevel==1">
<view class="hhhbox" v-if="item.show" style="padding: 30rpx;">
<view class="hsnrtest">话术内容</view>
<view class="Level3che" v-for="(che,inc) in subitem.questionList" :key='inc'>
<view class="title1" :style="che.selected==2?'color:#FF8C13':che.selected==1?'color: #666':''">{{inc+1}}.{{che.question}}</view>
<view class="Level3che" v-for="(che,inc) in item.questionList" :key='inc'>
<view class="title1"
:style="che.selected==2?'color:#FF8C13':che.selected==1?'color: #666':''">
{{inc+1}}.{{che.question}}
</view>
<view class="jiantobox">
<!-- 0本次选中 1未选中 2上次选中 -->
<image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
mode="" />
<image v-else-if="che.selected==2" class="arrow" src="/static/images/checked-yellow.png"
mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
<image v-if="che.selected==0" class="arrow"
src="/static/images/rate-checked.png" mode="" />
<image v-else-if="che.selected==2" class="arrow"
src="/static/images/checked-yellow.png" mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
</view>
</view>
</view>
</view>
<!-- 话术在二级下 -->
<view v-if="item.showLevel==2">
<view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
<view class="Level2che" @click="hangeshow2(subitem,1)">
<view class="title1 u-line-1">{{subitem.name}}</view>
<view class="leve1-jindu">
<view class="zhixing" v-if="!subitem.selected">已执行</view>
<view class="zhixing2" v-else>未执行</view>
</view>
<view class="jiantobox">
<image v-if="!subitem.show" class="arrow rotatearrow"
src="/static/images/down.png" mode="" />
<image v-else class="arrow" src="/static/images/up.png" mode="" />
</view>
</view>
<view v-if="subitem.show" style="padding: 30rpx 0;">
<view class="hsnrtest">话术内容</view>
<view class="Level3che" v-for="(che,inc) in subitem.questionList" :key='inc'>
<view class="title1"
:style="che.selected==2?'color:#FF8C13':che.selected==1?'color: #666':''">
{{inc+1}}.{{che.question}}
</view>
<view class="jiantobox">
<!-- 0本次选中 1未选中 2上次选中 -->
<image v-if="che.selected==0" class="arrow"
src="/static/images/rate-checked.png" mode="" />
<image v-else-if="che.selected==2" class="arrow"
src="/static/images/checked-yellow.png" mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
</view>
</view>
</view>
</view>
@@ -394,107 +416,114 @@
</view>
</view>
</view>
</view>
</template>


<!-- 客户意向 -->
<view class="zhezhao" @click="clenReceivedetailsabout()" v-if="intention"></view>
<view class="followingpop-up" v-if="intention">
<view class="guanbibox">
<image class="guanbixen" @click="clenReceivedetailsabout()" src="../../static/images/Shutdown.png"
mode=""></image>
<view class="cenisboxtab">
<view class="cenisboxtabview">
<view>客户意向</view>
<template v-if="intention">
<view class="zhezhao" @click="clenReceivedetailsabout()"></view>
<view class="followingpop-up">
<view class="guanbibox">
<image class="guanbixen" @click="clenReceivedetailsabout()" src="../../static/images/Shutdown.png"
mode=""></image>
<view class="cenisboxtab">
<view class="cenisboxtabview">
<view>客户意向</view>
</view>
</view>
</view>
</view>
<view class="pingfenbox">
<view :class="{ activecllasscet: kehuyixiangcenterindex == 0 }" @click="customerofintention(0)">系统分析
</view>
<view :class="{ activecllasscet: kehuyixiangcenterindex == 1 }" @click="customerofintention(1)">人工校准
</view>
</view>
<view class="cenisbox" v-if="kehuyixiangcenterindex==0">
<view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;"
v-if="Acquirecustomerintentlist.length==0">
暂无数据
<view class="pingfenbox">
<view :class="{ activecllasscet: kehuyixiangcenterindex == 0 }" @click="customerofintention(0)">系统分析
</view>
<view :class="{ activecllasscet: kehuyixiangcenterindex == 1 }" @click="customerofintention(1)">人工校准
</view>
</view>
<view class="jianbox" v-if="Acquirecustomerintentlist.length!=0"
v-for="(item,index) in Acquirecustomerintentlist" :key='index'>
<view class="jianbox-cen">
<view class="jianboxtext">{{item.name}}</view>
<view class="jianboxjian" @click="Acquishow(index)">
<image v-if="item.isshow==false" class="jiantop" src="../../static/images/jiantop.png"
mode=""></image>
<image v-if="item.isshow==true" class="jiantop1" src="../../static/images/jianbutton.png"
mode=""></image>
</view>
<view class="cenisbox" v-if="kehuyixiangcenterindex==0">
<view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;"
v-if="Acquirecustomerintentlist.length==0">
暂无数据
</view>
<view style="width: 690rpx;margin: 0 auto;display: flex;flex-wrap: wrap;" v-if="item.isshow==true">
<view class="sdfsaf" v-if="chend.showType==0" @click="argece(chend)"
v-for="(chend,i) in item.children" :key='i'>
<view class="jiangshang sdfsaf">{{chend.text}}</view>
<view class="jianbox" v-if="Acquirecustomerintentlist.length!=0"
v-for="(item,index) in Acquirecustomerintentlist" :key='index'>
<view class="jianbox-cen">
<view class="jianboxtext">{{item.name}}</view>
<view class="jianboxjian" @click="Acquishow(index)">
<image v-if="item.isshow==false" class="jiantop" src="../../static/images/jiantop.png"
mode=""></image>
<image v-if="item.isshow==true" class="jiantop1"
src="../../static/images/jianbutton.png" mode=""></image>
</view>
</view>
<view class="sdfsaf" v-if="chend.showType==1" @click="argece(chend)"
v-for="(chend,i) in item.children" :key='i'>
<view class="jiangshang1 sdfsaf">{{chend.text}}</view>
<view style="width: 690rpx;margin: 0 auto;display: flex;flex-wrap: wrap;"
v-if="item.isshow==true">
<view class="sdfsaf" v-if="chend.showType==0" @click="argece(chend)"
v-for="(chend,i) in item.children" :key='i'>
<view class="jiangshang sdfsaf">{{chend.text}}</view>
</view>
<view class="sdfsaf" v-if="chend.showType==1" @click="argece(chend)"
v-for="(chend,i) in item.children" :key='i'>
<view class="jiangshang1 sdfsaf">{{chend.text}}</view>
</view>
</view>
</view>
</view>
</view>
<!-- @click="Edittag(item,chend,index,i)" -->
<view class="cenisbox" v-if="kehuyixiangcenterindex==1">
<view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;"
v-if="Acquirecustomerintentlist2.length==0">
暂无数据
</view>
<view class="jianbox" v-if="Acquirecustomerintentlist2.length!=0"
v-for="(item,index) in Acquirecustomerintentlist2" :key='index'>
<view class="jianbox-cen">
<view class="jianboxtext">{{item.name}}</view>
<view class="jianboxjian" @click="Acquishow2(index)">
<image v-if="item.isshow==false" class="jiantop" src="../../static/images/jiantop.png"
mode=""></image>
<image v-if="item.isshow==true" class="jiantop1" src="../../static/images/jianbutton.png"
mode=""></image>
</view>
<!-- @click="Edittag(item,chend,index,i)" -->
<view class="cenisbox" v-if="kehuyixiangcenterindex==1">
<view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;"
v-if="Acquirecustomerintentlist2.length==0">
暂无数据
</view>
<view class="bioqianwayl" v-if="item.isshow==true">
<view class="jiangshang" v-for="(chend,i) in item.children" :key='i' v-if="chend.selected==0">
{{chend.text}}
<view class="jianbox" v-if="Acquirecustomerintentlist2.length!=0"
v-for="(item,index) in Acquirecustomerintentlist2" :key='index'>
<view class="jianbox-cen">
<view class="jianboxtext">{{item.name}}</view>
<view class="jianboxjian" @click="Acquishow2(index)">
<image v-if="item.isshow==false" class="jiantop" src="../../static/images/jiantop.png"
mode=""></image>
<image v-if="item.isshow==true" class="jiantop1"
src="../../static/images/jianbutton.png" mode=""></image>
</view>
</view>
<view class="bioqianwayl" v-if="item.isshow==true">
<view class="jiangshang" v-for="(chend,i) in item.children" :key='i'
v-if="chend.selected==0">
{{chend.text}}
</view>
</view>
</view>
</view>
</view>

<view class="calibration" @click="$noMultipleClicks(tocalibration)">校准</view>
</view>
<view class="calibration" @click="$noMultipleClicks(tocalibration)">校准</view>
</view>
</template>

<view class="zhezhao" v-if="effective"></view>
<view class="bounced" v-if="effective">
<view class="jiajinghuatit">选择</view>
<view>
<view class="uni-list">
<radio-group @change="radioChange">
<label style="display: flex;align-items: center;font-size: 30rpx;
width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value">
<view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view>
<view style="width: 80rpx;">
<radio :value="item.value" :checked="index == effectiveindex" />
</view>
</label>
</radio-group>
<template v-if="effective">
<view class="zhezhao"></view>
<view class="bounced">
<view class="jiajinghuatit">选择</view>
<view>
<view class="uni-list">
<radio-group @change="radioChange">
<label style="display: flex;align-items: center;font-size: 30rpx;
width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value">
<view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view>
<view style="width: 80rpx;">
<radio :value="item.value" :checked="index == effectiveindex" />
</view>
</label>
</radio-group>
</view>
<view v-if="effectiveindex==4">
<textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" />
</view>
</view>
<view v-if="effectiveindex==4">
<textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" />
<view class="bounced3">
<view class="bounced3-1" @click="effective=false">取消</view>
<view class="bounced3-2" @click="$noMultipleClicks(effectiveAdd)">确认</view>
</view>
</view>
<view class="bounced3">
<view class="bounced3-1" @click="effective=false">取消</view>
<view class="bounced3-2" @click="$noMultipleClicks(effectiveAdd)">确认</view>
</view>
</view>

</template>
<!-- 修改角色 -->
<view class="zhezhao" v-if="roleisshaw" @tap="unmarktap()"></view>
<view class="bounced" v-if="roleisshaw">
@@ -540,14 +569,14 @@
return {
customStyle: {
'width': '320rpx',
'font-size':'34rpx',
'font-size': '34rpx',
'border-bottom': '1px solid #ccc'
},
wordBiao: {
level: 1,
wordBiaoqian: '',
wordBiaoqianId: ''
},// 添加话术
}, // 添加话术
treelist: [],
huaxiangList: [],
treeshow: false,
@@ -562,7 +591,7 @@
Aimg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAACqVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3////9/f39/f3////////9/f3////////////9/f3////9/f39/f3////9/f3////////9/f3////9/f3////////////////9/f39/f3////////9/f39/f3////9/f39/f3////////9/f39/f3////////9/f39/f39/f3////////////////+/v7+/v7////+/v7////+/v7////+/v7+/v7////////+/v7+/v7////+/v7////+/v7////////////////////////////+/v7////+/v7////+/v7+/v7////////////+/v7////+/v7////+/v7+/v7////////+/v7////+/v7////////+/v7////////+/v7////+/v7+/v7+/v7////////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7+/v7////+/v5jdC9iAAAA4nRSTlMAAQIDBAUGBwgLDA0ODxARExQVFhgbHB4fICEiIyQmJygpKy4wMTIzNDY3ODk6Oz0+P0BBQkRGR0lKTE5PUFFTVFVXWFlcXV9gYWJjZWZnaGlqa2xtbm9wcXJzdHV2d3h6e319foGBgoODh4mKiouMjI2QkZKSk5OUlpeYmZmam5ycnZ+foKGio6SmqKmpq6yur7CwsbGytba5uru8wMDBwcLCw8XGx8jJysrLzM7P0dLT1dXW1tfY2drc3N7f4OHh5Obm5+jp6uvs7vDx8vLz8/T09fX29/f4+fn6+vz8/f7+RVDt+wAAA55JREFUGBntwf9/1HMAB/DX7XYbuXWV1cyMoixfugrRGNXytW33pbVdJ83XkiMLSb4LJd/zZUi0SKT5FmGS77HUVaixnHP2+kt8vt3Zbp/3+7P3XR5+8XziP1E4uiYcrh1bjMNi6NzXumnoeX3eSOSrpHUv+zi0ogJ5qd3JLN1XuJGzwqW0sW4oclT0Im19XIqcuNdQ4D0vcnEDhdYgB2f+SbFZUHbEdkrsLYeqFko9CEVH7qJUohxqLqODO6BmLR18XwAVRQfpZDxUnExHjVBRR0eroGIZHX0AFe10tA8qdtNZIRR00VEPVLxLRzuh4jk62gIVy+joSaiI0tECqPDT0blQ4f6RDpI+KHmYDjZBzWQ6aIaibZSK+6BoOqViUOXqoER8BJSdlqJYFDm4h0LveJAD7+cUiFciJ1U/01aiGjk65zfaSF6EnE3azQEO1iAPFZuZZes45MUT3cM+emLFyNfwK3fQ8k1sFA6L0cElTzx9d1OVC/8bNG/gzY+GQaKk461gCQZr8iMHSNZD4nySv6wYj0EYFv2UhqcgcTsN70ePhtzER3+lJe6BxXP9jTctvrl1yS1jkLaNlkTbBR6IlF3dyT78sHh+oqkSlrJe/uOH1jGw4apem2I/1yLtGRo6kRZiP73t57mQxb+Z2dqRdikNtyLtBWb78Cz05bomyQH+KIGljIYaWNxxDtC72ouMgsdpZzosHhqqYDmFdraOQNpttHUfLKU0TITlKtra6IZpCu3tgMVPQx0sG2ivDqaVFDgOppk0LIbJm6C9DTB1UCAMU4SGZ2GqocAumL6jQBtMMRq2wLScAik3dMV/UWB/EQwrafgSpk6KlEJ3LIXOgGE9DQdgqKDQSdBNoNAiGL6i6SjowhSaAt1UCm2CzpOk6QTonqfQJdBdSKGkD5pKWqZCU7iHQtdB10KxWmjOpqUJmtMp9gB091LsIWiCtCyFZiHFXoZuHcW+hiZGy0vQvE2xT6DbTolKAI/R8hmA4SmKdUG3jxIhAG/QkigAZlAi6QJQTJk2AF1MGwXcRRkfgJGU2V8EHzP8wBeUqQQwllKTcCozpuFESk0AMJNSC3AxM8KYT6lpAFootRGLmLEQ6ynVCCBAqcSQ1cy4f8ghSs0HcMzvlKp+lRmvVFMqNQ6aaIoyd3Yy49vllOmuh+H4WZFIpFnTpJmjadTM1oQ1oVAgFNQENA0N9f01BIKh8OzGOU3NkbmXzwuV41/wNztgHKhu7WKTAAAAAElFTkSuQmCC",
tablist: [],
roleindex: 0, // 当前选中的角色标记点(旧版本的)
roleSelectArr: [], // 当前选中的角色标记点
roleSelectArr: [0], // 当前选中的角色标记点
roleindexbiaoji: 0,
audioPlay: false, //当前的播放状态控制
sliderValue: 0, //进度条最小值
@@ -728,8 +757,7 @@
// this.roleindex = 0;
if (this.stateisshow == 2) {
this.infos = this.itemobj;
}
!this.isPageHide && this.init(this.infos);
}!this.isPageHide && this.init(this.infos);
this.gituserlist()

},
@@ -749,37 +777,37 @@

methods: {
//获取画像标签
getWordMiningList() {
this.treelist = [];
this.$u.get("/corpus/findSelectedWordMiningTemplate", {
houseId: this.buildingID,
selected: 0
})
.then((res) => {
// console.log(res)
if(res.length){
res.forEach(item=>{
item.value = item.id;
item.label = item.name;
if(item.children.length){
item.children.forEach(subitem=>{
subitem.value = subitem.id;
subitem.label = subitem.name;
})
}else{
item.children=[{
value: 'default'+ item.id,
label: '--'
}]
}
})
}
this.treelist = res;
});
},
// 添加挖掘词
wajueConfirm(){
if(this.thewrongword.length>20){
getWordMiningList() {
this.treelist = [];
this.$u.get("/corpus/findSelectedWordMiningTemplate", {
houseId: this.buildingID,
selected: 0
})
.then((res) => {
// console.log(res)
if (res.length) {
res.forEach(item => {
item.value = item.id;
item.label = item.name;
if (item.children.length) {
item.children.forEach(subitem => {
subitem.value = subitem.id;
subitem.label = subitem.name;
})
} else {
item.children = [{
value: 'default' + item.id,
label: '--'
}]
}
})
}
this.treelist = res;
});
},
// 添加挖掘词
wajueConfirm() {
if (this.thewrongword.length > 20) {
uni.showToast({
title: '该话术不能超过20个字',
icon: 'none',
@@ -790,28 +818,28 @@
}
this.wajueshow = true
uni.request({
url: config.service.addWordMining,
url: config.service.addWordMining,
method: "post",
header: {
'content-type': 'application/json',
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
data: {
"houseId":this.buildingID,// 楼盘id
"cusId":this.customerId, //客户id
"question":this.thewrongword,// 问题
"keywordsId":this.wordBiao.wordBiaoqianId,// 标签id
"level":this.wordBiao.level // 标签等级
"houseId": this.buildingID, // 楼盘id
"cusId": this.customerId, //客户id
"question": this.thewrongword, // 问题
"keywordsId": this.wordBiao.wordBiaoqianId, // 标签id
"level": this.wordBiao.level // 标签等级
},
success: (res) => {
// console.log(res)
if(res.data.code==10000){
if (res.data.code == 10000) {
uni.showToast({
title: '添加成功',
duration: 2000
});
this.wajueshow = false
}else{
} else {
uni.showToast({
title: res.data.message,
icon: 'none',
@@ -823,22 +851,22 @@
})
},
// 挖掘话术分类树的选择
confirmTree(e){
confirmTree(e) {
// console.log(e)
if(e[1].label=='--'){
if (e[1].label == '--') {
this.wordBiao.wordBiaoqian = e[0].label
this.wordBiao.wordBiaoqianId = e[0].value
this.wordBiao.level = 1
}else{
} else {
this.wordBiao.wordBiaoqian = e[0].label + '/' + e[1].label
this.wordBiao.wordBiaoqianId= e[1].value
this.wordBiao.wordBiaoqianId = e[1].value
this.wordBiao.level = 2
}
// console.log(this.wordBiao.wordBiaoqian)
},
CancelAdd(){
CancelAdd() {
this.wajueshow = false
this.wajueItem.isshow= false
this.wajueItem.isshow = false
this.wordBiao.wordBiaoqian = ''
},
// 选中取反
@@ -1237,7 +1265,7 @@
success: (data) => {
this.biojiisshow = false;
this.biaojiyuyi()
this.fenjiaoseunfo()
this.fenjiaoseunfo('refresh')
uni.showToast({
title: '标记成功',
duration: 2000
@@ -1254,7 +1282,7 @@
console.log(res)
})
},
//分角色
tapspagek(data, index) {
if (index == 0) this.resetTabList();
@@ -1272,19 +1300,19 @@
}
this.fenjiaoseunfo()
},
// 选中全部时互斥全部选项与角色选项
resetTabList() {
this.tablist.forEach(item => {
item.select = false
})
},
// 选中角色时将全部反选
resetAll() {
this.tablist[0].select = false
},
// 生成角色列表
creatTabList(num) {
for (var i = 0; i <= num; i++) {
@@ -1303,30 +1331,21 @@
}
}
},
// 选中选中的标记
resetTabListChoose() {
this.tablist.forEach(item => {
if (this.roleSelectArr.findIndex(obj => obj == item.speaker) != -1) {
item.select = true
}
})
},

// 获取flag
getVoFlagValue() {
return this.roleSelectArr.findIndex(item => item == 0) == -1 ? 1 : 0
},

//分角色标记刷新
fenjiaoseunfo() {
fenjiaoseunfo(type) {
this.newluyinList = [];
this.dialogList = [];
let speakerStr = ''
let str =
`?corpusId=${this.luyinList[this.csdFileindex].id}&bg=${this.playNow * 1000}&speaker=0&voFlag=${this.getVoFlagValue()}&num=50`
if (this.roleSelectArr.findIndex(item => item == 0) == -1) {
speakerStr = this.roleSelectArr.join(',')
str += `&speakerStr=${this.roleSelectArr.join(',')}`
}
let str = `?corpusId=${this.luyinList[this.csdFileindex].id}&bg=${this.playNow * 1000}&speaker=0&voFlag=${this.getVoFlagValue()}&num=50&speakerStr=${speakerStr}`
this.$u.get(`${config.service.getCorpusAnal}${str}`).then(res => {
let jsonInfo = JSON.parse(res.audioContent);
//上拉标记点
@@ -1340,7 +1359,16 @@
info.checked = false
})
})
// 当页面标记重新刷新时
if (type == 'refresh') {
this.tablist = []
this.roleSelectArr = [0]
this.creatTabList(res.speakerNum)
this.tablist[0].select = true
this.tablist[res.speaker].name = this.tablist[res.speaker].name + "顾问";
}


this.newluyinList = jsonInfo;
if (this.textindex == null) {
return
@@ -1351,7 +1379,7 @@
console.log(e)
})
},
// 关键词搜索
toKeywordsearch() {
this.stateisshow = 1;
@@ -1360,7 +1388,7 @@
"&skpl=" + "1" + '&UpDateEvent=DETAILS2INIT'
})
},
// 播放器当前播放时间变化
TimeUpdate(currentTime) {
this.playNow = Math.ceil(currentTime)
@@ -1697,7 +1725,9 @@
})
}
})
objdata.toDigestList.sort((a, b) => { return Number(a.startTime) - Number(b.startTime)}).reverse()
objdata.toDigestList.sort((a, b) => {
return Number(a.startTime) - Number(b.startTime)
}).reverse()

this.isshow3 = false;
this.$u.post(config.service.addATD, objdata).then(res => {
@@ -1727,7 +1757,7 @@
this.messagelisy = [];
this.changanitem = {};
this.duihuawenjianid = "";
this.cancelBeast()
this.cancelBeast()
this.changanitem = item;
this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
@@ -1855,7 +1885,8 @@
this.newluyinList = []
uni.request({
url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
"&bg=" + info.bg + "&speaker=" + this.roleindex + '&voFlag=0' + '&num=50', //仅为示例,并非真实接口地址。
"&bg=" + info.bg + "&speaker=" + this.roleindex + '&voFlag=0' +
'&num=50', //仅为示例,并非真实接口地址。
method: "GET",
header: {
'content-type': 'application/json',
@@ -1878,12 +1909,12 @@
this.roleindexbiaoji = data.data.data.speaker - 1;
this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
}
//上拉标记点
this.textindex = data.data.data.index;
//下拉标记点
this.toptextindex = data.data.data.index;
jsonInfo.forEach(item => {
item.message = JSON.parse(item.onebest)
item.backindex = this.csdFileindex;
@@ -2027,7 +2058,6 @@
flex: 1;
text-align: center;
font-size: 28rpx;
text-indent: 20rpx;
}

.activecllasscet {
@@ -2269,6 +2299,7 @@
}

.followingpop-up {
padding: 0 0 40rpx 0;
width: 100%;
height: 75vh;
background: #FFFFFF;
@@ -2745,20 +2776,24 @@
width: 570rpx;
background-color: #FFFFFF;
display: flex;
margin-bottom:30rpx;
margin-bottom: 30rpx;

.tian-view-t2 {
width: 100%;
font-size: 34rpx;
display: flex;
color: #333;
.word{

.word {
flex: 1;
border-bottom: 1px solid #ccc;
}
.word1{

.word1 {
height: 80rpx;
flex: 1;
/deep/ textarea{

/deep/ textarea {
max-height: 80rpx !important;
}
}
@@ -2989,4 +3024,4 @@
background: #2BC805 !important;
color: #FFFFFF;
}
</style>
</style>

Loading…
Cancel
Save