Răsfoiți Sursa

内蒙山洪运维系统-旗县市独立运维工作

dylan 2 ani în urmă
părinte
comite
3cbe374279

+ 32 - 0
src/api/baseinfo/region.js

@@ -38,6 +38,22 @@ export const getTree = () => {
     })
 }
 
+export const getOriginalSubTree = (adcd) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/original/tree/' + adcd,
+        method: 'get',
+    })
+}
+
+
+export const getOriginalTree = () => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/original/tree',
+        method: 'get',
+    })
+}
+
+
 export const getDetail = (code) => {
     return request({
         url: '/api/galaxy-business/baseinfo/region/detail',
@@ -74,3 +90,19 @@ export const importSubmit = (row) => {
     })
 }
 
+export const excludeRegion = (data) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/exclude',
+        method: 'post',
+        data: data
+    })
+}
+
+
+export const resetRegion = (data) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/reset',
+        method: 'post',
+        data: data
+    })
+}

+ 2 - 2
src/config/website.js

@@ -49,8 +49,8 @@ export default {
     // 报表设计器地址(cloud端口为8108,boot端口为80)
     reportUrl: 'http://localhost:8000/ureport',
     //文件存储服务器地址,末尾必须/
-    //ossServer: 'http://172.9.0.165:80/oss/galaxy/',
-    ossServer: 'https://nmwx.dahengsi.com:20001/oss/galaxy/',
+    ossServer: 'http://172.9.0.165:80/oss/galaxy/',
+    // ossServer: 'https://nmwx.dahengsi.com:20001/oss/galaxy/',
     //ossServer: 'http://111.204.228.227:20002/oss/galaxy/',
     //文件预览服务器地址
     kkfileviewServer: 'http://localhost:8012',

+ 104 - 6
src/views/baseinfo/orgdept.vue

@@ -17,16 +17,32 @@
                         @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
                         @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"
                         @before-open="beforeOpen" @select-change="selectChange">
+                        <template slot-scope="{ row, index }" slot="menu">
+                            <el-button type="text" size="small" @click="excludeRegion(row)" icon="el-icon-view">排除行政区划
+                            </el-button>
+
+                            <el-button type="text" size="small" @click="resetRegion(row)" icon="el-icon-view">重置行政区划
+                            </el-button>
+                        </template>
                     </avue-crud>
                 </basic-container>
             </el-col>
         </el-row>
+        <el-dialog title="排除行政机构" :visible.sync="excludeRegionDialog" width="60%" height="60%" :close-on-click-modal="false"
+            append-to-body v-if="excludeRegionDialog">
+            <avue-form ref="excludeRegionRef" :option="excludeRegionOption" v-model="excludeRegionForm"
+                @submit="addCheckOrder" />
+            <span slot="footer" class="dialog-footer">
+                <el-button @click="excludeRegionDialog = false" size="small">取 消</el-button>
+                <el-button type="primary" @click="excludeRegionSubmit" size="small">提 交</el-button>
+            </span>
+        </el-dialog>
     </div>
 </template>
 
 <script>
 import { getPage, getDetail, add, update, remove } from "@/api/baseinfo/org.js";
-
+import { excludeRegion, resetRegion } from "@/api/baseinfo/region.js";
 export default {
     components: {
 
@@ -36,6 +52,42 @@ export default {
             id: "",
             editForm: {},
             editDialog: false,
+            excludeRegionDialog: false,
+            excludeRegionTreeData: [],
+            excludeRegionForm: {
+                deptId: 0,
+                adcd: '',
+            },
+            excludeRegionOption: {
+                labelWidth: 180,
+                emptyBtn: false,
+                submitBtn: false,
+                column: [
+                    {
+                        label: "运维行政区划",
+                        prop: "adcd",
+                        span: 24,
+                        editDisplay: false,
+                        accordion: true,
+                        type: "tree",
+                        //dictData: [],
+                        //dicUrl: `./api/galaxy-business/baseinfo/region/original/tree/` + this.adCode,
+                        defaultExpandAll: true,
+                        props: {
+                            label: "title",
+                            value: "value",
+                        },
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择运维的行政区划",
+                                trigger: "click",
+                            },
+                        ],
+
+                    },
+                ]
+            },
             form: {},
             selectionList: [],
             query: {},
@@ -64,7 +116,7 @@ export default {
                 viewTitle: "运维人员信息",
                 editBtn: true,
                 delBtn: true,
-                menuWidth: 220,
+                menuWidth: 300,
                 dialogType: "drawer",
                 dialogClickModal: false,
                 columnBtn: false,
@@ -89,11 +141,12 @@ export default {
                         span: 24,
                         hide: true,
                         editDisplay: false,
-                        type: "select",
-                        dicUrl: `./api/galaxy-business/baseinfo/region/children/list`,
+                        accordion: true,
+                        type: "tree",
+                        dicUrl: `./api/galaxy-business/baseinfo/region/original/tree`,
                         props: {
-                            label: "adnm",
-                            value: "adcd",
+                            label: "title",
+                            value: "value",
                         },
                         rules: [
                             {
@@ -143,6 +196,51 @@ export default {
     created() {
     },
     methods: {
+        excludeRegion(row) {
+            this.excludeRegionForm['deptId'] = row.id;
+            let dicUrl = `./api/galaxy-business/baseinfo/region/original/tree/` + row.adcd;
+            let column = this.findObject(this.excludeRegionOption.column, "adcd")
+            column.value = ''
+            column.dicUrl = dicUrl
+            column.display = true;
+            //this.excludeRegionTreeData = [];
+            // getOriginalSubTree(row.adcd).then(res => {
+            //     console.log(JSON.stringify(res.data))
+            //     this.excludeRegionTreeData = res.data.data.map(item => {
+            //         return {
+            //             ...item,
+            //             leaf: !item.hasChildren
+            //         }
+            //     })
+            //     let column = this.findObject(this.excludeRegionOption.column, "adcd")
+            //     column.dictData = this.excludeRegionTreeData
+            //     column.display = true;
+
+            // });
+            this.excludeRegionDialog = true;
+        },
+        resetRegion(row) {
+            resetRegion({ 'adcd': row.adcd, 'deptId': row.id }).then(res => {
+                console.log(JSON.stringify(res))
+                if (res.data.success) {
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    });
+                }
+            });
+        },
+        excludeRegionSubmit() {
+            excludeRegion(this.excludeRegionForm).then(res => {
+                console.log(JSON.stringify(res))
+                this.excludeRegionDialog = false;
+                this.$message({
+                    type: "success",
+                    message: "操作成功!",
+                });
+
+            });
+        },
         rowSave(row, done, loading) {
             add(row).then(
                 () => {

+ 1 - 1
src/views/baseinfo/rtu/index.vue

@@ -69,7 +69,7 @@
 
 <script>
 import { getPage, getDetail, add, update, remove } from "@/api/baseinfo/rtu.js";
-import { getTree } from "@/api/baseinfo/region";
+import { getTree } from "@/api/baseinfo/region.js";
 import { mapGetters } from "vuex";
 import rtuImportHistoryView from './rtuimport.vue';
 import rtuImportView from './rtuImportProcess.vue';

+ 1 - 1
src/views/business/data/groundDataCache.vue

@@ -44,7 +44,7 @@
 
 <script>
 import { getPage, } from "@/api/data/dataGround.js";
-import { getTree } from "@/api/baseinfo/region";
+import { getTree } from "@/api/baseinfo/region.js";
 export default {
     components: {
 

+ 1 - 2
src/views/business/data/rainDataCache.vue

@@ -44,8 +44,7 @@
 
 <script>
 import { getPage, } from "@/api/data/dataRain.js";
-// import { getTree } from "@/api/business/manage/manage.js";
-import { getTree } from "@/api/baseinfo/region";
+import { getTree } from "@/api/baseinfo/region.js";
 export default {
     components: {
 

+ 1 - 1
src/views/business/data/riverDataCache.vue

@@ -44,7 +44,7 @@
 
 <script>
 import { getPage, } from "@/api/data/dataRiver.js";
-import { getTree } from "@/api/baseinfo/region";
+import { getTree } from "@/api/baseinfo/region.js";
 export default {
     components: {
 

+ 1 - 2
src/views/business/data/rsvrDataCache.vue

@@ -44,8 +44,7 @@
 
 <script>
 import { getPage, } from "@/api/data/dataRsvr.js";
-// import { getTree } from "@/api/business/manage/manage.js";
-import { getTree } from "@/api/baseinfo/region";
+import { getTree } from "@/api/baseinfo/region.js";
 export default {
     components: {
 

+ 9 - 7
src/views/business/inspection/index.vue

@@ -12,14 +12,16 @@
             <el-col :span="4">
                 <div class="box">
                     <el-scrollbar>
-                        <avue-tree :option="treeOption" :data="treeData" @node-click="nodeClick">
-                            <span class="el-tree-node__label" slot-scope="{ node, data }">
-                                <span>
-                                    <i class="el-icon-office-building"></i>
-                                    {{ (node || {}).label }}
+                        <basic-container>
+                            <avue-tree :option="treeOption" :data="treeData" @node-click="nodeClick">
+                                <span class="el-tree-node__label" slot-scope="{ node, data }">
+                                    <span>
+                                        <i class="el-icon-office-building"></i>
+                                        {{ (node || {}).label }}
+                                    </span>
                                 </span>
-                            </span>
-                        </avue-tree>
+                            </avue-tree>
+                        </basic-container>
                     </el-scrollbar>
                 </div>
             </el-col>

+ 25 - 5
src/views/business/inspection/inspectionreportlist.vue

@@ -16,10 +16,10 @@
                         @row-save="rowSave" @search-change="searchChange" @search-reset="searchReset"
                         @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
                         @refresh-change="refreshChange" @on-load="onLoad">
-                        <template slot-scope="{ row, index }" slot="menu">
-                            <el-button type="text" size="small" @click="openReportDetail(row)">查看详情
+                        <!-- <template slot-scope="{ row, index }" slot="menu">
+                            <el-button type="text" size="small" @click="openReportDetail(row)" icon="el-icon-view">查看详情
                             </el-button>
-                        </template>
+                        </template> -->
                     </avue-crud>
                 </basic-container>
             </el-col>
@@ -105,7 +105,8 @@ export default {
                 editBtn: false,
                 delBtn: false,
                 viewBtn: false,
-                menuWidth: 200,
+                menuWidth: 160,
+                menu: false,
                 dialogType: "drawer",
                 dialogClickModal: false,
                 columnBtn: false,
@@ -135,7 +136,6 @@ export default {
                         label: "填报人",
                         prop: "servicePersonName",
                         span: 24,
-                        hide: true,
                     },
                     {
                         label: "填报时间",
@@ -143,6 +143,26 @@ export default {
                         span: 24,
 
                     },
+                    {
+                        label: "行政区",
+                        prop: "adCity",
+                        span: 24,
+                        html: true,
+                        formatter: (val) => {
+                            if (val.adCity) {
+                                return '<b>' + val.adCity + '</b>/' + '<b>' + val.adDist + '</b>'
+                            } else {
+                                return '<b></b>'
+                            }
+                        }
+                    },
+                    {
+                        label: "运维单位",
+                        prop: "manageCompany",
+                        span: 24,
+
+                    },
+
                 ],
             },
             data: [],

+ 14 - 11
src/views/business/manage/index.vue

@@ -12,14 +12,16 @@
             <el-col :span="4">
                 <div class="box">
                     <el-scrollbar>
-                        <avue-tree :option="treeOption" :data="treeData" @node-click="nodeClick">
-                            <span class="el-tree-node__label" slot-scope="{ node, data }">
-                                <span>
-                                    <i class="el-icon-office-building"></i>
-                                    {{ (node || {}).label }}
+                        <basic-container>
+                            <avue-tree :option="treeOption" :data="treeData" @node-click="nodeClick">
+                                <span class="el-tree-node__label" slot-scope="{ node, data }">
+                                    <span>
+                                        <i class="el-icon-office-building"></i>
+                                        {{ (node || {}).label }}
+                                    </span>
                                 </span>
-                            </span>
-                        </avue-tree>
+                            </avue-tree>
+                        </basic-container>
                     </el-scrollbar>
                 </div>
             </el-col>
@@ -366,13 +368,13 @@ export default {
                         span: 6,
                         width: 120,
                         search: true,
-                        searchSpan: 5,
+                        searchSpan: 8,
                     },
                     {
                         label: "测站名称",
                         prop: "rtuName",
                         search: true,
-                        searchSpan: 5,
+                        searchSpan: 8,
                         span: 6,
                         width: 120,
                         // html: true,
@@ -455,7 +457,7 @@ export default {
                         editDisplay: false,
                         addDisplay: false,
                         search: true,
-                        searchSpan: 5,
+                        searchSpan: 8,
                         props: {
                             label: 'name',
                             value: 'code'
@@ -484,7 +486,7 @@ export default {
                         editDisplay: false,
                         addDisplay: false,
                         search: true,
-                        searchSpan: 5,
+                        searchSpan: 8,
                         props: {
                             label: 'name',
                             value: 'code'
@@ -798,6 +800,7 @@ export default {
         },
         nodeClick(data) {
             this.treeCode = data.id;
+            this.excludeCode = data.exclude;
             this.adcdName = data.title;
             this.treeParentCode = data.parentId;
             this.query = {};

+ 1 - 0
src/views/business/order/uncomfirecheckorderlist.vue

@@ -171,6 +171,7 @@ export default {
         onLoad(page, params = {}) {
             this.loading = true;
             params['orderConfirm'] = 0;
+            params['orderClose'] = 0;
             getPage(
                 page.currentPage,
                 page.pageSize,

+ 5 - 5
src/views/business/warning/warninglist.vue

@@ -149,11 +149,11 @@ export default {
                         // },
                         // dicUrl: '/api/galaxy-system/dict-biz/dictionary?code=warn_kinds',
                     },
-                    {
-                        label: "异常信息",
-                        prop: "warningDesc",
-                        span: 12,
-                    },
+                    // {
+                    //     label: "异常信息",
+                    //     prop: "warningDesc",
+                    //     span: 12,
+                    // },
                     {
                         label: "发生时间",
                         prop: "warningHappenTime",

+ 175 - 58
src/views/wel/index.vue

@@ -22,7 +22,7 @@
         </el-row>
         <el-row :gutter="10">
             <el-col :span="8">
-                <el-card class="box-card">
+                <el-card style="width: 100%;height: 500px;overflow-y: auto;">
                     <div slot="header" class="clearfix">
                         <span>今日维修任务动态</span>
                         <el-button style="float: right; padding: 3px 0" type="text"
@@ -55,7 +55,7 @@
                 </el-card>
             </el-col>
             <el-col :span="8">
-                <el-card class="box-card">
+                <el-card style="width: 100%;height: 500px;overflow-y: auto;">
                     <div slot="header" class="clearfix">
                         <span>今日巡检动态</span>
                         <el-button style="float: right; padding: 3px 0" type="text"
@@ -253,7 +253,7 @@ export default {
                         if (params[0].data.showpercent) {
                             return "点击柱状图可查看详情";
                         } else {
-                            return "";
+                            return "点击打开管理工作台页面";
                         }
                     }
                 },
@@ -342,7 +342,7 @@ export default {
                         if (params[0].data.showpercent) {
                             return "点击柱状图可查看详情";
                         } else {
-                            return "";
+                            return "点击打开维修任务页面";
                         }
                     },
                     textStyle: {
@@ -374,7 +374,7 @@ export default {
                     {
                         data: [
                             {
-                                value: 20,
+                                value: 0,
                                 itemStyle: {
                                     color: 'rgba(238, 122, 122,1.0)'
 
@@ -383,7 +383,7 @@ export default {
                                 percent: 0
                             },
                             {
-                                value: 30,
+                                value: 0,
                                 itemStyle: {
                                     color: 'rgba(250, 200, 88,1.0)'
 
@@ -392,7 +392,7 @@ export default {
                                 percent: 0
                             },
                             {
-                                value: 200,
+                                value: 0,
                                 itemStyle: {
 
                                     color: 'rgba(84, 112, 198,1.0)'
@@ -431,7 +431,7 @@ export default {
                         if (params[0].data.showpercent) {
                             return "点击柱状图可查看详情";
                         } else {
-                            return "";
+                            return "点击打开设备巡检信息页面";
                         }
                     }
                 },
@@ -563,16 +563,41 @@ export default {
                 // })
 
                 //  this.rtuInfoMap.clear();
-                this.rtuInfoMap.off('click');
-                this.rtuInfoMap.on('click', function (p) {
-                    //  console.log(p)
-                    if (p.name === '设备异常') {
-                        that.warninglistDig = true;
-                        that.$nextTick(() => {
-                            that.$refs['warninglist'].init();
-                        });
+
+                this.rtuInfoMap.getZr().off('click');
+                this.rtuInfoMap.getZr().on('click', function (p) {
+                    console.log("checkOrderChart  zr ++++++++++++++++++++++++++++++++++++")
+                    let pointInPixel = [p.offsetX, p.offsetY];
+                    if (that.rtuInfoMap.containPixel('grid', pointInPixel)) {
+                        let yIndex = that.rtuInfoMap.convertFromPixel({ seriesIndex: 0 }, [p.offsetX, p.offsetY])[1];
+                        //let  yData=that.checkOrderCountOption.yAxis.data[yIndex];//当前点击柱子的数据
+                        let value = that.rtuInfoCountOption.series[0].data[yIndex].value;
+                        if (yIndex == 1) {
+                            console.log("测站数量 index " + yIndex)
+                            that.$router.push({ path: '/business/manage/index' });
+                        } else if (yIndex == 0) {
+                            if (value > 0) {
+                                console.log("设备异常 index " + yIndex)
+                                that.warninglistDig = true;
+                                that.$nextTick(() => {
+                                    that.$refs['warninglist'].init();
+                                });
+                            } else {
+                                that.$message.warning("超时未确认维修任务暂无数据");
+                            }
+                        }
                     }
-                })
+                });
+
+                // this.rtuInfoMap.off('click');
+                // this.rtuInfoMap.on('click', function (p) {
+                //     if (p.name === '设备异常') {
+                //         that.warninglistDig = true;
+                //         that.$nextTick(() => {
+                //             that.$refs['warninglist'].init();
+                //         });
+                //     }
+                // })
             }
         },
         initCheckOrderCountMap() {
@@ -591,22 +616,58 @@ export default {
                 // })
 
                 var that = this;
-                this.checkOrderMap.clear();
-                this.checkOrderMap.off('click');
-                this.checkOrderMap.on('click', function (p) {
-                    //  console.log(p)
-                    if (p.name === '未确认任务') {
-                        that.uncomfireCheckOrderDig = true;
-                        that.$nextTick(() => {
-                            that.$refs["uncomfirecheckorderlist"].init();
-                        });
-                    } else if (p.name === '超时未确认任务') {
-                        that.comfireDelayCheckOrderDig = true;
-                        that.$nextTick(() => {
-                            that.$refs["comfiredelaycheckorderlist"].init();
-                        });
+
+                //this.checkOrderMap.clear();
+
+                this.checkOrderMap.getZr().off('click');
+                this.checkOrderMap.getZr().on('click', function (p) {
+                    console.log("checkOrderChart  zr ++++++++++++++++++++++++++++++++++++")
+                    let pointInPixel = [p.offsetX, p.offsetY];
+                    if (that.checkOrderMap.containPixel('grid', pointInPixel)) {
+                        let yIndex = that.checkOrderMap.convertFromPixel({ seriesIndex: 0 }, [p.offsetX, p.offsetY])[1];
+                        //let  yData=that.checkOrderCountOption.yAxis.data[yIndex];//当前点击柱子的数据
+                        let value = that.checkOrderCountOption.series[0].data[yIndex].value;
+                        if (yIndex == 2) {
+                            console.log("维修数量 index " + yIndex)
+                            that.$router.push({ path: '/business/order/checkorderlist' });
+                        } else if (yIndex == 1) {
+                            if (value > 0) {
+                                console.log("未确认 index " + yIndex)
+                                that.uncomfireCheckOrderDig = true;
+                                that.$nextTick(() => {
+                                    that.$refs["uncomfirecheckorderlist"].init();
+                                });
+                            } else {
+                                that.$message.warning("未确认维修任务暂无数据");
+                            }
+                        } else if (yIndex == 0) {
+                            if (value > 0) {
+                                console.log("超时未确认 index " + yIndex)
+                                that.comfireDelayCheckOrderDig = true;
+                                that.$nextTick(() => {
+                                    that.$refs["comfiredelaycheckorderlist"].init();
+                                });
+                            } else {
+                                that.$message.warning("超时未确认维修任务暂无数据");
+                            }
+                        }
                     }
-                })
+                });
+
+                // this.checkOrderMap.off('click');
+                // this.checkOrderMap.on('click', function (p) {
+                //     if (p.name === '未确认任务') {
+                //         that.uncomfireCheckOrderDig = true;
+                //         that.$nextTick(() => {
+                //             that.$refs["uncomfirecheckorderlist"].init();
+                //         });
+                //     } else if (p.name === '超时未确认任务') {
+                //         that.comfireDelayCheckOrderDig = true;
+                //         that.$nextTick(() => {
+                //             that.$refs["comfiredelaycheckorderlist"].init();
+                //         });
+                //     }
+                // })
             }
         },
         initEquipmentInspectionCountMap() {
@@ -624,35 +685,91 @@ export default {
                 //     })
                 // })
                 var that = this;
-                this.equipmentInspectionChartMap.off('click');
-                this.equipmentInspectionChartMap.on('click', function (p) {
-                    console.log("equipmentInspectionChartMap**********************************")
+                this.equipmentInspectionChartMap.getZr().off('click');
+                this.equipmentInspectionChartMap.getZr().on('click', function (p) {
+                    console.log("checkOrderChart  zr ++++++++++++++++++++++++++++++++++++")
+                    let pointInPixel = [p.offsetX, p.offsetY];
+                    if (that.equipmentInspectionChartMap.containPixel('grid', pointInPixel)) {
+                        let yIndex = that.equipmentInspectionChartMap.convertFromPixel({ seriesIndex: 0 }, [p.offsetX, p.offsetY])[1];
+                        //let yData = that.equipmentInspectionCountOption.yAxis.data[yIndex];//当前点击柱子的数据
+                        let value = that.equipmentInspectionCountOption.series[0].data[yIndex].value;
+                        console.log(" yData " + value)
+                        if (yIndex == 3) {
+                            console.log("巡检数量 index " + yIndex)
+                            that.$router.push({ path: '/business/inspection/index' });
+                        } else if (yIndex == 2) {
+
+                            if (value > 0) {
+                                console.log("汛前 index " + yIndex)
+                                that.rainSeasonKind = 1;
+                                that.inspectionreportlistDig = true;
+                                that.dialogTitle = '汛前已巡检信息';
+                                that.$nextTick(() => {
+                                    that.$refs["inspectionreportlist"].init();
+                                });
 
-                    console.log(p)
+                            } else {
+                                that.$message.warning("汛前巡检暂无上报数据");
+                            }
+                        } else if (yIndex == 1) {
+                            if (value > 0) {
+                                console.log("汛中一 index " + yIndex)
+                                that.rainSeasonKind = 2;
+                                that.inspectionreportlistDig = true;
+                                that.dialogTitle = '汛中(一)已巡检信息';
+                                that.$nextTick(() => {
+                                    that.$refs["inspectionreportlist"].init();
+                                });
+                            } else {
+                                that.$message.warning("汛中第一次巡检暂无上报数据");
+                            }
+                        } else if (yIndex == 0) {
+                            if (value > 0) {
+                                console.log("汛中二 index " + yIndex)
 
-                    if (p.name === '汛前已巡检') {
-                        that.rainSeasonKind = 1;
-                        that.inspectionreportlistDig = true;
-                        that.dialogTitle = '汛前已巡检信息';
-                        that.$nextTick(() => {
-                            that.$refs["inspectionreportlist"].init();
-                        });
-                    } else if (p.name === '汛中(一)已巡检') {
-                        that.rainSeasonKind = 2;
-                        that.inspectionreportlistDig = true;
-                        that.dialogTitle = '汛中(一)已巡检信息';
-                        that.$nextTick(() => {
-                            that.$refs["inspectionreportlist"].init();
-                        });
-                    } else if (p.name === '汛中(二)已巡检') {
-                        that.rainSeasonKind = 3;
-                        that.inspectionreportlistDig = true;
-                        that.dialogTitle = '汛中(二)已巡检信息';
-                        that.$nextTick(() => {
-                            that.$refs["inspectionreportlist"].init();
-                        });
+                                that.rainSeasonKind = 3;
+                                that.inspectionreportlistDig = true;
+                                that.dialogTitle = '汛中(二)已巡检信息';
+                                that.$nextTick(() => {
+                                    that.$refs["inspectionreportlist"].init();
+                                });
+                            } else {
+                                that.$message.warning("汛中第二次巡检暂无上报数据");
+                            }
+                        }
                     }
-                })
+                });
+
+
+                // this.equipmentInspectionChartMap.off('click');
+                // this.equipmentInspectionChartMap.on('click', function (p) {
+                //     console.log("equipmentInspectionChartMap**********************************")
+
+                //     console.log(p)
+
+                //     if (p.name === '汛前已巡检') {
+                //         that.rainSeasonKind = 1;
+                //         that.inspectionreportlistDig = true;
+                //         that.dialogTitle = '汛前已巡检信息';
+                //         that.$nextTick(() => {
+                //             that.$refs["inspectionreportlist"].init();
+                //         });
+                //     } else if (p.name === '汛中(一)已巡检') {
+                //         that.rainSeasonKind = 2;
+                //         that.inspectionreportlistDig = true;
+                //         that.dialogTitle = '汛中(一)已巡检信息';
+                //         that.$nextTick(() => {
+                //             that.$refs["inspectionreportlist"].init();
+                //         });
+                //     } else if (p.name === '汛中(二)已巡检') {
+                //         that.rainSeasonKind = 3;
+                //         that.inspectionreportlistDig = true;
+                //         that.dialogTitle = '汛中(二)已巡检信息';
+                //         that.$nextTick(() => {
+                //             that.$refs["inspectionreportlist"].init();
+                //         });
+                //     }
+                // })
             }
         },
         close() {