diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 9d64699..154028d 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,8 +470,7 @@ duihuawenjianid: "", biaoqianid: "", status: 0, - userInfo: {}, - jiaoseshow: true, + // jiaoseshow: true, itemobj:{}, textindex:0,//下拉 转写文件下标 toptextindex:0,//上拉 转写文件下标 @@ -486,10 +485,10 @@ intention:false, yixingindex:0,//意向,统计切换 buildingID:'', - methodsisshow:false, + // methodsisshow:false, Thetapeidisshow:false, - Menulist:[], - Menulistisshow:false, + // Menulist:[], + // Menulistisshow:false, validInvalid:0, calibration:0, @@ -506,6 +505,14 @@ textItself:'', argtextindex1:0, argtextindex2:0, + permissions:{ + commonly1:false, + commonly2:false, + commonly3:false, + commonly4:false, + commonly5:false, + commonly6:false + } }; }, onLoad: function(options) { @@ -516,24 +523,22 @@ this.stateisshow=options.stateisshow; }, onShow() { - this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); - this.Menulist.forEach(item=>{ - if(item.name=='标记有效无效接待'){ - this.Menulistisshow=true; - } - }) + + 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.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; @@ -561,14 +566,14 @@ //暂停 // this.innerAudioContext.pause() // 销毁 - this.innerAudioContext.destroy(); + // this.innerAudioContext.destroy(); }, // 销毁实例 onUnload: function() { //暂停 // this.innerAudioContext.pause() // 销毁 - this.innerAudioContext.destroy(); + // this.innerAudioContext.destroy(); }, methods: { argece(item){ @@ -863,7 +868,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data').token + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.biojiisshow=false; @@ -901,7 +906,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data').token + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.tablist=[]; @@ -1209,7 +1214,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data') + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token .token }, success: (data) => { @@ -1252,7 +1257,7 @@ method: "POST", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data') + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token .token }, data: objdata, @@ -1413,7 +1418,7 @@ method: "POST", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data').token + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token }, data: objdata, success: (data) => { @@ -1560,7 +1565,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data').token + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.tablist=[]; @@ -1696,7 +1701,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data').token + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.textindex=data.data.data.index; @@ -1730,7 +1735,7 @@ method: "GET", header: { 'content-type': 'application/json', - 'Access-Token': uni.getStorageSync('weapp_session_login_data').token + 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token }, success: (data) => { this.textindex=data.data.data.index; @@ -2520,4 +2525,4 @@ padding: 20rpx; border: 1rpx solid #E4F0FF; } - \ No newline at end of file +