<template>
  <div id="visualizing">
    <img class="back" :src="backImg" @click="goBack">
    <div class="div-container">
      <div class="container">
        <div class="top-div">
          <div class="top-left">
            <div class="title-pub">
              <div class="title-span">各国总量</div>
              <div class="title-pub-bottom"></div>
            </div>
            <div class="drgxsj" id="countryNum"></div>
          </div>
          <div class="top-center" id="myMap">
            <div class="tag-div">
              <ul>
                <el-checkbox-group v-model="checkList">
                  <li v-for="(item, index) in legend">
                    <el-checkbox
                      :label="item.name"
                      :title="item.name"
                      @change="change($event,item)"
                    ></el-checkbox>
                    <div
                      @click="locateIdentificationZone(item)"
                      title="点击定位"
                      :style="{
                            backgroundColor:item.color,
                            width:'35px',
                            height:'7px',
                            float:'left',
                            marginTop:'11px',
                            border: '1px solid #afafaf',
                             
                        }"
                    ></div>
                  </li>
                </el-checkbox-group>
              </ul>
            </div>
          </div>
          <div class="top-right">
            <div class="top-right-top">
              <div class="title-pub">
                <div class="title-span">关注重点</div>
                <div class="title-pub-bottom"></div>
              </div>
              <div class="zdgz">
                <ul>
                  <li v-for="item in data_attention">
                    <div :title="item.content">{{ item.content }}</div>
                  </li>
                </ul>
              </div>
            </div>
            <div class="top-right-bottom">
              <div class="left-button"></div>
              <div class="right-button"></div>
              <div class="title-pub">
                <div class="title-span">敌情信息/战场环境</div>
                <div class="title-pub-bottom"></div>
              </div>
              <div class="right-div">
                <div class="bottom-pub qh_3 cgzs-cl">
                  <el-tabs v-model="activeName_dqxx">
                    <el-tab-pane label="人物信息" name="rwxx">
                      <el-table
                        :data="dataDqxxRwxx"
                        stripe
                        style="width: 100%"
                        @row-click="showRwInfo"
                      >
                        <el-table-column prop="baseProperty.姓名" label="姓名" show-overflow-tooltip></el-table-column>
                        <el-table-column prop="baseProperty.外文名" label="外文名" show-overflow-tooltip></el-table-column>
                        <el-table-column
                          prop="baseProperty.行政职务"
                          label="行政职务"
                          show-overflow-tooltip
                        ></el-table-column>
                      </el-table>
                    </el-tab-pane>
                    <el-tab-pane label="机构信息" name="jgxx">
                      <el-table
                        :data="dataDqxxJgxx"
                        stripe
                        style="width: 100%"
                        @row-click="showJgInfo"
                        @row-contextmenu="locate"
                      >
                        <el-table-column prop="baseProperty.部队番号" label="名称" show-overflow-tooltip></el-table-column>
                        <el-table-column
                          prop="baseProperty.国家地区"
                          label="国家"
                          width="100"
                          show-overflow-tooltip
                        ></el-table-column>
                        <el-table-column
                          prop="baseProperty.部队类别"
                          label="类别"
                          width="100"
                          show-overflow-tooltip
                        ></el-table-column>
                      </el-table>
                    </el-tab-pane>
                    <el-tab-pane label="战场环境" name="zchjjg">
                      <el-table
                        :data="dataZchjJgxx"
                        stripe
                        style="width: 100%"
                        @row-click="showJgInfo"
                        @row-contextmenu="locate"
                      >
                        <el-table-column prop="baseProperty.部队番号" label="名称" show-overflow-tooltip></el-table-column>
                        <el-table-column
                          prop="baseProperty.国家地区"
                          label="国家"
                          width="100"
                          show-overflow-tooltip
                        ></el-table-column>
                        <el-table-column
                          prop="baseProperty.部队类别"
                          label="类别"
                          width="100"
                          show-overflow-tooltip
                        ></el-table-column>
                      </el-table>
                    </el-tab-pane>
                  </el-tabs>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="bottom-div">
          <div class="bottom-div-pub" style="margin-right: 20px">
            <div class="bottom-pub qh_4">
              <el-tabs v-model="activeName">
                <el-tab-pane
                  :label="item.label"
                  :name="item.label"
                  v-for="(item,index) in dataYqrd"
                  :key="index"
                >
                  <el-table :data="item.data" stripe style="width: 100%" @row-click="handleInfo">
                    <el-table-column type="index" label="序号" width="50"></el-table-column>
                    <el-table-column prop="title" label="标题" show-overflow-tooltip></el-table-column>
                    <el-table-column prop="pubdate" label="时间" width="150"></el-table-column>
                  </el-table>
                </el-tab-pane>
              </el-tabs>
            </div>
          </div>
          <div class="bottom-div-pub" style="margin-right: 20px">
            <div class="bottom-pub qh_3 cgzs-cl">
              <el-tabs v-model="activeName_yq">
                <el-tab-pane label="舆情动态" name="yqdt">
                  <el-table
                    :data="dataYqfx.yqdt"
                    stripe
                    style="width: 100%"
                    @row-click="viewLiterature"
                  >
                    <el-table-column type="index" label="序号" width="50"></el-table-column>
                    <el-table-column prop="originName" label="标题" show-overflow-tooltip></el-table-column>
                    <el-table-column prop="createTime" label="时间" width="150"></el-table-column>
                  </el-table>
                </el-tab-pane>
                <el-tab-pane label="舆情报告" name="yqbg">
                  <el-table
                    :data="dataYqfx.yqbg"
                    stripe
                    style="width: 100%"
                    @row-click="viewLiterature"
                  >
                    <el-table-column type="index" label="序号" width="50"></el-table-column>
                    <el-table-column prop="originName" label="标题" show-overflow-tooltip></el-table-column>
                    <el-table-column prop="createTime" label="时间" width="150"></el-table-column>
                  </el-table>
                </el-tab-pane>
                <el-tab-pane label="舆情专报" name="yqzb">
                  <el-table
                    :data="dataYqfx.yqzb"
                    stripe
                    style="width: 100%"
                    @row-click="viewLiterature"
                  >
                    <el-table-column type="index" label="序号" width="50"></el-table-column>
                    <el-table-column prop="originName" label="标题" show-overflow-tooltip></el-table-column>
                    <el-table-column prop="createTime" label="时间" width="150"></el-table-column>
                  </el-table>
                </el-tab-pane>
              </el-tabs>
            </div>
            <div class="title-bottom1">
              <div class="title-pub-bot"></div>
              <div class="title-img">成果展示</div>
            </div>
          </div>
          <div class="bottom-div-pub">
            <div class="title-bottom">
              <div class="title-img">辅助决策</div>
              <div class="title-pub-bot"></div>
            </div>
            <div class="bottom-pub fzjc-cl">
              <el-tabs v-model="activeName_fzjc" :stretch="true">
                <el-tab-pane
                  :label="item.label"
                  :name="item.label"
                  v-for="(item,index) in data_fzjcNew"
                  :key="index"
                >
                  <el-table
                    :data="item.data"
                    stripe
                    style="width: 100%"
                    @row-click="viewLiterature1"
                  >
                    <el-table-column type="index" label="序号" width="50"></el-table-column>
                    <el-table-column prop="file.name" label="标题" show-overflow-tooltip></el-table-column>
                    <el-table-column prop="createTime" label="时间" width="150"></el-table-column>
                  </el-table>
                </el-tab-pane>
              </el-tabs>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="title-center">
      <span>舆论战心理战法律战战场态势</span>
      <!-- <span> XXXXXXXXXX战场态势</span> -->
    </div>

    <!-- 新闻详情展示 -->
    <el-dialog
      :title="newInfo.title"
      :visible.sync="dialogVisible"
      width="60%"
      :before-close="handleClose"
      center
      v-if="newInfo"
    >
      <span>
        <div>
          发布时间：
          <span v-text="newInfo.pubdate"></span>
        </div>
        <div>
          <el-tag
            type="danger"
            effect="dark"
            v-if="newInfo.is_original"
            v-text="newInfo.is_original?'原创':'转发'"
          ></el-tag>
          <el-tag type="primary" effect="dark" v-if="newInfo.country" v-text="newInfo.country"></el-tag>
          <el-tag type="success" effect="dark" v-if="newInfo.site_name" v-text="newInfo.site_name"></el-tag>
        </div>
        <div id="txt" v-html="newInfo.txt"></div>
      </span>
      <span slot="footer" class="dialog-footer">
        <el-button size="mini" @click="dialogVisible = false">关 闭</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
