@@ -3,7 +3,7 @@ | |||
*/ | |||
// 此处主机域名修改成腾讯云解决方案分配的域名 | |||
// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 | |||
// var host = 'http://192.168.31.160:8080/autoSR/api'; // 长龙 | |||
// var host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | |||
var host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | |||
// var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | |||
// var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||
@@ -169,6 +169,33 @@ | |||
<view class="bounced3-2" @tap="Confirmtheexit2">确认</view> | |||
</view> | |||
</view> | |||
<view class="zhezhoa" v-if="effective"></view> | |||
<view class="bounced" v-if="effective"> | |||
<view class="jiajinghuatit">选择</view> | |||
<view> | |||
<view class="uni-list"> | |||
<radio-group @change="radioChange"> | |||
<label style="display: flex;align-items: center;font-size: 30rpx; | |||
width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value"> | |||
<view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view> | |||
<view style="width: 80rpx;"> | |||
<radio :value="item.value" :checked="index == effectiveindex" /> | |||
</view> | |||
</label> | |||
</radio-group> | |||
</view> | |||
<view v-if="effectiveindex==4"> | |||
<textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" /> | |||
</view> | |||
</view> | |||
<view class="bounced3"> | |||
<view class="bounced3-1" @click="effective=false">取消</view> | |||
<view class="bounced3-2" @click="effectiveAdd()">确认</view> | |||
</view> | |||
</view> | |||
</view> | |||
</template> | |||
@@ -218,6 +245,17 @@ | |||
userlistobj:{}, | |||
Menulist:[], | |||
Menulistisshow:false, | |||
effective:false, | |||
effectiveindex:'0', | |||
effectiveitems: [ | |||
{value: '1',name: '没电指派无录音',checked:true}, | |||
{value: '2',name: '离线指派无录音',}, | |||
{value: '3',name: '系统测试误操作'}, | |||
{value: '4',name: '非接访场景录音'}, | |||
{value: '5',name: '其他'} | |||
], | |||
effectiveitext:'' | |||
}; | |||
}, | |||
onLoad: function(options) { | |||
@@ -276,36 +314,70 @@ | |||
this.innerAudioContext.destroy(); | |||
}, | |||
methods: { | |||
effectiveAdd(){ | |||
if(this.effectiveindex==4){ | |||
if(this.effectiveitext.length==0){ | |||
uni.showToast({ | |||
title: '备注不能为空', | |||
icon:"none", | |||
duration: 2000 | |||
}); | |||
return | |||
} | |||
} | |||
this.effective=false; | |||
let parames={ | |||
id:this.customerId, | |||
validInvalid:'', | |||
validInvalid:1, | |||
invalidReason:Number(this.effectiveindex)+1, | |||
invalidNote:this.effectiveitext | |||
} | |||
this.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
console.log(res) | |||
this.gituserlist() | |||
}) | |||
}, | |||
radioChange(evt) { | |||
this.effectiveitext=""; | |||
for (let i = 0; i < this.effectiveitems.length; i++) { | |||
if (this.effectiveitems[i].value === evt.detail.value) { | |||
this.effectiveindex = i; | |||
break; | |||
} | |||
} | |||
}, | |||
//标记 | |||
alllogo(){ | |||
var that=this; | |||
let msg=''; | |||
if(this.userlistobj.validInvalid==0){ | |||
msg='是否标记为"无效录音"?' | |||
if(this.userlistobj.validInvalid!=0){ | |||
msg='是否标记为"有效录音"?'; | |||
uni.showModal({ | |||
title: '提示', | |||
content: msg, | |||
success: function (res) { | |||
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 => { | |||
console.log(res) | |||
that.gituserlist() | |||
}) | |||
} | |||
} | |||
}); | |||
}else{ | |||
msg='是否标记为"有效录音"?' | |||
this.effective=true; | |||
} | |||
uni.showModal({ | |||
title: '提示', | |||
content: msg, | |||
success: function (res) { | |||
if (res.confirm) { | |||
let parames={ | |||
id:that.customerId, | |||
validInvalid:'' | |||
} | |||
if(that.userlistobj.validInvalid==0){ | |||
parames.validInvalid=1; | |||
}else{ | |||
parames.validInvalid=0; | |||
} | |||
that.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
console.log(res) | |||
that.gituserlist() | |||
}) | |||
} | |||
} | |||
}); | |||
}, | |||
//获取用户信息 | |||
@@ -1075,6 +1147,14 @@ | |||
} | |||
</script> | |||
<style lang="scss" scoped> | |||
.ffectivetext{ | |||
width: 85%; | |||
margin: 10rpx auto; | |||
height: 100rpx; | |||
padding: 20rpx; | |||
border: 1rpx solid #E4F0FF; | |||
} | |||
.biaoqiantom { | |||
background-color: #008EF2; | |||
color: #FFFFFF; | |||
@@ -394,7 +394,30 @@ | |||
<view class="calibration" @click="tocalibration()">校准</view> | |||
</view> | |||
<view class="zhezhoa" v-if="effective"></view> | |||
<view class="bounced" v-if="effective"> | |||
<view class="jiajinghuatit">选择</view> | |||
<view> | |||
<view class="uni-list"> | |||
<radio-group @change="radioChange"> | |||
<label style="display: flex;align-items: center;font-size: 30rpx; | |||
width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value"> | |||
<view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view> | |||
<view style="width: 80rpx;"> | |||
<radio :value="item.value" :checked="index == effectiveindex" /> | |||
</view> | |||
</label> | |||
</radio-group> | |||
</view> | |||
<view v-if="effectiveindex==4"> | |||
<textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" /> | |||
</view> | |||
</view> | |||
<view class="bounced3"> | |||
<view class="bounced3-1" @click="effective=false">取消</view> | |||
<view class="bounced3-2" @click="effectiveAdd()">确认</view> | |||
</view> | |||
</view> | |||
</view> | |||
@@ -406,6 +429,7 @@ | |||
export default { | |||
data() { | |||
return { | |||
noClick:true, | |||
kehuyixiangcenterindex:0, | |||
Acquirecustomerintentlist2:[], | |||
zhixingcenterindex:0, | |||
@@ -468,6 +492,17 @@ | |||
Menulistisshow:false, | |||
validInvalid:0, | |||
calibration:0, | |||
effective:false, | |||
effectiveindex:'0', | |||
effectiveitems: [ | |||
{value: '1',name: '没电指派无录音',checked:true}, | |||
{value: '2',name: '离线指派无录音',}, | |||
{value: '3',name: '系统测试误操作'}, | |||
{value: '4',name: '非接访场景录音'}, | |||
{value: '5',name: '其他'} | |||
], | |||
effectiveitext:'' | |||
}; | |||
}, | |||
onLoad: function(options) { | |||
@@ -710,35 +745,69 @@ | |||
alllogo(){ | |||
var that=this; | |||
let msg=''; | |||
if(this.userlistobj.validInvalid==0){ | |||
msg='是否标记为"无效录音"?' | |||
if(this.userlistobj.validInvalid!=0){ | |||
msg='是否标记为"有效录音"?'; | |||
uni.showModal({ | |||
title: '提示', | |||
content: msg, | |||
success: function (res) { | |||
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 => { | |||
console.log(res) | |||
that.Thetapeidisshow=false; | |||
}) | |||
} | |||
} | |||
}); | |||
}else{ | |||
msg='是否标记为"有效录音"?' | |||
this.effective=true; | |||
} | |||
uni.showModal({ | |||
title: '提示', | |||
content: msg, | |||
success: function (res) { | |||
if (res.confirm) { | |||
let parames={ | |||
id:that.customerId, | |||
validInvalid:'' | |||
} | |||
if(that.userlistobj.validInvalid==0){ | |||
parames.validInvalid=1; | |||
}else{ | |||
parames.validInvalid=0; | |||
} | |||
that.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
console.log(res) | |||
that.Thetapeidisshow=false; | |||
}) | |||
} else if (res.cancel) { | |||
that.Thetapeidisshow=false; | |||
} | |||
} | |||
}); | |||
}, | |||
effectiveAdd(){ | |||
if(this.effectiveindex==4){ | |||
if(this.effectiveitext.length==0){ | |||
uni.showToast({ | |||
title: '备注不能为空', | |||
icon:"none", | |||
duration: 2000 | |||
}); | |||
return | |||
} | |||
} | |||
this.effective=false; | |||
let parames={ | |||
id:this.customerId, | |||
validInvalid:'', | |||
validInvalid:1, | |||
invalidReason:Number(this.effectiveindex)+1, | |||
invalidNote:this.effectiveitext | |||
} | |||
this.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
console.log(res) | |||
this.Thetapeidisshow=false; | |||
}) | |||
}, | |||
radioChange(evt) { | |||
this.effectiveitext=""; | |||
for (let i = 0; i < this.effectiveitems.length; i++) { | |||
if (this.effectiveitems[i].value === evt.detail.value) { | |||
this.effectiveindex = i; | |||
break; | |||
} | |||
} | |||
}, | |||
//接待详情点击 | |||
@@ -1219,8 +1288,8 @@ | |||
translateHtmlContent: this.messagelisy, | |||
} | |||
this.isshow2 = false; | |||
this.$u.post("/corpus/addCorrectWord", parames).then(data => { | |||
this.isshow2 = false; | |||
this.dialogList.forEach(res => { | |||
res.message.forEach(asd => { | |||
asd.isshow = false; | |||
@@ -2413,4 +2482,11 @@ | |||
.rotatearrow { | |||
transform: rotate(270deg); | |||
} | |||
.ffectivetext{ | |||
width: 85%; | |||
margin: 10rpx auto; | |||
height: 100rpx; | |||
padding: 20rpx; | |||
border: 1rpx solid #E4F0FF; | |||
} | |||
</style> |
@@ -1,6 +1,6 @@ | |||
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://192.168.31.160:8080/autoSR/api'; // 长龙 | |||
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | |||
const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | |||
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | |||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||