湖里大屏(BIM中心):mock 模型数据

This commit is contained in:
Jack 2022-08-15 14:24:19 +08:00
parent 4b5895c0bb
commit d0fc9c73d3
3 changed files with 20 additions and 5 deletions

View File

@ -0,0 +1,12 @@
{
"model": {
"total": 30,
"today": 12,
"list": [
{ "devName": "1号塔吊", "devonline": "0", "alarmNum": 2 },
{ "devName": "2号塔吊", "devonline": "0", "alarmNum": 6 },
{ "devName": "3号塔吊", "devonline": "1", "alarmNum": 5 },
{ "devName": "4号塔吊", "devonline": "0", "alarmNum": 3 }
]
}
}

View File

@ -1,9 +1,9 @@
<template> <template>
<Card :title="title"> <Card :title="title">
<CountList <CountList
:allCount="{ value: 22, label: '塔吊总数', img: 'towercrane' }" :allCount="{ value: model.total, label: '塔吊总数', img: 'towercrane' }"
:todayCount="{ value: 65, label: '今日报警总数', img: 'warring' }" :todayCount="{ value: model.today, label: '今日报警总数', img: 'warring' }"
:list="[]" :list="model.list"
/> />
</Card> </Card>
</template> </template>
@ -11,6 +11,7 @@
<script> <script>
import Card from '../components/Card.vue' import Card from '../components/Card.vue'
import CountList from '../components/CountList.vue' import CountList from '../components/CountList.vue'
import { model } from '@/assets/json/jlw/bim.json'
export default { export default {
components: { Card, CountList }, components: { Card, CountList },
props: { props: {
@ -20,7 +21,9 @@ export default {
} }
}, },
data() { data() {
return {} return {
model
}
} }
} }
</script> </script>

View File

@ -3,7 +3,7 @@
<CountList <CountList
type="persons" type="persons"
:allCount="{ value: 22, label: '人脸闸机总数', img: 'facegate' }" :allCount="{ value: 22, label: '人脸闸机总数', img: 'facegate' }"
:todayCount="{ value: 65, label: '今日报警总数', img: 'inout' }" :todayCount="{ value: 65, label: '今日进场人数', img: 'inout' }"
:list="[]" :list="[]"
/> />
</Card> </Card>