<template>
    <el-row class="contentBox">
        <transition name="el-fade-in-linear">
            <el-col class="leftBox" v-show="stroes.$state.leftBtn">
                <div class="leftTop">
                    <h4>疏导区基本情况</h4>
                    <div style="position: absolute;right: 18px;top: 20px;font-size: 0.15rem;color: #666;cursor: pointer">
                        <el-button
                            size="mini"
                            style="border:none"
                        >
                        虹桥镇（自选）中网格：2，小网格：11
                        </el-button>
                    </div>
                    <div class="leftTopContent2">
                        <el-row  class="sdqBasicInfo sdline1">
                            <div
                                class="basicItem"
                                style="cursor: pointer"
                                v-for="(item, index) in diversionArea.slice(0,5)"
                                :key="index"
                            >
                                <div style="padding: 0.03rem 0; text-align: center" @click="openPdf2(item)" class="pdfWrap">
                                    <span style="display: block;position:relative">
                                        <img src="@/assets/img/pdf.png" alt="" class="pdfImg" v-if="item.url" />
                                        <Strong
                                            style="color: #01E0FF;font-weight: 600;font-size: 0.26rem"
                                        >
                                            <span v-if="isNaN(item.value)" style="fontSize: 0.2rem !important">{{ item.value || 0 }}</span> 
                                            <span v-if="!isNaN(item.value)">{{ item.value }}</span>
                                        </Strong>
                                        {{ item.unit }}
                                    </span>
                                    <span class="nameBox" style="">{{ item.name }}</span>
                                </div>
                            </div>
                        </el-row>

                        <el-row  class="sdqBasicInfo sdline2" :style="{'marginTop':marginTop1}" >
                            <div
                                class="basicItem"
                                v-for="(item, index) in diversionArea.slice(7,10)"
                                :key="index"
                            >
                            
                                <div style="padding: 0.03rem 0; text-align: center;">
                                    <span style="display: block;">
                                        
                                        <Strong
                                            style="color: #F48354;font-weight: 600;font-size: 0.3rem"
                                        >
                                            <CountTo :startVal="0" :endVal="item.value || 0" :duration="3000" v-if="!isNaN(item.value)">{{ item.value || 0 }}</CountTo>
                                            <span v-if="isNaN(item.value)" style="fontSize: 0.2rem !important">{{ item.value || 0 }}</span>
                                        </Strong>
                                        {{ item.unit }}
                                    </span>
                                    <span class="nameBox" style="">{{ item.name }}</span>
                                </div>
                            </div>
                        </el-row>
                        <el-row  class="sdqBasicInfo sdline2" :style="{'marginTop':marginTop1}" v-if="diversionArea2State">
                            <div
                                class="basicItem"
                                v-for="(item, index) in diversionArea2"
                                :key="index"
                            >
                            
                                <div style="padding: 0.03rem 0; text-align: center;">
                                    <span style="display: block;">
                                        
                                        <Strong
                                            style="color: #058DFE;font-weight: 600;font-size: 0.3rem"
                                        >
                                            {{ item.value || 0 }}
                                            <span v-if="isNaN(item.value)" style="fontSize: 0.2rem !important">{{ item.value || 0 }}</span>
                                        </Strong>
                                        {{ item.unit }}
                                    </span>
                                    <span class="nameBox" style="">{{ item.name }}</span>
                                </div>
                            </div>
                        </el-row>
                       

                        <el-row v-if="basicStatisStatus" class="sdline3" :style="{'marginTop':marginTop1}">
                            <div
                                class="basicItem"
                                v-for="(item, index) in line3Array"
                                :key="index"
                                @click="basicStaticsData(item.value,item.name)"
                            >
                                <div style="padding: 0.03rem 0; text-align: center">
                                    <span style="display: block">
                                        <Strong
                                            style="color: #4FE261;font-weight: 600;font-size: .225rem"
                                        >
                                            <CountTo :startVal="0" :endVal="item.count || 0" :duration="3000" v-if="!isNaN(item.count)">{{ item.count || 0 }}</CountTo>
                                            <span v-if="isNaN(item.count)" style="fontSize: 0.2rem !important">{{ item.count || 0 }}</span>
                                        </Strong>
                                        {{ item.unit }}
                                    </span>
                                    <span class="nameBox" style="font-size:12px">{{ item.name }}</span>
                                </div>
                            </div>
                        </el-row>
                        <!-- <el-row   class="sdqBasicInfo sdline3" style="position:relative">
                            <div @click="basicGoBack" class="return">
                                <div class="returnText">返回</div>
                            </div>
                            
                                                       表格展示区域 -->

                            <!-- <el-table :data="tableDataBasic" style="width: 100%;height:1.7rem;margin-top:20px;" class="transparentTableRow" @mouseenter="autoScroll1(true)"  @mouseleave="autoScroll1()">
                                <el-table-column prop="date" label="Date" width="180" />
                                <el-table-column prop="name" label="Name" width="180" />
                                <el-table-column prop="address" label="Address" />
                            </el-table> -->

                        <!-- </el-row> -->
                    </div>
                </div>
                

                <div class="leftCenter">
                    <div style="display: flex;">
                        <h4>疏导区社会单位情况</h4>
                        <div style="display: flex; border-bottom: 0.0125rem solid rgba(115, 251, 253, 0.5);">
                            <el-form class="titleElForm" :inline="true" size="mini"  style="height: 0">
                                <el-form-item>
                                    <!-- <el-select v-model="barForm.fireType" @change="getHouse()" filterable clearable placeholder="场所">
                                        <el-option v-for="(item, ind) in fireTypeList" :key="ind" :label="item" :value="item"></el-option>
                                    </el-select> -->
                                    <!-- <el-select v-model="units" filterable clearable placeholder="场所">
                                        <el-option v-for="(item, ind) in diversionArea" :key="ind" :label="item.name" :value="item.value"></el-option>
                                    </el-select> -->
                                    

                                    <el-select   v-model="value111" @change="getOneUnit" class="m-2" placeholder="请选择"  style="width:200px">
                                        <el-option
                                            v-for="item in line3Array"
                                            :key="item.value"
                                            :label="item.name"
                                            :value="item.value"
                                            />
                                    </el-select>
                                </el-form-item>
                            </el-form>
                        </div>
                    </div>
                    <unit-box :typeValue="value111" :arrayData="arrayData" :staticData="staticData" v-if="staticData.total" :type="value111" @staticsPoint="staticsPoint"></unit-box>
                    <div v-else>暂无数据</div>

                    <!-- <category
                        ref="category"
                        v-show="category"
                        :dataMap="reportComplaintList.map((val, ind) => val.value)"
                        :xData="reportComplaintList.map((val, ind) => val.name)"
                        :isSlice="10"
                        :width="40"
                        color="#73FBFD"
                        @echartsClick="categoryClick"
                    ></category> -->
              
                </div>

                <!-- <div class="rightCenter">
                    <h4>执勤战备力量部署</h4>
                    <div class="rightTopContent">
                        <div style="width:95%;margin:0 auto;border: 1px solid rgba(48, 207, 255, 0.6); box-shadow: inset 0 0 0.07rem 0.04rem rgb(115 251 253 / 40%); box-sizing: border-box;display: flex;
                            justify-content: space-between;padding: .15rem .125rem .15rem">
                            <span>闵行支队安保分指挥所</span>    <span>淮虹路151弄9号</span>    <span>电台：闵101</span>    <span>值班电话：33281293</span>
                        </div>

                        <el-row>
                            <el-col :span="5"  style="border: 1px solid rgba(48, 207, 255, 0.6); margin: .25rem .08rem .125rem .16rem; box-shadow: inset 0 0 0.07rem 0.04rem rgb(115 251 253 / 40%); box-sizing: border-box"
                              v-for="(item,index) in staticData.array1" :key="index" @click="goPoints(item.facilityType)">
                                <div style="padding: 0.2rem 0; text-align: center;user-select:none !important">
                                    <span style="display: block">
                                        <Strong style="color:rgb(1, 224, 255)" :style="{ fontSize: '0.3rem'}" >
                                            <CountTo :startVal='0' :endVal='item.count || 0' :duration='3000'>{{ item.count || 0 }}</CountTo>
                                        </Strong>
                                        家
                                    </span>
                                    <span style="font-size:.1375rem">{{item.streetTown}}</span>
                                </div>
                            </el-col>

                        </el-row>
                    </div>
                </div> -->

                <!-- 疏导区监督执法 start -->
                <div class="girdCheckSec" style="position: relative">
                    <h4 style="display: flex">疏导区监督执法</h4>
                    <div class="girdCheckItem">
                        <div class="row_g" style="color:#fff">
                            <div @click="basicStaticsData('监督执法1')">检查家数<br>1091次</div>
                            <div @click="basicStaticsData('监督执法2')">发现隐患数<br>778次</div>
                            <div @click="basicStaticsData('监督执法3')">督改隐患数<br>600次</div>
                            <div @click="basicStaticsData('监督执法4')">处罚金额<br>940500元</div>
                            <div @click="basicStaticsData('监督执法5')">查封<br>11个</div>
                        </div>
                    </div>
                        <el-table :data="tableDataGrid2" 
                            class="transparentTableRow"
                            height="57%"
                            :empty-text="dataNo2"
                            
                            >
                            <el-table-column prop="id" label="类型"  min-width="25" show-overflow-tooltip/>
                            <el-table-column prop="count1" label="华漕镇"  min-width="20" show-overflow-tooltip/>
                            <el-table-column prop="count2" label="新虹街道"  min-width="20" show-overflow-tooltip/>
                            <el-table-column prop="count3" label="七宝镇"  min-width="20" show-overflow-tooltip/>
                            <el-table-column prop="count4" label="虹桥镇"  min-width="20" show-overflow-tooltip/>
                        </el-table>

                        
                   

                    
          
                </div>


                <!-- <div class="leftCenter">
                    <h4 class="h4Top">接警处置情况</h4>
                    <category
                        ref="category"
                        v-show="category"
                        :dataMap="reportComplaintList.map((val, ind) => val.value)"
                        :xData="reportComplaintList.map((val, ind) => val.name)"
                        :isSlice="10"
                        :width="40"
                        color="#73FBFD"
                        @echartsClick="categoryClick"
                    ></category>
                    <div @click="goBack" class="return" v-if="!category">
                        <div class="returnText">返回</div>
                    </div>
                </div> -->


                <div class="leftBotContent2">
                    <el-table v-if="!category" :data="tableData" class="transparentTableRow" height="100%" ref="reportTable" @mouseenter="autoScroll(true)" @mouseleave="autoScroll()">
                        <el-table-column v-for="item in headerData" show-overflow-tooltip :key="item.prop" :prop="item.prop" align="center" min-width="20" :label="item.name">
                            <template #default="scope">
                                {{ item.prop === "type" ? "" : item.prop === "status" ? (scope.row[item.prop] == 1 ? "可用" : "不可用") : scope.row[item.prop] }}
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
        </transition>
        <transition name="el-fade-in-linear">
            <el-col class="centerBox" style="width: 100%">
                <div :class="stroes.$state.leftBtn ? 'leftBtn btnW' : 'leftBtn0 btnW'" @click="stroes.leftBtnClick()">
                    <img src="@/assets/img/svg/left.svg" alt="" class="img" />
                </div>
                <el-col class="centerContent" id="mapF"></el-col>

                <div :class="stroes.$state.rightBtn ? 'rightBtn btnW' : 'rightBtn0 btnW'" @click="stroes.rightBtnClick()">
                    <img src="@/assets/img/svg/left.svg" alt="" class="img" />
                </div>

                <div class="mapTips_type">
                    <img src="@/assets/img/svg/danweitop.svg" alt="" class="img" />
                    <div class="content">
                        <p>类型筛选</p>
                        <div class="selectType">
                            <!-- <div @click="checkboxChange(0)" :class="checkedArray.checkedData[0] == 0 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.xfc" alt="" />
                                <span>车辆</span>
                            </div> -->
                            <!-- <div @click="checkboxChange(1)" :class="checkedArray.checkedData[0] == 1 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.lsjq" alt="" />
                                <span>历史警情</span>
                            </div>
                            <div @click="checkboxChange(2)" :class="checkedArray.checkedData[0] == 2 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.lshz" alt="" />
                                <span>历史火灾</span>
                            </div> -->
                            <!-- <div @click="checkboxChange(3)" :class="checkedArray.checkedData[0] == 3 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.zddw" alt="" />
                                <span>重点单位</span>
                            </div> -->

                            <!-- <div
                                :class="
                                    checkedArray.checkedData[0] == 4
                                        ? 'checkTypeSelect'
                                        : checkedArray.checkedData[0] == 40
                                        ? 'checkTypeSelect'
                                        : checkedArray.checkedData[0] == 41
                                        ? 'checkTypeSelect'
                                        : checkedArray.checkedData[0] == 42
                                        ? 'checkTypeSelect'
                                        : checkedArray.checkedData[0] == 43
                                        ? 'checkTypeSelect'
                                        : checkedArray.checkedData[0] == 44
                                        ? 'checkTypeSelect'
                                        : checkedArray.checkedData[0] == 45
                                        ? 'checkTypeSelect'
                                        : checkedSelectValue == '46'
                                        ? stores.sadianIcon.yjxfz
                                        : checkedSelectValue == '47'
                                        ? stores.sadianIcon.jzzzxfd
                                        : ' '
                                "
                            >
                                <img
                                    :src="
                                        checkedSelectValue == '40'
                                            ? stores.sadianIcon.xfz
                                            : checkedSelectValue == '41'
                                            ? stores.sadianIcon.zzd
                                            : checkedSelectValue == '42'
                                            ? stores.sadianIcon.jzwxxfz
                                            : checkedSelectValue == '43'
                                            ? stores.sadianIcon.csxfz
                                            : checkedSelectValue == '44'
                                            ? stores.sadianIcon.qyxfd
                                            : checkedSelectValue == '45'
                                            ? stores.sadianIcon.sqwxxfz
                                            : checkedSelectValue == '46'
                                            ? stores.sadianIcon.sqwxxfz
                                            : checkedSelectValue == '47'
                                            ? stores.sadianIcon.sqwxxfz
                                            : stores.sadianIcon.xfz
                                    "
                                    alt=""
                                />

                                <span>{{ checkedSelectLabel }}</span>
                                <el-select
                                    v-model="checkedSelectValue"
                                    placeholder="消防站"
                                    class="selectTypeIcon"
                                    style="display: inline-block; width: 100%; position: absolute; right: 0"
                                    @change="selectArray"
                                >
                                    <el-option v-for="item in checkedSelectArray" :key="item.value" :label="item.label" :value="item.value"> </el-option>
                                </el-select>
                            </div> -->
                            <div @click="checkboxChange(19)" :class="checkedArray.checkedData[0] == 19 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.d" alt="" />
                                <span>大网格</span>
                            </div>
                            <div @click="checkboxChange(15)" :class="checkedArray.checkedData[0] == 15 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.z" alt="" />
                                <span>中网格</span>
                            </div>
                            <div @click="checkboxChange(16)" :class="checkedArray.checkedData[0] == 16 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.x" alt="" />
                                <span>小网格</span>
                            </div>
                            <!-- <div @click="checkboxChange(17)" :class="checkedArray.checkedData[0] == 17 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.ssjq" alt="" />
                                <span>监控视频</span>
                            </div>
                            <div @click="checkboxChange(18)" :class="checkedArray.checkedData[0] == 18 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.jdjc" alt="" />
                                <span>监督检查</span>
                            </div> -->
                            <div @click="checkboxChange(20)" :class="checkedArray.checkedData[0] == 20 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.zfjly" alt="" />
                                <span>执法记录仪</span>
                            </div>
                            <div @click="checkboxChange(21)" :class="checkedArray.checkedData[0] == 21 ? 'checkTypeSelect' : ''">
                                <img :src="stores.sadianIcon.yyjk" alt="" />
                                <span>鹰眼监控</span>
                            </div>
                            
                        </div>
                    </div>
                </div>
            </el-col>
        </transition>
        <transition name="el-fade-in-linear">
            <el-col class="rightBox" v-show="stroes.$state.rightBtn">
                 <!-- 疏导区每日动态 start -->
                 <div class="dailyNewSec">
                    <h4 style="display: flex">疏导区每日动态</h4>
                    <div style="position: absolute;right: 20px;top: 17px;font-size: 0.15rem;color: #666;cursor: pointer">
                        <el-button
                            size="mini"
                            @click="tabTActive(1)"
                            :class="{ btnClick: tabsType == '1' }"
                        >
                        每日动态
                        </el-button>
                        <el-button
                            size="mini"
                            @click="tabTActive(2)"
                            :class="{ btnClick: tabsType == '2' }"
                        >
                        电子台账
                        </el-button>
                    </div>
                    <div class="dailyItem " v-if="tabsType==1">
                        <Vue3SeamlessScroll :list="dailyArray" :step=".1" :hover="true">
                            <el-row>
                                <el-col v-for="(item,index) in dailyArray" :key="index">
                                    <a target="_blank" @click="openPdf(item.url)">{{ item.title }}</a>
                                </el-col>
                            </el-row>
                        </Vue3SeamlessScroll>
                    </div>
                    <div class="dailyItem " v-if="tabsType==2">
                        <Vue3SeamlessScroll :list="dailyArray" :step=".1" :hover="true">
                            <el-row>
                                <el-col v-for="(item,index) in dailyArray2" :key="index">
                                    <a target="_blank" @click="openPdf(item.url)">{{ item.title }}</a>
                                </el-col>
                            </el-row>
                        </Vue3SeamlessScroll>
                    </div>
                </div>

                <!-- 疏导区网格检查情况 start -->
                <div class="girdCheckSec" style="position: relative">
                    <h4 style="display: flex">疏导区网格检查情况</h4>
                    <div style="position: absolute;right: 4px;top: 0px;font-size: 0.15rem;color: #666;cursor: pointer">
                        <!-- <el-button
                            size="mini"
                            @click="tabTActive(1)"
                            :class="{ btnClick: tabsType == '1' }"
                            style="border:none"
                        >
                        检查率：100%
                        </el-button> -->
                        
                    </div>
                    <div class="girdCheckItem">
                        <div class="row_g">
                            <div style="font-size:.175rem">累计:</div>
                            <div @click="basicStaticsData('新消监')">检查家数<br>4128家次</div>
                            <div @click="basicStaticsData('新消监')">发现隐患数<br>1047处</div>
                            <div @click="basicStaticsData('新消监')">整改隐患<br>786处</div>
                            <!-- <div style="font-size:.175rem;margin-left:.125rem" >当日:</div>
                            <div @click="basicStaticsData('新消监')">检查家数<br>296家次</div>
                            <div @click="basicStaticsData('新消监')">发现隐患数<br>64处</div>
                            <div @click="basicStaticsData('新消监')">整改隐患<br>62处</div> -->
                        </div>
                        <div class="checkRate">
                                检查率：
                                <img src="@/assets/img/j1.png" alt="" v-if="jEndS<=100">
                                <img src="@/assets/img/j2.png" alt="" v-if="100<jEndS && jEndS<=200">
                                <img src="@/assets/img/j3.png" alt="" v-if="200<jEndS">
                                <span :style="{color:100<jEndS && jEndS<=200 ?'orange':  200<jEndS ? 'green' : 'red'}"><CountTo :startVal="jStart" :endVal="jEnd" :duration="10000"></CountTo>%</span>
                            </div>
                        <div class="row_g">
                            <div style="font-size:.175rem;margin-left:0rem" >当日:</div>
                            <div @click="basicStaticsData('新消监')">检查家数<br>296家次</div>
                            <div @click="basicStaticsData('新消监')">发现隐患数<br>64处</div>
                            <div @click="basicStaticsData('新消监')">整改隐患<br>62处</div>
                        </div>
                    </div>
                    <div style="display: flex">
                        <h4 style="font-size: 0.2rem;border:none"></h4>
                        <!-- <div
                            style="
                                display: flex;
                                border-bottom: 0.0125rem solid
                                    rgba(115, 251, 253, 0.5);
                            "
                        >
                            <el-button
                                size="mini"
                                @click="btnC('1')"
                                :class="{ btnClick: check === '1' }"
                                >大网格</el-button
                            >
                            <el-button
                                size="mini"
                                @click="btnC('2')"
                                :class="{ btnClick: check === '2' }"
                                >中网格</el-button
                            >
                        </div> -->
                    </div>
                        <el-table :data="tableDataGrid" 
                            class="transparentTableRow"
                            height="57%"
                            :empty-text="dataNo2"
                            
                            >
                            <el-table-column prop="id" label="网格编号"  min-width="25" show-overflow-tooltip/>
                            <el-table-column prop="count1" label="检查家数"  min-width="20" show-overflow-tooltip/>
                            <el-table-column prop="count2" label="发现隐患数"  min-width="20" show-overflow-tooltip/>
                            <el-table-column prop="count3" label="整改隐患"  min-width="20" show-overflow-tooltip/>
                        </el-table>

                        
                   

                    
          
                </div>
                <!-- 疏导区单位四色分级情况 start -->
                <div class=" ssfjSec">
                    <h4 style="display: flex">疏导区单位四色分级情况</h4>
             
                    <div class="girdCheckItem">
                        <el-row style="margin:0px 0 -20px -24px;text-decoration:underline;cursor:pointer">
                            <el-tooltip placement="top-start">
                                <template #content>
                                    <br />
                                    （1）上海尚品投资有限公司，注册住所为上海市奉贤区肖塘路255弄10号2层，
                                    <br />
                                    实际地址为上海市闵行区繁兴路479号，统一社会信用代码：913101206607804282，
                                    <br />
                                    法定代表人为陆燕。
                                    <br />
                                    <br />
                                    （2）上海圣馨实业有限公司，注册住所为上海市闵行区北翟路1550弄8号，
                                    <br />
                                    实际地址为上海市闵行区北翟路1550弄8号二层及三层整体，
                                    <br />
                                    统一社会信用代码为91310112312173226C，
                                    <br />
                                    法定代表人为戴金标。
                                    <br />
                                </template>
                                <el-button @click="basicStaticsData(6,'重大火灾隐患2')">重大火灾隐患：2家（华漕镇）</el-button>
                            </el-tooltip>
                        </el-row>
                        <el-row class="row_g2">
                            <el-col :span="8">消防安全重点单位<br><span @click="openPdf('http://32.0.15.107:8080/mhvi/zddw.pdf')" style="border-bottom:1px solid #fff">评分标准</span></el-col>
                            <el-col :span="4" style="color:red" @click="djActiveClick(0)">高风险<br>2（家）</el-col>
                            <el-col :span="4" style="color:orange" @click="djActiveClick(1)">较高风险<br>9（家）</el-col>
                            <el-col :span="4" style="color:yellow" @click="djActiveClick(2)">一般风险<br>15（家）</el-col>
                            <el-col :span="4" style="color:rgb(1, 224, 255)" @click="djActiveClick(3)">低风险<br>152（家）</el-col>
                        </el-row>
                        <el-row class="row_g2">
                            <el-col :span="8">九小场所<br><span @click="openPdf('http://32.0.15.107:8080/mhvi/jxcs.pdf')" style="border-bottom:1px solid #fff">评分标准</span></el-col>
                            <el-col :span="4"  style="color:red" @click="basicStaticsData(39,'高风险')" >高风险<br>{{jxcstj[0]}}（家）</el-col>
                            <el-col :span="4" style="color:orange" @click="basicStaticsData(39,'较高风险')" >较高风险<br>{{jxcstj[1]}}（家）</el-col>
                            <el-col :span="4" style="color:yellow" @click="basicStaticsData(39,'一般风险')">一般风险<br>{{jxcstj[2]}}（家）</el-col>
                            <el-col :span="4" style="color:rgb(1, 224, 255)" @click="basicStaticsData(39,'低风险')">低风险<br>{{jxcstj[3]}}（家）</el-col>
                        </el-row>

                    </div>
                    
          
                </div>

                
                <!-- <div class="girdCheckSec">
                    <h4 style="display: flex">疏导区网格检查情况</h4>
                    <div class="girdCheckItem">
                        <p>大网格<span>&nbsp;&nbsp;&nbsp;街镇分营领导：10&nbsp;&nbsp;城运中心主任：10&nbsp;&nbsp;安监所所长：10&nbsp;&nbsp;支队外参谋：10</span></p>
                        <el-row>
                            <el-col :span="6">检查家数: 100</el-col>
                            <el-col :span="6">发现隐患数: 20</el-col>
                            <el-col :span="6">督改隐患数: 20</el-col>
                            <el-col :span="6">签约承诺数: 20</el-col>
                        </el-row>
                    </div>
                    <div class="girdCheckItem">
                        <p>中网格</p>
                        <el-row>
                            <el-col :span="6">检查家数: 100</el-col>
                            <el-col :span="6">发现隐患数: 20</el-col>
                            <el-col :span="6">督改隐患数: 20</el-col>
                            <el-col :span="6">签约承诺数: 20</el-col>
                        </el-row>
                    </div>
                    <div class="girdCheckItem">
                        <p>小网格</p>
                        <el-row>
                            <el-col :span="6">检查家数: 100</el-col>
                            <el-col :span="6">发现隐患数: 20</el-col>
                            <el-col :span="6">督改隐患数: 20</el-col>
                            <el-col :span="6">签约承诺数: 20</el-col>
                        </el-row>
                    </div>
                    <br>
                </div> -->
                <!-- 疏导区网格检查情况 end -->

                <!-- <div class="rightTop3">
                        <h4 style="display: flex">处置网格</h4>
                        
                    <div class="rightTopContent">
                        <el-row v-if="gridStatisticsStatus">
                            <el-col :span="12" @click="gridStatistics(1)">
                                <div>
                                    <div class="left">
                                        <img src="@a/img/sadian/sbs.png" alt="" />
                                        <div>上报数</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24" style="color: #ff0000">{{ gridStatisticsNum.total || 0 }}</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                            <el-col :span="12" @click="gridStatistics(3)">  
                                <div>
                                    <div class="left">
                                        <img src="@a/img/sadian/yhs.png" alt="" />
                                        <div>隐患数</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24" style="color: #ff5a00">{{ gridStatisticsNum.yinhuan || 0 }}</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                            <el-col :span="12" @click="gridStatistics(2)">
                                <div>
                                    <div class="left">
                                        <img src="@a/img/sadian/czs.png" alt="" />
                                        <div>处置数</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24" style="color: #ffd800">{{ gridStatisticsNum.over || 0 }}</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="left">
                                        <img src="@a/img/sadian/czl.png" alt="" />
                                        <div>处置率</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24" style="color: #0084ff">{{  gridStatisticsNum.rate || 0  }}%</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                        </el-row>
                        
                        <el-row v-if="!gridStatisticsStatus">
                            <el-table
                                :data="gridStatisticsTableType"
                                class="transparentTableRow"
                                height="100%"
                                :empty-text="dataNo3"
                                ref="reportTable"
                                @mouseenter="autoScroll1(true)"
                                @mouseleave="autoScroll1()"
                            >
                                <el-table-column v-for="item in gridStatisticsHeader" show-overflow-tooltip :key="item.prop" :prop="item.prop" align="left" min-width="20" :label="item.name">
                                    <template v-if="item.prop =='案件状态' || item.prop =='街镇' || item.prop =='自治网格' || item.prop =='案件子类' || item.prop =='发现时间'" #default="scope">
                                        <el-tooltip placement="left"  >
                                            <template #content >
                                                <div class="tableTooltip" ref="ff">
                                                <div class="tableTitle">
                                                    <div>案件详情</div>
                                                </div>
                                                <img src="~@a/img/icon/close.png" alt="" class="close" @click="closeIsTooltip"  />
                                                <el-row class="tableContent">
                                                    <el-col :span="20"  v-if="scope.row['案件状态']">案件状态：{{scope.row["案件状态"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['任务号'] ">任务号：{{scope.row["任务号"] }}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['发现时间']">发现时间：{{scope.row["发现时间"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['案件来源']">案件来源：{{scope.row["案件来源"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['案件属性']">案件属性：{{scope.row["案件属性"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['街镇']">街镇：{{scope.row["街镇"]}}</el-col>
                                                    <el-col :span="12"  v-if="scope.row['自治网格类型']">自治网格类型：{{scope.row["自治网格类型"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['责任块']">责任块：{{scope.row["责任块"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['案件大类']">案件大类：{{scope.row["案件大类"]}}</el-col>
                                                    
                                                
                                                    <el-col :span="24"  v-if="scope.row['案件小类']">案件小类：{{scope.row["案件小类"]}}</el-col>
                                                   
                                                    <el-col :span="24"  v-if="scope.row['自治网格']">自治网格：{{scope.row["自治网格"]}}</el-col>
                                                    
                                                    
                                                    
                                                    
                                                    <el-col :span="24"  v-if="scope.row['处置网格']">处置网格：{{scope.row["处置网格"]}}</el-col>
                                                   

                                                    <el-col :span="24"  v-if="scope.row['发生地址']">发生地址：{{scope.row["发生地址"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['诉求联系人']">诉求联系人：{{scope.row["诉求联系人"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['流转方向']">流转方向：{{scope.row["流转方向"]}}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['派遣时间'] ">派遣时间：{{scope.row["派遣时间"] }}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['主责部门']">主责部门：{{scope.row["主责部门"] }}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['三级主责部门']">三级主责部门：{{scope.row["三级主责部门"] }}</el-col>
                                                    <el-col :span="24"  v-if="scope.row['处理时间']">处理时间：{{scope.row["处理时间"] }}</el-col>
                                                </el-row>
                                                </div>
                                            </template>
                                            <template>
                                                <div class="name-wrapper" >{{ scope.row[item.prop] }}</div>
                                            </template>
                                        </el-tooltip>
                                    </template>
                                        <template v-else #default="scope">
                                        {{  scope.row[item.prop] }}
                                    </template>
                                </el-table-column>
                            </el-table>
                        </el-row>
                    </div>
                    <div class="leftTopContent" v-if="tabsArea == 'jc'">
                        <el-row>
                            <el-col :span="12">
                                <div>
                                    <div class="title">
                                        <div>检查单位数（家次）</div>
                                    </div>
                                    <div class="content">
                                        <span>6276</span>
                                        <span>同比</span>
                                        <span style="color: #fe0505">+29.48%</span>
                                    </div>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="title">
                                        <div>发现隐患数（处）</div>
                                    </div>
                                    <div class="content">
                                        <span>1340</span>
                                        <span>同比</span>
                                        <span style="color: #fe0505">+14.18%</span>
                                    </div>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="title">
                                        <div>督改隐患数（处）</div>
                                    </div>
                                    <div class="content">
                                        <span>1090</span>
                                        <span>同比</span>
                                        <span style="color: #fe0505">+7.34%</span>
                                    </div>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div style="width: 80%">
                                    <div class="title">
                                        <div>签约承诺书（份）</div>
                                    </div>
                                    <div class="content">
                                        <span>5410</span>
                                    </div>
                                </div>
                            </el-col>
                        </el-row>
                    </div>
                </div> -->


                <!-- <div class="rightTop">
                        <h4 style="display: flex">疏导区社会面风险评估情况</h4>
                        <div style="display: flex;float:right;margin-top:-36px;">
                            <el-button size="mini" @click="tabsArea = 'fx'" :class="{ btnClick: tabsArea == 'fx' }"> 风险情况 </el-button>
                            <el-button size="mini" @click="tabsArea = 'jc'" :class="{ btnClick: tabsArea == 'jc' }"> 检查情况 </el-button>
                        </div>
                    <div class="rightTopContent" v-if="tabsArea == 'fx'">
                        <el-row>
                            <el-col :span="12">
                                <div>
                                    <div class="left">
                                        <img src="@a/img/securityPlan/right1.png" alt="" />
                                        <div>高风险场所</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24">单位总数(家)</el-col>
                                        <el-col :span="24" style="color: #ff0000">8</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="left">
                                        <img src="@a/img/securityPlan/right2.png" alt="" />
                                        <div>较高风险场所</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24">单位总数(家)</el-col>
                                        <el-col :span="24" style="color: #ff5a00">0</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="left">
                                        <img src="@a/img/securityPlan/right3.png" alt="" />
                                        <div>一般风险场所</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24">单位总数(家)</el-col>
                                        <el-col :span="24" style="color: #ffd800">6</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="left">
                                        <img src="@a/img/securityPlan/right4.png" alt="" />
                                        <div>低风险场所</div>
                                    </div>
                                    <el-row class="right">
                                        <el-col :span="24">单位总数(家)</el-col>
                                        <el-col :span="24" style="color: #0084ff">18</el-col>
                                    </el-row>
                                </div>
                            </el-col>
                        </el-row>
                    </div>
                    <div class="leftTopContent" v-if="tabsArea == 'jc'">
                        <el-row>
                            <el-col :span="12">
                                <div>
                                    <div class="title">
                                        <div>检查单位数（家次）</div>
                                    </div>
                                    <div class="content">
                                        <span>6276</span>
                                        <span>同比</span>
                                        <span style="color: #fe0505">+29.48%</span>
                                    </div>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="title">
                                        <div>发现隐患数（处）</div>
                                    </div>
                                    <div class="content">
                                        <span>1340</span>
                                        <span>同比</span>
                                        <span style="color: #fe0505">+14.18%</span>
                                    </div>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div>
                                    <div class="title">
                                        <div>督改隐患数（处）</div>
                                    </div>
                                    <div class="content">
                                        <span>1090</span>
                                        <span>同比</span>
                                        <span style="color: #fe0505">+7.34%</span>
                                    </div>
                                </div>
                            </el-col>
                            <el-col :span="12">
                                <div style="width: 80%">
                                    <div class="title">
                                        <div>签约承诺书（份）</div>
                                    </div>
                                    <div class="content">
                                        <span>5410</span>
                                    </div>
                                </div>
                            </el-col>
                        </el-row>
                    </div>
                </div> -->
                <div class="rightTop">
                    <!-- <h4>安保推送情况</h4>
                    <el-row class="rightTop2">
                        <el-col :span="8" v-for="(item, index) in proptionList" :key="index">
                            <div>
                                <div style="text-align: center; font-size: 0.18rem">
                                    {{ item.type }}
                                </div>
                                <div style="height: 1.5rem">
                                    <gauge ref="gauge1" :data="item"></gauge>
                                </div>
                            </div>
                        </el-col>
                    </el-row> -->
                    <h4>疏导区执法记录仪画面</h4>
                    <el-row class="monitor-list" >
                        <div class="list">
                            <el-select
                                v-model="zfjly1"
                                placeholder="请选择执法记录仪"
                                class="videoSelect"
                            >
                                <el-option
                                    v-for="item in selectVideoData"
                                    :key="item.url"
                                    :label="item.name"
                                    :value="item.url"
                                >
                                </el-option>
                            </el-select>
                            <img src="@/assets/img/home/video.jpg" alt="" v-if="!zfjly1">
                            
                            <iframe
                                class="hlsVideo monitor-height"
                                :src="zfjly1"
                                allowfullscreen="true"
                            ></iframe>
                            <div @click="videoClose(1)" class="videoCloseBtn" v-if="zfjly1">
                                <div class="returnText">关闭</div>
                            </div>
                        </div>
                        <div class="list" :offset="2">
                            <el-select
                                v-model="zfjly2"
                                placeholder="请选择执法记录仪"
                                class="videoSelect"
                            >
                                <el-option
                                    v-for="item in selectVideoData"
                                    :key="item.url"
                                    :label="item.name"
                                    :value="item.url"
                                >
                                </el-option>
                            </el-select>
                             <img src="@/assets/img/home/video.jpg" alt="" v-if="!zfjly2">
                            <iframe
                                class="hlsVideo monitor-height"
                                :src="zfjly2"
                                allowfullscreen="true"
                            ></iframe>
                            <div @click="videoClose(2)" class="videoCloseBtn" v-if="zfjly2">
                                <div class="returnText">关闭</div>
                            </div>
                        </div>
                    </el-row>
                </div>

                <!-- <div class="rightBot">
                    <h4>网格人员信息</h4>
                    <div class="rightBotContent" v-if="erpData.length > 0">
                        <el-table
                            :data="rightArray.tableData"
                            class="transparentTableRow"
                            height="100%"
                            :empty-text="dataNo2"
                            ref="reportTable"
                            @mouseenter="autoScroll(true)"
                            @mouseleave="autoScroll()"
                        >
                            <el-table-column v-for="item in rightArray.headerData2" show-overflow-tooltip :key="item.prop" :prop="item.prop" align="left" min-width="20" :label="item.name">
                                <template #default="scope">
                                    {{ item.prop === "type" ? "" : item.prop === "status" ? (scope.row[item.prop] == 1 ? "可用" : "不可用") : scope.row[item.prop] }}
                                </template>
                            </el-table-column>
                        </el-table>
                    </div>
                </div> -->
            </el-col>
        </transition>

        <!-- 普通弹框 -->
        <!-- <div class="tableTooltipwt sadianTankang" v-show="stores.$state.arrayList.length > 0 && !jkspStatus">
            <img src="~@a/img/icon/close.png" alt="" class="close" @click="close" />
            <el-row class="tableContent">
                <el-col class="mk" v-for="li in stores.$state.arrayList" :key="li" v-show="li.title[1]">
                    <p v-show="li.title[1]">{{ li.title[0] }}</p>
                    <el-row>
                        <el-col v-for="ch in li.children" :key="ch" :span="ch[2]" v-show="li.title[1] && ch[1]">
                            <span class="color1">{{ ch[0] }}</span>
                            <span class="color2">{{ ch[1] }}</span>
                        </el-col>
                        <el-row style="margin-top: 10px" v-if="li.type">
                            <iframe :src="li.url" allowfullscreen="true" style="width: 100%"></iframe>
                        </el-row>
                    </el-row>
                </el-col>
            </el-row>
        </div> -->
         <!-- 普通弹框 -->
         <div class="tableTooltipwt sadianTankang " v-if="jkspStatus">
            <img src="~@a/img/icon/close.png" alt="" class="close" @click="closeJkspStatus" />
            <el-row class="tableContent">
                <el-col class="mk">
                    <p style="font-size:0.2rem">监控视频</p>
                    <el-row>
                        <el-col v-for="ch in stores.$state.jkspData.children" :key="ch" :span="24" >
                            <span class="color1">{{ ch[0] }}</span>
                            <span class="color2">{{ ch[1] }}</span>
                        </el-col>
                    </el-row>
                </el-col>
                <div class="video">
                    <video  :id="Message.videoId" preload="true" autoplay="autoplay"
                    class="hlsVideo monitor-height" ref="hlsVideo" style="width: 100%" controls muted></video>
                </div>
                
            </el-row>
        </div>

        <!-- pdf弹框 -->
        <div class="dialogSec">
            <el-dialog v-model="dialogTableVisible" title="" :showClose="false">
                <iframe
                    :src="pdfUrl"
                    frameborder="0"
                    style="width: 100%; height: 87vh"
                ></iframe>
            </el-dialog>
        </div>
        <!-- 消防安全重点单位弹框 -->
        <transition name="el-fade-in-linear">
            <div class="tableTooltipwt2" v-if="tk">
                <img src="~@a/img/icon/close.png" alt="" class="close" @click="closeTk" />
                <el-col class="mk">
                    <el-row>
                        <el-col>
                            <span class="color2">单位名称：</span>
                            <span class="color1">{{ tkData.companyName }}</span>
                        </el-col>
                        <el-col>
                            <span class="color2">单位类型：</span>
                            <span class="color1">重点单位</span>
                        </el-col>
                        <!-- <el-col v-if="tkData.linkPhone">
                            <span class="color2">联系电话：</span>
                            <span class="color1">{{ tkData.linkPhone }}</span>
                        </el-col> -->
                        <el-col>
                            <span class="color2">地址：</span>
                            <span class="color1">{{ tkData.address }}</span>
                        </el-col>
                        <el-col v-if="tkData.person3">
                            <span class="color2">单位联系人：</span>
                            <span class="color1">{{ tkData.person3 }}</span>
                        </el-col>
                        <el-col v-if="tkData.phone3" >
                            <span class="color2">单位联系人电话：</span>
                            <span class="color1">{{ tkData.phone3 }}</span>
                        </el-col>
                        <el-col v-if="tkData.person1">
                            <span class="color2">消防安全责任人：</span>
                            <span class="color1">{{ tkData.person1 }}</span>
                        </el-col>
                        <el-col v-if="tkData.phone1">
                            <span class="color2">消防安全责任人电话：</span>
                            <span class="color1">{{ tkData.phone1 }}</span>
                        </el-col>
                        <el-col v-if="tkData.person2">
                            <span class="color2">消防安全管理人：</span>
                            <span class="color1">{{ tkData.person2 }}</span>
                        </el-col>
                        <el-col v-if="tkData.phone2" style="border-bottom: 1px solid #fff; padding-bottom: 10px">
                            <span class="color2">消防安全管理人电话：</span>
                            <span class="color1">{{ tkData.phone2 }}</span>
                        </el-col>
                        
                        <el-col style="margin-top: 6px">
                            <span class="color1" style="margin-left: 0">企业消防综合评估</span>
                            <span class="color1" style="float: right"
                                >综合得分：{{
                                    tkData.fireRisk + tkData.buildIntegrity + tkData.lawEnforce + tkData.selfManage + tkData.facilityStatus
                                        ? (tkData.fireRisk + tkData.buildIntegrity + tkData.lawEnforce + tkData.selfManage + tkData.facilityStatus).toFixed(2)
                                        : 0
                                }}
                                分</span
                            >
                        </el-col>
                        <table border="0" cellspacing="0" cellpadding="0">
                            <thead>
                                <tr>
                                    <th>指数</th>
                                    <th>建筑整体指数</th>
                                    <th>火灾风险指数</th>
                                    <th>监督执法指数</th>
                                    <th>自主管理指数</th>
                                    <th>设施状况指数</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>得分</td>
                                    <td>{{ tkData.fireRisk }}</td>
                                    <td>{{ tkData.buildIntegrity }}</td>
                                    <td>{{ tkData.lawEnforce }}</td>
                                    <td>{{ tkData.selfManage }}</td>
                                    <td>{{ tkData.facilityStatus }}</td>
                                </tr>
                            </tbody>
                        </table>
                        <el-col style="margin-top: 6px" v-if="tkData.reformPart">
                            <span class="color1" style="margin-left: 0">消防整改情况</span>
                        </el-col>
                        <el-col v-if="tkData.reformPart">
                            <span class="color1" style="margin-left: 0">编号：{{ tkData.reformCode }}</span>
                            <span class="color1" style="float: right">整改期限：{{ tkData.limitTime ? tkData.limitTime.split("T")[0] + " " + tkData.limitTime.split("T")[1] : "" }}</span>
                        </el-col>
                        <table border="0" cellspacing="0" cellpadding="0" v-if="tkData.reformPart">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>整改项</th>
                                    <th>原因</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-for="(item, index) in tkData.reformPart.data" :key="index">
                                    <td>{{ index + 1 }}</td>
                                    <td>{{ item.item }}</td>
                                    <td>{{ item.reason }}</td>
                                </tr>
                            </tbody>
                        </table>
                        <div style="margin-top: 40px" v-if="tkData.reformStatus != 0">
                            <el-steps
                                :active="tkData.reformStatus == 1 ? 1 : tkData.reformStatus == 2 || tkData.reformStatus == 3 ? 1 : tkData.reformStatus == 4 || tkData.reformStatus == 5 ? 2 : 0"
                                align-center
                            >
                                <el-step title="已接收" :description="tkData.receivedTime.replace('T', ' ')"></el-step>
                                <el-step
                                    :title="tkData.reformStatus == 2 ? '整改中' : tkData.reformStatus == 3 || tkData.reformStatus == 4 || tkData.reformStatus == 5 ? '整改完成' : '整改中'"
                                    :description="tkData.reformTime.replace('T', ' ')"
                                ></el-step>
                                <el-step
                                    :title="
                                        tkData.reformStatus == 1 || tkData.reformStatus == 2 || tkData.reformStatus == 3
                                            ? '待审核'
                                            : tkData.reformStatus == 4
                                            ? '审核不通过'
                                            : tkData.reformStatus == 5
                                            ? '审核通过'
                                            : ''
                                    "
                                    :description="tkData.reviewTime.replace('T', ' ')"
                                ></el-step>
                            </el-steps>
                        </div>
                        <div style="margin: 10px auto" v-if="tkData.companyName == '上海虹桥国际特商物流港'">
                            <el-button type="primary" size="small" style="background: none; border-radius: 4px; border: 1px solid #73fbfd; height: 30px; padding: 0 6px !important; margin: 10px 0 0"
                                ><a href="http://file.usky.cn/statics/202303/20232D91E7B3D14C346BC9F009FA0B76FA5BF.pdf" target="_blank" style="color: #fff; text-decoration: none"
                                    >&nbsp;&nbsp;查看报告&nbsp;&nbsp;</a
                                ></el-button
                            >
                        </div>
                    </el-row>
                </el-col>
            </div>
        </transition>

        
    </el-row>

</template>

<script>
import axios from "axios";
import linstener from "@c/mixins/linstener";
import map from "@c/mixins/map-data1";
import gauge from "@c/gauge/index6";
// import map from "@c/mixins/map-gaode-public";

import { Vue3SeamlessScroll } from "vue3-seamless-scroll";

import category from "@c/category/index22";
import unitBox from "@c/unitBox/index";
import CountTo from '@/components/count-to/index.js'
import Hls from "hls.js";
import { set } from "lodash";
export default {
    mixins: [linstener, map],
    components: { category, gauge, CountTo,unitBox ,Vue3SeamlessScroll },
    data() {
        return {
                tk:false,
                tkData: {},//消防安全重点单位弹框数据
                jStart:0,//检出率开始
                jEnd:300,//检出率结束
                jEndS:0,//检出率样式数组
                marginTop1:"-0.5vh",
            jxcstj:[0,0,0,0],//九小场所统计
            check: '1',
            dialogTableVisible:false,
            pdfUrl:'',
            dailyArray:[
                {
                    title: '第十一期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/11.4闵行疏导区每日动态.pdf',
                },
                {
                    title: '第十期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/11.3闵行疏导区每日动态.pdf',
                },
                {
                    title: '第九期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/11.2闵行疏导区每日动态.pdf',
                },
                {
                    title: '第八期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/11.1闵行疏导区每日动态.pdf',
                },
                {
                    title: '第七期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/10.31闵行疏导区每日动态.pdf',
                },
                {
                    title: '第六期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/10.30闵行疏导区每日动态.pdf',
                },
                {
                    title: '第五期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/10.29闵行疏导区每日动态.pdf',
                },
                {
                    title: '第四期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/10.28闵行疏导区每日动态.pdf',
                },
                {
                    title: '第三期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/10.27闵行疏导区每日动态.pdf',
                },
                {
                    title: '第二期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/10.26闵行疏导区每日动态.pdf',
                },
                {
                    title: '第一期： 第七届中国国际进口博览会每日工作动态',
                    url: 'https://mhxfzd.shmh.gov.cn/data/10.25闵行疏导区每日动态.pdf',
                },
            ],
            dailyArray2:[
               
                {
                    title: '第七届进博会闵行区消防救援支队组织架构',
                    url: 'https://mhxfzd.shmh.gov.cn/data/第七届进博会闵行区消防救援支队组织架构.pdf',
                },
                {
                    title: '关于本区消防安全重点单位全面开展火灾防范“十个一”活动工作的通知',
                    url: 'https://mhxfzd.shmh.gov.cn/data/关于本区消防安全重点单位全面开展火灾防范“十个一”活动工作的通知.pdf',
                },
                {
                    title: '关于印发《第七届中国国际进口博览会闵行区疏导区街镇消防安保工作重点任务清单》的通知',
                    url: 'https://mhxfzd.shmh.gov.cn/data/关于印发《第七届中国国际进口博览会闵行区疏导区街镇消防安保工作重点任务清单》的通知.pdf',
                },
                {
                    title: '关于印发《第七届中国国际进口博览会消防安保闵行区社会面火灾防控工作方案》的通知',
                    url: 'https://mhxfzd.shmh.gov.cn/data/关于印发《第七届中国国际进口博览会消防安保闵行区社会面火灾防控工作方案》的通知.pdf',
                }
            ],
            tableDataGrid2:[
                {id:"检查家次",count1:"20",count2:"36",count3:"19",count4:"41"},
                {id:"发现隐患数",count1:"20",count2:"36",count3:"19",count4:"41"},
                {id:"督改隐患数",count1:"20",count2:"36",count3:"19",count4:"41"}
            ],//疏导区监督执法
            // 大中网格数据渲染 start
            tableDataGrid:[],
            tableDataBigGrid:[
                // 2023
                // {
                // id: '闵S1（华漕网格）',
                // count1: '1361',
                // count2: '499',
                // count3: '355',
                // },
                // {
                // id: '闵S2（新虹网格）',
                // count1: '1674',
                // count2: '564',
                // count3: '491',
                // },
                // {
                // id: '闵S3（七宝网格）',
                // count1: '1585',
                // count2: '487',
                // count3: '391',
                // },{
                // id: '闵S4（虹桥网格）',
                // count1: '1412',
                // count2: '577',
                // count3: '402',
                // }

                // 2024
                {
                    id: '闵S1（华漕网格）',
                    count1: '1117',
                    count2: '342',
                    count3: '203',
                },
                {
                    id: '闵S2（新虹网格）',
                    count1: '798',
                    count2: '141',
                    count3: '122',
                },
                {
                    id: '闵S3（七宝网格）',
                    count1: '1264',
                    count2: '300',
                    count3: '244',
                },
                {
                    id: '闵S4（虹桥网格）',
                    count1: '918',
                    count2: '264',
                    count3: '217',
                }
        ],
        tableDataMiddleGrid:[
            // 2023
                // {
                // id: '闵S1-1（华漕网格）',
                // count1: '225',
                // count2: '90',
                // count3: '66',
                // },
                // {
                // id: '闵S1-2（华漕网格）',
                // count1: '141',
                // count2: '57',
                // count3: '44',
                // },
                // {
                // id: '闵S1-3（华漕网格）',
                // count1: '164',
                // count2: '58',
                // count3: '39',
                // },{
                // id: '闵S1-4（华漕网格）',
                // count1: '537',
                // count2: '197',
                // count3: '130',
                // },{
                // id: '闵S1-5（华漕网格）',
                // count1: '253',
                // count2: '83',
                // count3: '66',
                // },{
                // id: '闵S2-1（新虹网格）',
                // count1: '627',
                // count2: '138',
                // count3: '93',
                // },{
                // id: '闵S2-2（新虹网格）',
                // count1: '225',
                // count2: '111',
                // count3: '104',
                // },{
                // id: '闵S2-3（新虹网格）',
                // count1: '395',
                // count2: '78',
                // count3: '76',
                // },{
                // id: '闵S2-4（新虹网格）',
                // count1: '425',
                // count2: '253',
                // count3: '196',
                // },{
                // id: '闵S3-1（七宝网格）',
                // count1: '394',
                // count2: '158',
                // count3: '105',
                // },{
                // id: '闵S3-2（七宝网格）',
                // count1: '171',
                // count2: '48',
                // count3: '34',
                // },{
                // id: '闵S3-3（七宝网格）',
                // count1: '344',
                // count2: '306',
                // count3: '131',
                // },{
                // id: '闵S4-1（虹桥网格）',
                // count1: '893',
                // count2: '346',
                // count3: '272',
                // },{ id: '闵S4-2（虹桥网格）',
                // count1: '499',
                // count2: '125',
                // count3: '115',
                // }
                // 2024
                {
                    id: '闵S1-1（华漕网格）',
                    count1: '109',
                    count2: '48',
                    count3: '28',
                },
                {
                    id: '闵S1-2（华漕网格）',
                    count1: '97',
                    count2: '44',
                    count3: '27',
                },
                {
                    id: '闵S1-3（华漕网格）',
                    count1: '156',
                    count2: '47',
                    count3: '32',
                },{
                    id: '闵S1-4（华漕网格）',
                    count1: '434',
                    count2: '126',
                    count3: '68',
                },{
                    id: '闵S1-5（华漕网格）',
                    count1: '269',
                    count2: '66',
                    count3: '39',
                },{
                    id: '闵S2-1（新虹网格）',
                    count1: '282',
                    count2: '44',
                    count3: '39',
                },{
                    id: '闵S2-2（新虹网格）',
                    count1: '122',
                    count2: '51',
                    count3: '48',
                },{
                    id: '闵S2-3（新虹网格）',
                    count1: '180',
                    count2: '23',
                    count3: '23',
                },{
                    id: '闵S2-4（新虹网格）',
                    count1: '214',
                    count2: '146',
                    count3: '107',
                },{
                    id: '闵S3-1（七宝网格）',
                    count1: '316',
                    count2: '92',
                    count3: '75',
                },{
                    id: '闵S3-2（七宝网格）',
                    count1: '243',
                    count2: '47',
                    count3: '33',
                },{
                    id: '闵S3-3（七宝网格）',
                    count1: '701',
                    count2: '159',
                    count3: '136',
                },{
                    id: '闵S4-1（虹桥网格）',
                    count1: '642',
                    count2: '79',
                    count3: '64',
                },{ id: '闵S4-2（虹桥网格）',
                    count1: '271',
                    count2: '61',
                    count3: '58',
                }
            ],


            tableDataBasic:[
            {
                date: '2016-05-03',
                name: 'Tom',
                address: 'No. 189, Grove St, Los Angeles',
            },
            {
                date: '2016-05-02',
                name: 'Tom',
                address: 'No. 189, Grove St, Los Angeles',
            },
            {
                date: '2016-05-04',
                name: 'Tom',
                address: 'No. 189, Grove St, Los Angeles',
            },
            {
                date: '2016-05-01',
                name: 'Tom',
                address: 'No. 189, Grove St, Los Angeles',
            },
            ],
            basicStatisStatus:true,
            gridStatisticsNum:{
                total:0,
                over:0,
                rate:0,
                yinhuan:0,
            },
            hls: "",
            Message: {
                "name": undefined,
                "videoId": undefined,
                "videoUrl": false,
            },
            jkspStatus:false,//监控视频弹框状态
            gridStatisticsStatus:true,//处置网格统计状态
            dataNo3:"加载中...",
            gridStatisticsTable:[
                // {
                //     "案件状态": "待申请核查",
                //     "任务号": "2310M2253844",
                //     "发现时间": "2023-10-13 09:18",
                //     "案件来源": "12345上报",
                //     "案件属性": "部件",
                //     "案件大类": "其他设施",
                //     "案件小类": "充电站（桩）",
                //     "案件子类": "其他充电桩相关问题",
                //     "街镇": "华漕镇",
                //     "自治网格": "诸新路居委会",
                //     "自治网格类型": "居委",
                //     "处置网格": "华漕镇处置网格五（诸翟南片区）",
                //     "责任块": "九方家园",
                //     "发生地址": "闵行区华漕镇保乐路168弄九方家园",
                //     "诉求联系人": "臧婷婷",
                //     "流转方向": "平台流转",
                //     "派遣时间": "2023-10-13 09:20",
                //     "主责部门": "华漕镇",
                //     "三级主责部门": "诸新路居委会",
                //     "处理时间": null,
                //     "处理备注": null,
                //     "结案时间": null,
                //     "结案评判": null,
                //     "结案意见": null,
                //     "X坐标": -17369.89850242,
                //     "Y坐标": -2808.9159114,
                //     "问题描述": "市民来电反映:其是上述地址小区居民，要申请安装充电站，物业不肯给其敲章，市民为此不满，故来来电投诉上述小区物业。"
                // }
            ],//处置网格table数据
            gridStatisticsTableType:[],
            gridStatisticsHeader:[
                { prop: "发现时间", name: "发现时间" },
                { prop: "街镇", name: "街镇" },
                { prop: "自治网格", name: "自治网格" },
                { prop: "案件子类", name: "案件子类" },
                { prop: "案件状态", name: "案件状态" },
                
            ],//处置网格header

        value111:40,   
        //24、厂房仓库?? 25、大型商业综合体??  27、批发市场?? 
        // 23、宾馆酒店  26、规模租赁公寓 28、三合一场所 29、养老机构 30、医疗机构
        options: [
        {
            value: '23',
            label: '宾馆酒店',
        },
        {
            value: '25', //
            label: '大型商业综合体',
        },   
        {
            value: '40', //?
            label: '消防安全重点单位',
        },
        {
            value: '30',
            label: '医疗机构',
        },
        {
            value: '29',
            label: '养老机构',
        },
        
        {
            value: '24',
            label: '厂房仓库',
        },
        {
            value: '27',
            label: '批发市场',
        },
        // {
        //     value: '5',
        //     label: '居民小区',  //??
        // },
       
        {
            value: '26',
            label: '规模租赁公寓',
        },
        {
            value: '28',
            label: '三合一场所',
        },
       
        {
            value: '6',//???? 
            label: '电动自行车领域',
        },
       
        ],
        arrayData:[],
        line3Array:[
                {
                    "name": "重点单位",
                    "count": 258,
                    "value":47
                },
                {
                    "name": "大型综合体",
                    "count": 12,
                    "value":25
                },
                {
                    "name": "酒店/宾馆",
                    "count": 99,
                    "value":23
                },
                {
                    "name": "规模租赁",
                    "count": 112,
                    "value":26  
                },
                {
                    "name": "厂房/仓库",
                    "count": 252,
                    "value":24  
                },
                {
                    "name": "医疗机构",
                    "count": 15,
                    "value":30,
                },{
                    "name": "养老机构",
                    "count": 8,
                    "value":29,
                },
                {
                    "name": '九小场所',
                    "count": 4128,
                    "value": '39',
                },
                {
                    "name": "居民小区",
                    "count": 194,
                    "value":38  //?
                },
                {
                    "name": "混合经营场所",
                    "count": 39,
                    "value":44
                },
                {
                    "name": "在建工地",
                    "count": 24,
                    "value":46
                },
                {
                    "name": "寄宿学校",
                    "count": 5,
                    "value":45
                }
            
            ],
            // line3Array:[
            //     {
            //         "name": "重点单位",
            //         "count": 176,
            //         "value":40
            //     },
            //     {
            //         "name": "大型综合体",
            //         "count": 13,
            //         "value":25
            //     },
            //     // {
            //     //     "name": "重点单位",
            //     //     "count": 14,
            //     //     "value":13
            //     // },
            //     {
            //         "name": "酒店/宾馆",
            //         "count": 85,
            //         "value":23
            //     },
            //     {
            //         "name": "规模租赁",
            //         "count": 90,
            //         "value":26  
            //     },
            //     // {
            //     //     "name": "高层建筑",   
            //     //     "count": 839,
            //     //     "value":0  //?
            //     // },
            //     {
            //         "name": "厂房/仓库",
            //         "count": 83,
            //         "value":24  
            //     },
            //     // {
            //     //     "name": "商市场",
            //     //     "count": 11,
            //     //     "value":0  //?
            //     // },
            //     // {
            //     //     "name": "公共娱乐场所",
            //     //     "count": 38,
            //     //     "value":0  //?
            //     // },
            //     {
            //         "name": "医疗机构",
            //         "count": 18,
            //         "value":30,
            //     },{
            //         "name": "养老机构",
            //         "count": 10,
            //         "value":29,
            //     },
            //     {
            //         "name": '批发市场',
            //         "count": 2,
            //         "value": '27',
            //     },
            //     {
            //         "name": '儿童福利',
            //         "count": 1,
            //         "value": '41',
            //     },
            //     {
            //         "name": "沿街门面",
            //         "count": 3080,
            //         "value":399  //
            //     },
            //     // {
            //     //     "name": "办公楼宇",
            //     //     "count": 52,
            //     //     "value":0  //?
            //     // },
            //     // {
            //     //     "name": "在建工地",
            //     //     "count": 6,
            //     //     "value":0  //?
            //     // },
            //     {
            //         "name": "居民小区",
            //         "count": 194,
            //         "value":38  //?
            //     },
                
            //     // {
            //     //     "name": "宗教场所",
            //     //     "count": 4,
            //     //     "value":0  //?
            //     // },
            //     // {
            //     //     "name": "学校",
            //     //     "count": 23,
            //     //     "value":37  
            //     // },
            //     // {
            //     //     "name": "加油（汽）站",
            //     //     "count": 10,
            //     //     "value":0  //?
            //     // },
            //     {
            //         "name": "地铁站",
            //         "count": 4,
            //         "value":43 //?
            //     }
                
            // ],
        staticData:{
            array:[],
            total:0,
            array1:[
                {
                    "streetTown": "消防站",
                    "count": 4,
                    "color": "#FF0709",
                    "facilityType":0
                },
                {
                    "streetTown": "流动消防站（一级）",
                    "count": 5,
                    "color": "#F48354",
                    "facilityType":33
                },
                {
                    "streetTown": "流动消防站（二级）",
                    "count": 5,
                    "color": "#73FBFD",
                    "facilityType":34
                },
                {
                    "streetTown": "重点微型消防站",
                    "count": 77,
                    "color": "#4FE261",
                    "facilityType":36
                }
            ]

        },
        zfjly1:undefined,
        zfjly2:undefined,
        tabsType:1,
        diversionArea2:[
            { name: "虹桥镇（自选）", value: 2.21, unit: "km²", color: "#01C3B4" },
            { name: "中网格（虹桥）", value: 2, unit: "个", color: "#01C3B4" },
            { name: "小网格（虹桥）", value: 11, unit: "个", color: "#01C3B4" },
        ],
        diversionArea2State:true,
        selectVideoData: [],
            tabsArea: "fx", //切换
            diversionArea: [
                { name: "疏导区总面积", value: 54.46, unit: "km²", color: "#7DD807" },
                { name: "华漕镇", value: 28.2, unit: "km²", color: "#01C3B4" , url:"https://mhxfzd.shmh.gov.cn/data/%E5%8D%8E%E6%BC%95%E9%95%87%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf"},
                { name: "新虹街道", value: 19.26, unit: "km²", color: "#01C3B4", url:"https://mhxfzd.shmh.gov.cn/data/%E6%96%B0%E8%99%B9%E8%A1%97%E9%81%93%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf" },
                { name: "七宝镇", value: 7, unit: "k㎡", color: "#01C3B4" , url:"https://mhxfzd.shmh.gov.cn/data/%E4%B8%83%E5%AE%9D%E9%95%87%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf"},
                { name: "虹桥镇", value: 2.21, unit: "km²", color: "#01C3B4", url:"https://mhxfzd.shmh.gov.cn/data/%E8%99%B9%E6%A1%A5%E9%95%87%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf" },
                
                { name: "分管领导", value: 20, unit: "人", color: "#058DFE" },
                { name: "增援干部", value: 11, unit: "人", color: "#058DD1" },
                { name: "大网格", value: 3, unit: "个", color: "#FC0609 " },
                { name: "中网格", value: 12, unit: "个", color: "#FD843A" },
                { name: "小网格", value: 89, unit: "个", color: "#7DD807" },
                // {name:"人员力量",value:41,unit:"人",color:"#058DD1"},
            ], //疏导区基本情况
            gridStatus: 19,
            dataNo: "加载中...",
            dataNo2: "加载中...",
            stores: this.$useStore(),
            proptionList: [
                {
                    type: "已推送单位",
                    number: 306,
                    month: null,
                    radio: "1",
                    sameStatus: 2,
                    avg: null,
                    color: ["#BF4216 ", "#F68E6A"],
                },
                {
                    type: "已接收单位",
                    number: 303,
                    month: null,
                    radio: "1",
                    sameStatus: 2,
                    avg: null,
                    color: ["#06B1B9  ", "#14E1EA"],
                },
                {
                    type: "推送接收率",
                    number: 99,
                    month: null,
                    radio: "0.99",
                    sameStatus: 2,
                    avg: null,
                    color: ["#E4951E ", "#F8ED41"],
                },
            ],
            category: true,
            tableData2: [],
            headerData2: [
                { prop: "name", name: "站点名称" },
                { prop: "car", name: "站点车辆" },
                { prop: "personnel", name: "人员" },
            ],
            reportComplaintList: [
                { name: "火灾扑救", value: 100 },
                { name: "社会救助", value: 90 },
                { name: "抢险救援", value: 60 },
            ], //接处警情况
            checkedArray: {
                checkedData: [19],
                checkedList: [
                    { value: 0, label: "车辆" },
                    { value: 1, label: "历史警情" },
                    { value: 2, label: "历史火灾" },
                    { value: 3, label: "重点单位" },
                    { value: 4, label: "消防站" },
                    { value: 19, label: "大网格" },
                    { value: 15, label: "中网格" },
                    { value: 16, label: "小网格" },
                    { value: 17, label: "监控视频" },
                    { value: 18, label: "监督检查" },
                    { value: 20, label: "执法记录仪" },
                    { value: 21, label: "鹰眼监控" },
                ],
            }, //类型筛选
            checkedSelectValue: "40",
            checkedSelectLabel: "消防站",
            checkedSelectArray: [
                { value: 40, label: "消防站" },
                { value: 41, label: "专职队" },
                //     { value: 43, label: "城市消防站" },
                { value: 44, label: "企业消防队" },
                { value: 42, label: "街镇微型消防站" },
                { value: 45, label: "社区微型消防站" },
                { value: 46, label: "一级微型消防站" },
                { value: 47, label: "街镇专职消防队" },
            ],
            tableData: [
                {
                    type: "火灾",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "火灾",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "火灾",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "社会救援",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "社会救援",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "社会救援",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "抢险救援",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "抢险救援",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "抢险救援",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "抢险救援",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
                {
                    type: "火灾",
                    policeTime: "23:00:00",
                    alertLevel: "二级",
                    address: "闵行区",
                    car: "2辆",
                    policeCause: "电器火灾",
                    department: "吴泾支队",
                    status: "1",
                    callingUp: "1号",
                    equipName: "一七",
                    carNumber: "沪X5477应急",
                    carStatus: "出动",
                    disposeTime: "1:00：00",
                    correspondent: "张三",
                    commander: "李四",
                    firemen: "王五",
                    driver: "赵六",
                },
            ],
            headerData: [
                { prop: "policeTime", name: "立案时间" },
                { prop: "alertLevel", name: "警情等级" },
                { prop: "address", name: "案发地址" },
                { prop: "car", name: "调动车辆" },
                // { prop: "type", name: "类型" },
                { prop: "policeCause", name: "原因" },
                { prop: "department", name: "所属中队" },
                { prop: "status", name: "状况" },
            ],

            erpData: [
                {
                    linkPhone: "13917453877",
                    address: "上海市闵行区新虹街道申滨南路1156号龙湖天街A栋112、115室",
                    employeeNum: "",
                    registrar: "市场监督管理局",
                    companyType: "9",
                    fireDutyName: "魏良满",
                    delegateName: "魏静",
                    completedTime: null,
                    companyName: "龙湖虹桥天街",
                    fireManageName: "魏良满",
                    businessStatus: "开业",
                    buildArea: "0.0",
                    paidCapital: "500",
                    companyId: "2DB679350A0F4023B74C4261539AA031",
                    foundTime: null,
                    buildingStructure: "钢筋混凝土",
                    registeredCapital: "500",
                    organization: "91310112MA1GEKG30K",
                    companyNature: 9,
                    buildingHeight: "25",
                    fireRating: "一级",
                    construction: null,
                    id: 1415,
                },
            ],
            rightArray: {
                tableData: [],
                headerData2: [
                    { prop: "gridArea", name: "网格区域" },
                    { prop: "streetTown", name: "街道" },
                    { prop: "gridPeople", name: "网格人员" },
                    { prop: "recruiting", name: "增援干部" },
                    { prop: "responsibilities", name: "分管领导" },
                ],
            },
        };
    },
    mounted() {
        this.checkFullScreen(); //全屏
        this.timeJ() //检查率颜色
        // this.gridStatisticsData()//处置网格数据
        this.grid(15);
        this.tableDataGrid=this.tableDataBigGrid;
        setTimeout(() => {
            this.autoScroll();
        });
        window.addEventListener("resize", () => this.resizeTimeActions([this.$refs.category, this.$refs.gauge1]), true);
        this.initMap("anbao"); //地图初始化
        // this.anbao(null, 3);//大网格
        this.dwgjcmcAndhzzx()//大网格名称及会展中心 
        // this.anbaoMap()
        // this.getFireSiteDuty(); //各站点执勤实力
        // this.selectVideo(); //视频在线
        // this.sadianSelect(this.checkedArray.checkedData[0]);  //撒点
        this.getStaticData(this.value111)   //疏导区社会单位情况统计
        this.getZQStaticData()  //执勤战备力量部署
        this.anbaoSDUWG2()//疏导区网格（大）
        this.basicStaticsData(39)//九小场所统计
        // this.llbutj()//力量部署统计

        // this.staticsSd()  // 疏导区基本情况统计

        
    },
    methods: {
        //检查率颜色
        timeJ(){
            // 设置间隔时间（例如3秒）
            let duration = 2000;
            // 设置定时器
            let interval = setInterval(() => {
                // 计算当前时间已过的百分比
                let timeElapsed = this.jEnd / (duration / 100);
                // 如果时间已过或接近目标值，清除定时器并设置为目标值
                if (this.jEndS >= this.jEnd) {
                    clearInterval(interval);
                    this.jEndS = this.jEnd;
                } else {
                    this.jEndS = timeElapsed  + this.jEndS
                    // 输出当前值
                }
            }, 100);
        },
       //中网格对应左侧疏导区基本情况
        async staticsSd(name,grideGrade,mapGridName){
            let res = await this.$axios.get(
                this.$api.security.gridMemderStatistic +
                    "?" +
                    this.$qs.stringify({
                        gridArea: name,
                        gridGrade:grideGrade,
                        mapGridName:mapGridName
                    })
            );
            if (res.data) {
               this.line3Array[0].count=res.data.keyCompanyNum; //重点单位
               this.line3Array[1].count=res.data.largeBuildNum;//大型商业综合体
               this.line3Array[2].count=res.data.hotelNum;//宾馆酒店
               this.line3Array[3].count=res.data.scaleRentNum;//规模租赁
               this.line3Array[4].count=res.data.factoryStoreNum;//厂房仓库
               this.line3Array[5].count=res.data.medicalInstitutionNum;//医疗机构
               this.line3Array[6].count=res.data.elderCareNum;//养老机构
               this.line3Array[7].count=0;//九小场所
            //    this.line3Array[7].count=res.data.dealerMarketNum;//批发市场  ？？？
            //    this.line3Array[8].count=res.data.schoolNum;//儿童福利机构
            //    this.line3Array[9].count=res.data.streetFrontNum;//沿街门面
            //    this.line3Array[10].count=res.data.villageNum;//居民小区
            //    this.line3Array[11].count=res.data.subwayStationNum;//地铁站
                this.line3Array[8].count=res.data.villageNum//居民小区
                this.line3Array[9].count=0//混合经营场所
                
                this.line3Array[10].count=res.data.constructionSiteNum//在建工地
                this.line3Array[11].count=res.data.schoolNum;//寄宿学校
               

            }
                        

        },
        
        /**
         * @消防安全重点单位撒点详情
         * @api接口请求
         */
         async zddwSd(val) {
            let res = await this.$axios.get(
                this.$api.selfManagement.scatterData +
                    "?" +
                    this.$qs.stringify({
                        companyId: val.companyId,
                    })
            );
            if (res.data) {
                this.tkData = res.data[0];
                this.tkData.person1 = val.person1
                this.tkData.person2 = val.person2
                this.tkData.person3 = val.person3
                this.tkData.phone1 = val.phone1
                this.tkData.phone2 = val.phone2
                this.tkData.phone3 = val.phone3
                this.tk = true;
            }
        },
        /**
         * 消防安全重点单位关闭
         */
        closeTk() {
            this.tk = false;
        },
        /**
         * 每日动态弹框打开pdf
         */
        openPdf(val){
            this.pdfUrl=val;
            this.dialogTableVisible=true
        },
        openPdf2(val){
            if(val.url){
                this.pdfUrl=val.url;
                this.dialogTableVisible=true
            }
            
        },

        btnC(val) {
            this.check = val;
            if(val==2){
                this.tableDataGrid=this.tableDataMiddleGrid
            }else{
                this.tableDataGrid=this.tableDataBigGrid

            }
            

        },
        /**
         * 视频关闭
         * @param {} id 
         */
        videoClose(id){
            if(id ==1){
                this.zfjly1 = true
            }
            if(id ==2){
                this.zfjly2 = true
            }
            this.destroyHls()
        },
        /**
         * 大网格街镇名称
         */
         dwgjcmcAndhzzx(){
            setTimeout(()=>{
                let data = [
                    {
                        gisX: 121.271655,
                        gisY: 31.227993,
                        type: "wgmc_hc",
                        type2:"大网格",
                        type3:"华漕镇",
                    },
                    {
                        gisX: 121.308632,
                        gisY: 31.201660,
                        type: "wgmc_xh",
                        type2:"大网格",
                        type3:"新虹街道",
                    },
                    {
                        gisX: 121.333994,
                        gisY: 31.165263,
                        type: "wgmc_qb",
                        type2:"大网格",
                        type3:"七宝镇",
                    },
                    {
                        gisX: 121.37880329777738,   
                        gisY: 31.185610251208278,
                        type: "wgmc_hq",
                        type2:"大网格",
                        type3:"虹桥镇",
                    },
                    {
                        gisX: 121.302183,
                        gisY: 31.189991,
                        type: "国家会展中心",
                    }
                ];
                this.addMarkerWG(data, "security-plan", "大网格街镇名称&国家会展中心")
            },2000)
        },
        /**
         * 会展中心图标（）特殊处理
         */
        hzzxtb(){
            setTimeout(()=>{
                let data = {
                    gisX: 121.302183,
                    gisY: 31.189991,
                    type: "国家会展中心",
                };
                this.addMarkerSYC([data], "security-plan", "国家会展中心")
            },2000)
        },
        /**
         * 力量部署统计
         */
        llbutj(){
            this.$axios.post(this.$api.water.baseGgpFacilityStatistic,{
                    "facilityType": [33,34,35,36] ,
                    "statisticType":"facilityType",
            }).then((res) => {
                for(let i =0;i<res.data.length;i++){
                    if(res.data[i].facilityType == "33"){
                        this.staticData.array1[0].count = res.data[i].count
                    }
                    if(res.data[i].facilityType == "34"){
                        this.staticData.array1[1].count = res.data[i].count
                    }
                    if(res.data[i].facilityType == "35"){
                        this.staticData.array1[2].count = res.data[i].count
                    }
                    if(res.data[i].facilityType == "36"){
                        this.staticData.array1[3].count = res.data[i].count
                    }
                }
            })
        },
        staticsPoint(arr,type,val){  //疏导区社会单位情况统计撒点
            this.anbaoSDUWG()//疏导区网格
            this.addMarker(arr, "security-plan", val)
        },
        goPoints(type){
            if(type == 0){
                retuen
            }
                this.anbaoSDUWG()
            this.$axios.post(this.$api.water.baseGgpFacilityList,{
                                "facilityType": [type ] 
                        }).then((res) => {
                                let arr = []
                                if(res.data.length>0){
                                        arr = res.data;
                                        this.arrayData= res.data;
                                        
                                        if(type=='30'){
                                            this.addMarker(arr, "security-plan", "消防站")
                                        }else if(type=='33'){
                                            this.addMarker(arr, "security-plan", "流动消防站（一级）")
                                        }else if(type=='34'){
                                            this.addMarker(arr, "security-plan", "流动消防站（二级）")
                                        }else if(type=='36'){
                                            this.addMarker(arr, "security-plan", "重点微型消防站")
                                        }
                                        
                                }  
                        });


        },
        /**
         * 消防安全重点单位
         * @param {*} id
         */
         djActiveClick(id) {
               
                let type = "重点单位";
                let arr = [];
                this.$axios
                    .get(
                        this.$api.selfManagement.riskGradeScatter +
                            "?" +
                            this.$qs.stringify({
                                streetTown: this.stroes.$state.streetTown,
                                riskGrade: id + 1,
                            })
                    )
                    .then((res) => {
                        
                        let data2 = {
                            gisX: 121.302183,
                            gisY: 31.189991,
                            type: "国家会展中心",
                        };
                        if (res.data.length > 0) {
                            //点分布
                            let data = res.data;
                            for (let i = 0; i < data.length; i++) {
                                arr[i] = data[i];
                                arr[i].gisX = data[i].longitude;
                                arr[i].gisY = data[i].latitude;
                                arr[i].companyId = data[i].companyId;
                                arr[i].type = type;
                            }
                            arr.unshift(data2)
                            this.addMarker(arr.splice(0, 500), "self-management", id == 0 ? "高风险" : id ==1 ? "较高风险" : id == 2 ?  "一般风险" : id == 3 ? "低风险" : "");
                        } else {
                            
                            this.addMarker(arr, "self-management", type);
                            
                        }
                        this.anbaoSDUWG()//疏导区网格
                        
                    });
        },

        basicStaticsData(type,name){  //疏导区基本情况 统计点击事件
            this.$axios.post(this.$api.water.baseGgpFacilityList,{
                "facilityType": type == "新消监" ? [39,42] : type == 399 ? [39] : [type]
            }).then((res) => {
                    let arr = []
                if(res.data.length>0){
                    arr = res.data;
                    let data = {
                        gisX: 121.302183,
                        gisY: 31.189991,
                        type: "国家会展中心",
                    };
                    arr.push(data)
                    if(type == "29" || type == "30"){
                        this.arrayData= res.data;
                    }
                    //新消监
                    if(type == "新消监"){
                        this.addMarker(arr, "security-plan", type)
                    }else{
                        let dataOther = [data]
                        if(type == 39){ //九小场所
                            
                            this.anbaoSDUWG()//疏导区网格
                            if(name == "九小场所"){
                                for(let i=0;i<arr.length;i++){
                                    dataOther.push(arr[i])
                                }
                                this.addMarker(dataOther, "security-plan", name)
                            }else{
                                this.jxcstj = [0,0,0,0]
                                for(let i=0;i<arr.length;i++){
                                    if(arr[i].checkComment){
                                        if(arr[i].checkComment == "高风险"){
                                                this.jxcstj[0] ++
                                        }
                                        if(arr[i].checkComment == "较高风险"){
                                                this.jxcstj[1] ++
                                        }
                                        if(arr[i].checkComment == "一般风险"){
                                                this.jxcstj[2] ++
                                        }
                                        if(arr[i].checkComment == "低风险"){
                                                this.jxcstj[3] ++
                                        }
                                    }
                                }
                            }
                        }else{
                            if(type == 6){
                                arr = [data]
                                arr.push(res.data[8])
                                arr.push(res.data[9])
                            }
                            this.addMarker(arr, "security-plan", name)
                        }
                    }
                    if(type == 399){ //沿街门面 左侧顶部
                        this.addMarker(dataOther, "security-plan", name)

                    }
                    
                    this.anbaoSDUWG()//疏导区网格
                    // if(type=='29'){
                    //     this.addMarker(arr, "security-plan", "养老机构")
                    // }else if(type=='30'){
                    //     this.addMarker(arr, "security-plan", "医疗机构")
                    // }
                }  
            });
        },
        basicGoBack(){  //疏导区基本情况 返回

            this.basicStatisStatus=true;
        },

        getZQStaticData(){
                this.$axios.post(this.$api.water.baseGgpFacilityStatistic,{
                                "facilityType": [33,34,35,36 ],
                                "statisticType":"facilityType",
                        }).then((res) => {
                    // this.staticData.array=res.data;
                    // var colorArr=['#00C8B8','#068DFF','#FF843A','#7DD807'];
                    // this.staticData.array.forEach((item, index) => {
                    //     item.color = colorArr[index]
                    // })
                    // console.log(this.staticData.array)

                    // var totalCount=0
                    // res.data.forEach(function(item){
                    //     totalCount+=Number(item.count)

                    // })
                    // this.staticData.total=totalCount
                })

        },


        getStaticData(type){
                this.$axios.post(this.$api.water.baseGgpFacilityStatistic,{
                                "facilityType": [type ] ,
                                "statisticType":"street",
                        }).then((res) => {

                     //筛选4个街镇的数据
                    this.staticData.array = res.data.filter(item=> item.streetTown=='华漕镇'||item.streetTown=='新虹街道'||item.streetTown=='七宝镇'||item.streetTown=='虹桥镇')
                    var colorArr=['#00C8B8','#068DFF','#FF843A','#7DD807'];
                    this.staticData.array.forEach((item, index) => {
                        item.color = colorArr[index]
                    })
                    // console.log(this.staticData.array)

                    var totalCount=0
                    res.data.forEach(function(item){
                        totalCount+=Number(item.count)

                    })
                    this.staticData.total=totalCount
                })

        },
        getOneUnit(val){
                
            if(val=='29'||val=='30'){  //表格及撒点
                this.anbaoSDUWG()//疏导区网格
                this.$axios.post(this.$api.water.baseGgpFacilityList,{
                                "facilityType": [val ] 
                        }).then((res) => {
                                let arr = []
                                if(res.data.length>0){
                                        arr = res.data;
                                        this.arrayData = res.data ? JSON.parse(JSON.stringify(res.data)) : []
                                        let data = {
                                            gisX: 121.302183,
                                            gisY: 31.189991,
                                            type: "国家会展中心",
                                        };
                                        arr.push(data)
                                        if(val=='29'){
                                            this.addMarker(arr, "security-plan", "养老机构")
                                        }else{
                                            this.addMarker(arr, "security-plan", "医疗机构")
                                        }
                                }  
                        });

            }else if(val=='6'){ 
               
            }else{//统计
                this.getStaticData(val)

            }
        },
        beforeDestroy() {
            this.autoScroll(true);
        },
        closeJkspStatus(){
            this.jkspStatus = false
            this.destroyHls()
        },
        //播放按钮
        play() {
            this.destroyHls()
            this.loadVideoFn(this.Message.videoUrl)
        },
        destroyHls: function () {//关闭视频拉取
            if (this.hls) {
                this.$refs.hlsVideo.pause();
                this.hls.destroy();
                this.hls = null;
            }
        },
        loadVideoFn(url) {//视频播放
            setTimeout(() => {
                if (Hls.isSupported()) {
                    this.hls = new Hls();
                    this.hls.loadSource(url);
                    this.hls.attachMedia(this.$refs.hlsVideo);
                    this.hls.on(Hls.Events.MANIFEST_PARSED, () => {
                        // console.log("加载成功");
                        this.$refs.hlsVideo.play();
                    });

                    this.hls.on(Hls.Events.ERROR, (event, data) => {
                        // console.log(event, data);
                        // 监听出错事件
                        //console.log("加载失败");
                    });
                }
            }, 1000)
        },
        /**
         * 监控视频
         */
        surveillance(){
            axios({
                method: "get",
                url: "http://32.1.7.96:8086/fireMajorSecurityProcess/selectSecurityViewUrl",
                params:{
                    "pageNum":"1",
                    "pageSize":"500",
                }
            }).then((res) => {
                this.sadian(res.data.data, "security-plan", "监控视频");
            })
        },
        /**
         * 网格统计状态切换
         */
        gridStatisticsGoBack(){
            this.gridStatisticsStatus = true
        },
        /**
         * 网格数据统计
         */
         gridStatisticsData(){
            let formData = new FormData()
            formData.append('grant_type', "client_credentials")
            formData.append('client_id', "12016")
            formData.append('client_secret', "956DD43944464DCeB262cED7d351AAA4")
            formData.append('scope', "api.read")
            axios({
                headers: {
                'Content-Type': 'multipart/form-data'
                },
                method: "post",
                url: "http://32.1.8.124:5001/connect/token",
                data:formData
            }).then((res) => {
                axios({
                        headers: {
                            'Content-Type': 'multipart/form-data',
                            "AppId": "12016",
                            "ResourceId": "1884",
                            "Authorization":'Bearer ' +  res.access_token
                        },
                        
                    method: "get",
                    url: "http://32.1.8.124:5002/api/data-share/1884/json",
                    params:{
                        "STARTTIME":dayjs().subtract(0, "day").format("YYYY-MM-DD"),
                        "ENDTIME":dayjs().subtract(0, "day").format("YYYY-MM-DD"),
                        "STREETCODE":"",
                        "INFOTYPEID":"",
                        "INFOBCCODE":"",
                        "INFOSCCODE":"",
                        "INFOZCCODE":"",
                        // "ENDTIME":"2023-12-01",
                    }
                }).then((res2) => {
                    this.gridStatisticsTable.total = []
                    this.gridStatisticsTable.over = []
                    this.gridStatisticsTable.yinhuan = []
                    this.gridStatisticsTable.total = res2.values
                    this.gridStatisticsTableType = this.gridStatisticsTable.total
                    this.gridStatisticsNum.total = res2.values.length
                    let num = 0;
                    let yinhuan = 0
                    for(let i =0;i<res2.values.length;i++){
                        if(res2.values[i]["案件状态"] == "已结案"){
                            num ++
                            this.gridStatisticsTable.over.push(res2.values[i])
                        }
                        if(res2.values[i]["案件子类"].indexOf("部件") > -1 || 
                        res2.values[i]["案件子类"].indexOf("三违") > -1 || 
                        res2.values[i]["案件子类"].indexOf("扰乱火灾") > -1 || 
                        res2.values[i]["案件子类"].indexOf("焚烧") > -1 || 
                        res2.values[i]["案件子类"].indexOf("森林火灾") > -1 ){
                            
                        }else{
                            yinhuan ++ 
                            this.gridStatisticsTable.yinhuan.push(res2.values[i])
                        }

                    }
                    setTimeout(()=>{
                        this.gridStatisticsNum.over = num
                        this.gridStatisticsNum.yinhuan = yinhuan
                        if(num){
                            this.gridStatisticsNum.rate = ((num / this.gridStatisticsNum.total) * 100).toFixed(2)
                        }else{
                            this.gridStatisticsNum.rate = 0
                        }
                    },50)
                })
            })
         },
        /**
         * 网格统计
         * @param {} id 1上报数，2隐患数，3处置数
         */
        gridStatistics(id){
            this.gridStatisticsStatus = false 
            if(id == 1){
                this.gridStatisticsTableType =  this.gridStatisticsTable.total  
            }
            if(id == 2){
                this.gridStatisticsTableType =  this.gridStatisticsTable.over  
            }
            if(id == 3){
                this.gridStatisticsTableType =  this.gridStatisticsTable.yinhuan  
            }
            
        },

        /**
         * 在线视频
         */
         async selectVideo(id) {
            this.$axios
                .get(
                    this.$api.zfjlj +
                        "?" +
                        this.$qs.stringify({
                            apikey:"643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414",
                            pageNo:0,
                            pageSize:10000
                        })
                )
                .then((res) => {
                    console.log(res.data)
                })
                return
           await  axios({
                headers: {
                    "Content-Type": "application/json;charset=UTF-8",
                },
                method: "get",
                // url: "http://32.0.15.107:8080/video-api/kiop-gateway-core/4G/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022",
                // url: "http://32.0.15.107:8080/video-api/kiop-gateway-core/tysbs/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414&pageNo=0&pageSize=10000",
                url: "http://mhxfzd.shmh.gov.cn/video-api/kiop-gateway-core/tysbs/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414&pageNo=0&pageSize=10000",
            }).then((res) => {
                let arr = [];
                let zfjly = [];
                if (res.data.length > 0) {
                   
                    let data = res.data;
                    for (let i = 0; i < data.length; i++) {
                        if (data[i].otherNames?.status_name == "在线") {
                            var num = {
                                id: data[i].id,
                                name: data[i]?.deviceName,
                                groupName: data[i]?.groupName,
                                gisX: data[i]?.longitude
                                    ? data[i]?.longitude
                                    : 0,
                                gisY: data[i]?.latitude ? data[i]?.latitude : 0,
                                type: "执法记录仪",
                                gbid: data[i].gbid,
                                url:
                                    "http://10.107.31.215:50080/dispatch-ms/#/conference/single_url?ipc_live=1&key=643e6591-a489-4648-ba35-c15c39c64022&gbids=" +
                                    data[i].gbid,
                            };
                            arr.push(num);
                        }
                    }
                    for (let i = 0; i < arr.length; i++) {
                        if (arr[i].name.indexOf("单兵") > -1 || arr[i].name.indexOf("无人机") > -1 || arr[i].name.indexOf("布控球") > -1 || arr[i].name.indexOf("救援站") > -1) {
                            
                        }else{
                            zfjly.push(arr[i]);
                        }
                    }
                    this.selectVideoData = zfjly;
                    let sd = []
                    if (arr.length > 0 && id) {
                        let data = {
                            gisX: 121.302183,
                            gisY: 31.189991,
                            type: "国家会展中心",
                        };
                        sd = JSON.parse(JSON.stringify(zfjly))
                        sd.push(data)
                        this.addMarker(sd, "enforcement-dynamic","执法记录仪");
                    }
                }
            });

            // 测试

            // let arr =
            // [{
            //       id: "5708ad6382517cd68ea2d2f8cd01bb58",
            //       name: "上海闵行闵行消防站4G布控球",
            //       groupName: "009闵行支队",
            //       gisX: 121.386128,
            //       gisY:31.139253 ,
            //       type:"video",
            //       gbid:31.01411,
            //       type:"执法记录仪",
            //       url:"http://10.107.31.215:50080/dispatch-ms/#/conference/single_url?ipc_live=1&key=643e6591-a489-4648-ba35-c15c39c64022&gbids=31000000001320003271&nmediaid=121"
            //   }
            // ]
            // if(id){
            //   this.addMarker(arr, "enforcement-dynamic");
            // }
        },
        /**
         * 鹰眼监控
         */
        async selectVideo2() {
            await  axios({
                headers: {
                    "Content-Type": "application/json;charset=UTF-8",
                },
                method: "get",
                url: "http://32.1.7.96:8012/apiMhzdZdab/fireMajorSecurityProcess/selectSecurityViewUrl?pageNum=1&pageSize=100&isHG=1",
            }).then((res) => {
                var arr = []
                let data = res.data.data;
                let data2 = {
                    gisX: 121.302183,
                    gisY: 31.189991,
                    type: "国家会展中心",
                };
                arr.push(data2)
                for (let i = 0; i < data.length; i++) {
                    var num = {
                        id: data[i].id,
                        name: data[i].installPlace,
                        groupName: data[i].name,
                        gisX: data[i].longitude,
                        gisY: data[i].latitude,
                        type: "鹰眼监控",
                        url:data[i].viewUrl
                    };
                    arr.push(num);
                }
               
                this.addMarker(arr, "security-plan","鹰眼监控");
               
            })
        },
        selectArray(id) {
            this.checkedArray.checkedData[0] = 4;
            let data = this.checkedSelectArray.filter((val) => {
                if (val.value == id) {
                    return val.label;
                }
            });
            this.checkedSelectLabel = data[0].label;
            this.sadianSelect(data[0].value);
            this.anbaoSDUWG()//疏导区网格
        },
        /**
         *
         */
        goBack() {
            this.category = true;
        },
        /**
         * categoryClick echarts 点击事件
         */
        categoryClick() {
            this.category = false;
        },
        /* 各站点执勤实力分页 */
        async getFireSiteDuty() {
            await this.$axios
                .get(
                    this.$api.fireSite.page +
                        "?" +
                        this.$qs.stringify({
                            current: 1,
                            size: 100,
                        })
                )
                .then((res) => {
                    if (res.data.records.length > 0) {
                        let arr = res.data.records;
                        let data = arr.filter((item) => {
                            let data = [];
                            if (item.name == "华漕站" || item.name == "新虹站" || item.name == "七宝站" || item.name == "申虹站") {
                                data.push(item);
                                return data;
                            }
                        });
                        for (let i = 0; i < data.length; i++) {
                            data[i].cheliang = {};
                            data[i].personnel = undefined;
                            data[i].car = undefined;
                            this.$axios
                                .get(
                                    this.$api.fireSite.list +
                                        "?" +
                                        this.$qs.stringify({
                                            zdCode: data[i].xfjgId,
                                        })
                                )
                                .then((Response) => {
                                    if (Response.data.length > 0) {
                                        let children = Response.data;
                                        data[i].cheliang = children;
                                        data[i].car = children.length;
                                        data[i].children = [];
                                        data[i].personnel = 0;

                                        for (let a = 0; a < children.length; a++) {
                                            children[a].renyuan = "";
                                            children[a].renyuanNum = 0;
                                            if (children[a].zhy) {
                                                children[a].renyuan = children[a].zhy + ",";
                                            }
                                            if (children[a].jsy) {
                                                children[a].renyuan += children[a].jsy + ",";
                                            }
                                            if (children[a].txy) {
                                                children[a].renyuan += children[a].txy + ",";
                                            }
                                            if (children[a].zsry) {
                                                children[a].renyuan += children[a].zsry + ",";
                                            }
                                            data[i].children.push(children[a]);
                                            if (children[a].renyuan.indexOf(",") > -1) {
                                                children[a].renyuanNum += children[a].renyuan.match(/,/g).length;
                                            }
                                            data[i].personnel += children[a].renyuanNum;
                                        }

                                        for (let i = 0; i < data.length; i++) {
                                            if (data[i].name == "闵行支队") {
                                                data[i].name = "支队";
                                            } else {
                                                data[i].name = data[i].name.slice(0, 2);
                                            }
                                        }

                                        setTimeout(() => {
                                            this.cldt = data;
                                        }, 1500);
                                    }
                                });
                        }
                        setTimeout(() => {
                            this.tableData2 = data;
                        }, 1000);
                    } else {
                        this.dataNo = "暂未数据";
                    }
                });
        },
        /**
         * 撒点类型选择
         */
        checkboxChange(id) {
            this.checkedArray.checkedData[0] = id;
            if (id == 15) {
                this.gridStatus = id;
                this.anbao(1, 1);
                // this.anbaoMap()
                this.grid(id);
                this.hzzxtb()
                this.anbaoSDUWG()//疏导区网格
            } else if (id == 16) {
                this.gridStatus = id;
                this.grid(16, null, null, 1);
                setTimeout(()=>{
                    this.hzzxtb()
                    this.anbaoSDUWG()//疏导区网格
                },3000)
                
            } else if (id == 17) {
                this.surveillance()
                this.hzzxtb()
                this.anbaoSDUWG()//疏导区网格
  
            } else if (id == 18) {
                this.gridStatus = id;
                this.sadianSelect(id);
                this.hzzxtb()
                this.anbaoSDUWG()//疏导区网格
            } else if (id == 19) {
                this.gridStatus = id;
                this.anbao(1, 3);
                this.dwgjcmcAndhzzx()
                this.anbaoSDUWG2()//疏导区网格
                this.diversionArea2State = true
                this.diversionArea=[
                    { name: "疏导区总面积", value: 54.46, unit: "km²", color: "#7DD807" },
                    { name: "华漕镇", value: 28.2, unit: "km²", color: "#01C3B4" , url:"https://mhxfzd.shmh.gov.cn/data/%E5%8D%8E%E6%BC%95%E9%95%87%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf"},
                    { name: "新虹街道", value: 19.26, unit: "km²", color: "#01C3B4", url:"https://mhxfzd.shmh.gov.cn/data/%E6%96%B0%E8%99%B9%E8%A1%97%E9%81%93%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf" },
                    { name: "七宝镇", value: 7, unit: "k㎡", color: "#01C3B4" , url:"https://mhxfzd.shmh.gov.cn/data/%E4%B8%83%E5%AE%9D%E9%95%87%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf"},
                    { name: "虹桥镇", value: 2.21, unit: "km²", color: "#01C3B4", url:"https://mhxfzd.shmh.gov.cn/data/%E8%99%B9%E6%A1%A5%E9%95%87%E6%B6%88%E9%98%B2%E5%AE%89%E5%85%A8%E5%BD%A2%E5%8A%BF%E7%94%BB%E5%83%8F.pdf" },
                    
                    { name: "分管领导", value: 20, unit: "人", color: "#058DFE" },
                    { name: "增援干部", value: 11, unit: "人", color: "#058DD1" },
                    { name: "大网格", value: 3, unit: "个", color: "#FC0609 " },
                    { name: "中网格", value: 12, unit: "个", color: "#FD843A" },
                    { name: "小网格", value: 89, unit: "个", color: "#7DD807" },
                ] //疏导区基本情况
               
            } else if (id == 20) {
                this.gridStatus = id;
                this.selectVideo(1)
                this.anbaoSDUWG()//疏导区网格
            } else if (id == 21) {
                console.log("鹰眼监控")
                this.gridStatus = id;
                this.anbaoSDUWG()//疏导区网格
                this.selectVideo2()
            } else {
                this.sadianSelect(id);
                this.hzzxtb()
                this.anbaoSDUWG()//疏导区网格
            }
        },
        /* 历史警情 */
        async historicalWarning() {
            let monthDay = dayjs().subtract(30, "day").format("YYYY-MM-DD HH:mm:ss");
            let today = dayjs().subtract(0, "day").format("YYYY-MM-DD HH:mm:ss");
            return await this.$axios.get(
                this.$api.jqzhcz.page2 +
                    "?" +
                    this.$qs.stringify({
                        // streetTown: this.stroes.$state.streetTown, //街镇
                        current: 1,
                        size: 150,
                        startTime: monthDay,
                        endTime: today,
                    })
            );
        },

        /**
         * 撒点测绘院、高德
         */
        sadianSelect(id) {
                let type = undefined
            for(let i =0;i<this.checkedArray.checkedList.length;i++){
                if(id ==this.checkedArray.checkedList[i].value ){
                        type = this.checkedArray.checkedList[i].label
                        // this.checkedSelectLabel = type
                }
            }
            let that = this;
            let arr = [];
            if (this.stroes.$state.mapBool == 1) {
                if (id == 0) {
                    this.initMarkers(arr.slice(0, 500), "security-plan", type);
                } else if (id == 1 || id == 2) {
                    this.historicalWarning()
                        .then((res) => {
                            if (res) {
                                let data = res.data.records;
                                arr = data;
                                arr = data.filter((item) => item.zhongdui === "华漕" || item.zhongdui === "新虹" || item.zhongdui === "七宝" || item.zhongdui === "虹桥");
                                if (id == 2) {
                                    arr = arr.filter((item) => {
                                        return item.ajlxdm == 1;
                                    });
                                }
                            }
                        })
                        .then((res) => {
                            this.initMarkers(arr.slice(0, 500), "security-plan", type);
                        });
                } else {
                    this.initMarkers([], "security-plan", type);
                }
            } else {
                if (id == 0) {
                    let data = {
                        gisX: 121.302183,
                        gisY: 31.189991,
                        type: "国家会展中心",
                    };
                    arr.push(data);
                    this.sadian(arr, "security-plan", type);
                }
                if (id == 1 || id == 2) {
                    this.historicalWarning()
                        .then((res) => {
                            if (res) {
                                let data = res.data.records;
                                arr = data;
                                arr = data.filter((item) => item.zhongdui === "华漕" || item.zhongdui === "新虹" || item.zhongdui === "七宝" || item.zhongdui === "虹桥");
                                if (id == 2) {
                                    arr = arr.filter((item) => {
                                        return item.ajlxdm == 1;
                                    });
                                }
                            }
                        })
                        .then((res) => {
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.sadian(arr, "security-plan", type);
                        });
                }
                if (this.checkedArray.checkedData[0] == 40) {
                    this.$axios
                        .post(this.$api.fireSite.demFireStationList, {
                            stationType: [1, 2, 3, 4],
                        })
                        .then((res) => {
                            for (let i = 0; i < res.data.length; i++) {
                                if (
                                    res.data[i].streetTown.indexOf("华漕") > -1 ||
                                    res.data[i].streetTown.indexOf("新虹") > -1 ||
                                    res.data[i].streetTown.indexOf("七宝") > -1 ||
                                    res.data[i].streetTown.indexOf("虹桥") > -1
                                ) {
                                    res.data[i].type = "消防站";
                                    arr.push(res.data[i]);
                                }
                            }
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.addMarker(arr, "rescue-station", "消防站");
                        });
                }
                if (id == 41) {
                    this.$axios
                        .post(this.$api.fireSite.demFireStationList, {
                            stationType: [4],
                        })
                        .then((res) => {
                            for (let i = 0; i < res.data.length; i++) {
                                if (
                                    res.data[i].streetTown.indexOf("华漕") > -1 ||
                                    res.data[i].streetTown.indexOf("新虹") > -1 ||
                                    res.data[i].streetTown.indexOf("七宝") > -1 ||
                                    res.data[i].streetTown.indexOf("虹桥") > -1
                                ) {
                                    res.data[i].type = "专职队";
                                    arr.push(res.data[i]);
                                }
                            }
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.addMarker(arr, "rescue-station", "专职队");
                        });
                }
                if (id == 42) {
                    this.$axios.get(this.$api.fireSite.demStreetMicroStationList + "?" + this.$qs.stringify({})).then((res) => {
                        for (let i = 0; i < res.data.length; i++) {
                            if (
                                res.data[i].streetTown.indexOf("华漕") > -1 ||
                                res.data[i].streetTown.indexOf("新虹") > -1 ||
                                res.data[i].streetTown.indexOf("七宝") > -1 ||
                                res.data[i].streetTown.indexOf("虹桥") > -1
                            ) {
                                res.data[i].stationType = 5;
                                arr.push(res.data[i]);
                            }
                        }
                        let data = {
                            gisX: 121.302183,
                            gisY: 31.189991,
                            type: "国家会展中心",
                        };
                        arr.push(data);
                        this.addMarker(arr, "rescue-station", "微型消防站");
                    });
                }
                if (id == 44) {
                    this.$axios
                        .post(this.$api.water.baseGgpFacilityList, {
                            facilityType: [13, 14],
                        })
                        .then((res) => {
                            for (let i = 0; i < res.data.length; i++) {
                                if (
                                    res.data[i].streetTown.indexOf("华漕") > -1 ||
                                    res.data[i].streetTown.indexOf("新虹") > -1 ||
                                    res.data[i].streetTown.indexOf("七宝") > -1 ||
                                    res.data[i].streetTown.indexOf("虹桥") > -1
                                ) {
                                    res.data[i].stationType = 112;
                                    arr.push(res.data[i]);
                                }
                            }
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.addMarker(arr, "rescue-station", "企业消防");
                        });
                }
                if (id == 45) {
                    this.$axios
                        .post(this.$api.water.baseGgpFacilityList, {
                            facilityType: [15, 16],
                        })
                        .then((res) => {
                            for (let i = 0; i < res.data.length; i++) {
                                if (
                                    res.data[i].streetTown.indexOf("华漕") > -1 ||
                                    res.data[i].streetTown.indexOf("新虹") > -1 ||
                                    res.data[i].streetTown.indexOf("七宝") > -1 ||
                                    res.data[i].streetTown.indexOf("虹桥") > -1
                                ) {
                                    res.data[i].stationType = 112;
                                    arr.push(res.data[i]);
                                }
                            }
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.addMarker(arr, "rescue-station", "社区消防");
                        });
                }
                if (id == 46) {
                    this.$axios
                        .post(this.$api.water.baseGgpFacilityList, {
                            facilityType: [17],
                        })
                        .then((res) => {
                            for (let i = 0; i < res.data.length; i++) {
                                if (
                                    res.data[i].streetTown.indexOf("华漕") > -1 ||
                                    res.data[i].streetTown.indexOf("新虹") > -1 ||
                                    res.data[i].streetTown.indexOf("七宝") > -1 ||
                                    res.data[i].streetTown.indexOf("虹桥") > -1
                                ) {
                                    res.data[i].stationType = 17;
                                    arr.push(res.data[i]);
                                }
                            }
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.addMarker(arr, "rescue-station", "一级微型消防站");
                        });
                }
                if (id == 47) {
                    this.$axios
                        .post(this.$api.water.baseGgpFacilityList, {
                            facilityType: [18],
                        })
                        .then((res) => {
                            for (let i = 0; i < res.data.length; i++) {
                                if (
                                    res.data[i].streetTown.indexOf("华漕") > -1 ||
                                    res.data[i].streetTown.indexOf("新虹") > -1 ||
                                    res.data[i].streetTown.indexOf("七宝") > -1 ||
                                    res.data[i].streetTown.indexOf("虹桥") > -1
                                ) {
                                    res.data[i].stationType = 18;
                                    arr.push(res.data[i]);
                                }
                            }
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.addMarker(arr, "rescue-station", "街镇专职消防队");
                        });
                }
                if (id == 18) {
                        this.$axios
                        .get(this.$api.fire.fireSafetyInspectionScatter)
                        .then((res) => {
                            for(let i =0;i<res.data.length;i++){
                                res.data[i].type = "监督检查"
                                arr.push(res.data[i])
                            }
                            let data = {
                                gisX: 121.302183,
                                gisY: 31.189991,
                                type: "国家会展中心",
                            };
                            arr.push(data);
                            this.addMarker(arr, "security-plan", "监督检查");
                        });
                }
            }
        },
        /**
         * 撒点
         */
        sadian(data, pageType, type) {
            if (this.stroes.$state.mapBool == 1) {
                if (data.length > 0) {
                    this.initMarkers(data.slice(0, 500), pageType, type);
                } else {
                    this.initMarkers([], pageType, type);
                }
            } else {
                // this.anbaoMapNew(); //安保区域
                if (data.length > 0) {
                    this.addMarker(data.slice(0, 500), pageType, type);
                } else {
                    this.addMarker([], pageType, type);
                }
            }
        },

        /**
         * 网格人员
         * id 15中网格
         * area 区域名称
         * position 坐标
         * query 查询居委会名称
         * x 小网格名称映射
         */
        grid(id, area, position, query,x) {
            let querySearch = {};
            let hzzx =[{
                gisX: 121.302183,
                gisY: 31.189991,
                type: "国家会展中心",
                }];
                // this.sadian(hzzx, "security-plan", "国家会展中心");
            if (id == 19) { //大网格
                this.rightArray.headerData2 = [
                    { prop: "gridArea", name: "网格区域" },
                    { prop: "streetTown", name: "街道" },
                    { prop: "type1", name: "分管镇（街道）领导" },
                    { prop: "type2", name: "城运中心人员" },
                    { prop: "type3", name: "安监所所长" },
                    { prop: "type4", name: "支队外勤参谋" },
                ];
                querySearch = {
                    gridArea: area,
                    gridGrade: 1,
                };
            }
            if (id == 15) {//中网格
                this.rightArray.headerData2 = [
                    { prop: "gridArea", name: "网格区域" },
                    { prop: "streetTown", name: "街道" },
                    { prop: "type1", name: "安监所人员" },
                    { prop: "type2", name: "城运中心人员" },
                    { prop: "type3", name: "消防助理员" },
                ];
                querySearch = {
                    gridArea: area,
                    gridGrade: 2,
                };
            }
            if (id == 16) {//小网格
                this.rightArray.headerData2 = [
                    { prop: "gridArea", name: "网格区域" },
                    { prop: "streetTown", name: "街道" },
                    { prop: "type1", name: "小网格人员" },
                    { prop: "type2", name: "小网格长" },
                ];
                querySearch = {
                    // mapGridName: area,
                    gridGrade: 3,
                };
            }
            this.$axios.get(this.$api.fireSite.gridMemberScatter + "?" + this.$qs.stringify(querySearch)).then((res) => {
                if(id == 16 && x == 3){
                    this.staticsSd(res.data[0].gridArea,3,'')
                }
                let data = res.data;
                let gridData = [];
                if (data.length > 0) {
                    for (let i = 0; i < data.length; i++) {
                        if (data[i].gridMemderViceList && data[i].gridMemderViceList.length > 0) {
                            gridData[i] = {
                                gridArea: data[i].gridArea,
                                streetTown: data[i].streetTown,
                                mapGridName: data[i].mapGridName,
                                seniorGrid: data[i].seniorGrid,
                                type1: undefined,
                                type2: undefined,
                                type3: undefined,
                                type4: undefined,
                                id:data[i].id
                            };
                            
                            if (data[i].gridMemderViceList) {
                                for (let ii = 0; ii < data[i].gridMemderViceList.length; ii++) {
                                    if (id == 19) {
                                        if (data[i].gridMemderViceList[ii].personnelType == 3) {
                                            if (gridData[i].type1) {
                                                gridData[i].type1 = `${gridData[i].type1}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type1 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                        if (data[i].gridMemderViceList[ii].personnelType == 4) {
                                            if (gridData[i].type2) {
                                                gridData[i].type2 = `${gridData[i].type2}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type2 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                        if (data[i].gridMemderViceList[ii].personnelType == 5) {
                                            if (gridData[i].type3) {
                                                gridData[i].type3 = `${gridData[i].type3}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type3 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                        if (data[i].gridMemderViceList[ii].personnelType == 6) {
                                            if (gridData[i].type4) {
                                                gridData[i].type4 = `${gridData[i].type4}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type4 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                    }
                                    if (id == 15) {
                                        if (data[i].gridMemderViceList[ii].personnelType == 7) {
                                            if (gridData[i].type1) {
                                                gridData[i].type1 = `${gridData[i].type1}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type1 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                        if (data[i].gridMemderViceList[ii].personnelType == 8) {
                                            if (gridData[i].type2) {
                                                gridData[i].type2 = `${gridData[i].type2}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type2 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                        if (data[i].gridMemderViceList[ii].personnelType == 9) {
                                            if (gridData[i].type3) {
                                                gridData[i].type3 = `${gridData[i].type3}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type3 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                    }
                                    if (id == 16) {
                                        if (data[i].gridMemderViceList[ii].personnelType == 10) {
                                            if (gridData[i].type1) {
                                                gridData[i].type1 = `${gridData[i].type1}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type1 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                        if (data[i].gridMemderViceList[ii].personnelType == 11) {
                                            if (gridData[i].type2) {
                                                gridData[i].type2 = `${gridData[i].type2}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            } else {
                                                gridData[i].type2 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    // if(id == 19){
                    //     let arr = {};
                    //     arr.type = id;
                    //     arr.name = area;
                    //     // arr.position = position;
                    //     arr.content = gridData;
                    //     this.anbaoPopup(arr); 
                    // }
                    if (position) {
                        let arr = {};
                        if(id == 19 || id == 15){
                            arr.id = id;
                            arr.type = id;
                            arr.name = area;
                            arr.position = position;
                            arr.content = gridData;
                            this.anbaoPopup(arr);
                        }
                        if(id == 16){
                            for(let i = 0;i<gridData.length;i++){
                                if(gridData[i].mapGridName == area){
                                    arr.content = gridData[i]
                                    arr.type = id
                                    arr.position = position
                                    arr.name = area
                                    arr.seniorGrid = gridData[i].seniorGrid
                                    this.anbaoPopup(arr);
                                }
                            }
                        }

                        
                        if(id !=19 && id == 16){
                            this.superiorGrid(arr.seniorGrid, id == 15 ? 1 : id == 16 ? 2 : "");
                            this.diversionArea2State = false
                        }
                        
                    } else {
                    }
                    this.rightArray.tableData = gridData;
                } else {
                    this.dataNo2 = "暂无数据";
                }
                //用于地图居委会区块查询
                if (query && id == 16) {
                    var queryData = [];
                    let qw = []
                    for (let i = 0; i < gridData.length; i++) {
                        if (gridData[i]?.mapGridName) {
                            queryData.push(gridData[i]);
                        }else{
                            qw.push(gridData[i])
                        }
                        
                    }
                    this.anbao(1, 2, queryData);
                }
            });
        },
        /**
         * 上级网格
         * @param {*网格上级id} id
         * @param {*等级} type   1镇级 2片区
         */
        superiorGrid(id, type) {
            this.$axios
                .get(
                    this.$api.fireSite.gridMemberScatter +
                        "?" +
                        this.$qs.stringify({
                            seniorGrid: id,
                        })
                )
                .then((res) => {
                    this.diversionArea = [];
                    if (res.data.length > 0) {
                        let data = res.data[0];
                        if (type == 1) {
                            //镇级
                            this.diversionArea[0] = {
                                name: `${data.gridArea}面积`,
                                value: data.gridArea == "华漕镇" ? 28.2 : data.gridArea == "新虹街道" ? "19.26" : data.gridArea == "七宝镇" ? "7" : data.gridArea == "虹桥镇" ? "7" : "",
                                unit: "km²",
                                color: "#7DD807",
                            };
                            this.diversionArea[1] = {
                                name: "街镇分管领导",
                                value: 0,
                                unit: "人",
                                color: "#01C3B4",
                            };
                            this.diversionArea[2] = {
                                name: "城运中心主任",
                                value: 0,
                                unit: "人",
                                color: "#FD843A",
                            };
                            this.diversionArea[3] = {
                                name: "安监所所长",
                                value: 0,
                                unit: "人",
                                color: "#7DD807",
                            };
                            this.diversionArea[4] = {
                                name: "支队外勤参谋",
                                value: 0,
                                unit: "人",
                                color: "#058DFE",
                            };
                            this.diversionArea[5] = {
                                name: "中网格",
                                value: data.gridArea == "华漕镇" ? 5 : data.gridArea == "新虹街道" ? "4" : data.gridArea == "七宝镇" ? "3" : data.gridArea == "虹桥镇" ? "2" : "",
                                unit: "个",
                                color: "#058DFE",
                            };
                            this.diversionArea[6] = {
                                name: "小网格",
                                value: data.gridArea == "华漕镇" ? 36 : data.gridArea == "新虹街道" ? "22" : data.gridArea == "七宝镇" ? "34" : data.gridArea == "虹桥镇" ? "11" : "",
                                unit: "个",
                                color: "#058DFE",
                            };

                            for (let i = 0; i < data.gridMemderViceList.length; i++) {
                                if (data.gridMemderViceList[i].personnelType == 3) {
                                    //街镇分管领导
                                    this.diversionArea[1].value++;
                                }
                                if (data.gridMemderViceList[i].personnelType == 4) {
                                    //城运中心主任
                                    this.diversionArea[2].value++;
                                }
                                if (data.gridMemderViceList[i].personnelType == 5) {
                                    //安监所所长
                                    this.diversionArea[3].value++;
                                }
                                if (data.gridMemderViceList[i].personnelType == 6) {
                                    //支队外勤参谋
                                    this.diversionArea[4].value++;
                                }
                            }
                        }
                        if (type == 2) {
                            //片区
                            this.diversionArea[0] = {
                                name: "",
                                value: data.gridArea,
                                unit: "",
                                color: "#7DD807",
                            };
                            this.diversionArea[1] = {
                                name: "安监所人员",
                                value: 0,
                                unit: "人",
                                color: "#01C3B4",
                            };
                            this.diversionArea[2] = {
                                name: "城运中心人员",
                                value: 0,
                                unit: "人",
                                color: "#FD843A",
                            };
                            this.diversionArea[3] = {
                                name: "消防助理员",
                                value: 0,
                                unit: "人",
                                color: "#7DD807",
                            };
                            this.diversionArea[4] = {
                                name: "小网格",
                                value:
                                    data.gridArea == "闵S1-1（纪王西网格）"
                                        ? "4"
                                        : data.gridArea == "闵S1-2（纪王东网格）"
                                        ? "6"
                                        : data.gridArea == "闵S1-3（诸翟北网格）"
                                        ? "12"
                                        : data.gridArea == "闵S1-4（诸翟南网格）"
                                        ? "8"
                                        : data.gridArea == "闵S1-5（老华漕网格）"
                                        ? "6"
                                        : data.gridArea == "闵S2-1（爱博网格）"
                                        ? "4"
                                        : data.gridArea == "闵S2-2（华美网格）"
                                        ? "6"
                                        : data.gridArea == "闵S2-3（枢纽网格）"
                                        ? "6"
                                        : data.gridArea == "闵S2-4（航华网格）"
                                        ? "6"
                                        : data.gridArea == "闵S3-1（七宝北片网格）"
                                        ? "10"
                                        : data.gridArea == "闵S3-2（七宝吴宝路网格）"
                                        ? "9"
                                        : data.gridArea == "闵S3-3（七宝航华网格）"
                                        ? "15"
                                        : data.gridArea == "闵S4-1（紫藤红松网格）"
                                        ? "6"
                                        : data.gridArea == "闵S4-2（虹梅网格）"
                                        ? "5"
                                        : "0",
                                unit: "个",
                                color: "#7DD807",
                            };

                            for (let i = 0; i < data.gridMemderViceList.length; i++) {
                                if (data.gridMemderViceList[i].personnelType == 7) {
                                    //安监所人员
                                    this.diversionArea[1].value++;
                                }
                                if (data.gridMemderViceList[i].personnelType == 8) {
                                    //城运中心人员
                                    this.diversionArea[2].value++;
                                }
                                if (data.gridMemderViceList[i].personnelType == 9) {
                                    //消防助理员
                                    this.diversionArea[3].value++;
                                }
                            }
                        }
                    }

                    //         diversionArea:[
                    //         {name:"疏导区总面积",value:61.46,unit:"km²",color:"#7DD807"},
                    //         {name:"华漕镇",value:28.2,unit:"km²",color:"#01C3B4"},
                    //         {name:"新虹街道",value:19.26,unit:"km²",color:"#01C3B4"},
                    //         {name:"七宝镇",value:7,unit:"㎡",color:"#01C3B4"},
                    //         {name:"虹桥镇",value:7,unit:"km²",color:"#01C3B4"},
                    //         {name:"大网格",value:4,unit:"个",color:"#FC0609 "},
                    //         {name:"中网格",value:14,unit:"个",color:"#FD843A"},
                    //         {name:"小网格",value:103,unit:"个",color:"#7DD807"},
                    //         {name:"分管领导",value:20,unit:"人",color:"#058DFE"},
                    //         {name:"增援干部",value:11,unit:"人",color:"#058DD1"},
                    // ],//疏导区基本情况
                });
        },
        tabTActive(id){
            this.tabsType = id
        },
        checkFullScreen() {
        if(document.documentElement.clientHeight == 1080){
            this.marginTop1 = '1vh'
        }
    }
    },

    watch: {
        "stores.$state.gridData": function (newValue, oldValue) {
            if (this.gridStatus == 19) {
                this.grid(19, newValue.name, newValue.position);
            }
            if (this.gridStatus == 15) {

                this.grid(15, newValue.name, newValue.position);
                this.staticsSd(newValue.name,2,'')
                setTimeout(()=>{
                    this.diversionArea2State = false
                },1000)
            }
            if (this.gridStatus == 16) {
                this.grid(16, newValue.name, newValue.position,null,3);
            }
        },

        "stores.$state.jkspData": function (newValue, oldValue) {
            this.jkspStatus = true
            this.Message.name = newValue.children[0][1]
            this.Message.videoId = newValue.id
            this.Message.videoUrl = newValue.url
            // "http://videocdn.didano.com/school765class0channelId2761namedingdangm/playlist.m3u8"
            this.play()
        },
        "stores.$state.zddwId": function (newValue, oldValue) {
            
                this.zddwSd(newValue);
        },
     

    },

    
    // watch: {
    //     "stores.$state.jkspData": function (newValue, oldValue) {
    //         console.log(123,newValue,this.stores.$state.jkspData)
    //         this.jkspStatus = true
    //         console.log(this.jkspStatus)
    //         this.Message.name = newValue.children[0][1]
    //         this.Message.videoId = newValue.id
    //         this.Message.videoUrl = "http://videocdn.didano.com/school765class0channelId2761namedingdangm/playlist.m3u8"
    //         // this.Message.videoUrl = newValue.url
            
    //         this.play()
    //     },
    // },
};
</script>

<style lang="scss" scoped>
@import "@/assets/scss/color.scss";
.pdfWrap{
    position: relative;
    .pdfImg{
        position: absolute;
        top:34px;
        right:0;
        width:10px;
    }
}
.contentBox {
    .return{
        position: absolute;
        top:0px;
        right:0px;
        margin-top:0!important;
        .returnText {
            width: 0.5rem;
            text-align: center;
            height: 0.3rem;
            line-height: 0.3rem;
            box-shadow: inset 0 0 0.05rem 0.05rem #1b4f90;
            background: rgba(19, 42, 90, 0.2) !important;
            color: #fff;
            float: right;
            margin-top: 0;
        }
    }
    .leftBox {
        .leftTop {
            height: 43%;
            max-height: 43%;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;

            .leftTopContent {
                color: #ffffff;
                height: calc(100% - 0.4375rem);
                display: flex;

                > .el-row {
                    width: 100%;

                    > .el-col {
                        display: flex;

                        > div {
                            margin: auto;

                            > .title {
                                width: 1.075rem;
                                height: 0.225rem;
                                font-size: 0.175rem;
                                padding-left: 0.1625rem;
                                margin: 0.0625rem 0 0.0625rem 0;
                                position: relative;
                                background-image: url(~@a/img/securityPlan/fhxcqk.png);
                                background-size: 100% 100%;

                                > div {
                                    position: absolute;
                                    bottom: 0.0625rem;
                                    width: 150%;
                                }
                            }

                            > .content {
                                > span:nth-child(1) {
                                    font-size: 0.3rem;
                                    padding: 0 0.5625rem 0 0.1625rem;
                                    color: #73fbfd;
                                }

                                > span:nth-child(2) {
                                    font-size: 0.175rem;
                                    margin-right: 0.125rem;
                                }

                                > span:nth-child(3) {
                                    font-size: 0.175rem;
                                }
                            }
                        }
                    }
                }
            }

            .leftTopContent2 {
                color: #fff;
                font-size: 0.175rem;
                .sdqBasicInfo{
                    .basicItem{
                        width:19%; margin: 4px 0;  box-sizing: border-box;
                        .nameBox{
                            background-image: url(~@a/img/securityPlan/sdTextBg.png);
                            background-size: contain;
                            width: 100%;
                            display: inline-block
                        }
                    }
                    .basicItem:not(:last-child){
                        margin-right:.07rem

                    }
                    
                   

                }
                .sdqBasicInfo.sdline2{
                    .basicItem{
                        margin:0 .4rem;
                    }

                }
                .sdline3 {
                    margin-top:.25rem;
                   
                    .basicItem{
                        cursor:pointer;
                        width:25% !important; margin: 0px 0;  box-sizing: border-box;
                        position:relative;
                    }
                    // .basicItem::after {
                    //     position: absolute; /*绝对定位*/
                    //     top: 50%; /*Y轴方向偏移自身高度的50%*/
                    //     transform: translatey(-40%); /*Y轴方向偏移微调*/
                    //     right: 0; /*紧靠容器左边缘*/
                    //     content: ''; /*伪元素需要有内容才能显示*/
                    //     width: 1px; /*伪元素宽度*/
                    //     height: 40px; /*伪元素高度*/
                    //     background-color: rgba(168, 164, 164,.4); /*伪元素颜色*/
                    // }



               

                }
                .sdline3 .basicItem:last-child{
                    width:auto
                }

                .el-row {
                    > div {
                        width: 20%;
                        margin-top: 40px;

                        p:nth-child(2) {
                            // text-align: center;
                            strong {
                                font-size: 0.2rem;
                            }
                        }
                    }
                }
            }
        }
        .girdCheckSec{
            height:38%;
            .girdCheckItem{
                p{
                    font-size:0.225rem;
                    margin:.1875rem 0 .125rem;
                    color:rgb(234, 183, 147);
                    font-weight:700;
                    span{
                        font-size: 0.175rem;
                        color:#fff;
                        
                    }
                }
                .row_g{
                    display:flex;
                    align-items: center;
                    margin:2px 0 10px;
                    width:100%;
                    div{
                        // min-width:18% !important;
                        display: inline-block;
                        font-size:.155rem;
                        margin:.125rem .182rem 0 0;
                        text-align: center;
                        vertical-align: top;
                        width:20%;
                        // background: red;
                    }
                }
                
              
                    
                
                    
                
                


            }
        }
        .leftCenter {
            height: 32%;
            max-height: 32%;
            margin-top: 0.125rem;
            width: 100%;
            justify-content: center;
            align-items: center;
            // box-sizing: border-box;
            color: #ffffff;

            .leftCenterContent {
                width: 100%;
                height: calc(100% - 0.4375rem);
                display: flex;

                .content1,
                .content2,
                .content3 {
                    width: 33.33%;
                    overflow: hidden;
                    margin: auto 0;

                    > div:nth-child(1) {
                        display: flex;

                        > img {
                            width: 1.17rem; //大屏
                            height: 1.08rem; //大屏
                            margin: auto;
                        }
                    }

                    > div:nth-child(2) {
                        font-size: 0.2rem;
                        text-align: center;

                        & > span {
                            b {
                                margin-right: 0.0625rem;
                                font-size: 0.3rem;
                                line-height: 0.5rem;
                            }
                        }

                        p {
                            margin-top: 0.1rem;
                            color: #fff;
                        }
                    }
                }
            }
            
        }

        .rightCenter {
            color: #ffffff;
            height: calc(35% - 0.125rem);
            max-height: calc(35% - 0.125rem);
            margin-top: 0.125rem;

            .rightTopContent {
                width: 100%;
                padding: 0.25rem 0 10px 0;
                height: calc(100% - 0.8125rem);

                .content {
                    height: 100%;
                    overflow: scroll;
                    position: relative;

                    & > .el-row {
                        overflow: hidden;
                        width: 100%;
                        height: auto;

                        & > .title {
                            width: 100%;
                            height: 0.4375rem;
                            line-height: 0.4375rem;
                            font-size: 0.175rem;
                            padding: 0 0.125rem;
                            background: rgba(115, 251, 253, 0.3) !important;
                            margin-bottom: 0.025rem;
                        }

                        & > .data {
                            width: 100%;
                            font-size: 0.175rem;
                            padding: 0 0.125rem;
                            background: rgba(115, 251, 253, 0.1) !important;
                            margin-bottom: 0.025rem;
                            white-space: initial;

                            .el-col {
                                line-height: 0.35rem;

                                span {
                                    color: #73fbfd;
                                }
                            }
                        }
                    }

                    &::-webkit-scrollbar {
                        display: none;
                    }
                }
            }
        }
    }

    .rightBox {
        color: #ffffff;

        .rightTop {
            height: 30%;
            max-height: 30%;

            .rightTopContent {
                width: 100%;
                height: calc(100% - 0.4375rem);
                display: flex;

                > .el-row {
                    > .el-col {
                        display: flex;
                        margin: auto 0;

                        > div {
                            display: flex;

                            .left {
                                width: 1.375rem;
                                margin-right: 0.25rem;

                                div {
                                    text-align: center;
                                    font-size: 0.175rem;
                                    overflow: hidden !important;
                                    white-space: nowrap !important;
                                    text-overflow: ellipsis !important;
                                }

                                img {
                                    width: 0.675rem;
                                    height: 0.675rem;
                                    display: flex;
                                    margin: auto auto 0.0625rem auto;
                                }
                            }

                            .right {
                                overflow: hidden !important;
                                white-space: nowrap !important;
                                text-overflow: ellipsis !important;

                                .el-col:nth-child(1) {
                                    display: flex;
                                    margin: auto 0 0 0;
                                    font-size: 0.175rem;
                                }

                                .el-col:nth-child(2) {
                                    display: flex;
                                    margin: auto 0 0 0;
                                    font-size: 0.3rem;
                                    font-weight: bold;
                                }
                            }
                        }
                    }
                }
            }
        }
        .rightTop3 {
            height: 30%;
            max-height: 30%;
            position:relative;
            

            .rightTopContent {
                width: 100%;
                height: calc(100% - 0.4375rem);
                display: flex;

                > .el-row {
                    > .el-col {
                        display: flex;
                        margin: auto 0;

                        > div {
                            display: flex;

                            .left {
                                width: 1.375rem;
                                margin-right: 0.25rem;

                                div {
                                    text-align: center;
                                    font-size: 0.175rem;
                                    overflow: hidden !important;
                                    white-space: nowrap !important;
                                    text-overflow: ellipsis !important;
                                }

                                img {
                                    width: 0.675rem;
                                    height: 0.675rem;
                                    display: flex;
                                    margin: auto auto 0.0625rem auto;
                                }
                            }

                            .right {
                                overflow: hidden !important;
                                white-space: nowrap !important;
                                text-overflow: ellipsis !important;

                                .el-col:nth-child(1) {
                                    font-size: 0.3rem;
                                    margin-top:14px;
                                    vertical-align: bottom;
                                }

                                // .el-col:nth-child(2) {
                                //     display: flex;
                                //     margin: auto 0 0 0;
                                //     font-size: 0.3rem;
                                //     font-weight: bold;
                                // }
                            }
                        }
                    }
                }
            }
            
        }
        .leftTopContent {
            color: #ffffff;
            height: calc(100% - 0.4375rem);
            display: flex;

            > .el-row {
                width: 100%;

                > .el-col {
                    display: flex;

                    > div {
                        margin: auto;

                        > .title {
                            width: 1.075rem;
                            height: 0.225rem;
                            font-size: 0.175rem;
                            padding-left: 0.1625rem;
                            margin: 0.0625rem 0 0.0625rem 0;
                            position: relative;
                            background-image: url(~@a/img/securityPlan/fhxcqk.png);
                            background-size: 100% 100%;

                            > div {
                                position: absolute;
                                bottom: 0.0625rem;
                                width: 150%;
                            }
                        }

                        > .content {
                            > span:nth-child(1) {
                                font-size: 0.3rem;
                                padding: 0 0.5625rem 0 0.1625rem;
                                color: #73fbfd;
                            }

                            > span:nth-child(2) {
                                font-size: 0.175rem;
                                margin-right: 0.125rem;
                            }

                            > span:nth-child(3) {
                                font-size: 0.175rem;
                            }
                        }
                    }
                }
            }
        }

        .leftBot {
            height: calc(35% - 0.125rem);
            max-height: calc(35% - 0.125rem);
            margin-top: 0.125rem;
            width: 100%;

            .leftBotContent {
                padding: 0.25rem 0 0 0;
                height: calc(100% - 0.6875rem);
            }
        }

        .rightBot {
            height: calc(39% - 0.125rem);
            max-height: calc(35% - 0.125rem);
            margin-top: 0.125rem;

            .rightBotContent {
                padding: 0.25rem 0 0 0;
                height: 100%;
            }
        }

        .dailyNewSec{
            height:18%;
           
            .dailyItem{
                vertical-align: middle;
                margin-top:.2rem;   
                line-height:.375rem;
                font-size:.175rem;
                width:100%;
                height:60%;
                overflow-y:hidden;
                display: inline-block;
                
                a{
                    color:#fff;
                    border-bottom:1px solid #fff;
                //     text-decoration: none;
                    text-decoration: none;
                    cursor:pointer;
                    letter-spacing:4px;
                }
            }
        }
        .girdCheckSec{
            height:38%;
            .girdCheckItem{
                p{
                    font-size:0.225rem;
                    margin:.1875rem 0 .125rem;
                    color:rgb(234, 183, 147);
                    font-weight:700;
                    span{
                        font-size: 0.175rem;
                        color:#fff;
                        
                    }
                }
                .row_g{
                    display:flex;
                    align-items: center;
                    margin-top:10px;
                    width:100%;
                    div{
                        // min-width:18% !important;
                        display: inline-block;
                        font-size:.155rem;
                        margin:.125rem .182rem 0 0;
                        text-align: left;
                        vertical-align: top;
                        
                    }
                }
                
              
                    
                
                    
                
                


            }
        }
        .ssfjSec{
            height:20%;
            .girdCheckItem{
                .row_g2{
                    margin-top:10px;
                    width:100%;
                    div:first-child{
                        width:1.5rem;
                        cursor:text;
                    }
                    div{
                        cursor: pointer;
                        display: inline-block;
                        font-size:.155rem;
                        margin-top:.125rem;
                        text-align: left;
                    }
                }
                .row_g3{
                    margin-top:-10px;
                    width:100%;
                    div{
                        width:16% !important;
                        display: inline-block;
                        font-size:.155rem;
                        margin:.125rem 0;
                        text-align: left;
                        vertical-align: top;
                    }
                }
                    
                
                    
                
                


            }
        }

        
    }
    
    .rightBox2 {
        .rightTop {
            height: 55%;
            max-height: 55%;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
            width: 100%;
            .rightTopCenter {
                height: calc(100% - 0.4375rem);
            }
        }
        .rightBot {
            height: calc(45% - 0.125rem);
            max-height: calc(45% - 0.125rem);
            margin-top: 0.125rem;
            width: 100%;
            .rightBotCenter {
                padding: 0.25rem 0 0 0;
                // height: calc(100% - 0.4375rem);
                height: calc(100% - 0.6875rem);
            }
        }
    }
}



.leftBotContent2 {
    height: 23%;
    margin-top: -35%;
}

.rightTop2 {
    > .el-col {
        > div {
            > div:nth-child(1) {
                margin: 0.3rem 0;
            }

            > div:nth-child(3) {
                width: 50%;
                margin: 0.2rem auto;
                padding: 0.075rem;
                border-radius: 0.25rem;
                box-shadow: inset 0 0 0.05rem 0.05rem rgba(27, 79, 144, 1);
                background: rgba(#132a5a, 0.2) !important;

                span {
                    margin-left: 0.075rem;
                }
            }
        }
    }
}
.monitor-list {
        overflow: hidden;
        margin-top:0.25rem;
        > .list {
            border: 1px solid #3a7e8e;
            position: relative;
            width:48%;
            height:16.5vh;
            box-sizing: border-box;
            .videoSelect {
                position: absolute;
                width: 100%;
            }
            img{
                width:100%;
                height:192px;
                overflow: hidden;
            }
        }
        .list:nth-child(2){
                margin-left:4%;
        }
    }
    iframe {
        border: none;
        width:100%;
    }
    .tableTooltipwt {
        position: fixed;
        top:120px;left:39%;
        max-height:500px;
        overflow-y: scroll;
        background:none;
        width:400px;
        bottom:auto;
         padding:10px 10px 5px 10px !important;
          border-radius: 0.05rem;
          border:1px solid rgba(115, 251, 253, 1);
          box-shadow: inset 0 0 1px 0.0125rem rgba(115, 251, 253, 1);
           background:rgba(0, 0, 0, 0.6);
        z-index: 10000;
  .close {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10000;
    display: block;
  }
  .tableContent {
    p {
      @include color_primary($color-primary1);
      font-size: 0.2rem;
    }

    .el-col {
      margin-top: 0.05rem;
      line-height: 0.3rem;
      text-overflow: ellipsis !important;
      white-space: normal !important;
      font-size: 0.18rem;
    }
    .mk {
      margin-top: 0px;

      .color1 {
        @include color_primary($color-primary3);
      }
      .color2 {
        @include color_primary($color-primary1);
      }
    }
    .video{
        width:100%;
        margin:10px 0;
    }
  }
}
.videoCloseBtn{
        position: absolute;
        z-index: 10;
        bottom:0;
        left:0;
        cursor: pointer;
        .returnText{
            width: 0.5rem;
            text-align: center;
            height: 0.3rem;
            line-height: 0.3rem;
            box-shadow: inset 0 0 0.05rem 0.05rem #1b4f90;
            background: rgba(19, 42, 90, 0.2) !important;
            color: #fff;
            float: right;
            margin-top: 0;

        }
    }


    .dialogSec {
  ::v-deep .el-dialog {
    width:16rem!important;
    // border:1px solid rgba(115, 251, 253, 1);
    // box-shadow: inset 0 0 1px 0.0125rem rgba(115, 251, 253, 1);
    // background: rgba(0, 0, 0, 0.6);
    margin-top:5vh!important;
    height:87vh;
    padding:0;
    // margin: atuo;

    .el-dialog__title {
      color: #74fbfe;
      font-size: 16px;
    }
    .el-dialog__body {
      margin-top: 20px;
    }
   
  }
}
.tableTooltipwt2 {
    width: 6rem;
    background: transparent;
    border-radius: 0.05rem;
    box-shadow: inset 0 0 1px 0.0125rem rgba(115, 251, 253, 1);
    background: rgba(0, 29, 49, 0.5);
    font-size: 0.2rem;
    padding: 0.1875rem;
    position: fixed;
    top: 140px;
    right: 600px;
    z-index: 10000;
    .close {
        width: 20px;
        height: 20px;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 10000;
        display: block;
    }
    .tableContent {
        p {
            @include color_primary($color-primary1);
        }

        .el-col {
            margin-top: 0.05rem;
            line-height: 0.3rem;
            text-overflow: ellipsis !important;
            white-space: normal !important;
        }
        .mk {
            margin-top: 0px;
        }
    }
}
.color1 {
    @include color_primary($color-primary3);
    margin-left: 10px;
}
.color2 {
    @include color_primary($color-primary1);
}
table {
    width: 100%;
    text-align: center;
    color: #fff;
    border: 1px solid #fff;
    font-size: 12px;
}

table thead tr th {
    padding: 5px 0px;
    font-weight: 400;
    border: 1px solid #fff;
}

table tbody tr td {
    padding: 5px 0px;
}

table tbody tr:nth-child(2n) td {
    //     background-color: lightblue;
}

td {
    border: 0.5px solid #fff;
}
.checkRate{
    position: absolute;
    color:#fff;
    right:50px;
    top:80px;
    font-size: 0.25rem;
    img{
        position: absolute;
        width:80px;
        top:-24px;
        right:-14px;
        animation: rotoImg 4s linear infinite;
        // transform:skew(70deg)
    }
}
@keyframes rotoImg{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    } 
}

</style>
<style>
.el-tooltip__popper {
    width: 200px;
}
.table-tooltip {
    max-width: 200px;
}
.table-style .cell {
    width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.el-popper {
    max-width: 30%;
    padding-bottom: 5px !important;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 15;
    -webkit-box-orient: vertical;
}

</style>
