浏览代码

init

undefined
wangxiaohua 2 年前
父节点
当前提交
827e795959
共有 1 个文件被更改,包括 44 次插入39 次删除
  1. +44
    -39
      pages/mine/details2.vue

+ 44
- 39
pages/mine/details2.vue 查看文件

@@ -4,7 +4,7 @@
<!-- 顶部时间 -->
<view class="headboxhead">
<view class="boxhead1">{{date}}</view>
<view class="boxhead2" v-if="jiaoseshow">
<view class="boxhead2" v-if="permissions.commonly3">
<image v-if="status==1" @click="tappick()" src="../../static/images/pike.png" mode=""></image>
<image v-if="status==0" @click="notappick()" src="../../static/images/nopike.png" mode=""></image>
</view>
@@ -21,7 +21,7 @@
inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist" :is-scroll="true">
</u-tabs-swiper>
</view>
<view class="headpade">
<view v-if="permissions.commonly1" class="headpade">
<view class="biaoji" @tap="tagtap()">标记</view>
</view>
</view>
@@ -108,10 +108,10 @@
<view @click="clickcopy()"
style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
</view>
<view @click="Oftenthewrongword()"
<view @click="Oftenthewrongword()" v-if="permissions.commonly4"
style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
</view>
<view v-if="jiaoseshow" @click="Addtheessence()"
<view v-if="permissions.commonly3" @click="Addtheessence()"
style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
</view>
<view @click="clickbofang(dialog.backindex,item)"
@@ -159,7 +159,7 @@
</view>
<view class="fill"></view>
<!-- audioinfo2 -->
<view class="tmmchen" v-if="Menulistisshow==true">
<view class="tmmchen" v-if="permissions.commonly2==true">
<image @click="Receivedetailsabouttab('Receivedetailsabout')" src="../../static/images/allimg.png" mode=""></image>
<view @click="Receivedetailsabouttab('Receivedetailsabout')">更多</view>
<view class="allimg" v-if="Thetapeidisshow">
@@ -168,7 +168,7 @@
</view>
</view>
<view class="tmmchen" @click="Receivetap()" v-if="Menulistisshow==false">
<view class="tmmchen" @click="Receivetap()" v-if="permissions.commonly2==false">
<image @click="Receivedetailsabouttab('Receivedetailsabout')" src="../../static/images/audioinfo2.png" mode=""></image>
<view @click="Receivedetailsabouttab('Receivedetailsabout')">接待信息</view>
</view>
@@ -281,7 +281,7 @@
</view>
<view class="pingfenbox" >
<view :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">销讲总执行率{{totalRate}}%</view>
<view v-if="methodsisshow==true" :class="{ activecllasscet: zhixingcenterindex == 1 }" @click="recordclick(1)">禁忌执行</view>
<view v-if="permissions.commonly6" :class="{ activecllasscet: zhixingcenterindex == 1 }" @click="recordclick(1)">禁忌执行</view>
</view>
<view v-if="zhixingcenterindex == 0" class="cenisbox">
<view style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
@@ -391,7 +391,7 @@
</view>
</view>
<view class="calibration" @click="tocalibration()">校准</view>
<view class="calibration" v-if="permissions.commonly5" @click="tocalibration()">校准</view>
</view>
<view class="zhezhoa" v-if="effective"></view>
@@ -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;
}
</style>
</style>

正在加载...
取消
保存