<template>
  <div id="wfzyrwk">
    <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"
        @node-click="handleNodeClick"
        :default-expanded-keys="[2]"
        :props="defaultProps"
        :indent=1
      >
        <span class="custom-tree-node" slot-scope="{ node, data }">
          <span class="first-span" :title="node.label">{{ node.label }}</span>
          <span class="list-span">
          </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(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="img-div">
              <img class="tx-bg" :src="item.photos" :onerror="errimg" />
            </div>
            <div class="text-div">
              <div class="name-div">
                <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.label"
                    v-if="item.label != ''"
                    :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>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</label>
              <el-input v-model="formInline.name" placeholder="姓名"></el-input>
            </el-form-item>
            <el-form-item>
              <label>外文名</label>
              <el-input v-model="formInline.wwm" placeholder="外文名"></el-input>
            </el-form-item>
            <el-form-item>
              <label>行政职务</label>
              <el-input v-model="formInline.xzzw" placeholder="行政职务"></el-input>
            </el-form-item>
            <el-form-item>
              <label>人物简介</label>
              <el-input v-model="formInline.rwjj" 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 { uuid } from "../../util/data_util";
import { imgUrl } from "../../api/publicUrl";
export default {
  data() {
    return {
      errimg: "this.src='" + jh_bg + "'",
      pageInfo: {
        total: 0,
        pageSize: 10,
        current_page: 1,
      },
      rwkxx: [],
      input3: "",
      sj_time: "",
      dq: "",
      tags: [
        { type: "" },
        { type: "success" },
        { type: "info" },
        { type: "warning" },
        { type: "danger" },
      ],
      jh_bg: jh_bg,

      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: "家庭住址", 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: "",
      // folder: "dfzy-rwk", //头像上传文件夹
      fl_type: 3, //查询人物库下面的模板,人物库为11
      fileList_head: [],
      file_head: {},
      file_types_head: ".PNG,.JPG,.JPEG",

      this_data: "",
      this_node: "",
      module_name: "我方资源机构",
      tree_data: [],
      filterText: "",
      defaultProps: {
        children: "children",
        label: "label",
      },

      dialogVisible_edit: false,
      name_edit: "",

      options: [],
      jgName:'',
      value_szjg:'',
      formInline:{
        name:'',
        wwm:'',
        xzzw:'',
        rwjj:'',
        bq:'',
      },
      show:false,
      type_zhOrcx:false,
    };
  },
  methods: {
    query_zhcx(){
      this.show = !this.show;
    },
    zhcx(pageNum){
      this.input3 = '';
      this.type_zhOrcx = true;
      this.pageInfo.current_page = pageNum;
      let pageSize = this.pageInfo.pageSize;
      get(
        "api/rest/resource/queryResourceTree?module=" + this.module_name
      ).then((res) => {
        let optinon_s = [];
        if (res.length > 0) {
          optinon_s = this.jsonToArray(res);
        } else {
          this.optinon_s = [];
        }
        post(
          `api/rest/resource/queryDynamicCharacter?pageNum=${pageNum}&pageSize=${pageSize}`,
          { "mould": "我方资源",
            "baseProperty.姓名": this.formInline.name,
            "baseProperty.外文名": this.formInline.wwm,
            "baseProperty.行政职务": this.formInline.xzzw,
            "textarea.人物简介": this.formInline.rwjj,
            "extraProperty.标签": this.formInline.bq,
            "baseProperty.所在机构":this.jgName==2?'':this.jgName,
          }
        )
          .then((res) => {
            this.rwkxx = res.list;
            this.rwkxx.forEach((item) => {
              item.photos =
                imgUrl +
                item.baseProperty["photos"];
              item.label =
                item.extraProperty["标签"] == undefined
                  ? ""
                  : (item.extraProperty["标签"]+'').split("|");
              if (item.baseProperty["所在机构"] != "") {
                this.value_szjg = item.baseProperty["所在机构"];
                let jg_names = optinon_s.find(
                  (e) => e.code == item.baseProperty["所在机构"]
                );
                item.baseProperty["所在机构"] = jg_names==undefined||jg_names==''||jg_names==null?item.baseProperty["所在机构"]:jg_names.label;
                item.baseProperty["所在机构编号"] = this.value_szjg;
              }
            });
            this.pageInfo.total = res.totals;
          })
          .catch((err) => {
            this.$message.warning(err.message);
          });
      });
    },
    gb_zhcx(){
      this.show = false;
    },
    //查询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.query(1);
        })
        .catch((err) => {
          this.$message.warning(err.message);
        });
    },
    filterNode(value, data) {
      if (!value) return true;
      return data.label.indexOf(value) !== -1;
    },
    handleSizeChange(val) {
      this.pageInfo.pageSize = val;
      this.pageInfo.current_page = 1;
      this.handleCurrentChange_lb(1);
    },
    //列表分页
    handleCurrentChange_lb(pageNum) {
      if(this.type_zhOrcx){
        this.zhcx(pageNum);
      }else{
        this.query(pageNum);
      }
    },
    query(pageNum) {
      this.formInline ={
        name:'',
        wwm:'',
        xzzw:'',
        rwjj:'',
        bq:'',
      };
      this.type_zhOrcx = false;
      this.pageInfo.current_page = pageNum;
      let pageSize = this.pageInfo.pageSize;
      let name = this.input3;
      get(
        "api/rest/resource/queryResourceTree?module=" + this.module_name
      ).then((res) => {
        let optinon_s = [];
        if (res.length > 0) {
          optinon_s = this.jsonToArray(res);
        } else {
          this.optinon_s = [];
        }
        post(
          `api/rest/resource/queryDynamicCharacter?pageNum=${pageNum}&pageSize=${pageSize}&multiFieldSearch=${name}`,
          { "mould": "我方资源", "baseProperty.所在机构":this.jgName==2?'':this.jgName}
        )
          .then((res) => {
            this.rwkxx = res.list;
            this.rwkxx.forEach((item) => {
              item.photos =
                imgUrl +
                item.baseProperty["photos"];
              item.label =
                item.extraProperty["标签"] == undefined
                  ? ""
                  : (item.extraProperty["标签"]+'').split("|");
              if (item.baseProperty["所在机构"] != "") {
                this.value_szjg = item.baseProperty["所在机构"];
                let jg_names = optinon_s.find(
                  (e) => e.code == item.baseProperty["所在机构"]
                );
                item.baseProperty["所在机构"] = jg_names==undefined||jg_names==''||jg_names==null?item.baseProperty["所在机构"]:jg_names.label;
                item.baseProperty["所在机构编号"] = this.value_szjg;
              }
            });
            this.pageInfo.total = res.totals;
          })
          .catch((err) => {
            this.$message.warning(err.message);
          });
      });
    },
    rwxq(item, index) {
      this.$router.push({ name: "我方人物详情" + this.$route.meta.type_name, params: { key: item } });
    },
    handleNodeClick(node,data) {
        this.jgName = data.data.code;
        this.type_zhOrcx = false;
        this.handleCurrentChange_lb(1);
    },
    //查询当前节点的最顶层节点ID
    getparentNode(data) {
      if (data.data.parentCode == null) {
        return data.data.id;
      } else {
        return this.getparentNode(data.parent);
      }
    },
    //查询人物信息模板
    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 = [];
          if (datas.length > 0) {
            datas.forEach((item) => {
              this.option_rwmb.push({ value: item.id, label: item.name });
            });
          }
        })
        .catch((err) => {
          this.$message.warning(err.message);
        });
    },
    query_tree_jgs() {
      get("api/rest/resource/queryResourceTree?module=" + this.module_name)
        .then((res) => {
          if (res.length > 0) {
            this.options = this.initData(res);
          } else {
            this.options = [];
          }
        })
        .catch((err) => {
          this.$message.warning(err.message);
          this.options = [];
        });
    },
    initData(orgList) {
      // 第一种
      if (orgList.length) {
        for (var i = 0; i < orgList.length; i++) {
          orgList[i].value = orgList[i].code;
          if (orgList[i].children.length) {
            // 如果有 children 则继续递归遍历
            this.initData(orgList[i].children);
          }
        }
      }
      return orgList;
    },
    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;
    },
    Change_select(value) {
      this.form_add[6].value = value + "";
    },
  },
  mounted() {},
  watch: {
    obj_name: function (val) {
      if (val != "") {
        this.is_true = false;
      } else {
        this.is_true = true;
      }
    },
    filterText(val) {
      this.$refs.tree.filter(val);
    },
  },
  activated() {
    
    if(getCookie('wfzy_rwk')!=1){
      this.filterText = '';
      this.jgName = "";
      this.input3 = "";
      this.query_tree_jg();
    }else{
      delCookie('wfzy_rwk');
    }
  },
};
</script>
<style lang="scss">
#wfzyrwk {
  width: 97%;
  height: 92%;
  margin: 1%;
  box-sizing: border-box;
  overflow: hidden;

  .el-input__count {
    color: #229dbd;
    background: #1d2d4600;
  }
  .el-input__count-inner {
    color: #229dbd;
    background: #1d2d46;
  }
  .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;
        margin-top: 44px;
      font-size: 14px;
        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%;
        cursor: pointer;
        margin-left: 20px;
        .img-div {
          width: 22%;
          height: 100%;
          float: left;
          .tx-bg {
            width: 80%;
            max-height: 70%;
            margin-top: 21%;
            margin-left: 17%;
            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;
  }
  .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-outline {
          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>