|
@@ -61,6 +61,8 @@ Page({
|
|
day:0,
|
|
day:0,
|
|
dateIndex:0,
|
|
dateIndex:0,
|
|
isShowVlink:false,//是否显示关注
|
|
isShowVlink:false,//是否显示关注
|
|
|
|
+
|
|
|
|
+ isJr:true,
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
that = this;
|
|
that = this;
|
|
@@ -241,6 +243,9 @@ Page({
|
|
},
|
|
},
|
|
opneWebSocket() {
|
|
opneWebSocket() {
|
|
let data={type:"es_info",recorder_id:app.globalData.userData.id,month:app.globalData.month};
|
|
let data={type:"es_info",recorder_id:app.globalData.userData.id,month:app.globalData.month};
|
|
|
|
+ that.setData({
|
|
|
|
+ // isJr: false
|
|
|
|
+ })
|
|
app.globalData.socketApi.sendData(data, (res) => {
|
|
app.globalData.socketApi.sendData(data, (res) => {
|
|
if (res.code == 1&&res.type=='es_info') {
|
|
if (res.code == 1&&res.type=='es_info') {
|
|
let data = res.result;
|
|
let data = res.result;
|
|
@@ -253,7 +258,8 @@ Page({
|
|
}
|
|
}
|
|
that.getLsit();
|
|
that.getLsit();
|
|
that.setData({
|
|
that.setData({
|
|
- userData: data
|
|
|
|
|
|
+ userData: data,
|
|
|
|
+ // isJr:true
|
|
})
|
|
})
|
|
app.globalData.socketApi.closewebsocket();
|
|
app.globalData.socketApi.closewebsocket();
|
|
}
|
|
}
|
|
@@ -296,6 +302,9 @@ Page({
|
|
},
|
|
},
|
|
openUrl(e) {
|
|
openUrl(e) {
|
|
var url = e.target.dataset.url;
|
|
var url = e.target.dataset.url;
|
|
|
|
+ if(!this.data.isJr){
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
if (url == 'all') {
|
|
if (url == 'all') {
|
|
dd.switchTab({
|
|
dd.switchTab({
|
|
url: '../../statistics/index/index'
|
|
url: '../../statistics/index/index'
|
|
@@ -345,7 +354,7 @@ Page({
|
|
let accedence_time=moment(app.globalData.userData.accedence_time).format('YYYY-MM-DD');
|
|
let accedence_time=moment(app.globalData.userData.accedence_time).format('YYYY-MM-DD');
|
|
// let accedence_time='2023-10-12'
|
|
// let accedence_time='2023-10-12'
|
|
let date = moment().format('YYYY-MM-DD');
|
|
let date = moment().format('YYYY-MM-DD');
|
|
- console.log(accedence_time,date)
|
|
|
|
|
|
+ // console.log(accedence_time,date)
|
|
if (that.data.title||accedence_time==date) {
|
|
if (that.data.title||accedence_time==date) {
|
|
return
|
|
return
|
|
}
|
|
}
|