From 4b6ac733c3184e5af1f785a994f247c476f068f3 Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Thu, 14 Jul 2022 14:13:18 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 9 +
pages/mine/details.vue | 297 +++++++++++++++++-------------
pages/mine/details2.vue | 349 ++++++++++++++++++++---------------
pages/mine/equipmentLog.vue | 354 ++++++++++++++++++++++++++++++++++++
static/images/back.png | Bin 0 -> 3032 bytes
utils/domain.js | 4 +-
6 files changed, 733 insertions(+), 280 deletions(-)
create mode 100644 pages/mine/equipmentLog.vue
create mode 100644 static/images/back.png
diff --git a/pages.json b/pages.json
index 653fe9d..e753690 100644
--- a/pages.json
+++ b/pages.json
@@ -302,6 +302,15 @@
"navigationBarTextStyle": "white"
}
+ },
+ {
+ "path": "equipmentLog",
+ "style": {
+ "navigationBarTitleText": "设备日志",
+ "navigationBarBackgroundColor": "#2671E2",
+ "navigationBarTextStyle": "transparent",
+ "navigationStyle": "custom"
+ }
}
]
},
diff --git a/pages/mine/details.vue b/pages/mine/details.vue
index f49dd3d..3a755f8 100644
--- a/pages/mine/details.vue
+++ b/pages/mine/details.vue
@@ -11,7 +11,7 @@
{{date}}
接待时长 {{alltimeStr}}
-
+
{{userlistobj.validInvalidName||''}}
@@ -105,15 +105,24 @@
+
+
+
+ 设备日志
+
+
+
-
-
+
+
常错词:
-
+
@@ -124,7 +133,7 @@
-
+
-
+
{{item.name}}
@@ -25,10 +25,13 @@
+ :data-guwen="item.isShow" :data-speaker="item.speaker"
+ :id="'dialog'+csdFileindex+'text'+item.bg">
-
-
+
+
{{ item.speaker | toCapital }}
@@ -64,8 +67,9 @@
-
+
+
@@ -104,17 +108,31 @@
更多功能
-
+
-
-
- 有效接待
+
+
+ 有效接待
+
-
-
- 优秀案例
+
+
+ 优秀案例
+
+
+
+
+ 设备日志
+
+
-
-
+
+
常错词:
-
+
@@ -167,7 +187,7 @@
-
+
@@ -555,7 +576,8 @@
isPageHide: false, // 是否息屏
duration: '', // 总时长
refresh: false, // 默认false
- isNum:false
+ isNum: false,
+ eqLog: 0
};
},
computed: {
@@ -564,7 +586,7 @@
return this.getTime(e);
}
},
-
+
},
onLoad(options) {
@@ -575,7 +597,7 @@
this.stateisshow = options.stateisshow;
this.$zaudio.autoPlay = true
if (options.refresh) this.refresh = options.refresh
-
+
this.$zaudio.on('seek', this.ACTION, (time) => {
this.sliderChangeComplate(this.TIMEEVENT(time))
})
@@ -585,21 +607,21 @@
this.duration = obj.duration
this.TimeUpdate(this.TIMEEVENT(obj.current))
})
-
+
this.$zaudio.on('ended', this.ACTION, e => {
console.log('音频播放结束')
this.$zaudio.stop()
this.$nextTick(() => {
- console.log(this.$zaudio,'音频播放结束')
+ console.log(this.$zaudio, '音频播放结束')
this.init(this.itemobj)
})
})
-
+
uni.$on('DETAILS2INIT', (info) => {
this.itemobj = info
this.init(info)
});
-
+
// 当前页面状态
uni.$on('newobjStatus', status => {
this.status = status
@@ -618,6 +640,10 @@
this.permissions.commonly4 = newmenulist.ccc;
this.permissions.commonly5 = newmenulist.xz;
this.permissions.commonly6 = newmenulist.ckwjzx;
+ this.permissions = {
+ ...newmenulist,
+ ...this.permissions
+ }
//1 标记顾问 bjgw
//1 接待无效标记 jdwxbj
//1 设为优秀案例 swyxal
@@ -629,8 +655,7 @@
this.roleindex = 0;
if (this.stateisshow == 2) {
var info = this.itemobj;
- }
- !this.isPageHide && this.init(info);
+ }!this.isPageHide && this.init(info);
},
onHide() {
@@ -648,57 +673,64 @@
},
methods: {
+ // 跳转设备日志页面
+ eqLogClick() {
+ uni.navigateTo({
+ url: `./equipmentLog?id=${this.customerId}`
+ })
+ },
+
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() {
this.dialogList.forEach(res => {
@@ -809,7 +841,7 @@
})
},
// 点击更多
- moreClick(){
+ moreClick() {
this.gituserlist()
this.Thetapeidisshow = true
},
@@ -938,27 +970,27 @@
content: msg,
success: function(res) {
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 {
- // 这里是重复点击的判断
+ // 这里是重复点击的判断
}
}
});
@@ -1106,7 +1138,7 @@
} else {
this.tablist[data.speaker].name = this.tablist[data.speaker]
.name + "顾问";
-
+
this.roleindexbiaoji = data.speaker - 1;
this.dshfkjsdkksodofydwfkhwdfkjh = data.speaker - 1;
}
@@ -1197,7 +1229,7 @@
this.getCorpusAnalysis(info);
this.zyAudio()
}
-
+
if (this.refresh) this.zyAudio()
}
})
@@ -1223,8 +1255,8 @@
})
}
},
-
-
+
+
//下一页
ltolower() {
var lengthcz = this.newluyinList.length - 1;
@@ -1265,14 +1297,14 @@
}
console.log("上一页", this.toptextindex)
},
- jiajing(){
- if(this.status == 1) { // 加精
+ jiajing() {
+ if (this.status == 1) { // 加精
this.tappick()
- }else{ // 取消加精
+ } else { // 取消加精
this.notappick()
}
},
-
+
// 取消全部加精
notappick() {
console.log('quxiao')
@@ -1306,7 +1338,7 @@
}
});
},
-
+
//全部加精
tappick() {
var that = this;
@@ -1364,23 +1396,23 @@
},
//确认加入常错词
Confirmtheexit() {
- if(this.reswrongword.length>8 || this.thewrongword.length>8){
+ if (this.reswrongword.length > 8 || this.thewrongword.length > 8) {
this.$refs.uToast.show({
title: '正确词错误词不能超过8个字',
type: 'warning',
})
-
+
this.isshow2 = true;
- }else{
+ } else {
let reg = /^[0-9]+$/
- if(reg.test(this.thewrongword)){
+ if (reg.test(this.thewrongword)) {
this.$refs.uToast.show({
title: '错误词不能为纯数字',
type: 'warning',
})
-
+
this.isshow2 = true;
- }else{
+ } else {
if (this.thewrongword) {
if (this.reswrongword) {
let parames = {
@@ -1391,11 +1423,11 @@
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;
@@ -1410,7 +1442,7 @@
title: '正确值不能为空',
type: 'warning',
})
- this.isshow2 = true;
+ this.isshow2 = true;
return
}
} else {
@@ -1418,12 +1450,12 @@
title: '错误词不能为空',
type: 'warning',
})
- this.isshow2 = true;
+ this.isshow2 = true;
return
}
}
}
-
+
},
//取消加入常错词
Cancelout() {
@@ -1902,23 +1934,27 @@
}
}
}
- .moremodal{
+
+ .moremodal {
position: fixed;
- top: 0;bottom: 0;
+ top: 0;
+ bottom: 0;
left: 0;
right: 0;
- background: rgba(0,0,0,0.5);
+ background: rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
justify-content: flex-end;
z-index: 1000000;
- .more-cont{
+
+ .more-cont {
width: 690rpx;
padding: 30rpx;
background: #fff;
box-sizing: content-box;
border-radius: 20rpx 20rpx 0 0;
- .more-title{
+
+ .more-title {
width: 100%;
display: flex;
justify-content: space-between;
@@ -1928,17 +1964,20 @@
font-weight: 500;
color: #333333;
align-items: center;
- .close-icon{
+
+ .close-icon {
width: 32rpx;
height: 32rpx;
}
}
- .more-btn{
+
+ .more-btn {
display: flex;
margin-top: 30rpx;
padding-bottom: 30rpx;
+
// border-bottom: 1rpx solid #e0e0e0;
- .btn-item{
+ .btn-item {
width: 284rpx;
height: 72rpx;
display: flex;
@@ -1952,7 +1991,8 @@
font-weight: 400;
color: #333333;
margin-right: 30rpx;
- .icon{
+
+ .icon {
width: 30rpx;
height: 30rpx;
margin-right: 12rpx;
@@ -1960,8 +2000,9 @@
}
}
- .other-btn{
- .btn-item{
+
+ .other-btn {
+ .btn-item {
display: flex;
align-items: center;
font-size: 30rpx;
@@ -1971,7 +2012,8 @@
line-height: 42rpx;
padding: 30rpx 0;
border-bottom: 1rpx solid #e0e0e0;
- .icon{
+
+ .icon {
width: 30rpx;
height: 30rpx;
margin-right: 12rpx;
@@ -2024,9 +2066,11 @@
overflow: hidden;
display: flex;
align-items: center;
- .mytab{
+
+ .mytab {
margin-left: 20rpx;
- .tab-item{
+
+ .tab-item {
padding: 0 20rpx;
height: 52rpx;
line-height: 52rpx;
@@ -2037,9 +2081,10 @@
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
-
+
}
- .tabActive{
+
+ .tabActive {
background: #2671E2;
color: #fff;
}
@@ -2054,6 +2099,7 @@
justify-content: center;
align-items: center;
box-shadow: -4rpx 0px 8rpx -4rpx rgba(0, 0, 0, 0.2);
+
.biaoji {
text-align: center;
line-height: 52rpx;
@@ -2100,7 +2146,7 @@
margin-bottom: 10rpx;
}
- .tmmchen .text{
+ .tmmchen .text {
height: 32rx;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -2108,6 +2154,7 @@
color: #666666;
line-height: 32rpx;
}
+
.zhezhao {
position: fixed;
top: 0;
@@ -2415,15 +2462,16 @@
line-height: 80rpx;
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="6"]
- {
+ {
flex-direction: row-reverse;
text-align: right;
-
+
.contentInfo {
.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="6"]
- {
+ {
.contentInfo {
.info {
.AudioUserName {
@@ -2483,7 +2531,7 @@
}
.scroll-Y .text .avatar {
- text{
+ text {
display: block;
width: 72rpx;
height: 72rpx;
@@ -2496,11 +2544,13 @@
font-weight: 500;
box-sizing: border-box;
}
- image{
+
+ image {
width: 72rpx;
height: 72rpx;
}
}
+
.scroll-Y .text .contentInfo .info {
color: #666;
font-size: 22rpx;
@@ -2832,6 +2882,7 @@
color: #2671E2 !important;
position: relative;
}
+
.scroll-Y .text.active .info {
color: #2671E2 !important;
position: relative;
@@ -2844,8 +2895,8 @@
color: #2671E2 !important;
position: relative;
}
-
- /deep/ .u-model-title{
+
+ /deep/ .u-model-title {
padding: 34rpx 0 16rpx !important;
}
diff --git a/pages/mine/equipmentLog.vue b/pages/mine/equipmentLog.vue
new file mode 100644
index 0000000..32f6001
--- /dev/null
+++ b/pages/mine/equipmentLog.vue
@@ -0,0 +1,354 @@
+
+
+
+
+
+
+
+
+ 设备日志
+
+
+
+
+
+
+
+
+
+
+ 设备编号:{{ info.imei || '' }}
+ 录音说明:{{ info.recordExplain || '' }}
+
+
+ {{state(info.recording)}}
+
+
+
+
+
+
+ 录音开启用时
+ {{info.startActionTime || ''}}min
+
+
+
+ 待上传文件
+ {{info.fileCount}}个
+
+
+
+
+
+
+
+
+
+ 录音开启
+
+ 指派人:
+ {{info.owenrName}}
+
+
+ 指派时间:
+ {{info.assignTime}}
+
+
+ 录音开始时间:
+
+
+ {{info.recordStartTime}}
+
+
+
+
+
+ 录音关闭
+
+ 结束人:
+ {{info.userName}}
+
+
+ 结束时间:
+ {{info.assignEndTime}}
+
+
+ 录音结束时间:
+
+
+ {{info.recordEndTime}}
+
+
+
+
+
+
+ 离线记录
+
+
+ {{index+1}}、 {{item}}
+
+
+
+
+
+
+
+
+
+
diff --git a/static/images/back.png b/static/images/back.png
new file mode 100644
index 0000000000000000000000000000000000000000..9b8bb6af352b29570aaffe077625a9967a4427f0
GIT binary patch
literal 3032
zcmbVO3se)?8J>iIfKq~>JalCUP;?>53lR={0N(3KN
zg5aZCx41qQ(JDoc^;BFd;I77c>`@M`^|dZ^W0&H(0;{(8q<46&+q#d_oXpHW_kREP
zfA_!t{m=Y5Cwqa9cZfFxK|X4gaxr+?>C4jt+&@V|FN24dSygC-psD`!#em*#41yr{
zA$?u}Rgje_$4DaYru}vl-0*4M7RXHZzJD2nyB`C3;gLXW&c+2iD_>oc!1^y9Z0h8gJ%oK!j>
zT#%Imr;!!{mhccRh9E*XPR0{R#A2y51{NYhgpb7W1qfFtlp_*(tOy?eaX>T+u9GiT
z&L58j-V!;b6lIq4`4trvyb2MIw3P4#GMS8z2>C)G7a+LS)g}tHaZT3n2?ix$#VmR=
zr6)}=&4_Braw?Gnl#VUIXr81sS;x}^62`ZoX1;)j&`TNx;@Bk4Ty7~F4US`cqKq&S
zCdvx1f=R5ol%z;&DfvCrlhfY`08*QkH5ucLT8zfY5LPOE6gbL;2xbHwg$>1o3{wNs7gmv)(1*}d_lL%xI30KGyjLOZ*lB-Qt
z3N>MbTA9cJ$>HhsxLhEU3Z)Vh=ZeI!Qm#-dCb+0TqT|YRLa_*u>Ts!unDAGUSUFt+
zwEx&?z)1{nd@B!^ViH}PM9P)oL>yNl6=PhPSO(5RtWc}Pa0$5Z3ARNRJvfkP+3T#d
zDjYD1B$!qz(xP0g3Emg^N>Nh@0Xi(7LobF;_oA^);s5u3jn2K+wY76Mn?yO%0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*h?p+!Zm!KcnHK(f!UFsjQNg;w(cPQ{3>?w&$c~ewF;fJ4KVAbo4NwZpXIuh!Dhx(
zHQiZfa16Bo^v;xSW2X*F_=T6kPBc)_8#20X{o{+sa!c~O!$;l~9lsFN!_#LK@!H{t
zyUZekBUJp1IvL~1aHwuGi%J|u&KJeqg7@GWMVeMXMvdd!o{mqeYs;-gKo7Myx=^RL;v_J+)y)*yBJpH{dYy7DwI
Xz7frs<012-zrEGz*~(T$an*kS-qlfe
literal 0
HcmV?d00001
diff --git a/utils/domain.js b/utils/domain.js
index 78dda99..9c3ed0e 100644
--- a/utils/domain.js
+++ b/utils/domain.js
@@ -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://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 = 'https://zanyong.hfju.com';// 正式 AI销管// 弃用
// const base = 'https://hxz.quhouse.com';// 正式 AI销讲助手