import back from "../assets/img/setting/back.png";
import title from "../assets/img/dpzs/19.png";
import warship from "../assets/img/visualizing/warship.png";
import fighter from "../assets/img/visualizing/fighter.png";
import {
  queryDoc,
  queryDynamicCharacter,
  queryDynamicOrganization,
  queryAttention,
  queryYqfx,
  queryNewsInfo,
  queryFzjcTree,
  queryTopicNews
} from "../api/index";
import { queryYqtj } from "../api/es.js";
import * as openlayer_util from "../util/openlayer_util";
import {} from "../util/data_util";
import { option_vissiming } from "../constant/echart-options";
import { get } from "../util/http_util";
import { Row } from "element-ui";
import * as echarts from "echarts";
import My_Websocket from "../util/websocket_util";
import { degreesToRadians1 } from "../util/turf_util";
import { imgUrl } from "../api/publicUrl";
require("../util/china.js");
export default {
  data() {
    return {
      // data_drgxsj: [],
      activeName: "国际国内热点",
      activeName_yq: "yqdt",
      activeName_fzjc: "",
      activeName_dqxx: "rwxx",
      //舆情热点
      dataYqrd: [],
      //舆情分析
      dataYqfx: {
        yqdt: [],
        yqbg: [],
        yqzb: []
      },
      tableData: [],
      backImg: back,
      data_gzzd: [],
      dataDqxxRwxx: [],
      dataDqxxJgxx: [],
      dataZchjJgxx: [],
      titleImg: title,
      data_attention: [],
      dialogVisible: false,
      dialogVisibleRw: false,
      dialogVisibleJg: false,
      newInfo: {},
      data_fzjcNew: [],
      module_name: "敌方外网资源机构",
      echartOption: option_vissiming,
      KQHQ: {
        KQ: { title: "军机", icon: fighter },
        HQ: { title: "军舰", icon: warship }
      },
      legend: [],
      checkList: []
    };
  },
  methods: {
    goHome() {
      this.$router.push("/");
    },
    goBack() {
      this.$router.push("home");
    },
    showInfo(item) {
      this.dialogVisible = true;
      this.newInfo = item;
    },
    handleInfo(row) {
      this.dialogVisible = true;
      queryNewsInfo(row.id)
        .then(res => {
          this.newInfo = res;
        })
        .catch(err => {
          this.$message.error(err.message);
        });
    },
    handleClose(done) {
      done();
    },
    //文献预览
    viewLiterature(item) {
      window.open(
        "api/rest/document/viewLiterature/" + item.folder + "/" + item.name
      );
    },
    viewLiterature1(item) {
      let path_srt = "api/rest/document/pdf/fzjc/" + item.file.uuid;
      window.open(path_srt);
    },

    jsonToArray(nodes) {
      var r = [];
      if (Array.isArray(nodes)) {
        for (var i = 0, l = nodes.length; i < l; i++) {
          r.push(nodes[i]); // 取每项数据放入一个新数组
          if (
            Array.isArray(nodes[i]["children"]) &&
            nodes[i]["children"].length > 0
          )
            // 若存在children则递归调用，把数据拼接到新数组中，并且删除该children
            r = r.concat(this.jsonToArray(nodes[i]["children"]));
          delete nodes[i]["children"];
        }
      }
      return r;
    },
    //查看人物详情
    showRwInfo(row) {
      get(
        "api/rest/resource/queryResourceTreeOnline?module=" + this.module_name
      ).then(res => {
        let optinon_s = [];
        if (res.length > 0) {
          optinon_s = this.jsonToArray(res);
        } else {
          this.optinon_s = [];
        }
        row.photos = imgUrl + row.baseProperty["photos"];
        row.label =
          row.extraProperty["标签"] == undefined
            ? ""
            : row.extraProperty["标签"].split("|");
        if (row.baseProperty["所在机构"] != "") {
          this.value_szjg = row.baseProperty["所在机构"];
          let jg_name = optinon_s.find(
            e => e.code == row.baseProperty["所在机构"]
          );
          row.baseProperty["所在机构"] =
            jg_name == undefined || jg_name == "" || jg_name == null
              ? row.baseProperty["所在机构"]
              : jg_name.label;
          row.baseProperty["所在机构编号"] = this.value_szjg;
        }
        let obj = JSON.stringify(row);
        let type = true;
        let routeData = this.$router.resolve({
          path: "/dfzyrwxq",
          query: { obj, type }
        });
        window.open(routeData.href, "_blank");
      });
    },
    showJgInfo(row) {
      let obj = JSON.stringify(row);
      let type = true;
      let routeData = this.$router.resolve({
        path: "/dfzyjgxq",
        query: { obj, type }
      });
      window.open(routeData.href, "_blank");
    },
    addDynamicPoints() {
      let vectorLayer = openlayer_util.createVectorLayer();
      this.map.addLayer(vectorLayer);
      get("api/rest/resource/queryRealKQHQ").then(res => {
        for (let i = 0; i < res.length; i++) {
          let info = res[i];
          let feature = openlayer_util.createFeature(
            [info["longitude"].dotogps(), info["latitude"].dotogps()],
            info,
            {
              src: this.KQHQ[info.flag].icon,
              rotation: degreesToRadians1(parseFloat(info["dir"])),
              scale: 0.15
            }
          );
          vectorLayer.getSource().addFeature(feature);
        }
      });

      new My_Websocket("ws://" + window.location.host + "/api/kafka", res => {
        let info = JSON.parse(res);
        //遍历,出现同一个就删除
        let features = vectorLayer.getSource().getFeatures();
        for (let i = 0; i < features.length; i++) {
          if (features[i].get("code") == info["code"]) {
            vectorLayer.getSource().removeFeature(features[i]);
            break;
          }
        }
        let feature = openlayer_util.createFeature(
          [info["longitude"].dotogps(), info["latitude"].dotogps()],
          info,
          {
            src: this.KQHQ[info.flag].icon,
            rotation: degreesToRadians1(parseFloat(info["dir"])),
            scale: 0.15
          }
        );
        vectorLayer.getSource().addFeature(feature);
      });
    },
    initIdentificationZone() {
      const colors = [
        "#FF6347",
        "grey",
        "yellow",
        "#4B0082",
        "#D2691E",
        "#00FF00",
        "#4682B4"
      ];
      get("api/rest/resource/queryIdentificationZone").then(res => {
        for (let i = 0; i < res.length; i++) {
          let vectorLayer = openlayer_util.createVectorLayer(res[i]);
          vectorLayer.setVisible(false);
          this.map.addLayer(vectorLayer);
          this.legend.push({
            name: res[i].name,
            color: colors[i % colors.length],
            wkt: res[i].wkt
          });
          let feature = openlayer_util.createPolylineFeature(
            res[i].wkt,
            res[i],
            this.legend[i].color
          );
          vectorLayer.getSource().addFeature(feature);
        }
      });
    },
    change(e, item) {
      this.map
        .getLayers()
        .getArray()
        .forEach(layer => {
          if (layer.get("name") == item.name) {
            layer.setVisible(e);
          }
        });
    },
    locateIdentificationZone(item) {
      this.map.getView().fit(
        openlayer_util
          .createPolylineFeature(item.wkt)
          .getGeometry()
          .getExtent()
      ),
        {duration: 1};
    },
    locate(row, column, event) {
      event.preventDefault();
      this.layer_org.getSource().clear();
      this.map.getOverlays().clear();
      get("api/rest/resource/getLocate?orgId=" + row.treeId).then(res => {
        if (res) {
          let feature = openlayer_util.createPolygonFeature(
            res,
            Object.assign(
              { src: imgUrl + row.baseProperty["photos"] },
              row
            )
          );
          let center = openlayer_util.getCenter(feature.getGeometry());
          this.layer_org.getSource().addFeature(feature);
          this.map.getView().setZoom(8);
          this.map.getView().setCenter(center);

          let overlay = openlayer_util.getOverlay(
            `机构信息`,
            `<p>名称 ：${row.baseProperty.部队番号}</p>
                                                                        <p>国家 ：${
                                                                          row
                                                                            .baseProperty
                                                                            .国家地区
                                                                        }</p>
                                                                        <p>编号 ：${
                                                                          row
                                                                            .baseProperty
                                                                            .机构编号
                                                                        }</p>
                                                                        <p>类别 ：${
                                                                          row
                                                                            .baseProperty
                                                                            .部队类别
                                                                        }</p>
                                                                        `
          );
          overlay.setPosition(center);
          this.map.addOverlay(overlay);
        }
      });
    },
    initMap() {
      //国产环境
      // this.map = openlayer_util.initWMTSMap("myMap", { level: 3 });
      //专网
      this.map = openlayer_util.initImageMap("myMap", { level: 5 });
      //外网
      // this.map = openlayer_util.initTDTMap("myMap", { level: 5 });
      // arcgis4_util.load3DMap("myMap").then(res=>{
      //     console.log(res);
      // }).catch(err=>{
      //     console.log(err);
      // });
      //#endregion
      this.layer_org = openlayer_util.createVectorLayer();
      this.map.addLayer(this.layer_org);
      let self = this;
      this.map.addEventListener("singleclick", function(evt) {
        self.map.getOverlays().clear();
        let feature = self.map.forEachFeatureAtPixel(evt.pixel, feature => {
          return feature;
        });
        if (feature) {
          let info = feature.getProperties();
          if (info.flag) {
            let title = self.KQHQ[info.flag].title;
            let overlay = openlayer_util.getOverlay(
              `${title}`,
              `<p>方向 ：${info.dir}</p>
                                                                            <p>速度 ：${
                                                                              info.speed
                                                                            }</p>
                                                                            <p>时间 ：${
                                                                              info.time
                                                                            }</p>
                                                                            <p>国籍 ：${
                                                                              info.nationality
                                                                            }</p>
                                                                            <p>类型 ：${
                                                                              info.type
                                                                            }</p>`
            );
            overlay.setPosition(evt.coordinate);
            self.map.addOverlay(overlay);
          } else {
            let center = openlayer_util.getCenter(feature.getGeometry());
            let overlay = openlayer_util.getOverlay(
              `机构信息`,
              `<p>名称 ：${info.baseProperty.部队番号}</p>
                                                                            <p>国家 ：${
                                                                              info
                                                                                .baseProperty
                                                                                .国家地区
                                                                            }</p>
                                                                            <p>编号 ：${
                                                                              info
                                                                                .baseProperty
                                                                                .机构编号
                                                                            }</p>
                                                                            <p>类别 ：${
                                                                              info
                                                                                .baseProperty
                                                                                .部队类别
                                                                            }</p>
                                                                            `
            );
            overlay.setPosition(center);
            self.map.addOverlay(overlay);
          }
        }
      });
    }
  },
  activated() {
    //各国总量
    let countryParam = {
      dimensionRegion: "COUNTRY"
    };
    queryYqtj(countryParam)
      .then(res => {
        this.echartOption.title.text = "各国总量";
        this.echartOption.yAxis.data = [];
        this.echartOption.yAxis.inverse = false;
        this.echartOption.series[0].data = [];
        res.forEach(item => {
          this.echartOption.yAxis.data.unshift(item.title);
          this.echartOption.series[0].data.unshift(item.count);
        });
        echarts
          .init(document.getElementById("countryNum"))
          .setOption(this.echartOption);
      })
      .then(res => {
        //舆情热点
        queryTopicNews(["国际国内热点", "美盟涉华舆情", "台海潮声", "中日交锋"])
          .then(res => {
            for (let i in res) {
              let obj = {};
              obj["label"] = i;
              obj["data"] = res[i];
              this.dataYqrd.push(obj);
            }
          })
          .catch(err => {
            this.$message.error(err.message);
          });

        //敌方资源
        queryDynamicCharacter(1, 5, {
          mould: "敌方外网资源"
        })
          .then(res => {
            this.dataDqxxRwxx = res.list;
          })
          .catch(err => {
            console.log(err);
          });

        queryDynamicOrganization(1, 5, {
          mould: "敌方外网资源机构"
        })
          .then(res => {
            this.dataDqxxJgxx = res.list;
          })
          .catch(err => {
            console.log(err);
          });

        queryDynamicOrganization(1, 5, {
          mould: "战场环境机构"
        })
          .then(res => {
            this.dataZchjJgxx = res.list;
          })
          .catch(err => {
            console.log(err);
          });

        //关注重点
        queryAttention().then(res => {
          this.data_attention = res.list.filter(item => item.visualizing);
        });

        this.initMap();
        this.addDynamicPoints();
        this.initIdentificationZone();
        //查询辅助决策树结构
        queryFzjcTree("辅助决策文档").then(res => {
          let list = res.slice(0, 5),
            arr = [];
          list.forEach((item, index) => {
            let obj = {};
            if (index == 0) {
              this.activeName_fzjc = item.label;
            }
            //todo
            queryDoc(1, 10, {
              treeName: item.label,
              recursion: true,
              treeId: item.id
            }).then(data => {
              obj["label"] = item.label;
              obj["data"] = data.list.slice(0, 10);
              arr.push(obj);
              this.data_fzjcNew = arr;
            });
          });
        });
        //查询舆情分析
        queryYqfx("舆情报告", [28, 29, 30]).then(res => {
          this.dataYqfx.yqdt = res[28];
          this.dataYqfx.yqbg = res[29];
          this.dataYqfx.yqzb = res[30];
        });
      })
      .catch(err => {
        this.$message.warning(err.message);
      });
  }
};
</script>
<style lang="scss">
#visualizing {
  width: 100%;
  height: 100%;
  margin: 0px;
  min-width: 1600px;
  min-height: 768px;
  position: absolute;
  background: url("../assets/img/dpzs/01.png");
  .back {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 2%;
    right: 60px;
    cursor: pointer;
  }
  .div-container {
    width: 100%;
    height: 100%;
    padding: 3% 1% 1% 1%;
    box-sizing: border-box;
    background: url("../assets/img/dpzs/ts_bg.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    .container {
      width: 97%;
      height: 92%;
      // margin: 2.5% 1% 1% 3%;
      padding: 1% 1.5% 1% 1.5%;
      box-sizing: border-box;
      position: absolute;
      .top-div {
        width: 100%;
        height: calc(100% / 3 * 2 - 20px);
        float: left;
        .title-pub {
          width: 100%;
          height: 36px;
          text-align: center;
          margin-top: 12px;
          .title-span {
            width: 100%;
            height: 27px;
            float: left;
            color: #34c7e8;
            font-size: 17px;
            font-weight: 800;
            letter-spacing: 3px;
            text-shadow: 0px 0px 10px #00fff3;
          }
          .title-pub-bottom {
            width: 100%;
            height: 4px;
            float: left;
            background: url("../assets/img/dpzs/06.png");
            background-size: 100% 100%;
            background-repeat: no-repeat;
          }
        }
        .top-left {
          width: calc(100% / 6);
          height: 100%;
          float: left;
          background: url("../assets/img/dpzs/04.png");
          background-size: 100% 100%;
          background-repeat: no-repeat;
          .drgxsj {
            width: calc(100% - 30px);
            margin-left: 15px;
            height: calc(100% - 62px);
            ul {
              padding: 0;
              margin: 0;
              height: 100%;
              overflow-y: auto;
              li {
                list-style-type: none;
                // color: #e2761a;
                color: #7dcfff;
                word-break: break-all;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                overflow: hidden;
                font-size: 12px;
                margin: 0px 0px 10px 0px;
                letter-spacing: 2px;
                background: url("../assets/img/dpzs/09.png");
                background-size: 100% 100%;
                background-repeat: no-repeat;
                line-height: 28px;
                height: 28px;
                cursor: pointer;
                div {
                  width: 90%;
                  margin-left: 5%;
                }
              }
            }
          }
        }
        .top-center {
          position: relative;
          margin-left: 40px;
          width: calc(100% / 6 * 4 - 82px - 3%);
          height: calc(100% - 30px - 5%);
          margin-bottom: 30px;
          float: left;
          margin-top: 2%;
          // background: url('../assets/img/dpzs/bj2.jpg');
          background-size: 100%;
          background-repeat: no-repeat;
          border: 1px solid #056b6f;
          box-shadow: 0px 0px 3px #048ba0;
          #dt {
            width: 100%;
            height: 100%;
          }
        }
        .top-right {
          width: calc(100% / 6 + 3%);
          height: 100%;
          float: left;
          margin-left: 33px;
          > div {
            height: calc(50% - 2px);
          }
          .top-right-top {
            width: 100%;
            float: left;
            .zdgz {
              width: calc(100% - 30px);
              height: calc(100% - 60px);
              margin-left: 15px;
              ul {
                padding: 0;
                margin: 0;
                height: 100%;
                overflow-y: auto;
                li {
                  list-style-type: none;
                  color: #de8538;
                  word-break: break-all;
                  text-overflow: ellipsis;
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 1;
                  overflow: hidden;
                  font-size: 12px;
                  margin: 0px 0px 10px 0px;
                  letter-spacing: 2px;
                  background: url("../assets/img/dpzs/14.png");
                  background-size: 100% 100%;
                  background-repeat: no-repeat;
                  line-height: 42px;
                  height: 42px;
                  cursor: pointer;
                  div {
                    width: 74%;
                    margin-left: 12%;
                  }
                }
              }
            }
          }
          .top-right-bottom {
            width: 100%;
            float: left;
            background: url("../assets/img/dpzs/15.png");
            background-size: 100% 100%;
            background-repeat: no-repeat;
            position: relative;
            .left-button {
              position: absolute;
              top: calc(50% - 10px);
              left: -20px;
              width: 20px;
              height: 20px;
              background: url("../assets/img/dpzs/17.png");
              background-size: 100% 100%;
              background-repeat: no-repeat;
              cursor: pointer;
            }
            .right-button {
              position: absolute;
              width: 20px;
              height: 20px;
              top: calc(50% - 10px);
              right: -20px;
              background: url("../assets/img/dpzs/18.png");
              background-size: 100% 100%;
              background-repeat: no-repeat;
              cursor: pointer;
            }
            .right-div {
              width: calc(100% - 40px);
              height: calc(100% - 70px);
              margin: 5px 20px;
              .bottom-pub {
                width: 100%;
                height: 100%;
                .el-tabs {
                  .el-tabs__header {
                    margin: 0;
                  }
                  .el-tabs__nav-wrap::after {
                    background-color: unset;
                  }
                  .el-tabs__nav {
                    width: 100%;
                    background: url("../assets/img/dpzs/11.png");
                    background-size: 100% 100%;
                    background-repeat: no-repeat;
                    .el-tabs__item {
                      width: calc(100% / 3);
                      color: #46ca9a;
                      text-align: center;
                      padding: 0;
                      font-size: 12px;
                      font-weight: 800;
                      letter-spacing: 2px;
                      height: 25px;
                      line-height: 26px;
                      font-style: oblique;
                    }

                    .el-tabs__active-bar {
                      display: none;
                    }
                    .el-tabs__item:hover {
                      color: white;
                    }
                    .el-tabs__item.is-active {
                      color: white;
                      font-style: unset;
                      text-shadow: 0px 0px 10px #fff;
                      // background: url("../assets/img/dpzs/12.png");
                      // background-size: 100% 100%;
                      // background-repeat: no-repeat;
                      background-color: #29b783;
                      border-radius: 5px;
                    }
                  }
                  .el-tabs__content > div {
                    margin: 5px;
                  }
                }
                .el-table {
                  background-color: #ffffff00;
                  th,
                  td {
                    padding: 3px 0px 3px 0px;
                    font-size: 14px;
                    text-align: center !important;
                    background-color: #ffffff00;
                  }
                  tr {
                    cursor: pointer;
                    background-color: #ffffff00;
                  }
                  .cell {
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 1;
                  }
                  .el-table__header-wrapper {
                    tr {
                      color: #de8538;
                      th {
                        border-bottom: 1px solid #57a4ca;
                      }
                    }
                  }
                  .el-table__body-wrapper {
                    height: calc(100% - 60px);
                    overflow-y: auto;
                    tr {
                      color: #7dcfff;
                      td {
                        border-bottom: none;
                        font-size: 12px;
                      }
                    }
                    .el-table__row--striped {
                      background: #68929e57;
                    }
                  }
                }
                .el-table::before {
                  background-color: #ebeef500;
                }
              }
            }
          }
        }
      }
      .bottom-div {
        width: calc(100% - 20px);
        height: calc(100% / 3 - 2px);
        float: left;
        margin-top: 20px;
        margin-left: 20px;
        .bottom-div-pub {
          width: calc(100% / 3 - 15px);
          height: 100%;
          float: left;
          background: url("../assets/img/dpzs/08.png");
          background-size: 100% 100%;
          background-repeat: no-repeat;
          .qh_3 {
            .el-tabs__item {
              width: calc(100% / 3);
            }
          }
          .qh_4 {
            .el-tabs__item {
              width: calc(100% / 4);
            }
          }
          .bottom-pub {
            width: calc(100% - 40px);
            height: calc(100% - 40px);
            margin: 20px;
            .el-tabs {
              .el-tabs__header {
                margin: 0;
              }
              .el-tabs__nav-wrap::after {
                background-color: unset;
              }
              .el-tabs__nav {
                width: 100%;
                background: url("../assets/img/dpzs/11.png");
                background-size: 100% 100%;
                background-repeat: no-repeat;
                .el-tabs__item {
                  color: #46ca9a;
                  text-align: center;
                  padding: 0;
                  font-size: 14px;
                  font-weight: 800;
                  letter-spacing: 3px;
                  height: 28px;
                  line-height: 28px;
                  font-style: oblique;
                }

                .el-tabs__active-bar {
                  display: none;
                }
                .el-tabs__item:hover {
                  color: white;
                }
                .el-tabs__item.is-active {
                  color: white;
                  font-style: unset;
                  text-shadow: 0px 0px 10px #fff;
                  // background: url("../assets/img/dpzs/12.png");
                  // background-size: 100% 100%;
                  // background-repeat: no-repeat;
                  background-color: #29b783;
                  border-radius: 10px;
                }
              }
              .el-tabs__content > div {
                margin: 5px;
              }
            }
            .el-table {
              background-color: #ffffff00;
              th,
              td {
                padding: 3px 0px 3px 0px;
                font-size: 14px;
                text-align: center !important;
                background-color: #ffffff00;
              }
              tr {
                cursor: pointer;
                background-color: #ffffff00;
              }
              .cell {
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
              }
              .el-table__header-wrapper {
                tr {
                  color: #de8538;
                  th {
                    border-bottom: 1px solid #57a4ca;
                  }
                }
              }
              .el-table__body-wrapper {
                height: calc(100% - 60px);
                overflow-y: auto;
                tr {
                  color: #7dcfff;
                  td {
                    border-bottom: none;
                    font-size: 12px;
                  }
                }
                .el-table__row--striped {
                  background: #68929e57;
                }
              }
            }
            .el-table::before {
              background-color: #ebeef500;
            }
          }
          .cgzs-cl {
            float: left;
            width: calc(100% - 75px);
            margin: 20px 10px 20px 20px;
          }
          .fzjc-cl {
            float: left;
            width: calc(100% - 75px);
            margin: 20px 20px 20px 10px;
          }
          .title-bottom {
            width: 45px;
            height: 100%;
            position: relative;
            float: left;
            .title-img {
              width: 20px;
              margin-left: 15px;
              top: calc(50% - 50px);
              position: absolute;
              float: left;
              color: #34c7e8;
              font-size: 18px;
              font-weight: 800;
              letter-spacing: 3px;
              text-shadow: 0px 0px 10px #00fff3;
            }
            .title-pub-bot {
              height: calc(100% - 20px);
              margin-top: 10px;
              margin-bottom: 10px;
              width: 4px;
              margin-left: 38px;
              float: left;
              background: url("../assets/img/dpzs/06_1.png");
              background-size: 100% 100%;
              background-repeat: no-repeat;
            }
          }
          .title-bottom1 {
            width: 45px;
            height: 100%;
            position: relative;
            float: left;
            .title-img {
              width: 20px;
              margin-left: 14px;
              top: calc(50% - 50px);
              position: absolute;
              float: left;
              color: #34c7e8;
              font-size: 18px;
              font-weight: 800;
              letter-spacing: 3px;
              text-shadow: 0px 0px 10px #00fff3;
            }
            .title-pub-bot {
              height: calc(100% - 20px);
              margin-top: 10px;
              margin-bottom: 10px;
              width: 4px;
              margin-left: 6px;
              float: left;
              background: url("../assets/img/dpzs/06_1.png");
              background-size: 100% 100%;
              background-repeat: no-repeat;
            }
          }
        }
      }
    }
  }
  .title-center {
    width: 26%;
    height: 6%;
    position: absolute;
    top: 1%;
    left: 36%;
    font-size: 38px;
    color: white;
    text-align: center;
    // background: url('../assets/img/dpzs/19.png');
    // background-size: 100% 100%;
    span {
      position: relative;
      top: calc(50% - 25px);
    }
  }
  .tag-div {
    width: 150px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    ul {
      padding: 0;
      margin: 0;
      height: 150px;
      overflow-y: auto;
      li {
        list-style-type: none;
        float: left;
        .el-checkbox {
          float: left;
          .el-checkbox__label {
            color: white;
            font-size: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 66px;
            position: relative;
            top: 6px;
          }
        }
      }
    }
  }
  @media screen and (max-width: 1919px) {
    .title-center {
      width: 26%;
      height: 6%;
      position: absolute;
      top: 1%;
      left: 36%;
      font-size: 32px;
      color: white;
      text-align: center;
      // background: url('../assets/img/dpzs/19.png');
      // background-size: 100% 100%;
      span {
        position: relative;
        top: calc(50% - 18px);
      }
    }
  }
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    /**/
  }
  ::-webkit-scrollbar-track {
    background: #c7c7c7;
    border-radius: 2px;
  }
  ::-webkit-scrollbar-thumb {
    background: #7b7b7b;
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #7b7b7b;
  }
  ::-webkit-scrollbar-corner {
    background: #179a16;
  }
  //弹框
  .el-dialog {
    .el-dialog__body {
      span {
        div {
          &:first-child {
            text-align: center;
            color: #b3b3b3;
          }
          &:nth-child(3) {
            margin-top: 10px;
            font-size: 13px;
            text-indent: 2em;
          }
        }
      }
    }
    .el-tag {
      height: 20px;
      padding: 0px 8px;
      line-height: 19px;
    }
  }
}

/*弹出框*/
.ol-popup {
  color: white;
  position: absolute;
  -webkit-box-shadow: 0 0 0.75em #d4dae0 !important;
  background-color: rgba(31, 59, 107, 0.6784313725490196);
  -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
  border: 1px solid #cccccc;
  bottom: 12px;
  left: -50px;
  width: 340px;
  font-size: 10px;
}

.ol-popup:after,
.ol-popup:before {
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.ol-popup:after {
  border-top-color: rgba(31, 59, 107, 0.6784313725490196);
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}

.ol-popup:before {
  border-top-color: rgba(31, 59, 107, 0.6784313725490196);
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}

.popup-title {
  font-weight: bold;
  border-bottom: 1px solid #cccccc;
  padding: 5px 8px;
  background-color: #16305d !important;
}

.popup-content {
  padding: 5px 18px;
}

.ol-popup-closer {
  text-decoration: none;
  position: absolute;
  top: 6px;
  right: 6px;
  color: whitesmoke;
}

.ol-popup-closer:after {
  content: "✖";
}
</style>