<template>
  <div id="wfzyjgk">
    <div class="rwk-left">
      <el-input
        class="public-input"
        placeholder="输入关键字进行过滤"
        suffix-icon="el-icon-search"
        v-model="filterText"
      ></el-input>
      <el-tree
        :data="tree_data"
        node-key="id"
        :expand-on-click-node="false"
        :filter-node-method="filterNode"
        highlight-current
        ref="tree"
        :current-node-key="2"
        :default-expanded-keys="[2]"
        @node-click="handleNodeClick"
        :indent=1
      >
        <span class="custom-tree-node" slot-scope="{ node, data }">
          <span class="first-span" :title="node.label">{{ node.label }}</span>
        </span>
      </el-tree>
    </div>
    <div class="rwk-right">
      <div class="top-div">
        <div class="serch-div">
          <el-input
            placeholder="请输入关键词"
            v-model="input3"
            prefix-icon="el-icon-search"
            clearable
          >
          </el-input>
        </div>
        <div class="button-discuss" @click="query_qb(1)">查询</div>
        <div class="button-discuss2" @click="query_zhcx()">组合查询</div>
      </div>
      <div class="bottom-div">
        <template v-for="(item, index) in rwkxx">
          <div class="rwxx-div" @click="rwxq(item, index)">
            <div class="zyx1">
              <div>
                <span>{{item.class_qf==1?'本机构':''}}</span>
              </div>
            </div>
            <div class="img-div">
              <img class="tx-bg" :src="item.photos" :onerror="errimg" />
            </div>
            <div class="text-div">
              <div class="name-div">
                <!-- {{ item.baseProperty["部队番号"] }}&emsp;&emsp;<span
                  v-text="item.military_rank"
                ></span
                >&emsp;&emsp; -->
                <div class="class1">{{ item.baseProperty["部队番号"] }}</div>
                <div class="class1" style="margin-left: 20px;">{{ item.baseProperty["部队简称"] }}</div>
              </div>
              <div class="synopsis-div">
                <span v-text="
                  item.textarea['机构简介'] == '' ||
                  item.textarea['机构简介'] == undefined
                    ? '暂无简介'
                    : item.textarea['机构简介']"></span>
              </div>
              <div class="xq-div">
                <div class="tag-group">
                  <el-tag
                    v-for="(items, index) in item.labels"
                    v-if="item.labels != ''"
                    :key="index"
                    :type="tags[index % tags.length].type"
                    effect="dark"
                  >
                    {{ items }}
                  </el-tag>
                </div>
              </div>
            </div>
          </div>
        </template>
      </div>

      <div class="page-div">
        <el-pagination
          class="myPagination"
          background
          layout="total, sizes, prev, pager, next, jumper"
          @size-change="handleSizeChange"
          :page-size="pageInfo.pageSize"
          :current-page="pageInfo.current_page"
          :total="pageInfo.total"
          @current-change="handleCurrentChange_lb"
          :page-sizes="[10, 20, 50, 100]"
        >
        </el-pagination>
      </div>
      <el-collapse-transition>
        <div class="gjcx-div" v-show="show">
          <el-form :inline="true" :model="formInline" class="demo-form-inline">
            <el-form-item>
              <label>部队番号</label>
              <el-input v-model="formInline.name" placeholder="部队番号"></el-input>
            </el-form-item>
            <el-form-item>
              <label>部队简称</label>
              <el-input v-model="formInline.jc" placeholder="部队简称"></el-input>
            </el-form-item>
            <el-form-item>
              <label>机构简介</label>
              <el-input v-model="formInline.jgjj" placeholder="机构简介"></el-input>
            </el-form-item>
            <el-form-item>
              <label>标&nbsp;&nbsp;&nbsp;签</label>
              <el-input v-model="formInline.bq" placeholder="标签"></el-input>
            </el-form-item>
            <el-form-item>
              <div class="button-discusss" @click="zhcx(1)">查询</div>
              <div class="button-discusss" @click="gb_zhcx()">关闭</div>
            </el-form-item>
          </el-form>
        </div>
      </el-collapse-transition>
    </div>
  </div>
