diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 0125ca6..9d64699 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -4,7 +4,7 @@ {{date}} - + @@ -21,7 +21,7 @@ inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist" :is-scroll="true"> - + 标记 @@ -108,10 +108,10 @@ 复制 - 常错词 - 加精华 - + 更多 @@ -168,7 +168,7 @@ - + 接待信息 @@ -281,7 +281,7 @@ 销讲总执行率{{totalRate}}% - 禁忌执行 + 禁忌执行 @@ -391,7 +391,7 @@ - 校准 + 校准 @@ -470,7 +470,8 @@ duihuawenjianid: "", biaoqianid: "", status: 0, - // jiaoseshow: true, + userInfo: {}, + jiaoseshow: true, itemobj:{}, textindex:0,//下拉 转写文件下标 toptextindex:0,//上拉 转写文件下标 @@ -485,10 +486,10 @@ intention:false, yixingindex:0,//意向,统计切换 buildingID:'', - // methodsisshow:false, + methodsisshow:false, Thetapeidisshow:false, - // Menulist:[], - // Menulistisshow:false, + Menulist:[], + Menulistisshow:false, validInvalid:0, calibration:0, @@ -505,14 +506,6 @@ textItself:'', argtextindex1:0, argtextindex2:0, - permissions:{ - commonly1:false, - commonly2:false, - commonly3:false, - commonly4:false, - commonly5:false, - commonly6:false - } }; }, onLoad: function(options) { @@ -523,22 +516,24 @@ this.stateisshow=options.stateisshow; }, onShow() { - - let newmenulist= uni.getStorageSync('weapp_session_Menu_data'); - this.permissions.commonly1=newmenulist.bjgw; - this.permissions.commonly2=newmenulist.jdwxbj; - this.permissions.commonly3=newmenulist.swyxal; - this.permissions.commonly4=newmenulist.ccc; - this.permissions.commonly5=newmenulist.xz; - this.permissions.commonly6=newmenulist.ckwjzx; - //1 标记顾问 bjgw - //1 接待无效标记 jdwxbj - //1 设为优秀案例 swyxal - // 常错词 ccc - // 校准 xz + this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); + this.Menulist.forEach(item=>{ + if(item.name=='标记有效无效接待'){ + this.Menulistisshow=true; + } + }) this.intention=false; this.kehuyixiangcenterindex=0; this.buildingID = uni.getStorageSync('buildingID').id; + this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); + if(this.userInfo.dataCode==6 || this.userInfo.dataCode==3){ + this.methodsisshow=false; + }else{ + this.methodsisshow=true; + } + if (this.userInfo.dataCode == 6) { + this.jiaoseshow = false + } this.roleindex=0; if(this.stateisshow==2){ var info =this.itemobj; @@ -566,14 +561,14 @@ //暂停 // this.innerAudioContext.pause() // 销毁 - // this.innerAudioContext.destroy(); + this.innerAudioContext.destroy(); }, // 销毁实例 onUnload: function() { //暂停 // this.innerAudioContext.pause() // 销毁 - // this.innerAudioContext.destroy(); + this.innerAudioContext.destroy(); }, methods: { argece(item){ @@ -868,7 +863,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.biojiisshow=false; @@ -906,7 +901,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.tablist=[]; @@ -1214,7 +1209,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data') .token }, success: (data) => { @@ -1257,7 +1252,7 @@ method: "POST", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data') .token }, data: objdata, @@ -1418,7 +1413,7 @@ method: "POST", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, data: objdata, success: (data) => { @@ -1565,7 +1560,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.tablist=[]; @@ -1701,7 +1696,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.textindex=data.data.data.index; @@ -1735,7 +1730,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token + 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.textindex=data.data.data.index;