@@ -1,5 +1,5 @@
<template>
<view class="box">
<view class="box" @click="cancelBeast" >
<view class="headbox">
<!-- 顶部时间 -->
<view class="headboxhead">
@@ -110,7 +110,6 @@
</view>
</view>
</view>
<!-- 标记 -->
<view class="zhezhoa" v-if="biojiisshow" @tap="unmarktap()"></view>
<view class="bounced" v-if="biojiisshow">
@@ -727,6 +726,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]);
@@ -739,11 +739,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
@@ -1066,6 +1063,7 @@
this.biojiisshow = false;
this.roleindexbiaoji = this.dshfkjsdkksodofydwfkhwdfkjh;
this.roleisshaw = false
this.cancelBeast()
},
//确认标记
Confirmthetag() {
@@ -1395,6 +1393,8 @@
}
});
},
//标签选择
tapbiaoqianclisck(index) {
this.biaoqianindex = index;
@@ -1405,17 +1405,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({
@@ -1448,11 +1447,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 = "";
@@ -1480,11 +1475,7 @@
//取消加入常错词
Cancelout() {
this.isshow2 = false;
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
})
})
this.cancelBeast()
},
//加入长错词
Oftenthewrongword() {
@@ -1509,68 +1500,66 @@
// 取消加精
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()
})
},
//长按对话
changanxiaoguo(item, index, i) {
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;
@@ -1810,11 +1799,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;