|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div style="padding: 0px 35px; display: flex; justify-content: space-between">
|
|
|
<div>
|
|
|
- <border-panel height="301px" style="margin-bottom: 2px" title="关键指标" @click-header="openBasicModal(1)">
|
|
|
- <FireIndex />
|
|
|
+ <border-panel height="301px" style="margin-bottom: 2px" title="关键指标" header-cursor="pointer" @click-header="openBasicModal(1)">
|
|
|
+ <FireIndex :type="fireIndexType" :qx="qx" @open="openBasicModal(1)" />
|
|
|
<template #ext-header>
|
|
|
- <button-block :items="['月', '年']" @select-item="selectItemHandler" />
|
|
|
+ <button-block :items="['月', '年']" @select-item="selectFireIndexItemHandler" />
|
|
|
</template>
|
|
|
</border-panel>
|
|
|
<border-panel height="337px" style="margin-bottom: 2px" title="起火原因" @click-header="openBasicModal(2)">
|
|
@@ -49,6 +49,7 @@
|
|
|
<basic-modal top="120px" ref="HistoryModal" name="历史火灾查询">
|
|
|
<hzfbCont :qy="qx" />
|
|
|
</basic-modal>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -88,7 +89,8 @@
|
|
|
valNum: 1,
|
|
|
qx: '重庆市',
|
|
|
type: 1,
|
|
|
- heatMap: []
|
|
|
+ heatMap: [],
|
|
|
+ fireIndexType: 0
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -98,7 +100,7 @@
|
|
|
callback(val) {
|
|
|
this.valNum = val
|
|
|
},
|
|
|
- selectItemHandler(idx) {
|
|
|
+ selectFireIndexItemHandler(idx) {
|
|
|
this.fireIndexType = idx
|
|
|
},
|
|
|
showLabel(params) {
|
|
@@ -139,4 +141,4 @@
|
|
|
.center-box {
|
|
|
// margin-top: 602px;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|