Просмотр исходного кода

fix: 火灾指标被覆盖的问题

TwoKe945 1 год назад
Родитель
Сommit
55a3fd025c

+ 2 - 0
app/src/views/FireCondition/components/FireIndex/index.vue

@@ -151,6 +151,8 @@ export default {
     type: {
       handler(idx){
         this.modeType = idx
+        this.getFrieList()
+        console.log("--------------", idx)
       },
       immediate: true
     },

+ 8 - 6
app/src/views/FireCondition/index.vue

@@ -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>