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>
|
<template>
|
||||||
<div class="box-1" :class="homeStore.amplify?'':'coll-box'">
|
<div class="box-1" :class="homeStore.amplify?'':'coll-box'">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header__left" >
|
<div class="header__left" @click="handlePiaoPop">
|
||||||
<img src="@/assets/images/ticket.png" />
|
<img src="@/assets/images/ticket.png" />
|
||||||
<div
|
<div
|
||||||
class="header__left-item"
|
class="header__left-item"
|
||||||
v-for="(item, index) in scenicStore.scenicSpotData.data"
|
v-for="(item, index) in scenicStore.scenicSpotData.data"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="index==0?handlePop2:handlePiaoPop"
|
|
||||||
>
|
>
|
||||||
<div class="label">{{ item.name }}</div>
|
<div class="label">{{ item.name }}</div>
|
||||||
<countup :end-val="item.value" />
|
<countup :end-val="item.value" />
|
||||||
@@ -119,25 +118,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</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>
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
<video-dialog v-model="videoShow" :src="src" :cameraIndexCode="cameraIndexCode" />
|
<video-dialog v-model="videoShow" :src="src" :cameraIndexCode="cameraIndexCode" />
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -151,7 +133,7 @@
|
|||||||
import { useScenicStore } from '@/stores/scenic'
|
import { useScenicStore } from '@/stores/scenic'
|
||||||
|
|
||||||
import { useMap } from '@/hooks/map'
|
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'
|
import pubSub from 'pubsub-js'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const scenicStore = useScenicStore()
|
const scenicStore = useScenicStore()
|
||||||
@@ -192,21 +174,10 @@ import pubSub from 'pubsub-js'
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
let dialogTableVisible = ref(false)
|
let dialogTableVisible = ref(false)
|
||||||
let dialogTableVisible2 = ref(false)
|
|
||||||
let gridData = ref([])
|
let gridData = ref([])
|
||||||
let gridTitle = 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()=>{
|
const handlePiaoPop = async()=>{
|
||||||
console.log(66666666666)
|
console.log(777777)
|
||||||
return false
|
|
||||||
dialogTableVisible.value = true
|
dialogTableVisible.value = true
|
||||||
let res = await getSpotTicketDate({scenicSpotId:props.scenicSpotId})
|
let res = await getSpotTicketDate({scenicSpotId:props.scenicSpotId})
|
||||||
gridData.value = res.data
|
gridData.value = res.data
|
||||||
|
|||||||
@@ -561,7 +561,7 @@
|
|||||||
flex:1 !important;
|
flex:1 !important;
|
||||||
}
|
}
|
||||||
.box-1 {
|
.box-1 {
|
||||||
margin-top: vh(120);
|
// margin-top: vh(120);
|
||||||
width: vw(900);
|
width: vw(900);
|
||||||
height: vh(950);
|
height: vh(950);
|
||||||
padding: vw(10);
|
padding: vw(10);
|
||||||
|
|||||||
Reference in New Issue
Block a user