Bläddra i källkod

需求挖掘功能

yun
corala 2 år sedan
förälder
incheckning
cdd3bc0e35
3 ändrade filer med 14 tillägg och 28 borttagningar
  1. +2
    -0
      pages/index/index.vue
  2. +10
    -25
      pages/mine/details2.vue
  3. +2
    -3
      utils/domain.js

+ 2
- 0
pages/index/index.vue Visa fil

@@ -262,6 +262,7 @@
prohibitedCustomer: '',
tagCustomer: '',
fraction: '',
wordFraction: '',
receptionCount: ''
},
Thisweekobj: {
@@ -271,6 +272,7 @@
prohibitedCustomer: '',
tagCustomer: '',
fraction: '',
wordFraction: '',
receptionCount: ''
},
methodsisshow: false,


+ 10
- 25
pages/mine/details2.vue Visa fil

@@ -241,9 +241,9 @@
</view>
</view>
<view class="pingfenbox">
<view :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">销讲总执行率{{totalRate}}%</view>
<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)">需求挖掘率</view>
<view :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="recordclick(2)">需求挖掘率{{KeyWordsfraction||0}}%</view>
</view>
<view v-if="zhixingcenterindex == 0" class="cenisbox">
<view
@@ -253,7 +253,7 @@
</view>
</view>
<view class="Level-box" v-for="(item,index) in ratelist" :key="index">
<view class="Level1che" @click="changeshow(item,1)">
<view class="Level1che" @click="item.show = !item.show">
<view class="title1">{{item.name.substring(0,8)}}</view>
<view class="leve1-jindu">
<view class="jindutiao">
@@ -267,7 +267,7 @@
</view>
</view>
<view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
<view class="Level2che" @click="changeshow2(subitem,1)">
<view class="Level2che" @click="item.show = !item.show">
<view class="title1">{{subitem.name.substring(0,8)}}</view>
<view class="leve1-jindu">
<view class="zhixing" v-if="!subitem.selected">已执行</view>
@@ -310,7 +310,7 @@
</view>
</view>
<view class="Level-box" v-for="(item,index) in KeyWordsfractionList" :key="index">
<view class="Level1che" @click="changeshow(item,1)">
<view class="Level1che" @click="item.show = !item.show">
<view class="title1">{{item.name}}</view>
<view class="leve1-jindu">
<view class="jindutiao">
@@ -342,7 +342,7 @@
<!-- 话术在二级下 -->
<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="changeshow2(subitem,1)">
<view class="Level2che" @click="item.show = !item.show">
<view class="title1 u-line-1">{{subitem.name}}</view>
<view class="leve1-jindu">
<view class="zhixing" v-if="!subitem.selected">已执行</view>
@@ -515,6 +515,7 @@

data() {
return {
KeyWordsfraction: 0,
KeyWordsfractionList: [],
noClick: true,
kehuyixiangcenterindex: 0,
@@ -1119,7 +1120,6 @@
} else {
tempRoleIndex = this.roleindex
}
console.log()
uni.request({
url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
"&bg=" + bgcd + "&speaker=" + tempRoleIndex + "&voFlag=" + voFlagValue +
@@ -1575,7 +1575,6 @@
this.messagelisy = this.dialogList[i].message
this.argtextindex1 = i;
this.argtextindex2 = index;

},
//回到顶部
gotoTop() {
@@ -1584,28 +1583,14 @@
this.scrollId = "top";
})
},
//切换tab
changeTab(type) {
if (type == 0) {
this.tab = 0
} else {
this.tab = 1;
this.getRatelist();
}
},
//评分上下显隐
changeshow(item, type) {
item.show = !item.show;
},
changeshow2(item, type) {
item.show = !item.show;
},
// 客户详情需求挖掘话术
getfindKeyWordsBycusId() {
this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => {
console.log(res)
// console.log(res)
if(res.length){
this.KeyWordsfraction = 0
res.forEach(item=>{
this.KeyWordsfraction += +item.fraction // 总执行率
item.show = false
item.children.forEach(obj=>{
obj.show = false


+ 2
- 3
utils/domain.js Visa fil

@@ -1,8 +1,7 @@
// http.js使用域名
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试
// const baseUrl = 'http://192.168.31.148:8080/api';// 泽明
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试
// const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.90:8080/api'; // 盛浩
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式


Laddar…
Avbryt
Spara