diff --git a/config.js b/config.js
index b87a2e2..a4ffbc1 100644
--- a/config.js
+++ b/config.js
@@ -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'; // 质控正式
diff --git a/pages/mine/details.vue b/pages/mine/details.vue
index 2a6e7fe..b2b154a 100644
--- a/pages/mine/details.vue
+++ b/pages/mine/details.vue
@@ -169,6 +169,33 @@
确认
+
+
+
+ 选择
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
@@ -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 @@
}
\ No newline at end of file
diff --git a/utils/http.js b/utils/http.js
index 83c4a52..e58e95f 100644
--- a/utils/http.js
+++ b/utils/http.js
@@ -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'; // 质控正式