运检食堂

This commit is contained in:
zzyuan 2025-06-10 17:22:18 +08:00
parent f40cb2db27
commit 576ac74d8d
3 changed files with 40 additions and 15 deletions

View File

@ -93,7 +93,7 @@
<view class="box-title">客流统计</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">
<image src="/static/images/index/yjCanteen.png" style="width: 50px;height: 50px;" mode="aspectFit"></image>
</view>

View File

@ -52,7 +52,7 @@
<view style="width: 92%;margin:10px auto;padding: 10px;font-size: 28rpx;height: 45vh;">
<qiun-data-charts
type="line"
:opts="opts"
:opts="opts" ontouch
:chartData="chartData"
/>
</view>
@ -85,7 +85,14 @@ export default {
"39",
"13",
"9",
"9"
"9",
"101",
"19",
"23",
"20",
"20",
"20",
"20"
],
"enterList": [
"0",
@ -98,7 +105,14 @@ export default {
"110",
"193",
"218",
"218"
"218",
"432",
"471",
"491",
"493",
"493",
"493",
"493"
],
"exitList": [
"0",
@ -111,26 +125,36 @@ export default {
"71",
"180",
"209",
"209"
"209",
"331",
"452",
"468",
"473",
"473",
"473",
"473"
],
"peakNum": "39"
"peakNum": "101"
}
],
"updateTime": "2025-06-10 10:40:05",
"presentNum": 200,
"enters": 218,
"exits": 209,
"capacity": 400
"updateTime": "2025-06-10 17:05:19",
"presentNum": 20,
"enters": 493,
"exits": 473,
"capacity": 300
},
personRate:0,
chartData:{},
opts: {
color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
padding: [15,10,0,15],
padding: [10,0,0,0],
enableScroll: false,
legend: {},
enableScroll: true,
xAxis: {
disableGrid: true
disableGrid: true,
itemCount: 8,
},
yAxis: {
gridType: "dash",
@ -153,6 +177,7 @@ export default {
this.dateList = this.getRecentWeekDates()
},
onReady() {
// this.initChart();
this.queryNowPresentNum();
},
methods: {

View File

@ -75,7 +75,7 @@ export default {
console.log(index)
if (index === 0) {
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' });
}else{
this.$router.push({ path: '/pages/index' })
@ -90,7 +90,7 @@ export default {
console.log(index)
if (index === 0) {
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' });
}else{
this.$router.push({ path: '/pages/index' })