</template>
<script>
import { get, post, fileUpload, delete_util,getCookie,delCookie } from "../../util/http_util";
import jh_bg from "../../assets/img/dfzy/zwtp.png";
import XLSX from "xlsx";
import { uuid } from "../../util/data_util";
// import navs from "./jg_xq.vue";
import { imgUrl } from "../../api/publicUrl";
export default {
  // components: { navs },
  data() {
    return {
      errimg: "this.src='" + jh_bg + "'",
      // currentRole_jg_data: "navs",
      clientDetails_jg_data: {},
      form_add: [
        { comment: "目标属性", value: "" },
        { comment: "目标等级", value: "" },
        { comment: "机构编号", value: "" },
        { comment: "等级", value: "" },
        { comment: "中文名", value: "" },
        { comment: "外文名", value: "" },
        { comment: "国家/地区", value: "" },
        { comment: "部署地", value: "" },
        { comment: "组建时间", value: "" },
        { comment: "机构类型", value: "" },
        { comment: "编制人员", value: "" },
        { comment: "联系电话", value: "" },
        { comment: "联系地址", value: "" },
        { comment: "官方网站", value: "" },
        { comment: "社交媒体账号", value: "" },
        { comment: "photos", value: "" },
      ],
      imageUrl: jh_bg,
      xzzd: [],
      wzmk_data: [],
      option_rwmb: [],
      option_value_rwmb: "",
      is_true: true,
      obj_name: "",
      fileList: [],
      file_types: ".XLSX",
      option_value_rwmb_pl: "", //批量导入对应的模板id
      option_rwmb_pl: [],
      obj_value: "", //批量导入对应的模板ID
      table_plsc: [], //批量导入对应的表头
      tableData: [], //批量导入对应的表格数据
      table_plsc_sc_cli: [], //批量导入对应的模板,
      // folder: "dfzy-rwk", //头像上传文件夹
      fl_type: 4, //查询机构库下面的模板,机构库为2,4,6
      fileList_head: [],
      file_head: {},
      file_types_head: ".PNG,.JPG,.JPEG",
      table_result: [], //存储批量导入的表格模板名称
      arr_table: [], //Excel中非基础数据的数组
      mb_table_s: [],
      title: "", //批量导入中点击查看工作经历弹出框的名称
      arr_mouldTables: [],
      arr_mouldTables_comment: [],

      filterText: "",
      module_name: "我方资源机构",
      tree_data: [],
      data_tree_node: "",
      name_edit: "",
      dialogVisible_edit: false,
      obj_jgxx: {},

      input3: "",
      pageInfo: {
        total: 0,
        pageSize: 10,
        current_page: 1,
      },
      rwkxx: [],
      jgName: "",
      tags: [
        { type: "" },
        { type: "success" },
        { type: "info" },
        { type: "warning" },
        { type: "danger" },
      ],
      type_qf:1,
      formInline:{
        name:'',
        jc:'',
        jgjj:'',
        bq:'',
      },
      show:false,
    };
  },
  methods: {
    query_zhcx(){
      this.show = !this.show;
    },
    zhcx(pageNum){
      this.input3 = '';
      this.type_qf = 3;
      this.pageInfo.current_page = pageNum;
      let pageSize = this.pageInfo.pageSize;
      post(
        `api/rest/resource/queryDynamicOrganization?pageNum=${pageNum}&pageSize=${pageSize}`,
        {
          mould: '我方资源机构',
          "baseProperty.部队番号": this.formInline.name,
          "baseProperty.部队简称": this.formInline.jc,
          "textarea.机构简介": this.formInline.jgjj,
          "extraProperty.标签": this.formInline.bq,
        }
      )
        .then((res) => {
          
          this.rwkxx = [];
          this.pageInfo.total = 0;
          if (res.list.length > 0) {
            res.list.forEach((item) => {
              item.photos =
                imgUrl +
                item.baseProperty["photos"];
              item.labels =
                item.extraProperty["标签"] == undefined
                  ? ""
                  : (item.extraProperty["标签"]+'').split("|");
              this.rwkxx.push(item);
            });
            this.pageInfo.total = res.totals;
          }
        })
    },
    gb_zhcx(){
      this.show = false;
    },
    filterNode(value, data) {
      if (!value) return true;
      return data.label.indexOf(value) !== -1;
    },
    //查询tree数据
    query_tree_jg() {
      this.tree_data = [];
      get("api/rest/resource/queryResourceTree?module=" + this.module_name)
        .then((res) => {
          this.tree_data = [
            {
              id: 2,
              label: "机构列表",
              level: 0,
              children: res,
            },
          ];
        })
        .then(res=>{
          this.handleCurrentChange_lb(1);
        })
        .catch((err) => {
          this.$message.warning(err.message);
        });
    },
    handleNodeClick(node, data) {
      this.jgName = data.data.id;
      this.type_qf = 1;
      this.input3 = '';
      this.handleCurrentChange_lb(1);
    },
    //查询人物信息模板
    query_CharacterMould(id) {
      get("api/rest/resource/queryCharacterMould?Id=" + id)
        .then((datas) => {
          this.xzzd = [];
          this.wzmk_data = [];
          this.table_plsc = [];
          this.table_result = [];
          this.arr_mouldTables = [];
          if (datas != null) {
            let data = datas[0];
            this.table_plsc_sc_cli = data;
            this.form_add.forEach((item) => {
              this.table_plsc.push(item.comment);
            });
            if (data.extraProperty.length > 0) {
              data.extraProperty.forEach((item) => {
                this.xzzd.push({ comment: item, value: "" });
                this.table_plsc.push(item);
              });
            }
            if (data.textarea.length > 0) {
              data.textarea.forEach((item) => {
                this.wzmk_data.push({
                  comment: item,
                  type: "1",
                  table_tab: [],
                  value: "",
                  table_column: [],
                });
                this.table_plsc.push(item);
              });
            }
            if (data.mouldTables.length > 0) {
              // let table_tab_s = [];
              data.mouldTables.forEach((items) => {
                let arr = [];
                this.arr_mouldTables.push(items);
                items.columnName.forEach((items1) => {
                  arr.push(items1);
                });
                this.wzmk_data.forEach((item, index) => {
                  if (items.tableName == item.comment) {
                    this.wzmk_data[index].type = "2";
                    this.wzmk_data[index].table_tab = arr;
                    this.table_result.push(item.comment);
                  }
                });
              });
            }
            this.table_plsc.unshift("状态");
          }
        })
        .catch((err) => {
          this.$message.warning(err.message);
        });
    },
    query_tree() {
      get("api/rest/resource/queryCharacterMould?type=" + this.fl_type)
        .then((datas) => {
          this.option_rwmb = [];
          this.option_rwmb_pl = [];
          if (datas.length > 0) {
            datas.forEach((item) => {
              this.option_rwmb.push({ value: item.id, label: item.name });
              this.option_rwmb_pl.push({ value: item.id, label: item.name });
            });
          }
        })
        .catch((err) => {
          this.$message.warning(err.message);
        });
    },
    rwxq(item, index) {
      this.$router.push({ name: "我方资源机构详情" + this.$route.meta.type_name, params: { key: item } });
    },
    handleSizeChange(val) {
      this.pageInfo.pageSize = val;
      this.pageInfo.current_page = 1;
      this.handleCurrentChange_lb(1);
    },
    handleCurrentChange_lb(pageNum) {
      if(this.type_qf==1){
        this.query(pageNum);
      }else if(this.type_qf==2){
        this.query_qb(pageNum);
      }else{
        this.zhcx(pageNum);
      }
    },
    query_qb(pageNum) {
      this.formInline={
        name:'',
        jc:'',
        jgjj:'',
        bq:'',
      };
      this.type_qf = 2;
      this.pageInfo.current_page = pageNum;
      let pageSize = this.pageInfo.pageSize;
      let name = this.input3;
      post(
        `api/rest/resource/queryDynamicOrganization?pageNum=${pageNum}&pageSize=${pageSize}&multiFieldSearch=${name}`,
        {
          mould: '我方资源机构',
        }
      )
        .then((res) => {
          
          this.rwkxx = [];
          this.pageInfo.total = 0;
          if (res.list.length > 0) {
            res.list.forEach((item) => {
              item.photos =
                imgUrl +
                item.baseProperty["photos"];
              item.labels =
                item.extraProperty["标签"] == undefined
                  ? ""
                  : (item.extraProperty["标签"]+'').split("|");
              this.rwkxx.push(item);
            });
            this.pageInfo.total = res.totals;
          }
        })
    },
    query(pageNum) {
      this.pageInfo.current_page = pageNum;
      let pageSize = this.pageInfo.pageSize;
      let name = this.input3;
      let ids = "";
      if (this.jgName != "2" && this.jgName != "") {
        ids = "&Id=" + this.jgName;
      }
      get(
        "api/rest/resource/queryResourceTreeList?pageNum=" +
          pageNum +
          "&pageSize=" +
          pageSize +
          "&module=" +
          this.module_name +
          ids
      )
        .then((res) => {
          this.rwkxx = [];
          this.pageInfo.total = 0;
          if (res.list.length > 0) {
            res.list.forEach((item,index) => {
              if(item.organization!=null){
                item.organization.photos =
                  imgUrl +
                  item.organization.baseProperty["photos"];
                item.organization.labels =
                  item.organization.extraProperty["标签"] == undefined
                    ? ""
                    : (item.organization.extraProperty["标签"]+'').split("|");
                if(pageNum==1&&this.jgName != "" && this.jgName != "2"&&index==0){
                  item.organization['class_qf'] = 1
                }else{
                  item.organization['class_qf'] = 2
                }
                this.rwkxx.push(item.organization);
              }
            });
            this.pageInfo.total = res.totals;
          }
        })
        .catch((err) => {
          this.$message.warning(err.message);
        });
    },

    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;
    },
  },
  mounted() {
    // this.query_tree_jg();
  },
  activated() {
    if(getCookie('wfzy_jgk')!=1){
      this.filterText = '';
      this.jgName = "";
      this.query_tree_jg();
    }else{
      delCookie('wfzy_jgk');
    }
  },
  watch: {
    obj_name: function (val) {
      if (val != "") {
        this.is_true = false;
      } else {
        this.is_true = true;
      }
    },
    dialogVisible_people: function (val) {
      if (!val) {
        this.is_true = false;
      }
    },
    filterText(val) {
      this.$refs.tree.filter(val);
    },
  },
};
</script>
<style lang="scss">
#wfzyjgk {
  width: 97%;
  height: 92%;
  margin: 1%;
  .rwk-left {
    width: calc(15% - 10px);
    height: calc(100% - 40px);
    margin-top: 40px;
    margin-left: 10px;
    box-sizing: border-box;
    float: left;
    .el-input {
      position: relative;
      font-size: 14px;
      display: inline-block;
      width: 100%;
    }
    .el-button + .el-button {
      margin-left: 0px !important;
    }
    .el-tree {
      color: white;
      background: transparent;
      height: calc(100% - 50px);
      margin-top: 10px;
      overflow-y:auto;
      .el-tree-node__content {
        height: 40px;
        // .el-icon-circle-plus {
        //   display: none;
        // }
        // .el-icon-error {
        //   display: none;
        // }
        // .el-icon-upload {
        //   display: none;
        // }
        // .el-icon-edit-outline {
        //   display: none;
        // }
        // .list-span{
        //   display: none;
        // }
      }
      .el-tree-node {
        position: relative;
        padding-left: 0px; // 缩进量
      }
      .el-tree-node__children {
        padding-left: 15px; // 缩进量
      }

      // 竖线
      .el-tree-node::before {
        content: "";
        height: 100%;
        width: 1px;
        position: absolute;
        left: -3px;
        top: -17px;
        border-width: 1px;
        border-left: 1px solid #1895a2;
      }
      // 当前层最后一个节点的竖线高度固定
      .el-tree-node:last-child::before {
        height: 38px; // 可以自己调节到合适数值
      }

      // 横线
      .el-tree-node::after {
        content: "";
        width: 13px;
        height: 20px;
        position: absolute;
        left: -3px;
        top: 20px;
        border-width: 1px;
        border-top: 1px solid #1895a2;
      }

      // 去掉最顶层的虚线，放最下面样式才不会被上面的覆盖了
      & > .el-tree-node::after {
        border-top: none;
      }
      & > .el-tree-node::before {
        border-left: none;
      }
      
      // 展开关闭的icon
      .el-tree-node__expand-icon{
        font-size: 16px;
        // 叶子节点（无子节点）
        &.is-leaf{
          color: transparent;
          // display: none; // 也可以去掉
        }
      }
    }
    .el-tree > .el-tree-node > .el-tree-node__content {
      height: 40px;
      background-image: url(../../assets/img/yqjc/24.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
      .el-icon-error {
        display: none !important;
      }
      .el-icon-edit-outline {
        display: none !important;
      }
    }
    .el-tree
      > .el-tree-node
      > .el-tree-node__children
      > .el-tree-node
      > .el-tree-node__content {
      height: 40px;
      // background-image: url(../../assets/img/yqjc/24.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
    .el-tree > .el-tree-node > .el-tree-node__content > .el-tree-node__label {
      font-size: 16px !important;
    }
    .custom-tree-node {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      padding-right: 8px;
      width: 82%;
      .first-span {
        width: 100%;
        float: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      // .list-span{
      //   position: absolute;
      //   right: 20px;
      // }
    }
    .el-tree > .el-tree-node > .el-tree-node__children {
      background-color: #1d2d46ad !important;
      width: calc(100% - 15px);
      // height: calc(100% - 44px);
      // overflow: auto;
      // position: relative;
      // .el-tree-node{
      //   width: 300px;
      // }
    }
    .el-tree-node:focus > .el-tree-node__content {
      background-color: #00648a96 !important;
      // border-radius: 5px;
    }

    .el-tree-node__content:hover,
    .el-tree-node__content:focus {
      background-color: #00638a50 !important;
      // border-radius: 5px;
    }
    .el-tree--highlight-current
      .el-tree-node.is-current
      > .el-tree-node__content {
      background-color: #00648a96 !important;
      // border-radius: 5px;
    }
    .el-icon-circle-plus {
      font-size: 16px;
      color: #00a6f5;
    }
    .el-icon-edit-outline {
      font-size: 16px;
      color: #2ae209;
    }
    .el-icon-error {
      font-size: 16px;
      color: #ff5454;
    }
    .el-icon-upload {
      font-size: 16px;
      color: #2bce0e;
    }
  }
  .rwk-right {
    width: calc(85% - 20px);
    height: 100%;
    float: left;
    margin-left: 20px;
    overflow: hidden;
    border: 1px solid #125473;
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
    .top-div {
      width: 100%;
      height: 80px;
      .serch-div {
        margin-top: 40px;
        width: 350px;
        margin-left: 30px;
        float: left;
        box-shadow: 0 0 10px #1b6097;
        .el-input__inner {
          background: none;
          border: 1px solid #0dada7b0;
          color: #ffff;
        }
        .el-select .el-input {
          width: 130px;
          background-color: #1c678a;
        }
        .el-input-group__append {
          border: unset;
        }
      }
      .button-discuss {
        width: 100px;
        height: 30px;
        line-height: 30px;
        float: left;
      font-size: 14px;
        margin-top: 44px;
        margin-left: 20px;
        text-align: center;
        cursor: pointer;
        background-image: url(../../assets/img/yqjc/40.png);
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
      .button-discuss1 {
        width: 120px;
        height: 30px;
        line-height: 30px;
        float: right;
        margin-top: 44px;
      font-size: 14px;
        margin-left: 20px;
        margin-right: 30px;
        text-align: center;
        cursor: pointer;
        background-image: url(../../assets/img/yqjc/40.png);
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
      .button-discuss2 {
        width: 100px;
        height: 30px;
        line-height: 30px;
        float: left;
        margin-top: 44px;
        margin-left: 20px;
        text-align: center;
        font-size: 14px;
        cursor: pointer;
        background-image: url(../../assets/img/yqjc/40.png);
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
      .sjxz {
        width: 400px;
        margin-top: 40px;
        margin-left: 20px;
        float: left;
        box-shadow: 0 0 10px #1b6097;
        .el-date-editor {
          background: none;
          span {
            color: white;
          }
          .el-range-input {
            color: white;
            background: none;
          }
        }
        .el-input__inner {
          border: 1px solid #146a80 !important;
        }
      }
      .select-dq {
        margin-top: 40px;
        margin-left: 20px;
        float: left;
        .el-input__inner {
          background: none;
          color: #ffff;
          border: 1px solid #0dada7b0;
          box-shadow: 0 0 10px #1b6097;
        }
      }
    }
    .bottom-div {
      width: 100%;
      height: calc(100% - 130px);
      overflow-y: auto;
      .rwxx-div {
        width: 48%;
        height: 210px;
        float: left;
        background-image: url("../../assets/img/dfzy/01.png");
        background-size: 100% 100%;
        margin: 1%;
        cursor: pointer;
        .zyx1{
          position: absolute;
          width: calc(100% - 5px);
          height: calc(100% - 20px);
          padding: 10px 2px;
          pointer-events: none;
          div{
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
            span{
              position: absolute;
              top: 12px;
              left: -14px;
              display: block;
              font-size: 12px;
              color: #ffffff;
              background: #36A8FF;
              width: 78px;
              line-height: 25px;
              text-align: center;
              transform: rotate(-45deg);
              letter-spacing: 3px;
            }
          }
        }
        .img-div {
          width: 22%;
          height: 100%;
          float: left;
          .tx-bg {
            width: 114px;
            height: 114px;
            margin-top: calc(63% - 57px);
            margin-left: calc(60% - 57px);
            background: white;
            border-radius: 5px;
            border: 2px solid #34c3c3;
          }
        }
        .text-div {
          margin: 24px 0px;
          width: calc(78% - 13px);
          float: left;
          height: calc(100% - 47px);
          cursor: pointer;
          position: relative;
          .name-div {
            cursor: pointer;
            width: calc(100% - 20px);
            height: 50px;
            line-height: 50px;
            font-size: 18px;
            color: #ffff;
            padding-left: 20px;
            span {
              font-size: 14px;
              color: aquamarine;
            }
            .class1{
              max-width: calc(50% - 20px);
              word-break: break-all;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 1;
              overflow: hidden;
              float: left;
            }
          }
          .synopsis-div {
            color: #ffffff87;
            font-size: 15px;
            padding-right: 20px;
            padding-left: 20px;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            overflow: hidden;
            text-indent: 2em;
            word-break: break-all;
            white-space: pre-line;
          }
          .xq-div {
            bottom: 15px;
            width: calc(100% - 40px);
            padding-left: 20px;
            height: 20px;
            overflow: hidden;
            position: absolute;
          }
          .el-tag {
            float: left;
            margin-right: 10px;
            height: 20px;
            padding: 0px 8px;
            line-height: 19px;
          }
        }
      }
    }
  }
  #_people .el-dialog {
    width: 1100px;
  }
  #_plscs {
    .el-select {
      margin-top: 20px;
      margin-left: 20px;
      float: left;
    }
    .upload-demo {
      margin-top: 20px;
      margin-left: 20px;
      float: left;
    }
    .ac {
      margin-top: 20px;
      margin-left: 20px;
    }

    .table-div {
      width: 100%;
      height: 500px;
      margin-top: 20px;
      margin-left: 0px;
      background: #e6e6e6;
      .el-table__body-wrapper {
        height: 452px;
        overflow-y: auto;
      }
      .cell {
        text-align: center;
      }
      .el-table tr {
        background-color: #1d2d46 !important;
        color: #ffffffc7;
      }
      .el-table td {
        border-bottom: 1px solid #127a89;
        border-right: unset;
      }
      .el-table--enable-row-hover .el-table__body tr:hover > td {
        background-color: #82848a78;
      }
      .el-table th {
        border: unset;
        background-color: #263b5d !important;
      }
      .el-table--fit {
        background: none !important;
        border: unset;
      }
      .el-icon-delete-solid {
        color: red;
        cursor: pointer;
        font-size: 18px;
      }
      .el-icon-edit {
        color: #1172d8;
        cursor: pointer;
        font-size: 20px;
      }
      .el-icon-delete {
        color: red;
        font-size: 20px;
        cursor: pointer;
      }
      .el-table--group::after,
      .el-table--border::after,
      .el-table::before {
        background-color: unset;
      }
    }
  }
  .el-dialog {
    background: #1d2d46 !important;
    .el-step__title.is-process {
      color: #e0a142;
    }
    .el-dialog__title {
      color: #ffffff;
    }
    .el-dialog__body {
      padding: 6px 20px;
      .el-form-item__label {
        color: #e8e8e8;
      }
      .el-cascader {
        width: 100%;
      }
    }
    .avatar-uploader .el-upload {
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      height: 100%;
      width: 100%;
    }
    .avatar-uploader .el-upload:hover {
      border-color: #409eff;
    }
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 100%;
      height: 100%;
      line-height: 230px;
      text-align: center;
    }
    .avatar {
      width: 100%;
      height: 100%;
      display: block;
    }
    .right-left {
      width: calc(100% - 40px);
      float: left;
      background: rgba(41, 60, 90, 0.49);
      padding: 20px 20px 0px 20px;
      .title-div {
        float: left;
        width: 100%;
        height: 25px;
        background-size: 100% 100%;
        position: relative;
        margin-top: 10px;
        > span {
          position: absolute;
          font-weight: 700;
          font-size: 18px;
          color: #50d7ec;
          margin-left: 10px;
        }
        .el-button {
          float: right;
          margin-right: 10px;
        }
      }
      .mk-div {
        width: 100%;
        float: left;
        background: #fdfdfd0f;
        margin-bottom: 20px;
        .data-div {
          width: calc(100% - 40px);
          float: left;
          padding: 20px;
          .pub-div-data {
            margin: 10px calc(50% - 28px);
            color: #909399;
            font-size: 14px;
          }
          .el-table tr {
            background-color: #1d2d46 !important;
            color: #ffffffc7;
          }
          .el-table td {
            background-color: #253650 !important;
            color: #ffffffc7;
          }
          .el-table td {
            border-bottom: 1px solid #127a89;
            border-right: unset;
          }
          .el-table--enable-row-hover .el-table__body tr:hover > td {
            background-color: #82848a78;
          }
          .el-table th {
            border: unset;
            background-color: #263b5d !important;
          }
          .el-table--fit {
            background: none !important;
            border: unset;
          }
          .el-table--group::after,
          .el-table--border::after,
          .el-table::before {
            background-color: unset;
          }
          .el-table__header-wrapper table {
            width: 100% !important;
          }
          .el-table__body-wrapper {
            .el-table__empty-block {
              height: 20px !important;
            }
          }
        }
      }
      .table_jbxx {
        border-collapse: collapse;
        width: 100%;
        position: relative;
        margin-top: 10px;
        td {
          border: 1px solid #00648c;
          padding: 5px 12px;
          font-size: 14px;
          width: 200px;
        }
        .img-div {
          border: 3px solid #ffffff;
          width: 200px;
          height: 230px;
          img {
            background-size: 100% 100%;
          }
        }
        .pub-td1 {
          color: #007eff;
          font-weight: 900;
          width: 100px;
        }
        .pub-td2 {
          color: #8cd4ff;
        }
        .el-icon-remove {
          color: #ff4a4a;
          font-size: 20px;
          position: absolute;
          right: -31px;
          margin-top: 11px;
          cursor: pointer;
        }
        .el-icon-circle-plus {
          color: #ff4a4a;
          font-size: 20px;
          position: absolute;
          right: -31px;
          bottom: 12px;
          cursor: pointer;
        }
        .el-icon-edit {
          color: #5cde7c;
          font-size: 20px;
          position: absolute;
          right: 10px;
          margin-top: 11px;
          cursor: pointer;
        }
        .button-div {
          position: absolute;
          right: 40px;
          margin-top: 8px;
          position: absolute;
        }
      }
      .title-divs {
        float: left;
        height: 25px;
        width: calc(100% - 0px);
        // background-image: url("../../assets/img/dfzy/02.png");
        // background-size: 100% 100%;
      }
    }
  }
  #add_a,
  #edit_a {
    .el-dialog {
      width: 400px;
      background-color: #1d2d47;
      .el-dialog__header {
        text-align: center;
        .el-dialog__title {
          color: white;
        }
      }
      .el-dialog__body {
        padding: 30px 20px;
        .dialogContent {
          span {
            float: left;
            margin-top: 5.5px;
            color: white;
          }
          .el-input {
            width: 80%;
            input {
              height: 30px;
            }
          }
        }
      }
      .el-dialog__title {
        color: #ffffff;
      }
      .el-form-item__label {
        color: #dadada;
      }
      .button-preview {
        width: 100px;
        height: 30px;
        line-height: 30px;
        margin-left: calc(50% - 110px);
        margin-top: 10px;
      font-size: 14px;
        text-align: center;
        cursor: pointer;
        background-image: url(../../assets/img/yqjc/40.png);
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
      .button-cancel {
        width: 100px;
        height: 30px;
        line-height: 30px;
        margin-left: 20px;
        margin-top: 10px;
        text-align: center;
        cursor: pointer;
        background-image: url(../../assets/img/yqjc/41.png);
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
      .el-upload-list__item-name [class^="el-icon"] {
        color: #2870ff;
        height: unset !important;
      }
      .el-upload__tip {
        color: #c7c7c7;
      }
      .el-upload-list__item-name {
        color: #4382ff;
      }
      .audio-class {
        margin-left: 75px;
      }
    }
  }
  .el-dialog {
    .el-input__inner {
      color: white !important;
      background: none !important;
      border: 1px solid #146a80 !important;
      box-shadow: 0 0 10px #1b6097;
    }
    .el-textarea__inner {
      color: white !important;
      background: none !important;
      border: 1px solid #146a80 !important;
      box-shadow: 0 0 10px #1b6097;
    }
  }
  .gjcx-div{
    width: 100%;
    position: absolute;
    top: 80px;
    box-shadow: rgb(24, 110, 138) 0px 4px 6px;
    background-image: linear-gradient(#21334f, rgb(23, 73, 109));
    .demo-form-inline{
      width: 60%;
      margin-left: 23%;
      padding-top: 15px;
      margin-bottom: 20px;
    }
    .el-input__inner{
      color:#ffffff;
      background: none !important;
      border: 1px solid #146a80 !important;
      box-shadow: 0 0 10px #1b6097;
    }
    .el-form-item{
      margin-bottom: 0px;
    }
    .button-discusss {
      width: 100px;
      height: 30px;
      line-height: 30px;
      float: left;
      font-size: 14px;
      margin-top: 44px;
      margin-left: 20px;
      text-align: center;
      cursor: pointer;
      background-image: url(../../assets/img/yqjc/40.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
  }
}
</style>
