111
This commit is contained in:
BIN
dist5.30.zip
Normal file
BIN
dist5.30.zip
Normal file
Binary file not shown.
@@ -1,13 +1,12 @@
|
||||
<template>
|
||||
<div class="box-1" :class="homeStore.amplify?'':'coll-box'">
|
||||
<div class="header">
|
||||
<div class="header__left" >
|
||||
<div class="header__left" @click="handlePiaoPop">
|
||||
<img src="@/assets/images/ticket.png" />
|
||||
<div
|
||||
class="header__left-item"
|
||||
v-for="(item, index) in scenicStore.scenicSpotData.data"
|
||||
:key="index"
|
||||
@click="index==0?handlePop2:handlePiaoPop"
|
||||
>
|
||||
<div class="label">{{ item.name }}</div>
|
||||
<countup :end-val="item.value" />
|
||||
@@ -119,24 +118,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog :title="'徒步客流统计'" center v-model="dialogTableVisible2">
|
||||
<div class="bom-box">
|
||||
<div class="table">
|
||||
<div class="header-title">{{gridTitle}}</div>
|
||||
<div class="header">
|
||||
<div>订票时间</div>
|
||||
<div>订票数量</div>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="item" v-for="(item, index) in gridData" :key="index">
|
||||
<div>{{ item.time }}</div>
|
||||
<div>{{ item.value }}</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
<video-dialog v-model="videoShow" :src="src" :cameraIndexCode="cameraIndexCode" />
|
||||
|
||||
@@ -151,7 +133,7 @@
|
||||
import { useScenicStore } from '@/stores/scenic'
|
||||
|
||||
import { useMap } from '@/hooks/map'
|
||||
import {getPreviewUrlApi,getSpotTicketDate,getSpotPassengerFlow} from "@/api/home.js";
|
||||
import {getPreviewUrlApi,getSpotTicketDate} from "@/api/home.js";
|
||||
import pubSub from 'pubsub-js'
|
||||
const router = useRouter()
|
||||
const scenicStore = useScenicStore()
|
||||
@@ -192,21 +174,10 @@ import pubSub from 'pubsub-js'
|
||||
}
|
||||
});
|
||||
let dialogTableVisible = ref(false)
|
||||
let dialogTableVisible2 = ref(false)
|
||||
let gridData = ref([])
|
||||
let gridTitle = ref('')
|
||||
let girdAll = ref([])
|
||||
const handlePop2 = async()=>{
|
||||
console.log(5555555555)
|
||||
return false
|
||||
dialogTableVisible2.value = true
|
||||
let res = await getSpotPassengerFlow({scenicSpotId:props.scenicSpotId})
|
||||
girdAll.value = res.data
|
||||
console.log(res,'res')
|
||||
}
|
||||
const handlePiaoPop = async()=>{
|
||||
console.log(66666666666)
|
||||
return false
|
||||
console.log(777777)
|
||||
dialogTableVisible.value = true
|
||||
let res = await getSpotTicketDate({scenicSpotId:props.scenicSpotId})
|
||||
gridData.value = res.data
|
||||
|
||||
@@ -561,7 +561,7 @@
|
||||
flex:1 !important;
|
||||
}
|
||||
.box-1 {
|
||||
margin-top: vh(120);
|
||||
// margin-top: vh(120);
|
||||
width: vw(900);
|
||||
height: vh(950);
|
||||
padding: vw(10);
|
||||
|
||||
Reference in New Issue
Block a user