@@ -302,6 +302,15 @@ | |||||
"navigationBarTextStyle": "white" | "navigationBarTextStyle": "white" | ||||
} | } | ||||
}, | |||||
{ | |||||
"path": "equipmentLog", | |||||
"style": { | |||||
"navigationBarTitleText": "设备日志", | |||||
"navigationBarBackgroundColor": "#2671E2", | |||||
"navigationBarTextStyle": "transparent", | |||||
"navigationStyle": "custom" | |||||
} | |||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
@@ -11,7 +11,7 @@ | |||||
<view class="call_record_time">{{date}}</view> | <view class="call_record_time">{{date}}</view> | ||||
</view> | </view> | ||||
<view class="call_record_time_one">接待时长 {{alltimeStr}} | <view class="call_record_time_one">接待时长 {{alltimeStr}} | ||||
<image src="/static/images/menu.png" @click="showFile" class="menu" mode="" /> | |||||
<image src="/static/images/menu.png" @click="showFile" class="menu" mode="" /> | |||||
<view class="audoioyouxiao" @click="alllogo()" v-if="permissions.commonly2"> | <view class="audoioyouxiao" @click="alllogo()" v-if="permissions.commonly2"> | ||||
{{userlistobj.validInvalidName||''}} | {{userlistobj.validInvalidName||''}} | ||||
</view> | </view> | ||||
@@ -105,15 +105,24 @@ | |||||
<view class="backTop" @click="gotoTop"> | <view class="backTop" @click="gotoTop"> | ||||
<image src="/static/images/topicon.png" mode=""></image> | <image src="/static/images/topicon.png" mode=""></image> | ||||
</view> | </view> | ||||
<template v-if="permissions.sbrz"> | |||||
<view class="eqLog" @click="eqLogClick"> | |||||
<view style="width: 78rpx;text-align: center;">设备日志</view> | |||||
</view> | |||||
</template> | |||||
<!-- 加入常错词 --> | <!-- 加入常错词 --> | ||||
<view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view> | <view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view> | ||||
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit"> | |||||
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" | |||||
@confirm="Confirmtheexit"> | |||||
<view class="tian-view"> | <view class="tian-view"> | ||||
<viwe class="tian-view-t1"></viwe> | <viwe class="tian-view-t1"></viwe> | ||||
<viwe class="tian-view-t2">常错词:</viwe> | <viwe class="tian-view-t2">常错词:</viwe> | ||||
<viwe class="tian-view-t3"> | <viwe class="tian-view-t3"> | ||||
<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||||
<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" | |||||
class="tian-input" placeholder="请输入" /> | |||||
</viwe> | </viwe> | ||||
</view> | </view> | ||||
<view class="tian-view" style="margin-bottom: 74rpx;"> | <view class="tian-view" style="margin-bottom: 74rpx;"> | ||||
@@ -124,7 +133,7 @@ | |||||
</viwe> | </viwe> | ||||
</view> | </view> | ||||
</u-modal> | </u-modal> | ||||
<!-- <view class="bounced" v-if="isshow2"> | <!-- <view class="bounced" v-if="isshow2"> | ||||
<view class="tian-view"> | <view class="tian-view"> | ||||
<viwe class="tian-view-t1"></viwe> | <viwe class="tian-view-t1"></viwe> | ||||
@@ -269,7 +278,7 @@ | |||||
ACTION: Symbol('zaudios'), // 唯一值区分每个页面的方法 | ACTION: Symbol('zaudios'), // 唯一值区分每个页面的方法 | ||||
isPageHide: false, // 是否息屏 | isPageHide: false, // 是否息屏 | ||||
isNum:false | |||||
isNum: false | |||||
}; | }; | ||||
}, | }, | ||||
@@ -312,18 +321,22 @@ | |||||
this.permissions.commonly2 = newmenulist.jdwxbj; //1 接待无效标记 jdwxbj | this.permissions.commonly2 = newmenulist.jdwxbj; //1 接待无效标记 jdwxbj | ||||
this.permissions.commonly3 = newmenulist.swyxal; //1 设为优秀案例 swyxal | this.permissions.commonly3 = newmenulist.swyxal; //1 设为优秀案例 swyxal | ||||
this.permissions.commonly4 = newmenulist.ccc; // 常错词 ccc | this.permissions.commonly4 = newmenulist.ccc; // 常错词 ccc | ||||
this.permissions = { | |||||
...newmenulist, | |||||
...this.permissions | |||||
} | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
if (this.stateisshow == 2) { | if (this.stateisshow == 2) { | ||||
var info = this.itemobj; | |||||
var info = this.itemobj | |||||
} | } | ||||
this.gituserlist() | |||||
this.gituserlist(); | |||||
!this.isPageHide && this.init(info) | !this.isPageHide && this.init(info) | ||||
}, | }, | ||||
onHide() { | onHide() { | ||||
this.isPageHide = true | this.isPageHide = true | ||||
}, | }, | ||||
onUnload() { | onUnload() { | ||||
//卸载不需要的业务和获取播放状态的业务,提高页面性能 | //卸载不需要的业务和获取播放状态的业务,提高页面性能 | ||||
this.$zaudio.off('seek', this.ACTION); | this.$zaudio.off('seek', this.ACTION); | ||||
@@ -332,58 +345,58 @@ | |||||
this.$zaudio.off('ended', this.ACTION); | this.$zaudio.off('ended', this.ACTION); | ||||
this.$zaudio.off('error', this.ACTION); | this.$zaudio.off('error', this.ACTION); | ||||
}, | }, | ||||
methods: { | methods: { | ||||
borderColor(index) { | borderColor(index) { | ||||
let obj = { | |||||
color: '', | |||||
borderRadius: '', | |||||
border: '' | |||||
} | |||||
switch (index) { | |||||
case 1: | |||||
obj.color = '#E6625B'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #E6625B'; | |||||
break; | |||||
case 2: | |||||
obj.color = '#FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #FF981E'; | |||||
break; | |||||
case 3: | |||||
obj.color = '#F6BD16'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #F6BD16'; | |||||
break; | |||||
case 5: | |||||
obj.color = '#4980C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #4980C8'; | |||||
break; | |||||
case 6: | |||||
obj.color = '#60CBEC'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #60CBEC'; | |||||
break; | |||||
case 7: | |||||
obj.color = '##FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #FF981E'; | |||||
break; | |||||
case 8: | |||||
obj.color = '#4F861E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #4F861E'; | |||||
break; | |||||
default: | |||||
obj.color = '#9F61C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #9F61C8'; | |||||
break; | |||||
} | |||||
return obj | |||||
let obj = { | |||||
color: '', | |||||
borderRadius: '', | |||||
border: '' | |||||
} | |||||
switch (index) { | |||||
case 1: | |||||
obj.color = '#E6625B'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #E6625B'; | |||||
break; | |||||
case 2: | |||||
obj.color = '#FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #FF981E'; | |||||
break; | |||||
case 3: | |||||
obj.color = '#F6BD16'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #F6BD16'; | |||||
break; | |||||
case 5: | |||||
obj.color = '#4980C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #4980C8'; | |||||
break; | |||||
case 6: | |||||
obj.color = '#60CBEC'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #60CBEC'; | |||||
break; | |||||
case 7: | |||||
obj.color = '##FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #FF981E'; | |||||
break; | |||||
case 8: | |||||
obj.color = '#4F861E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #4F861E'; | |||||
break; | |||||
default: | |||||
obj.color = '#9F61C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #9F61C8'; | |||||
break; | |||||
} | |||||
return obj | |||||
}, | }, | ||||
effectiveAdd() { | effectiveAdd() { | ||||
if (this.effectiveindex == 4) { | if (this.effectiveindex == 4) { | ||||
@@ -429,27 +442,27 @@ | |||||
content: msg, | content: msg, | ||||
success: (res) => { | success: (res) => { | ||||
if (that.noClick) { | if (that.noClick) { | ||||
that.noClick= false; | |||||
if (res.confirm) { | |||||
let parames = { | |||||
id: this.customerId, | |||||
validInvalid: '', | |||||
invalidReason: 0 | |||||
} | |||||
if (this.userlistobj.validInvalid == 0) { | |||||
parames.validInvalid = 1; | |||||
} else { | |||||
parames.validInvalid = 0; | |||||
} | |||||
this.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||||
console.log(res) | |||||
this.gituserlist() | |||||
}) | |||||
} | |||||
setTimeout(()=> { | |||||
that.noClick= true; | |||||
}, 2000) | |||||
that.noClick = false; | |||||
if (res.confirm) { | |||||
let parames = { | |||||
id: this.customerId, | |||||
validInvalid: '', | |||||
invalidReason: 0 | |||||
} | |||||
if (this.userlistobj.validInvalid == 0) { | |||||
parames.validInvalid = 1; | |||||
} else { | |||||
parames.validInvalid = 0; | |||||
} | |||||
this.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||||
console.log(res) | |||||
this.gituserlist() | |||||
}) | |||||
} | |||||
setTimeout(() => { | |||||
that.noClick = true; | |||||
}, 2000) | |||||
} | } | ||||
} | } | ||||
}); | }); | ||||
@@ -466,7 +479,7 @@ | |||||
try { | try { | ||||
res.endTime1 = res.endTime.substring(0, 19); | res.endTime1 = res.endTime.substring(0, 19); | ||||
this.userlistobj = res; | this.userlistobj = res; | ||||
} catch(e) { | |||||
} catch (e) { | |||||
console.log(e) | console.log(e) | ||||
} | } | ||||
}) | }) | ||||
@@ -489,12 +502,14 @@ | |||||
const message = this.dialogList[0].message; | const message = this.dialogList[0].message; | ||||
if (!message) return | if (!message) return | ||||
for (let i = 0; i < message.length; i++) { | for (let i = 0; i < message.length; i++) { | ||||
if ((Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed / 1000))) { | |||||
if ((Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed / | |||||
1000))) { | |||||
console.log(message[i]) | console.log(message[i]) | ||||
this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; | this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; | ||||
break; | break; | ||||
} | } | ||||
if (i < message.length - 1 && Math.floor(message[i].ed / 1000) < this.playNow && this.playNow < Math.floor(message[i + 1].bg / 1000)) { | |||||
if (i < message.length - 1 && Math.floor(message[i].ed / 1000) < this.playNow && this.playNow < | |||||
Math.floor(message[i + 1].bg / 1000)) { | |||||
this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; | this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; | ||||
break; | break; | ||||
} | } | ||||
@@ -659,58 +674,58 @@ | |||||
}, | }, | ||||
//确认加入常错词 | //确认加入常错词 | ||||
Confirmtheexit() { | Confirmtheexit() { | ||||
if(this.reswrongword.length>8 || this.thewrongword.length>8){ | |||||
if (this.reswrongword.length > 8 || this.thewrongword.length > 8) { | |||||
this.$refs.uToast.show({ | this.$refs.uToast.show({ | ||||
title: '正确词错误词不能超过8个字', | title: '正确词错误词不能超过8个字', | ||||
type: 'warning', | type: 'warning', | ||||
}) | }) | ||||
}else{ | |||||
} else { | |||||
let reg = /^[0-9]+$/ | let reg = /^[0-9]+$/ | ||||
if(reg.test(this.thewrongword)){ | |||||
if (reg.test(this.thewrongword)) { | |||||
this.$refs.uToast.show({ | this.$refs.uToast.show({ | ||||
title: '错误词不能为纯数字', | title: '错误词不能为纯数字', | ||||
type: 'warning', | type: 'warning', | ||||
}) | }) | ||||
}else{ | |||||
if (this.thewrongword) { | |||||
if (this.reswrongword) { | |||||
let parames = { | |||||
customerId: this.customerId, | |||||
cupid: this.luyinList[this.csdFileindex].id, | |||||
wrongWord: this.thewrongword, //错误词 | |||||
correctWord: this.reswrongword, //正确词 | |||||
translateHtmlContent: this.messagelisy, | |||||
} | |||||
this.isshow2 = false; | |||||
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; | |||||
} else { | |||||
if (this.thewrongword) { | |||||
if (this.reswrongword) { | |||||
let parames = { | |||||
customerId: this.customerId, | |||||
cupid: this.luyinList[this.csdFileindex].id, | |||||
wrongWord: this.thewrongword, //错误词 | |||||
correctWord: this.reswrongword, //正确词 | |||||
translateHtmlContent: this.messagelisy, | |||||
} | |||||
this.isshow2 = false; | |||||
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.$u.post("/corpus/addCorrectWord", parames).then(data => { | |||||
this.thewrongword = ""; | |||||
this.reswrongword = ""; | |||||
}) | |||||
this.$u.post("/corpus/addCorrectWord", parames).then(data => { | |||||
this.thewrongword = ""; | |||||
this.reswrongword = ""; | |||||
}) | |||||
} else { | |||||
uni.showToast({ | |||||
title: '正确值不能为空', | |||||
duration: 2000 | |||||
}); | |||||
return | |||||
} | |||||
} else { | } else { | ||||
uni.showToast({ | uni.showToast({ | ||||
title: '正确值不能为空', | |||||
title: '错误词不能为空', | |||||
duration: 2000 | duration: 2000 | ||||
}); | }); | ||||
return | return | ||||
} | } | ||||
} else { | |||||
uni.showToast({ | |||||
title: '错误词不能为空', | |||||
duration: 2000 | |||||
}); | |||||
return | |||||
} | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
//取消加入常错词 | //取消加入常错词 | ||||
Cancelout() { | Cancelout() { | ||||
@@ -808,6 +823,13 @@ | |||||
this.argtextindex1 = i; | this.argtextindex1 = i; | ||||
this.argtextindex2 = index; | this.argtextindex2 = index; | ||||
}, | }, | ||||
eqLogClick() { | |||||
uni.navigateTo({ | |||||
url: `./equipmentLog?id=${this.customerId}` | |||||
}) | |||||
}, | |||||
//回到顶部 | //回到顶部 | ||||
gotoTop() { | gotoTop() { | ||||
this.scrollId = null; | this.scrollId = null; | ||||
@@ -910,7 +932,7 @@ | |||||
message: jsonInfo.splice(0, 80), | message: jsonInfo.splice(0, 80), | ||||
backindex: this.csdFileindex | backindex: this.csdFileindex | ||||
}); | }); | ||||
var auth_timetimer = setInterval(() => { | var auth_timetimer = setInterval(() => { | ||||
stusnum -= 100; | stusnum -= 100; | ||||
// console.log("还剩下" + stusnum) | // console.log("还剩下" + stusnum) | ||||
@@ -935,7 +957,7 @@ | |||||
qwe.isshow = false; | qwe.isshow = false; | ||||
}) | }) | ||||
}) | }) | ||||
} catch(e) { | |||||
} catch (e) { | |||||
if (data.whetherFinishName == '转写中') { | if (data.whetherFinishName == '转写中') { | ||||
uni.showModal({ | uni.showModal({ | ||||
title: '提示', | title: '提示', | ||||
@@ -1039,7 +1061,7 @@ | |||||
this.$zaudio.setAudio(data) | this.$zaudio.setAudio(data) | ||||
//渲染第一首音频 | //渲染第一首音频 | ||||
this.$zaudio.setRender(0) | this.$zaudio.setRender(0) | ||||
setTimeout(() => { | setTimeout(() => { | ||||
this.$zaudio.operate() | this.$zaudio.operate() | ||||
}, 150) | }, 150) | ||||
@@ -1230,13 +1252,13 @@ | |||||
} | } | ||||
.call_record_time { | .call_record_time { | ||||
height: 42rpx; | |||||
font-size: 30rpx; | |||||
font-family: PingFangSC-Medium, PingFang SC; | |||||
font-weight: 500; | |||||
color: #303030; | |||||
line-height: 42rpx; | |||||
margin-bottom: 20rpx; | |||||
height: 42rpx; | |||||
font-size: 30rpx; | |||||
font-family: PingFangSC-Medium, PingFang SC; | |||||
font-weight: 500; | |||||
color: #303030; | |||||
line-height: 42rpx; | |||||
margin-bottom: 20rpx; | |||||
} | } | ||||
.call_record_time_one { | .call_record_time_one { | ||||
@@ -1250,7 +1272,8 @@ | |||||
justify-content: space-between; | justify-content: space-between; | ||||
align-items: center; | align-items: center; | ||||
position: relative; | position: relative; | ||||
.menu{ | |||||
.menu { | |||||
width: 36rpx; | width: 36rpx; | ||||
height: 36rpx; | height: 36rpx; | ||||
} | } | ||||
@@ -1393,7 +1416,7 @@ | |||||
} | } | ||||
.scroll-Y .text .avatar { | .scroll-Y .text .avatar { | ||||
text{ | |||||
text { | |||||
display: block; | display: block; | ||||
width: 72rpx; | width: 72rpx; | ||||
height: 72rpx; | height: 72rpx; | ||||
@@ -1513,6 +1536,21 @@ | |||||
} | } | ||||
} | } | ||||
.eqLog { | |||||
width: 115upx; | |||||
height: 115upx; | |||||
background: rgba(211, 235, 253, 1); | |||||
box-shadow: 0 0 10rpx 7rpx #f1f1f1;; | |||||
border-radius: 50%; | |||||
position: fixed; | |||||
bottom: 300upx; | |||||
right: 8upx; | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
color: #008EF2; | |||||
} | |||||
.backTop { | .backTop { | ||||
width: 112rpx; | width: 112rpx; | ||||
height: 112rpx; | height: 112rpx; | ||||
@@ -1654,7 +1692,8 @@ | |||||
color: #333333; | color: #333333; | ||||
} | } | ||||
} | } | ||||
/deep/ .u-model-title{ | |||||
/deep/ .u-model-title { | |||||
padding: 34rpx 0 16rpx !important; | padding: 34rpx 0 16rpx !important; | ||||
} | } | ||||
</style> | </style> |
@@ -8,7 +8,7 @@ | |||||
<!-- 标记顾问 --> | <!-- 标记顾问 --> | ||||
<view class="headboxbott"> | <view class="headboxbott"> | ||||
<view class="headovfu"> | <view class="headovfu"> | ||||
<view class="mytab" v-for="(item,index) in tablist" :key="index" @click="tapspagek(index)"> | |||||
<view class="mytab" v-for="(item,index) in tablist" :key="index" @click="tapspagek(index)"> | |||||
<view class="tab-item" :class="roleindex==index?'tabActive':''">{{item.name}}</view> | <view class="tab-item" :class="roleindex==index?'tabActive':''">{{item.name}}</view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -25,10 +25,13 @@ | |||||
<block v-for="(item,index) in dialog.message" :key="index"> | <block v-for="(item,index) in dialog.message" :key="index"> | ||||
<view class="text" | <view class="text" | ||||
:class="{active: Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}" | :class="{active: Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}" | ||||
:data-guwen="item.isShow" :data-speaker="item.speaker" :id="'dialog'+csdFileindex+'text'+item.bg"> | |||||
:data-guwen="item.isShow" :data-speaker="item.speaker" | |||||
:id="'dialog'+csdFileindex+'text'+item.bg"> | |||||
<view class="avatar"> | <view class="avatar"> | ||||
<view > | |||||
<image v-if="item.isShow == 0" src="https://static.quhouse.com/b11a7e1ccf914020b3ee23d3e4862637.png" mode="widthFix"> | |||||
<view> | |||||
<image v-if="item.isShow == 0" | |||||
src="https://static.quhouse.com/b11a7e1ccf914020b3ee23d3e4862637.png" | |||||
mode="widthFix"> | |||||
</image> | </image> | ||||
<text v-else :style="[borderColor(item.speaker)]">{{ item.speaker | toCapital }}</text> | <text v-else :style="[borderColor(item.speaker)]">{{ item.speaker | toCapital }}</text> | ||||
</view> | </view> | ||||
@@ -64,8 +67,9 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<image v-if="Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow" class="play" | |||||
src="https://static.quhouse.com/ce73a5225f7f44be9f313b0e4e4c2c0e.png"></image> | |||||
<image v-if="Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow" | |||||
class="play" src="https://static.quhouse.com/ce73a5225f7f44be9f313b0e4e4c2c0e.png"> | |||||
</image> | |||||
<image v-else @click="clickbofang(dialog.backindex,item)" class="play" | <image v-else @click="clickbofang(dialog.backindex,item)" class="play" | ||||
src="https://static.quhouse.com/1b6ac53247e043a1bdc59ecfb2167eba.png"></image> | src="https://static.quhouse.com/1b6ac53247e043a1bdc59ecfb2167eba.png"></image> | ||||
</view> | </view> | ||||
@@ -104,17 +108,31 @@ | |||||
<view class="moremodal" v-if="Thetapeidisshow"> | <view class="moremodal" v-if="Thetapeidisshow"> | ||||
<view class="more-cont"> | <view class="more-cont"> | ||||
<view class="more-title">更多功能 | <view class="more-title">更多功能 | ||||
<image class="close-icon" @click="Thetapeidisshow=false" src="https://static.quhouse.com/4a977a0ecb594f2ebfd5f020b29dcc79.png" mode=""></image> | |||||
<image class="close-icon" @click="Thetapeidisshow=false" | |||||
src="https://static.quhouse.com/4a977a0ecb594f2ebfd5f020b29dcc79.png" mode=""></image> | |||||
</view> | </view> | ||||
<view class="more-btn"> | <view class="more-btn"> | ||||
<view class="btn-item" @click.stop="alllogo"> | <view class="btn-item" @click.stop="alllogo"> | ||||
<image class="icon" v-if="userlistobj.validInvalidName" src="https://static.quhouse.com/868b0eba0f7c44eca63e3b4fa782f14d.png" mode=""></image> | |||||
<image class="icon" v-else src="https://static.quhouse.com/480e572bf43c48558ad9febe5426f439.png" mode=""></image> | |||||
有效接待</view> | |||||
<image class="icon" v-if="userlistobj.validInvalidName" | |||||
src="https://static.quhouse.com/868b0eba0f7c44eca63e3b4fa782f14d.png" mode=""></image> | |||||
<image class="icon" v-else src="https://static.quhouse.com/480e572bf43c48558ad9febe5426f439.png" | |||||
mode=""></image> | |||||
有效接待 | |||||
</view> | |||||
<view class="btn-item" v-if="permissions.commonly3" @click="jiajing()"> | <view class="btn-item" v-if="permissions.commonly3" @click="jiajing()"> | ||||
<image class="icon" v-if="status==0" src="https://static.quhouse.com/47ae5b25cc804bf38e98d2816aef2514.png" mode=""></image> | |||||
<image class="icon" v-else src="https://static.quhouse.com/4f1b60d9842146e9bd3e43fae42665bc.png" mode=""></image> | |||||
优秀案例</view> | |||||
<image class="icon" v-if="status==0" | |||||
src="https://static.quhouse.com/47ae5b25cc804bf38e98d2816aef2514.png" mode=""></image> | |||||
<image class="icon" v-else src="https://static.quhouse.com/4f1b60d9842146e9bd3e43fae42665bc.png" | |||||
mode=""></image> | |||||
优秀案例 | |||||
</view> | |||||
<template v-if="permissions.sbrz"> | |||||
<view class="btn-item" @click="eqLogClick"> | |||||
<image class="icon" src="https://static.quhouse.com/ff65fd92c742469594ac85f8bc721964.png" | |||||
mode=""></image> | |||||
设备日志 | |||||
</view> | |||||
</template> | |||||
</view> | </view> | ||||
<!-- 暂时注释 待联调--> | <!-- 暂时注释 待联调--> | ||||
<!-- <view class="other-btn"> | <!-- <view class="other-btn"> | ||||
@@ -150,13 +168,15 @@ | |||||
<!-- 加入常错词 --> | <!-- 加入常错词 --> | ||||
<view class="zhezhao" v-if="isshow2" @tap="Cancelout"></view> | <view class="zhezhao" v-if="isshow2" @tap="Cancelout"></view> | ||||
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit"> | |||||
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" | |||||
@confirm="Confirmtheexit"> | |||||
<view class="tian-view"> | <view class="tian-view"> | ||||
<viwe class="tian-view-t1"></viwe> | <viwe class="tian-view-t1"></viwe> | ||||
<viwe class="tian-view-t2">常错词:</viwe> | <viwe class="tian-view-t2">常错词:</viwe> | ||||
<viwe class="tian-view-t3"> | <viwe class="tian-view-t3"> | ||||
<textarea :auto-height="true" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||||
<textarea :auto-height="true" v-model="thewrongword" :disabled="isNum" class="tian-input" | |||||
placeholder="请输入" /> | |||||
</viwe> | </viwe> | ||||
</view> | </view> | ||||
<view class="tian-view" style="margin-bottom: 74rpx;"> | <view class="tian-view" style="margin-bottom: 74rpx;"> | ||||
@@ -167,7 +187,7 @@ | |||||
</viwe> | </viwe> | ||||
</view> | </view> | ||||
</u-modal> | </u-modal> | ||||
<!-- <view class="bounced" v-if="isshow2"> | <!-- <view class="bounced" v-if="isshow2"> | ||||
<view class="tian-view"> | <view class="tian-view"> | ||||
<viwe class="tian-view-t1"></viwe> | <viwe class="tian-view-t1"></viwe> | ||||
@@ -219,7 +239,8 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="cenisbox"> | <view class="cenisbox"> | ||||
<view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;"> | |||||
<view | |||||
style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;"> | |||||
<view style="width: 25%;color: #666666;font-size: 26rpx;">接待顾问</view> | <view style="width: 25%;color: #666666;font-size: 26rpx;">接待顾问</view> | ||||
<view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.agentName}}</view> | <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.agentName}}</view> | ||||
</view> | </view> | ||||
@@ -438,8 +459,8 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<u-toast ref="uToast" /> | <u-toast ref="uToast" /> | ||||
<!-- 加载组件 --> | <!-- 加载组件 --> | ||||
<u-loadings v-model="LOADING"></u-loadings> | <u-loadings v-model="LOADING"></u-loadings> | ||||
</view> | </view> | ||||
@@ -555,7 +576,8 @@ | |||||
isPageHide: false, // 是否息屏 | isPageHide: false, // 是否息屏 | ||||
duration: '', // 总时长 | duration: '', // 总时长 | ||||
refresh: false, // 默认false | refresh: false, // 默认false | ||||
isNum:false | |||||
isNum: false, | |||||
eqLog: 0 | |||||
}; | }; | ||||
}, | }, | ||||
computed: { | computed: { | ||||
@@ -564,7 +586,7 @@ | |||||
return this.getTime(e); | return this.getTime(e); | ||||
} | } | ||||
}, | }, | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
@@ -575,7 +597,7 @@ | |||||
this.stateisshow = options.stateisshow; | this.stateisshow = options.stateisshow; | ||||
this.$zaudio.autoPlay = true | this.$zaudio.autoPlay = true | ||||
if (options.refresh) this.refresh = options.refresh | if (options.refresh) this.refresh = options.refresh | ||||
this.$zaudio.on('seek', this.ACTION, (time) => { | this.$zaudio.on('seek', this.ACTION, (time) => { | ||||
this.sliderChangeComplate(this.TIMEEVENT(time)) | this.sliderChangeComplate(this.TIMEEVENT(time)) | ||||
}) | }) | ||||
@@ -585,21 +607,21 @@ | |||||
this.duration = obj.duration | this.duration = obj.duration | ||||
this.TimeUpdate(this.TIMEEVENT(obj.current)) | this.TimeUpdate(this.TIMEEVENT(obj.current)) | ||||
}) | }) | ||||
this.$zaudio.on('ended', this.ACTION, e => { | this.$zaudio.on('ended', this.ACTION, e => { | ||||
console.log('音频播放结束') | console.log('音频播放结束') | ||||
this.$zaudio.stop() | this.$zaudio.stop() | ||||
this.$nextTick(() => { | this.$nextTick(() => { | ||||
console.log(this.$zaudio,'音频播放结束') | |||||
console.log(this.$zaudio, '音频播放结束') | |||||
this.init(this.itemobj) | this.init(this.itemobj) | ||||
}) | }) | ||||
}) | }) | ||||
uni.$on('DETAILS2INIT', (info) => { | uni.$on('DETAILS2INIT', (info) => { | ||||
this.itemobj = info | this.itemobj = info | ||||
this.init(info) | this.init(info) | ||||
}); | }); | ||||
// 当前页面状态 | // 当前页面状态 | ||||
uni.$on('newobjStatus', status => { | uni.$on('newobjStatus', status => { | ||||
this.status = status | this.status = status | ||||
@@ -618,6 +640,10 @@ | |||||
this.permissions.commonly4 = newmenulist.ccc; | this.permissions.commonly4 = newmenulist.ccc; | ||||
this.permissions.commonly5 = newmenulist.xz; | this.permissions.commonly5 = newmenulist.xz; | ||||
this.permissions.commonly6 = newmenulist.ckwjzx; | this.permissions.commonly6 = newmenulist.ckwjzx; | ||||
this.permissions = { | |||||
...newmenulist, | |||||
...this.permissions | |||||
} | |||||
//1 标记顾问 bjgw | //1 标记顾问 bjgw | ||||
//1 接待无效标记 jdwxbj | //1 接待无效标记 jdwxbj | ||||
//1 设为优秀案例 swyxal | //1 设为优秀案例 swyxal | ||||
@@ -629,8 +655,7 @@ | |||||
this.roleindex = 0; | this.roleindex = 0; | ||||
if (this.stateisshow == 2) { | if (this.stateisshow == 2) { | ||||
var info = this.itemobj; | var info = this.itemobj; | ||||
} | |||||
!this.isPageHide && this.init(info); | |||||
}!this.isPageHide && this.init(info); | |||||
}, | }, | ||||
onHide() { | onHide() { | ||||
@@ -648,57 +673,64 @@ | |||||
}, | }, | ||||
methods: { | methods: { | ||||
// 跳转设备日志页面 | |||||
eqLogClick() { | |||||
uni.navigateTo({ | |||||
url: `./equipmentLog?id=${this.customerId}` | |||||
}) | |||||
}, | |||||
borderColor(index) { | borderColor(index) { | ||||
let obj = { | |||||
color: '', | |||||
borderRadius: '', | |||||
border: '' | |||||
} | |||||
switch (index) { | |||||
case 1: | |||||
obj.color = '#E6625B'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #E6625B'; | |||||
break; | |||||
case 2: | |||||
obj.color = '#FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #FF981E'; | |||||
break; | |||||
case 3: | |||||
obj.color = '#F6BD16'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #F6BD16'; | |||||
break; | |||||
case 5: | |||||
obj.color = '#4980C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #4980C8'; | |||||
break; | |||||
case 6: | |||||
obj.color = '#60CBEC'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #60CBEC'; | |||||
break; | |||||
case 7: | |||||
obj.color = '##FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #FF981E'; | |||||
break; | |||||
case 8: | |||||
obj.color = '#4F861E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #4F861E'; | |||||
break; | |||||
default: | |||||
obj.color = '#9F61C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border= '2rpx solid #9F61C8'; | |||||
break; | |||||
} | |||||
return obj | |||||
let obj = { | |||||
color: '', | |||||
borderRadius: '', | |||||
border: '' | |||||
} | |||||
switch (index) { | |||||
case 1: | |||||
obj.color = '#E6625B'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #E6625B'; | |||||
break; | |||||
case 2: | |||||
obj.color = '#FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #FF981E'; | |||||
break; | |||||
case 3: | |||||
obj.color = '#F6BD16'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #F6BD16'; | |||||
break; | |||||
case 5: | |||||
obj.color = '#4980C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #4980C8'; | |||||
break; | |||||
case 6: | |||||
obj.color = '#60CBEC'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #60CBEC'; | |||||
break; | |||||
case 7: | |||||
obj.color = '##FF981E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #FF981E'; | |||||
break; | |||||
case 8: | |||||
obj.color = '#4F861E'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #4F861E'; | |||||
break; | |||||
default: | |||||
obj.color = '#9F61C8'; | |||||
obj.borderRadius = '8rpx'; | |||||
obj.border = '2rpx solid #9F61C8'; | |||||
break; | |||||
} | |||||
return obj | |||||
}, | }, | ||||
// 关闭弹窗 | // 关闭弹窗 | ||||
close() { | close() { | ||||
this.dialogList.forEach(res => { | this.dialogList.forEach(res => { | ||||
@@ -809,7 +841,7 @@ | |||||
}) | }) | ||||
}, | }, | ||||
// 点击更多 | // 点击更多 | ||||
moreClick(){ | |||||
moreClick() { | |||||
this.gituserlist() | this.gituserlist() | ||||
this.Thetapeidisshow = true | this.Thetapeidisshow = true | ||||
}, | }, | ||||
@@ -938,27 +970,27 @@ | |||||
content: msg, | content: msg, | ||||
success: function(res) { | success: function(res) { | ||||
if (that.noClick) { | if (that.noClick) { | ||||
that.noClick= false; | |||||
if (res.confirm) { | |||||
let parames = { | |||||
id: that.customerId, | |||||
validInvalid: '', | |||||
invalidReason: 0 | |||||
} | |||||
if (that.userlistobj.validInvalid == 0) { | |||||
parames.validInvalid = 1; | |||||
} else { | |||||
parames.validInvalid = 0; | |||||
} | |||||
that.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||||
that.Thetapeidisshow = false; | |||||
}) | |||||
} | |||||
setTimeout(()=> { | |||||
that.noClick= true; | |||||
}, 2000) | |||||
that.noClick = false; | |||||
if (res.confirm) { | |||||
let parames = { | |||||
id: that.customerId, | |||||
validInvalid: '', | |||||
invalidReason: 0 | |||||
} | |||||
if (that.userlistobj.validInvalid == 0) { | |||||
parames.validInvalid = 1; | |||||
} else { | |||||
parames.validInvalid = 0; | |||||
} | |||||
that.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||||
that.Thetapeidisshow = false; | |||||
}) | |||||
} | |||||
setTimeout(() => { | |||||
that.noClick = true; | |||||
}, 2000) | |||||
} else { | } else { | ||||
// 这里是重复点击的判断 | |||||
// 这里是重复点击的判断 | |||||
} | } | ||||
} | } | ||||
}); | }); | ||||
@@ -1106,7 +1138,7 @@ | |||||
} else { | } else { | ||||
this.tablist[data.speaker].name = this.tablist[data.speaker] | this.tablist[data.speaker].name = this.tablist[data.speaker] | ||||
.name + "顾问"; | .name + "顾问"; | ||||
this.roleindexbiaoji = data.speaker - 1; | this.roleindexbiaoji = data.speaker - 1; | ||||
this.dshfkjsdkksodofydwfkhwdfkjh = data.speaker - 1; | this.dshfkjsdkksodofydwfkhwdfkjh = data.speaker - 1; | ||||
} | } | ||||
@@ -1197,7 +1229,7 @@ | |||||
this.getCorpusAnalysis(info); | this.getCorpusAnalysis(info); | ||||
this.zyAudio() | this.zyAudio() | ||||
} | } | ||||
if (this.refresh) this.zyAudio() | if (this.refresh) this.zyAudio() | ||||
} | } | ||||
}) | }) | ||||
@@ -1223,8 +1255,8 @@ | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
//下一页 | //下一页 | ||||
ltolower() { | ltolower() { | ||||
var lengthcz = this.newluyinList.length - 1; | var lengthcz = this.newluyinList.length - 1; | ||||
@@ -1265,14 +1297,14 @@ | |||||
} | } | ||||
console.log("上一页", this.toptextindex) | console.log("上一页", this.toptextindex) | ||||
}, | }, | ||||
jiajing(){ | |||||
if(this.status == 1) { // 加精 | |||||
jiajing() { | |||||
if (this.status == 1) { // 加精 | |||||
this.tappick() | this.tappick() | ||||
}else{ // 取消加精 | |||||
} else { // 取消加精 | |||||
this.notappick() | this.notappick() | ||||
} | } | ||||
}, | }, | ||||
// 取消全部加精 | // 取消全部加精 | ||||
notappick() { | notappick() { | ||||
console.log('quxiao') | console.log('quxiao') | ||||
@@ -1306,7 +1338,7 @@ | |||||
} | } | ||||
}); | }); | ||||
}, | }, | ||||
//全部加精 | //全部加精 | ||||
tappick() { | tappick() { | ||||
var that = this; | var that = this; | ||||
@@ -1364,23 +1396,23 @@ | |||||
}, | }, | ||||
//确认加入常错词 | //确认加入常错词 | ||||
Confirmtheexit() { | Confirmtheexit() { | ||||
if(this.reswrongword.length>8 || this.thewrongword.length>8){ | |||||
if (this.reswrongword.length > 8 || this.thewrongword.length > 8) { | |||||
this.$refs.uToast.show({ | this.$refs.uToast.show({ | ||||
title: '正确词错误词不能超过8个字', | title: '正确词错误词不能超过8个字', | ||||
type: 'warning', | type: 'warning', | ||||
}) | }) | ||||
this.isshow2 = true; | this.isshow2 = true; | ||||
}else{ | |||||
} else { | |||||
let reg = /^[0-9]+$/ | let reg = /^[0-9]+$/ | ||||
if(reg.test(this.thewrongword)){ | |||||
if (reg.test(this.thewrongword)) { | |||||
this.$refs.uToast.show({ | this.$refs.uToast.show({ | ||||
title: '错误词不能为纯数字', | title: '错误词不能为纯数字', | ||||
type: 'warning', | type: 'warning', | ||||
}) | }) | ||||
this.isshow2 = true; | this.isshow2 = true; | ||||
}else{ | |||||
} else { | |||||
if (this.thewrongword) { | if (this.thewrongword) { | ||||
if (this.reswrongword) { | if (this.reswrongword) { | ||||
let parames = { | let parames = { | ||||
@@ -1391,11 +1423,11 @@ | |||||
translateHtmlContent: this.messagelisy, | translateHtmlContent: this.messagelisy, | ||||
} | } | ||||
this.isshow2 = false; | this.isshow2 = false; | ||||
let sas = this.textItself.replace(this.thewrongword, this.reswrongword) | let sas = this.textItself.replace(this.thewrongword, this.reswrongword) | ||||
this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest = sas | this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest = sas | ||||
this.dialogList.forEach(res => { | this.dialogList.forEach(res => { | ||||
res.message.forEach(asd => { | res.message.forEach(asd => { | ||||
asd.isshow = false; | asd.isshow = false; | ||||
@@ -1410,7 +1442,7 @@ | |||||
title: '正确值不能为空', | title: '正确值不能为空', | ||||
type: 'warning', | type: 'warning', | ||||
}) | }) | ||||
this.isshow2 = true; | |||||
this.isshow2 = true; | |||||
return | return | ||||
} | } | ||||
} else { | } else { | ||||
@@ -1418,12 +1450,12 @@ | |||||
title: '错误词不能为空', | title: '错误词不能为空', | ||||
type: 'warning', | type: 'warning', | ||||
}) | }) | ||||
this.isshow2 = true; | |||||
this.isshow2 = true; | |||||
return | return | ||||
} | } | ||||
} | } | ||||
} | } | ||||
}, | }, | ||||
//取消加入常错词 | //取消加入常错词 | ||||
Cancelout() { | Cancelout() { | ||||
@@ -1902,23 +1934,27 @@ | |||||
} | } | ||||
} | } | ||||
} | } | ||||
.moremodal{ | |||||
.moremodal { | |||||
position: fixed; | position: fixed; | ||||
top: 0;bottom: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
left: 0; | left: 0; | ||||
right: 0; | right: 0; | ||||
background: rgba(0,0,0,0.5); | |||||
background: rgba(0, 0, 0, 0.5); | |||||
display: flex; | display: flex; | ||||
flex-direction: column; | flex-direction: column; | ||||
justify-content: flex-end; | justify-content: flex-end; | ||||
z-index: 1000000; | z-index: 1000000; | ||||
.more-cont{ | |||||
.more-cont { | |||||
width: 690rpx; | width: 690rpx; | ||||
padding: 30rpx; | padding: 30rpx; | ||||
background: #fff; | background: #fff; | ||||
box-sizing: content-box; | box-sizing: content-box; | ||||
border-radius: 20rpx 20rpx 0 0; | border-radius: 20rpx 20rpx 0 0; | ||||
.more-title{ | |||||
.more-title { | |||||
width: 100%; | width: 100%; | ||||
display: flex; | display: flex; | ||||
justify-content: space-between; | justify-content: space-between; | ||||
@@ -1928,17 +1964,20 @@ | |||||
font-weight: 500; | font-weight: 500; | ||||
color: #333333; | color: #333333; | ||||
align-items: center; | align-items: center; | ||||
.close-icon{ | |||||
.close-icon { | |||||
width: 32rpx; | width: 32rpx; | ||||
height: 32rpx; | height: 32rpx; | ||||
} | } | ||||
} | } | ||||
.more-btn{ | |||||
.more-btn { | |||||
display: flex; | display: flex; | ||||
margin-top: 30rpx; | margin-top: 30rpx; | ||||
padding-bottom: 30rpx; | padding-bottom: 30rpx; | ||||
// border-bottom: 1rpx solid #e0e0e0; | // border-bottom: 1rpx solid #e0e0e0; | ||||
.btn-item{ | |||||
.btn-item { | |||||
width: 284rpx; | width: 284rpx; | ||||
height: 72rpx; | height: 72rpx; | ||||
display: flex; | display: flex; | ||||
@@ -1952,7 +1991,8 @@ | |||||
font-weight: 400; | font-weight: 400; | ||||
color: #333333; | color: #333333; | ||||
margin-right: 30rpx; | margin-right: 30rpx; | ||||
.icon{ | |||||
.icon { | |||||
width: 30rpx; | width: 30rpx; | ||||
height: 30rpx; | height: 30rpx; | ||||
margin-right: 12rpx; | margin-right: 12rpx; | ||||
@@ -1960,8 +2000,9 @@ | |||||
} | } | ||||
} | } | ||||
.other-btn{ | |||||
.btn-item{ | |||||
.other-btn { | |||||
.btn-item { | |||||
display: flex; | display: flex; | ||||
align-items: center; | align-items: center; | ||||
font-size: 30rpx; | font-size: 30rpx; | ||||
@@ -1971,7 +2012,8 @@ | |||||
line-height: 42rpx; | line-height: 42rpx; | ||||
padding: 30rpx 0; | padding: 30rpx 0; | ||||
border-bottom: 1rpx solid #e0e0e0; | border-bottom: 1rpx solid #e0e0e0; | ||||
.icon{ | |||||
.icon { | |||||
width: 30rpx; | width: 30rpx; | ||||
height: 30rpx; | height: 30rpx; | ||||
margin-right: 12rpx; | margin-right: 12rpx; | ||||
@@ -2024,9 +2066,11 @@ | |||||
overflow: hidden; | overflow: hidden; | ||||
display: flex; | display: flex; | ||||
align-items: center; | align-items: center; | ||||
.mytab{ | |||||
.mytab { | |||||
margin-left: 20rpx; | margin-left: 20rpx; | ||||
.tab-item{ | |||||
.tab-item { | |||||
padding: 0 20rpx; | padding: 0 20rpx; | ||||
height: 52rpx; | height: 52rpx; | ||||
line-height: 52rpx; | line-height: 52rpx; | ||||
@@ -2037,9 +2081,10 @@ | |||||
font-family: PingFangSC-Regular, PingFang SC; | font-family: PingFangSC-Regular, PingFang SC; | ||||
font-weight: 400; | font-weight: 400; | ||||
color: #999999; | color: #999999; | ||||
} | } | ||||
.tabActive{ | |||||
.tabActive { | |||||
background: #2671E2; | background: #2671E2; | ||||
color: #fff; | color: #fff; | ||||
} | } | ||||
@@ -2054,6 +2099,7 @@ | |||||
justify-content: center; | justify-content: center; | ||||
align-items: center; | align-items: center; | ||||
box-shadow: -4rpx 0px 8rpx -4rpx rgba(0, 0, 0, 0.2); | box-shadow: -4rpx 0px 8rpx -4rpx rgba(0, 0, 0, 0.2); | ||||
.biaoji { | .biaoji { | ||||
text-align: center; | text-align: center; | ||||
line-height: 52rpx; | line-height: 52rpx; | ||||
@@ -2100,7 +2146,7 @@ | |||||
margin-bottom: 10rpx; | margin-bottom: 10rpx; | ||||
} | } | ||||
.tmmchen .text{ | |||||
.tmmchen .text { | |||||
height: 32rx; | height: 32rx; | ||||
font-size: 24rpx; | font-size: 24rpx; | ||||
font-family: PingFangSC-Regular, PingFang SC; | font-family: PingFangSC-Regular, PingFang SC; | ||||
@@ -2108,6 +2154,7 @@ | |||||
color: #666666; | color: #666666; | ||||
line-height: 32rpx; | line-height: 32rpx; | ||||
} | } | ||||
.zhezhao { | .zhezhao { | ||||
position: fixed; | position: fixed; | ||||
top: 0; | top: 0; | ||||
@@ -2415,15 +2462,16 @@ | |||||
line-height: 80rpx; | line-height: 80rpx; | ||||
display: flex; | display: flex; | ||||
} | } | ||||
// 顾问默认在右边显示 | |||||
.scroll-Y .text[data-guwen="0"] | |||||
// .scroll-Y .text[data-speaker="2"], | |||||
// 顾问默认在右边显示 | |||||
.scroll-Y .text[data-guwen="0"] // .scroll-Y .text[data-speaker="2"], | |||||
// .scroll-Y .text[data-speaker="4"], | // .scroll-Y .text[data-speaker="4"], | ||||
// .scroll-Y .text[data-speaker="6"] | // .scroll-Y .text[data-speaker="6"] | ||||
{ | |||||
{ | |||||
flex-direction: row-reverse; | flex-direction: row-reverse; | ||||
text-align: right; | text-align: right; | ||||
.contentInfo { | .contentInfo { | ||||
.info { | .info { | ||||
@@ -2455,11 +2503,11 @@ | |||||
} | } | ||||
.scroll-Y .text[data-guwen="0"] | |||||
// .scroll-Y .text[data-speaker="2"], | |||||
.scroll-Y .text[data-guwen="0"] // .scroll-Y .text[data-speaker="2"], | |||||
// .scroll-Y .text[data-speaker="4"], | // .scroll-Y .text[data-speaker="4"], | ||||
// .scroll-Y .text[data-speaker="6"] | // .scroll-Y .text[data-speaker="6"] | ||||
{ | |||||
{ | |||||
.contentInfo { | .contentInfo { | ||||
.info { | .info { | ||||
.AudioUserName { | .AudioUserName { | ||||
@@ -2483,7 +2531,7 @@ | |||||
} | } | ||||
.scroll-Y .text .avatar { | .scroll-Y .text .avatar { | ||||
text{ | |||||
text { | |||||
display: block; | display: block; | ||||
width: 72rpx; | width: 72rpx; | ||||
height: 72rpx; | height: 72rpx; | ||||
@@ -2496,11 +2544,13 @@ | |||||
font-weight: 500; | font-weight: 500; | ||||
box-sizing: border-box; | box-sizing: border-box; | ||||
} | } | ||||
image{ | |||||
image { | |||||
width: 72rpx; | width: 72rpx; | ||||
height: 72rpx; | height: 72rpx; | ||||
} | } | ||||
} | } | ||||
.scroll-Y .text .contentInfo .info { | .scroll-Y .text .contentInfo .info { | ||||
color: #666; | color: #666; | ||||
font-size: 22rpx; | font-size: 22rpx; | ||||
@@ -2832,6 +2882,7 @@ | |||||
color: #2671E2 !important; | color: #2671E2 !important; | ||||
position: relative; | position: relative; | ||||
} | } | ||||
.scroll-Y .text.active .info { | .scroll-Y .text.active .info { | ||||
color: #2671E2 !important; | color: #2671E2 !important; | ||||
position: relative; | position: relative; | ||||
@@ -2844,8 +2895,8 @@ | |||||
color: #2671E2 !important; | color: #2671E2 !important; | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/deep/ .u-model-title{ | |||||
/deep/ .u-model-title { | |||||
padding: 34rpx 0 16rpx !important; | padding: 34rpx 0 16rpx !important; | ||||
} | } | ||||
</style> | </style> |
@@ -0,0 +1,354 @@ | |||||
<template> | |||||
<view class="eqLog"> | |||||
<view class="bg"></view> | |||||
<view class="tophead" :style="{height: `${CustomBar}px`}"> | |||||
<view class="topheads" :style="{height: `${CustomBar}px`,paddingTop: `${StatusBar}px`}"> | |||||
<view class="eqno"> | |||||
<image @click="back" class="backs" src="@/static/images/back.png" mode=""></image> | |||||
<view class="middle"> | |||||
设备日志 | |||||
</view> | |||||
</view> | |||||
<!-- 背景色 --> | |||||
<view class="eqNo-bg"></view> | |||||
</view> | |||||
</view> | |||||
<view class="eqNo"> | |||||
<view class="noInfo"> | |||||
<view class="left"> | |||||
<text style="font-weight: 500;">设备编号:{{ info.imei || '' }}</text> | |||||
<text>录音说明:{{ info.recordExplain || '' }}</text> | |||||
</view> | |||||
<view class="right"> | |||||
<text>{{state(info.recording)}}</text> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="eqMain"> | |||||
<view class="recordingStart"> | |||||
<view class="items"> | |||||
<text>录音开启用时</text> | |||||
<text class="font" | |||||
:style="{color: info.recording==1?'red':'#333'}">{{info.startActionTime || ''}}min</text> | |||||
</view> | |||||
<view class="line"></view> | |||||
<view class="items"> | |||||
<text>待上传文件</text> | |||||
<text class="font" :style="{color: info.fileCount==0?'#333':'red'}">{{info.fileCount}}个</text> | |||||
</view> | |||||
</view> | |||||
<view class="recording"> | |||||
<view class="left-box"> | |||||
<view class="cycle"></view> | |||||
<view class="point"></view> | |||||
<view class="cycle"></view> | |||||
</view> | |||||
<view class="recordingBox"> | |||||
<text class="recordingBoxItem-title" >录音开启</text> | |||||
<view class="recordingBoxItem"> | |||||
<text class="left">指派人:</text> | |||||
<text class="right">{{info.owenrName}}</text> | |||||
</view> | |||||
<view class="recordingBoxItem"> | |||||
<text class="left">指派时间:</text> | |||||
<text class="right">{{info.assignTime}}</text> | |||||
</view> | |||||
<view class="recordingBoxItem"> | |||||
<text class="left">录音开始时间:</text> | |||||
<view class="right" style="font-weight: bold;font-size: 28rpx;"> | |||||
<text :style="{color: info.recording==1?'red':'#333'}"> | |||||
{{info.recordStartTime}} | |||||
</text> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="recordingBox" style="margin-top: 40rpx;"> | |||||
<text class="recordingBoxItem-title">录音关闭</text> | |||||
<view class="recordingBoxItem"> | |||||
<text class="left">结束人:</text> | |||||
<text class="right">{{info.userName}}</text> | |||||
</view> | |||||
<view class="recordingBoxItem"> | |||||
<text class="left">结束时间:</text> | |||||
<text class="right">{{info.assignEndTime}}</text> | |||||
</view> | |||||
<view class="recordingBoxItem"> | |||||
<text class="left">录音结束时间:</text> | |||||
<view class="right" style="font-weight: bold;font-size: 28rpx;"> | |||||
<text :style="{color: info.recording==1?'red':'#333'}"> | |||||
{{info.recordEndTime}} | |||||
</text> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="offlineRec"> | |||||
<text style="font-size:36rpx">离线记录</text> | |||||
<view class="recMain"> | |||||
<block v-for="(item,index) in info.offLineList" :key="index"> | |||||
<text>{{index+1}}、 {{item}}</text> | |||||
</block> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script> | |||||
export default { | |||||
data() { | |||||
return { | |||||
info: {}, | |||||
} | |||||
}, | |||||
computed: { | |||||
state() { | |||||
return (e => { | |||||
switch (e) { | |||||
case 0: | |||||
return "接待中"; | |||||
case 1: | |||||
return "部分录音"; | |||||
default: | |||||
return "完整录音"; | |||||
} | |||||
}) | |||||
}, | |||||
}, | |||||
onLoad(options) { | |||||
console.log(this.cusTHeight) | |||||
console.log(options.id) | |||||
this.$u.get("/equipment/equipmentLog", { | |||||
id: options.id | |||||
}).then(res => { | |||||
// console.log(res) | |||||
this.info = res | |||||
}) | |||||
}, | |||||
methods: { | |||||
back() { | |||||
uni.navigateBack() | |||||
} | |||||
} | |||||
} | |||||
</script> | |||||
<style lang="scss"> | |||||
.eqLog { | |||||
position: relative; | |||||
width: 100vw; | |||||
min-height: 100vh; | |||||
background: #F8F8F8; | |||||
.bg { | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
right: 0; | |||||
z-index: 0; | |||||
width: 100%; | |||||
height: 420rpx; | |||||
background: linear-gradient(180deg, #2671E2 0%, #3B9CF4 54%, #93C8F7 100%); | |||||
} | |||||
.tophead { | |||||
position: sticky; | |||||
top: 0; | |||||
z-index: 999; | |||||
width: 100%; | |||||
.topheads { | |||||
position: relative; | |||||
z-index: 1; | |||||
overflow: hidden; | |||||
.eqno { | |||||
position: relative; | |||||
z-index: 1; | |||||
width: 100%; | |||||
height: 100%; | |||||
display: flex; | |||||
align-items: center; | |||||
.backs { | |||||
margin-left: 24rpx; | |||||
width: 32rpx; | |||||
height: 32rpx; | |||||
} | |||||
.middle { | |||||
position: absolute; | |||||
left: 50%; | |||||
top: 50%; | |||||
transform: translate(-50%, -50%); | |||||
font-size: 32rpx; | |||||
color: #fff; | |||||
} | |||||
} | |||||
.eqNo-bg { | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
right: 0; | |||||
z-index: 0; | |||||
width: 100%; | |||||
height: 420rpx; | |||||
background: linear-gradient(180deg, #2671E2 0%, #3B9CF4 54%, #93C8F7 100%); | |||||
} | |||||
} | |||||
} | |||||
.eqNo { | |||||
position: relative; | |||||
z-index: 1; | |||||
width: 100%; | |||||
.noInfo { | |||||
margin: 24rpx auto 0; | |||||
padding: 24rpx; | |||||
width: 690rpx; | |||||
height: 152rpx; | |||||
background: #FFFFFF; | |||||
border-radius: 8rpx; | |||||
display: flex; | |||||
justify-content: space-between; | |||||
.left { | |||||
display: flex; | |||||
flex-direction: column; | |||||
justify-content: space-between; | |||||
font-size: 32rpx; | |||||
font-weight: 400; | |||||
} | |||||
.right { | |||||
font-size: 32rpx; | |||||
font-weight: 400; | |||||
} | |||||
} | |||||
} | |||||
.eqMain { | |||||
position: relative; | |||||
z-index: 1; | |||||
padding: 0 20rpx; | |||||
.recordingStart { | |||||
margin-top: 20rpx; | |||||
width: 100%; | |||||
height: 164rpx; | |||||
display: flex; | |||||
align-items: center; | |||||
border-radius: 8rpx; | |||||
background: #FFFFFF; | |||||
.items { | |||||
flex-grow: 1; | |||||
display: flex; | |||||
flex-direction: column; | |||||
align-items: center; | |||||
justify-content: center; | |||||
color: #1C1010; | |||||
font-size: 30rpx; | |||||
.font { | |||||
margin-top: 20rpx; | |||||
font-weight: 500; | |||||
} | |||||
} | |||||
.line { | |||||
width: 1rpx; | |||||
height: 88rpx; | |||||
background: #E0E0E0; | |||||
} | |||||
} | |||||
.recording { | |||||
position: relative; | |||||
z-index: 1; | |||||
margin-top: 20rpx; | |||||
padding: 30rpx 30rpx 30rpx 68rpx; | |||||
display: flex; | |||||
flex-direction: column; | |||||
background: #FFFFFF; | |||||
border-radius: 8rpx; | |||||
.left-box { | |||||
position: absolute; | |||||
left: 30rpx; | |||||
top: 40rpx; | |||||
width: 24rpx; | |||||
height: 300rpx; | |||||
display: flex; | |||||
flex-direction: column; | |||||
align-items: center; | |||||
.cycle { | |||||
width: 24rpx; | |||||
height: 24rpx; | |||||
flex-shrink: 0; | |||||
border-radius: 50%; | |||||
border: 4rpx solid #2671E2; | |||||
} | |||||
.point { | |||||
flex-grow: 1; | |||||
border-left: 1rpx dotted #2671E2; | |||||
} | |||||
} | |||||
.recordingBox { | |||||
width: 100%; | |||||
display: flex; | |||||
flex-direction: column; | |||||
.recordingBoxItem-title { | |||||
font-size: 32rpx; | |||||
font-weight: 500; | |||||
} | |||||
.recordingBoxItem { | |||||
margin-top: 24rpx; | |||||
display: flex; | |||||
.left { | |||||
width: 210rpx; | |||||
color: #505050; | |||||
font-size: 30rpx; | |||||
} | |||||
.right { | |||||
flex-grow: 1; | |||||
font-size: 30rpx !important; | |||||
} | |||||
} | |||||
} | |||||
} | |||||
.offlineRec { | |||||
margin-top: 20rpx; | |||||
padding: 28rpx 24rpx; | |||||
border-radius: 8rpx; | |||||
background: #FFFFFF; | |||||
.recMain { | |||||
display: flex; | |||||
flex-direction: column; | |||||
text { | |||||
margin: 24rpx 0; | |||||
font-size: 30rpx; | |||||
} | |||||
} | |||||
} | |||||
} | |||||
} | |||||
</style> |
@@ -1,7 +1,7 @@ | |||||
const base = 'http://81.70.55.170:9999'; // 测试站 | |||||
// const base = 'http://81.70.55.170:9999'; // 测试站 | |||||
// const base = 'http://127.0.0.1:9999'; // 本地 | // const base = 'http://127.0.0.1:9999'; // 本地 | ||||
// const base = 'http://192.168.31.148:9999' ;// 泽明 | // const base = 'http://192.168.31.148:9999' ;// 泽明 | ||||
// const base = 'http://192.168.31.86:9999' ;// 胜浩 | |||||
const base = 'http://192.168.31.94:9999' ;// 胜浩 | |||||
// const base = 'http://192.168.31.161:9999' // 长龙 | // const base = 'http://192.168.31.161:9999' // 长龙 | ||||
// const base = 'https://zanyong.hfju.com';// 正式 AI销管// 弃用 | // const base = 'https://zanyong.hfju.com';// 正式 AI销管// 弃用 | ||||
// const base = 'https://hxz.quhouse.com';// 正式 AI销讲助手 | // const base = 'https://hxz.quhouse.com';// 正式 AI销讲助手 | ||||