|
@@ -7,18 +7,13 @@
|
|
title="基础信息"
|
|
title="基础信息"
|
|
@click="openBasicModal"
|
|
@click="openBasicModal"
|
|
>
|
|
>
|
|
- <BasicInfo :qy="qy" @showTc="showTc" />
|
|
|
|
|
|
+ <BasicInfo :qy="qy" @showTc="showTc" @UnitType="UnitType" />
|
|
</border-panel>
|
|
</border-panel>
|
|
<border-panel height="346px" style="margin-bottom: 6px" title="隐患排查">
|
|
<border-panel height="346px" style="margin-bottom: 6px" title="隐患排查">
|
|
<HiddenDangerDetection :qy="qy" />
|
|
<HiddenDangerDetection :qy="qy" />
|
|
</border-panel>
|
|
</border-panel>
|
|
- <border-panel
|
|
|
|
- height="296px"
|
|
|
|
- header-cursor="pointer"
|
|
|
|
- title="自主管理"
|
|
|
|
- @click-header="openAutoManageModal"
|
|
|
|
- >
|
|
|
|
- <AutonomousManagement :qy="qy" />
|
|
|
|
|
|
+ <border-panel height="296px" header-cursor="pointer" title="自主管理" @click-header="openAutoManageModal">
|
|
|
|
+ <AutonomousManagement @click-item="onClickAutonomousManagementItemHandler" :qy="qy" />
|
|
</border-panel>
|
|
</border-panel>
|
|
</div>
|
|
</div>
|
|
<div class="display: flex;">
|
|
<div class="display: flex;">
|
|
@@ -72,18 +67,19 @@
|
|
</border-panel>
|
|
</border-panel>
|
|
</div>
|
|
</div>
|
|
<basic-modal top="120px" ref="basicInfoModal" name="基础信息">
|
|
<basic-modal top="120px" ref="basicInfoModal" name="基础信息">
|
|
- <BasicInfoModalContent :qy="qy" :typeName="typeName" :fxdjs="fxdjs" />
|
|
|
|
|
|
+ <BasicInfoModalContent :qy="qy" :typeName="typeName" :fxdjs="fxdjs" :titleName="titleName" />
|
|
</basic-modal>
|
|
</basic-modal>
|
|
-
|
|
|
|
- <basic-modal top="120px" ref="autoManageModal" name="自主管理">
|
|
|
|
- <zzglModul :qy="qy" />
|
|
|
|
|
|
+ <basic-modal top="120px" ref="autoManageModal" name="自主管理">
|
|
|
|
+ <zzglModul ref="zzglModul"
|
|
|
|
+ :queryParams="queryParams"
|
|
|
|
+ :qy="qy" />
|
|
</basic-modal>
|
|
</basic-modal>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import BasicInfo from "./components/BasicInfo.vue";
|
|
import BasicInfo from "./components/BasicInfo.vue";
|
|
import AlarmingSituationDynamics from "./components/AlarmingSituationDynamics/index.vue";
|
|
import AlarmingSituationDynamics from "./components/AlarmingSituationDynamics/index.vue";
|
|
-import AutonomousManagement from "./components/AutonomousManagement.vue";
|
|
|
|
|
|
+import AutonomousManagement from "./components/AutonomousManagement/index.vue";
|
|
import HiddenDangerDetection from "./components/HiddenDangerDetection/index.vue";
|
|
import HiddenDangerDetection from "./components/HiddenDangerDetection/index.vue";
|
|
import MapCharts from "./components/MapCharts.vue";
|
|
import MapCharts from "./components/MapCharts.vue";
|
|
import RiskWarning from "./components/RiskWarning.vue";
|
|
import RiskWarning from "./components/RiskWarning.vue";
|
|
@@ -126,8 +122,14 @@ export default {
|
|
fireIndexType: 0,
|
|
fireIndexType: 0,
|
|
heatMap: [],
|
|
heatMap: [],
|
|
typeName: "",
|
|
typeName: "",
|
|
- fxdjs:''
|
|
|
|
- };
|
|
|
|
|
|
+ fxdjs:'',
|
|
|
|
+ titleName:'',
|
|
|
|
+ queryParams: {
|
|
|
|
+ glxs: "", //管理形式
|
|
|
|
+ wbxs: "", //维保形式
|
|
|
|
+ dxjj: "" //大修基金
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
qy() {
|
|
qy() {
|
|
@@ -137,6 +139,26 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ onClickAutonomousManagementItemHandler(data) {
|
|
|
|
+ const temp = {
|
|
|
|
+ glxs: "",
|
|
|
|
+ wbxs: "",
|
|
|
|
+ dxjj: "",
|
|
|
|
+ }
|
|
|
|
+ switch (data.index) {
|
|
|
|
+ case 0:
|
|
|
|
+ temp.glxs = data.value
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ temp.wbxs = data.value
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ temp.dxjj = data.value
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ this.queryParams = temp
|
|
|
|
+ this.showModal("autoManageModal")
|
|
|
|
+ },
|
|
showLabel(params) {
|
|
showLabel(params) {
|
|
return createMapChartWindowInfo(
|
|
return createMapChartWindowInfo(
|
|
{
|
|
{
|
|
@@ -161,20 +183,23 @@ export default {
|
|
openBasicModal() {
|
|
openBasicModal() {
|
|
this.showModal("basicInfoModal");
|
|
this.showModal("basicInfoModal");
|
|
},
|
|
},
|
|
|
|
+ UnitType(name){
|
|
|
|
+ console.log('000000000',name);
|
|
|
|
+ this.titleName=name
|
|
|
|
+
|
|
|
|
+ },
|
|
// 风险预警
|
|
// 风险预警
|
|
- getList() {
|
|
|
|
- totaldata({ ...this.params, qy: this.qy === "重庆市" ? "" : this.qy })
|
|
|
|
- .then((res) => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- this.riskList = res.data.rows;
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- .catch((error) => {
|
|
|
|
- this.$message({
|
|
|
|
- message: res.data.msg,
|
|
|
|
- type: "error",
|
|
|
|
- });
|
|
|
|
|
|
+ getList(){
|
|
|
|
+ totaldata({...this.params,qy:this.qy==="重庆市"?"":this.qy}).then(res=>{
|
|
|
|
+ if(res.data.code==200){
|
|
|
|
+ this.riskList=res.data.rows
|
|
|
|
+ }
|
|
|
|
+ }).catch(error=>{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.data.msg,
|
|
|
|
+ type: "error"
|
|
});
|
|
});
|
|
|
|
+ })
|
|
},
|
|
},
|
|
selectItemHandler(idx) {
|
|
selectItemHandler(idx) {
|
|
this.fireIndexType = idx;
|
|
this.fireIndexType = idx;
|