@@ -1,5 +1,5 @@
<template>
<view class="box">
<view class="box" @click="cancelBeast" >
<view class="headbox">
<!-- 顶部时间 -->
<view class="headboxhead">
@@ -28,7 +28,7 @@
<view :id="'dialog'+i" class="fileName">录音文件</view>
<view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
:class="{active: Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}"
v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker" @click.stop >
<template v-if="refined">
<view class="checkbox" :class="{select: item.checked}" @click="cbChange(item)">
@@ -109,7 +109,8 @@
</view>
<view @click="Receivetap()" style="line-height: 70rpx;margin-top: 10rpx;">接待信息</view>
<view v-if="Menulistisshow==true" @click="alllogo()" style="line-height:70rpx;">
{{userlistobj.validInvalidName}}</view>
{{userlistobj.validInvalidName}}
</view>
</view>
</view>
<view class="tmmchen" @click="Receivetap()" v-if="Menulistisshow==false">
@@ -119,8 +120,12 @@
</view>
</view>
</view>
<view v-else class="bottomboxs" @click="sureRefinement">确定</view>
<template v-else>
<view class="bottomboxs">
<view class="bottomboxs-item" @click="sureRefinement">确定</view>
<view class="bottomboxs-item" @click="cancelAllAdd">取消</view>
</view>
</template>
<!-- 标记 -->
<view class="zhezhoa" v-if="biojiisshow" @tap="unmarktap()"></view>
<view class="bounced" v-if="biojiisshow">
@@ -728,6 +733,31 @@
item.checked = !item.checked
this.$forceUpdate()
},
// 隐藏长按提示框
cancelBeast() {
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
},
// 重置选择加精的内容
cancelAllAdd() {
console.log('chufa')
this.dialogList.forEach(item => {
if (item.message && item.message.length > 0) {
item.message.forEach(items => {
items.checked = false
})
}
})
this.refined = false
// this.$forceUpdate()
},
hangeshow2(item, type) {
item.show = !item.show;
},
@@ -744,6 +774,7 @@
this.roletiaoshu = dialog;
this.roleindexrow = this.dialogList[this.csdFileindex].message[this.roletiaoshu].speaker - 1;
},
roletab() {
// let itso=this.dialogList[this.csdFileindex].message[this.roletiaoshu];
let itso = Object.assign({}, this.dialogList[this.csdFileindex].message[this.roletiaoshu]);
@@ -756,11 +787,8 @@
}).then(res => {
this.dialogList[this.csdFileindex].message[this.roletiaoshu].speaker = this.roleindexrow + 1
this.roleisshaw = false;
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
uni.showToast({
title: '修改成功',
duration: 2000
@@ -1083,6 +1111,7 @@
this.biojiisshow = false;
this.roleindexbiaoji = this.dshfkjsdkksodofydwfkhwdfkjh;
this.roleisshaw = false
this.cancelBeast()
},
//确认标记
Confirmthetag() {
@@ -1416,6 +1445,8 @@
}
});
},
//标签选择
tapbiaoqianclisck(index) {
this.biaoqianindex = index;
@@ -1426,17 +1457,16 @@
var that = this;
uni.setClipboardData({
data: that.thewrongword,
success: function() {
that.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
that.$forceUpdate();
success: () => {
this.cancelBeast()
this.$forceUpdate();
console.log('success');
}
});
}, //确认加入常错词
},
//确认加入常错词
Confirmtheexit() {
if (this.reswrongword.length > 8 || this.thewrongword.length > 8) {
this.$refs.uToast.show({
@@ -1469,11 +1499,7 @@
let sas = this.textItself.replace(this.thewrongword, this.reswrongword)
this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest = sas
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
this.$u.post("/corpus/addCorrectWord", parames).then(data => {
this.thewrongword = "";
this.reswrongword = "";
@@ -1501,11 +1527,7 @@
//取消加入常错词
Cancelout() {
this.isshow2 = false;
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
},
//加入长错词
Oftenthewrongword() {
@@ -1515,11 +1537,7 @@
//加精华
Addtheessence() {
this.refined = true
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
},
// 确认批量加精
@@ -1541,56 +1559,58 @@
// 取消加精
Cancelout2() {
this.isshow3 = false;
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
},
// 确认加精
Confirmtheexit2() {
if (this.biaoqianid) {
this.biaoqianid = this.biaoqianid
} else {
this.biaoqianid = 0
}
this.isshow3 = false;
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
let objdata = {
"itemId": this.buildingID,
"carId": this.customerId, //客户id
"startTime": this.changanitem.bg, //开始时间
"startFile": this.duihuawenjianid, //对话所在录音文件id
"endTime": this.changanitem.ed, //结束时间
"marketingId": this.biaoqianid, //对应一级父id
"jjTransfer": this.changanitem.onebest, //选中对话
"status": 1
itemId: this.buildingID,
carId: this.customerId, //客户id
startFile: this.duihuawenjianid, //对话所在录音文件id
marketingId: this.biaoqianid || 0, //对应一级父id
status: 1,
toDigestList: [], // 加精多选的内容
// jjTransfer: this.changanitem.onebest, //选中对话
// endTime: this.changanitem.ed, //结束时间
// startTime: this.changanitem.bg, //开始时间
}
uni.request({
url: config.service.addATD,
method: "POST",
header: {
'content-type': 'application/json',
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
data: objdata,
success: (data) => {
if (data.data.code == 10000) {
uni.showToast({
title: '加精成功',
duration: 2000
});
} else {
uni.showToast({
title: data.data.message,
duration: 2000
});
}
this.dialogList.forEach(items => {
if (items.message && items.message.length > 0) {
items.message.forEach(item => {
if (item.checked) {
objdata.toDigestList.push({
jjTransfer: item.onebest,
startTime: item.bg,
endTime: item.ed,
})
}
})
}
})
this.isshow3 = false;
this.$u.post(config.service.addATD, objdata).then(res => {
console.log(res)
if (res) {
uni.showToast({
title: '加精成功',
duration: 2000
});
} else {
uni.showToast({
title: '加精失败',
duration: 2000
});
}
this.cancelAllAdd()
}).catch(e => {
uni.showToast({
title: '网络异常,请稍候重试~',
duration: 2000
});
this.cancelAllAdd()
})
},
//长按对话
@@ -1598,11 +1618,7 @@
this.messagelisy = [];
this.changanitem = {};
this.duihuawenjianid = "",
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
this.changanitem = item;
this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
@@ -1841,11 +1857,7 @@
},
//长按点击播放
clickbofang(dialog, item) {
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
this.$forceUpdate()
let platetime = item.bg;
let newtime = item.bg / 1000;
@@ -2020,12 +2032,19 @@
width: 100%;
height: 90rpx;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
background: #008EF2;
font-size: 36rpx;
font-weight: bold;
justify-content: space-around;
.bottomboxs-item {
width: 45%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
background: #008EF2;
font-size: 36rpx;
font-weight: bold;
}
}
}