运检食堂
This commit is contained in:
parent
f40cb2db27
commit
576ac74d8d
|
|
@ -93,7 +93,7 @@
|
||||||
<view class="box-title">客流统计</view>
|
<view class="box-title">客流统计</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="handle-box-item" @click="goToYj" style="background: #F4FFFF;" v-if="userInfo.orgId=='999'||userInfo.custNum.indexOf('@yjst')>-1">
|
<view class="handle-box-item" @click="goToYj" style="background: #F4FFFF;" v-if="userInfo.orgId=='456365640698040320'||userInfo.custNum.indexOf('@yjst')>-1">
|
||||||
<view class="image-box">
|
<view class="image-box">
|
||||||
<image src="/static/images/index/yjCanteen.png" style="width: 50px;height: 50px;" mode="aspectFit"></image>
|
<image src="/static/images/index/yjCanteen.png" style="width: 50px;height: 50px;" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
<view style="width: 92%;margin:10px auto;padding: 10px;font-size: 28rpx;height: 45vh;">
|
<view style="width: 92%;margin:10px auto;padding: 10px;font-size: 28rpx;height: 45vh;">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="line"
|
type="line"
|
||||||
:opts="opts"
|
:opts="opts" ontouch
|
||||||
:chartData="chartData"
|
:chartData="chartData"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -85,7 +85,14 @@ export default {
|
||||||
"39",
|
"39",
|
||||||
"13",
|
"13",
|
||||||
"9",
|
"9",
|
||||||
"9"
|
"9",
|
||||||
|
"101",
|
||||||
|
"19",
|
||||||
|
"23",
|
||||||
|
"20",
|
||||||
|
"20",
|
||||||
|
"20",
|
||||||
|
"20"
|
||||||
],
|
],
|
||||||
"enterList": [
|
"enterList": [
|
||||||
"0",
|
"0",
|
||||||
|
|
@ -98,7 +105,14 @@ export default {
|
||||||
"110",
|
"110",
|
||||||
"193",
|
"193",
|
||||||
"218",
|
"218",
|
||||||
"218"
|
"218",
|
||||||
|
"432",
|
||||||
|
"471",
|
||||||
|
"491",
|
||||||
|
"493",
|
||||||
|
"493",
|
||||||
|
"493",
|
||||||
|
"493"
|
||||||
],
|
],
|
||||||
"exitList": [
|
"exitList": [
|
||||||
"0",
|
"0",
|
||||||
|
|
@ -111,26 +125,36 @@ export default {
|
||||||
"71",
|
"71",
|
||||||
"180",
|
"180",
|
||||||
"209",
|
"209",
|
||||||
"209"
|
"209",
|
||||||
|
"331",
|
||||||
|
"452",
|
||||||
|
"468",
|
||||||
|
"473",
|
||||||
|
"473",
|
||||||
|
"473",
|
||||||
|
"473"
|
||||||
],
|
],
|
||||||
"peakNum": "39"
|
"peakNum": "101"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"updateTime": "2025-06-10 10:40:05",
|
"updateTime": "2025-06-10 17:05:19",
|
||||||
"presentNum": 200,
|
"presentNum": 20,
|
||||||
"enters": 218,
|
"enters": 493,
|
||||||
"exits": 209,
|
"exits": 473,
|
||||||
"capacity": 400
|
"capacity": 300
|
||||||
},
|
},
|
||||||
personRate:0,
|
personRate:0,
|
||||||
chartData:{},
|
chartData:{},
|
||||||
opts: {
|
opts: {
|
||||||
color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
|
color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
|
||||||
padding: [15,10,0,15],
|
padding: [10,0,0,0],
|
||||||
enableScroll: false,
|
enableScroll: false,
|
||||||
legend: {},
|
legend: {},
|
||||||
|
enableScroll: true,
|
||||||
|
|
||||||
xAxis: {
|
xAxis: {
|
||||||
disableGrid: true
|
disableGrid: true,
|
||||||
|
itemCount: 8,
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
gridType: "dash",
|
gridType: "dash",
|
||||||
|
|
@ -153,6 +177,7 @@ export default {
|
||||||
this.dateList = this.getRecentWeekDates()
|
this.dateList = this.getRecentWeekDates()
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
// this.initChart();
|
||||||
this.queryNowPresentNum();
|
this.queryNowPresentNum();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ export default {
|
||||||
console.log(index)
|
console.log(index)
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
console.log(this.userInfo.custNum.indexOf("@yjst_sbd"))
|
console.log(this.userInfo.custNum.indexOf("@yjst_sbd"))
|
||||||
if(this.userInfo.custNum.indexOf("@yjst_yj")>-1||(this.userInfo.orgId=='999'&&this.userInfo.custNum.indexOf("@yjst_sbd")==-1)){
|
if(this.userInfo.custNum.indexOf("@yjst_yj")>-1||(this.userInfo.orgId=='456365640698040320'&&this.userInfo.custNum.indexOf("@yjst_sbd")==-1)){
|
||||||
uni.navigateTo({ url: '/pages/yjCanteen' });
|
uni.navigateTo({ url: '/pages/yjCanteen' });
|
||||||
}else{
|
}else{
|
||||||
this.$router.push({ path: '/pages/index' })
|
this.$router.push({ path: '/pages/index' })
|
||||||
|
|
@ -90,7 +90,7 @@ export default {
|
||||||
console.log(index)
|
console.log(index)
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
console.log(this.userInfo.custNum.indexOf("yjst_sbd"))
|
console.log(this.userInfo.custNum.indexOf("yjst_sbd"))
|
||||||
if(this.userInfo.custNum.indexOf("@yjst_yj")>-1||(this.userInfo.orgId=='999'&&this.userInfo.custNum.indexOf("@yjst_sbd")==-1)){
|
if(this.userInfo.custNum.indexOf("@yjst_yj")>-1||(this.userInfo.orgId=='456365640698040320'&&this.userInfo.custNum.indexOf("@yjst_sbd")==-1)){
|
||||||
uni.navigateTo({ url: '/pages/yjCanteen' });
|
uni.navigateTo({ url: '/pages/yjCanteen' });
|
||||||
}else{
|
}else{
|
||||||
this.$router.push({ path: '/pages/index' })
|
this.$router.push({ path: '/pages/index' })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue