@@ -812,7 +812,14 @@ | |||||
jsonInfo.forEach(item=>{ | jsonInfo.forEach(item=>{ | ||||
item.message=JSON.parse(item.onebest) | item.message=JSON.parse(item.onebest) | ||||
item.backindex=this.csdFileindex | |||||
item.backindex=this.csdFileindex; | |||||
if(info.onebest){ | |||||
item.message.forEach(che=>{ | |||||
if(che.onebest==info.onebest){ | |||||
che.onebest=`<font style='color: red'>${che.onebest}</font>`; | |||||
} | |||||
}) | |||||
} | |||||
}) | }) | ||||
this.newluyinList=jsonInfo; | this.newluyinList=jsonInfo; | ||||
this.dialogList.push(jsonInfo[this.textindex]); | this.dialogList.push(jsonInfo[this.textindex]); | ||||
@@ -182,15 +182,22 @@ | |||||
freeList:[], | freeList:[], | ||||
userInfo:{}, | userInfo:{}, | ||||
findKeywordsList:[], | findKeywordsList:[], | ||||
isnorefresh:'' | |||||
} | } | ||||
}, | }, | ||||
onLoad(options) { | |||||
this.isnorefresh=options.refresh; | |||||
}, | |||||
onShow() { | onShow() { | ||||
this.buildingID = uni.getStorageSync('buildingID').id; | |||||
this.nextPage=1; | |||||
this.recordList=[] | |||||
this.getMyCustom() | |||||
this.getFreeList() | |||||
this.getfindKeywordsList() | |||||
if(this.isnorefresh=='refresh'){ | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | |||||
this.nextPage=1; | |||||
this.recordList=[] | |||||
this.getMyCustom() | |||||
this.getFreeList() | |||||
this.getfindKeywordsList() | |||||
this.isnorefresh=''; | |||||
} | |||||
}, | }, | ||||
onReachBottom() { | onReachBottom() { | ||||
if(this.totalRecord==this.nextPage){ | if(this.totalRecord==this.nextPage){ | ||||
@@ -168,15 +168,22 @@ | |||||
nextPage:1, | nextPage:1, | ||||
totalRecord:"", | totalRecord:"", | ||||
staTime:'', | staTime:'', | ||||
endtime:'' | |||||
endtime:'', | |||||
isnorefresh:'', | |||||
} | } | ||||
}, | }, | ||||
onLoad(options) { | |||||
this.isnorefresh=options.refresh; | |||||
}, | |||||
onShow() { | onShow() { | ||||
this.buildingID = uni.getStorageSync('buildingID').id; | |||||
this.recordList=[]; | |||||
this.nextPage=1; | |||||
this.getMyCustom() | |||||
this.getFreeList(); | |||||
if(this.isnorefresh=='refresh'){ | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | |||||
this.recordList=[]; | |||||
this.nextPage=1; | |||||
this.getMyCustom() | |||||
this.getFreeList(); | |||||
this.isnorefresh=''; | |||||
} | |||||
}, | }, | ||||
onReachBottom() { | onReachBottom() { | ||||
if(this.totalRecord==this.nextPage){ | if(this.totalRecord==this.nextPage){ | ||||
@@ -98,15 +98,17 @@ | |||||
customerId: item.id, | customerId: item.id, | ||||
} | } | ||||
} | } | ||||
var item={ | |||||
var itemsd={ | |||||
bg:0, | bg:0, | ||||
customerId:item.id, | customerId:item.id, | ||||
id:'', | |||||
onebest:'' | |||||
} | } | ||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
if(res){ | if(res){ | ||||
let newobj = res[0]; | let newobj = res[0]; | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}` | |||||
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemsd)}&stateisshow=${"1"}` | |||||
}) | }) | ||||
}else{ | }else{ | ||||
uni.showToast({ | uni.showToast({ | ||||
@@ -122,13 +124,7 @@ | |||||
queryHaveDept() { | queryHaveDept() { | ||||
return new Promise((resolve, reject) => { | return new Promise((resolve, reject) => { | ||||
this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => { | this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => { | ||||
this.isAdd=res; | |||||
// if(this.isAdd == 0 && (this.dataCode!=6||(dataCode==6&&addAccount==0))){ | |||||
// } | |||||
this.isAdd=res; | |||||
resolve(); | resolve(); | ||||
}) | }) | ||||
}) | }) | ||||
@@ -427,7 +427,7 @@ | |||||
}); | }); | ||||
} else if (item == '接待记录') { | } else if (item == '接待记录') { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/center/records/index' | |||||
url: '/pages/center/records/index?refresh='+'refresh' | |||||
}); | }); | ||||
} else if (item == '值班顾问') { | } else if (item == '值班顾问') { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
@@ -439,7 +439,7 @@ | |||||
}); | }); | ||||
} else { | } else { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/center/consumer/index' | |||||
url: '/pages/center/consumer/index?refresh='+'refresh' | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
@@ -1,10 +1,10 @@ | |||||
<template> | <template> | ||||
<view class="translation" @click="changeEditing(false)"> | <view class="translation" @click="changeEditing(false)"> | ||||
<view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx; | |||||
<!-- <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx; | |||||
display: flex;align-items: center;" @tap="toKeywordsearch()"> | display: flex;align-items: center;" @tap="toKeywordsearch()"> | ||||
<image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image> | <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image> | ||||
<text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text> | <text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text> | ||||
</view> | |||||
</view> --> | |||||
<view class="top" style="margin-top: 30rpx;"> | <view class="top" style="margin-top: 30rpx;"> | ||||
<view class="title"> | <view class="title"> | ||||
<view class="call_record_time">{{date}}</view> | <view class="call_record_time">{{date}}</view> | ||||
@@ -496,11 +496,10 @@ | |||||
this.timeStr = this.getTime(res[index].recordDuration) | this.timeStr = this.getTime(res[index].recordDuration) | ||||
this.date = res[index].receptionTime; | this.date = res[index].receptionTime; | ||||
this.isshowFile = false; | this.isshowFile = false; | ||||
this.getCorpusAnalysis(); | |||||
this.getCorpusAnalysis(info); | |||||
this.creatAudio() | this.creatAudio() | ||||
var itc=parseInt(info.bg/1000) | var itc=parseInt(info.bg/1000) | ||||
this.adasdasdasd(itc) | |||||
this.adasdasdasd(itc) | |||||
} | } | ||||
}) | }) | ||||
}else{ | }else{ | ||||
@@ -524,7 +523,7 @@ | |||||
this.innerAudioContext.play(); | this.innerAudioContext.play(); | ||||
}, | }, | ||||
// 获取转义后的对话结果 | // 获取转义后的对话结果 | ||||
getCorpusAnalysis(){ | |||||
getCorpusAnalysis(info){ | |||||
this.dialogList = []; | this.dialogList = []; | ||||
uni.showLoading({ | uni.showLoading({ | ||||
title: '加载中' | title: '加载中' | ||||
@@ -544,6 +543,13 @@ | |||||
}, 2000); | }, 2000); | ||||
}else{ | }else{ | ||||
const jsonInfo = JSON.parse(data.data.data.audioContent); | const jsonInfo = JSON.parse(data.data.data.audioContent); | ||||
// if(info.onebest){ | |||||
// jsonInfo.forEach(che=>{ | |||||
// if(che.onebest==info.onebest){ | |||||
// che.onebest=`<font style='color: red'>${che.onebest}</font>`; | |||||
// } | |||||
// }) | |||||
// } | |||||
this.dialogList.push({ | this.dialogList.push({ | ||||
message: jsonInfo | message: jsonInfo | ||||
}); | }); | ||||
@@ -252,7 +252,7 @@ | |||||
var info = currPage.data.info; | var info = currPage.data.info; | ||||
} | } | ||||
console.log(info) | |||||
console.log(info,656456546) | |||||
this.innerAudioContext = uni.createInnerAudioContext(); | this.innerAudioContext = uni.createInnerAudioContext(); | ||||
this.innerAudioContext.autoplay = false; | this.innerAudioContext.autoplay = false; | ||||
this.innerAudioContext.title = '音频'; | this.innerAudioContext.title = '音频'; | ||||
@@ -506,12 +506,18 @@ | |||||
//下拉标记点 | //下拉标记点 | ||||
this.toptextindex=data.data.data.index; | this.toptextindex=data.data.data.index; | ||||
console.log(info.onebest+":66666666666666666666666666666") | |||||
jsonInfo.forEach(item=>{ | jsonInfo.forEach(item=>{ | ||||
item.message=JSON.parse(item.onebest) | item.message=JSON.parse(item.onebest) | ||||
item.backindex=this.csdFileindex | |||||
item.backindex=this.csdFileindex; | |||||
if(info.onebest){ | |||||
item.message.forEach(che=>{ | |||||
if(che.onebest==info.onebest){ | |||||
che.onebest=`<font style='color: red'>${che.onebest}</font>`; | |||||
} | |||||
}) | |||||
} | |||||
}) | }) | ||||
console.log(jsonInfo) | |||||
this.newluyinList=jsonInfo; | this.newluyinList=jsonInfo; | ||||
this.dialogList.push(jsonInfo[this.textindex]); | this.dialogList.push(jsonInfo[this.textindex]); | ||||
var itc=parseInt(info.bg/1000) | var itc=parseInt(info.bg/1000) | ||||
@@ -86,6 +86,7 @@ | |||||
item.customerId=this.customerId; | item.customerId=this.customerId; | ||||
item.id=id; | item.id=id; | ||||
item.index=index; | item.index=index; | ||||
if(this.skpl==2){ | if(this.skpl==2){ | ||||
this.infostust(item) | this.infostust(item) | ||||
}else{ | }else{ | ||||
@@ -105,7 +106,8 @@ | |||||
var itemobjhh={ | var itemobjhh={ | ||||
bg:d[0].bg, | bg:d[0].bg, | ||||
customerId:d[0].customerId, | customerId:d[0].customerId, | ||||
id:'' | |||||
id:'', | |||||
onebest:d[0].onebest, | |||||
} | } | ||||
const parames = { | const parames = { | ||||
pageNum: 1, | pageNum: 1, | ||||
@@ -114,6 +116,7 @@ | |||||
customerId: this.customerId, | customerId: this.customerId, | ||||
} | } | ||||
} | } | ||||
console.log(item) | |||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
if(res[0].merge==0){ | if(res[0].merge==0){ | ||||
let newobj = res[0]; | let newobj = res[0]; | ||||
@@ -123,7 +126,7 @@ | |||||
}else{ | }else{ | ||||
let newobj = res[0]; | let newobj = res[0]; | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/learning/Thefulltext/index1?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemobjhh)}&stateisshow=${'2'}` | |||||
url: `/pages/learning/Thefulltext/index?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemobjhh)}&stateisshow=${'2'}` | |||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
@@ -1,10 +1,10 @@ | |||||
<template> | <template> | ||||
<view class="translation"> | <view class="translation"> | ||||
<view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx; | |||||
<!-- <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx; | |||||
display: flex;align-items: center;" @tap="toKeywordsearch()"> | display: flex;align-items: center;" @tap="toKeywordsearch()"> | ||||
<image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image> | <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image> | ||||
<text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text> | <text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text> | ||||
</view> | |||||
</view> --> | |||||
<view class="top" style="margin-top: 30rpx;"> | <view class="top" style="margin-top: 30rpx;"> | ||||
<view class="title"> | <view class="title"> | ||||
<view class="call_record_time">{{date}}</view> | <view class="call_record_time">{{date}}</view> | ||||
@@ -229,7 +229,7 @@ | |||||
if(this.stateisshow==2){ | |||||
if(this.stateisshow==1){ | |||||
var info =this.itemobj; | var info =this.itemobj; | ||||
}else{ | }else{ | ||||
var pages = getCurrentPages(); | var pages = getCurrentPages(); | ||||
@@ -240,7 +240,7 @@ | |||||
this.innerAudioContext = uni.createInnerAudioContext(); | this.innerAudioContext = uni.createInnerAudioContext(); | ||||
this.innerAudioContext.autoplay = false; | this.innerAudioContext.autoplay = false; | ||||
this.innerAudioContext.title = '音频'; | this.innerAudioContext.title = '音频'; | ||||
console.log(this.itemobj) | |||||
this.onPlay() | this.onPlay() | ||||
this.onPause() | this.onPause() | ||||
this.onCanplay() | this.onCanplay() | ||||
@@ -249,6 +249,7 @@ | |||||
this.onSeeked() | this.onSeeked() | ||||
this.TimeUpdate() | this.TimeUpdate() | ||||
this.init(info) | this.init(info) | ||||
}, | }, | ||||
// 在组件实例被从页面节点树移除时执行 | // 在组件实例被从页面节点树移除时执行 | ||||
destroyed: function() { | destroyed: function() { | ||||
@@ -368,6 +369,15 @@ | |||||
this.creatAudio() | this.creatAudio() | ||||
var itc=parseInt(info.bg/1000) | var itc=parseInt(info.bg/1000) | ||||
this.adasdasdasd(itc) | this.adasdasdasd(itc) | ||||
}else{ | |||||
this.recordPath = res[0].recordPath | |||||
this.sliderMax = this.getTime(res[0].recordDuration) | |||||
this.timeStr = this.getTime(res[0].recordDuration) | |||||
this.date = res[0].receptionTime | |||||
this.innerAudioContext.src = this.recordPath; | |||||
this.changePlayState() | |||||
this.luyinList = res; | |||||
this.getCorpusAnalysis(info) | |||||
} | } | ||||
}) | }) | ||||
}else{ | }else{ | ||||
@@ -378,7 +388,7 @@ | |||||
this.innerAudioContext.src = this.recordPath; | this.innerAudioContext.src = this.recordPath; | ||||
this.changePlayState() | this.changePlayState() | ||||
this.luyinList = res; | this.luyinList = res; | ||||
this.getCorpusAnalysis() | |||||
this.getCorpusAnalysis(info) | |||||
} | } | ||||
} | } | ||||
}) | }) | ||||
@@ -846,38 +856,17 @@ | |||||
}, 2000); | }, 2000); | ||||
} else { | } else { | ||||
const jsonInfo = JSON.parse(data.data.data.audioContent); | const jsonInfo = JSON.parse(data.data.data.audioContent); | ||||
console.log(jsonInfo) | |||||
if(this.luyinList[this.csdFileindex].recordDuration>360){ | |||||
//拿到总条数 | |||||
var stusnum=jsonInfo.length; | |||||
this.dialogList.push({ | |||||
message: jsonInfo.splice(0,80), | |||||
backindex:this.csdFileindex | |||||
}); | |||||
var auth_timetimer = setInterval(() => { | |||||
stusnum-=100; | |||||
console.log("还剩下"+stusnum) | |||||
if (stusnum <= 0) { | |||||
console.log("停止") | |||||
clearInterval(auth_timetimer); | |||||
}else{ | |||||
console.log("添加") | |||||
var newlistwang=[]; | |||||
newlistwang=jsonInfo.splice(0,100); | |||||
console.log("新数组",newlistwang) | |||||
newlistwang.forEach(item=>{ | |||||
this.dialogList[0].message.push(item) | |||||
}) | |||||
} | |||||
}, 1000); | |||||
}else{ | |||||
this.dialogList.push({ | |||||
message: jsonInfo, | |||||
backindex:this.csdFileindex | |||||
}); | |||||
} | |||||
// if(info.onebest){ | |||||
// jsonInfo.forEach(che=>{ | |||||
// if(che.onebest==info.onebest){ | |||||
// che.onebest=`<font style='color: red'>${che.onebest}</font>`; | |||||
// } | |||||
// }) | |||||
// } | |||||
this.dialogList.push({ | |||||
message: jsonInfo, | |||||
backindex:this.csdFileindex | |||||
}); | |||||
this.dialogList.forEach((asd, idx) => { | this.dialogList.forEach((asd, idx) => { | ||||
asd.message.forEach((qwe, inde) => { | asd.message.forEach((qwe, inde) => { | ||||
qwe.isshow = false; | qwe.isshow = false; | ||||
@@ -421,6 +421,8 @@ | |||||
var currPage = pages[pages.length - 1]; //当前页面 | var currPage = pages[pages.length - 1]; //当前页面 | ||||
var info = currPage.data.info; | var info = currPage.data.info; | ||||
} | } | ||||
console.log(info) | |||||
this.innerAudioContext = uni.createInnerAudioContext(); | this.innerAudioContext = uni.createInnerAudioContext(); | ||||
this.innerAudioContext.autoplay = false; | this.innerAudioContext.autoplay = false; | ||||
@@ -1226,6 +1228,8 @@ | |||||
success: (data) => { | success: (data) => { | ||||
this.tablist=[]; | this.tablist=[]; | ||||
let jsonInfo = JSON.parse(data.data.data.audioContent); | let jsonInfo = JSON.parse(data.data.data.audioContent); | ||||
for(var i=0;i<=data.data.data.speakerNum;i++){ | for(var i=0;i<=data.data.data.speakerNum;i++){ | ||||
if(i==0){ | if(i==0){ | ||||
this.tablist.push({ | this.tablist.push({ | ||||
@@ -1314,9 +1318,17 @@ | |||||
jsonInfo.forEach(item=>{ | jsonInfo.forEach(item=>{ | ||||
item.message=JSON.parse(item.onebest) | item.message=JSON.parse(item.onebest) | ||||
item.backindex=this.csdFileindex | |||||
item.backindex=this.csdFileindex; | |||||
if(info.onebest){ | |||||
item.message.forEach(che=>{ | |||||
if(che.onebest==info.onebest){ | |||||
che.onebest=`<font style='color: red'>${che.onebest}</font>`; | |||||
} | |||||
}) | |||||
} | |||||
}) | }) | ||||
console.log(jsonInfo) | |||||
this.newluyinList=jsonInfo; | this.newluyinList=jsonInfo; | ||||
this.dialogList.push(jsonInfo[this.textindex]); | this.dialogList.push(jsonInfo[this.textindex]); | ||||