管道基础大数据平台系统开发-【前端】-新系統界面
584911253@qq.com
2023-03-02 8bb00665765e8348aeb3a6e799069287e503e1ab
src/views/datamanage/versionManage.vue
@@ -1,172 +1,277 @@
<template>
  <div class="verSionBox">
    <My-bread
      :list="[
    <My-bread :list="[
        `${$t('dataManage.dataManage')}`,
        `${$t('dataManage.versionManage')}`,
      ]"
    ></My-bread>
      ]"></My-bread>
    <el-divider />
    <div class="verSionContent">
      <div class="verSion_leftTree">
        <ver-dir-tree></ver-dir-tree>
      </div>
      <div class="verSion_rightContent">
        <el-form ref="ruleForm" :model="ruleForm" :inline="true">
          <el-form-item :label="$t('dataManage.vmobj.keyword')" prop="name">
            <el-input
              v-model="ruleForm.name"
              :placeholder="$t('common.pleaseInput')"
            />
          </el-form-item>
          <el-form-item>
            <el-button
              @click="onSubmit('ruleForm')"
              icon="el-icon-search"
              size="small"
              class="primary"
              >{{ $t('common.iquery') }}</el-button
            >
            <el-button
              type="success"
              v-if="btnStatus.insert"
              @click="(InsertFormdialog = true), getSelectdirTab()"
              icon="el-icon-plus"
              size="small"
              >{{ $t('common.append') }}</el-button
            >
            <el-button
              type="info"
              @click="resetForm('ruleForm')"
              icon="el-icon-delete"
              size="small"
              >{{ $t('common.empty') }}</el-button
            >
          </el-form-item>
        </el-form>
        <el-divider class="eldivider" />
        <div style="height: 80%">
          <el-table :data="tableData" style="width: 100%" height="99%">
            <el-table-column
              align="center"
              type="index"
              :label="$t('dataManage.vmobj.index')"
              width="70px"
            />
            <el-table-column align="center" prop="id" v-if="false" />
            <el-table-column
              align="center"
              prop="name"
              :label="$t('common.versionName')"
            />
            <el-table-column
              align="center"
              prop="depName"
              :label="$t('dataManage.vmobj.catalogue')"
            />
            <el-table-column
              align="center"
              prop="descr"
              :label="$t('dataManage.vmobj.describe')"
            />
            <el-table-column
              align="center"
              prop="createUser"
              :label="$t('dataManage.vmobj.createonuser')"
            />
            <el-table-column
              align="center"
              prop="createTime"
              :label="$t('dataManage.vmobj.createontime')"
              :formatter="formatTime"
            />
            <el-table-column
              align="center"
              prop="UpdateUser"
              :label="$t('dataManage.vmobj.updateonuser')"
            />
            <el-table-column
              align="center"
              prop="updateTime"
              :label="$t('dataManage.vmobj.updateontime')"
              :formatter="formatTime"
            />
            <el-table-column min-width="150" :label="$t('common.operate')">
              <template slot-scope="scope">
                <el-button
                  v-if="btnStatus.update"
                  @click="
                    handleEdit(scope.$index, scope.row);
                    getSelectdirTab();
                  "
                  type="warning"
                  size="small"
                  >{{ $t('common.update') }}</el-button
    <div
      class="inquire subpage_Div"
      ref="container"
    >
      <el-form
        ref="ruleForm"
        :model="ruleForm"
        :inline="true"
      >
        <div class="flex_box">
          <div style="margin-right: auto">
            <el-form-item size="small">
              <el-select
                :popper-append-to-body="false"
                v-model="ruleForm.dirid"
                placeholder="请选择存储目录"
                style="width: 200px"
              >
                <el-option
                  :value="ruleForm.dirid"
                  :label="ruleForm.depName"
                  style="height: auto"
                >
                <el-button
                  v-if="btnStatus.delete"
                  @click="handleDelete(scope.$index, scope.row)"
                  type="danger"
                  size="small"
                  >{{ $t('common.delete') }}</el-button
                >
              </template>
            </el-table-column>
          </el-table>
          <div
            style="margin-top: 20px; margin-left: 200px"
            class="pagination_box"
          >
            <el-pagination
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="listData.pageIndex"
              :page-sizes="[10, 20, 30, 40]"
              :page-size="listData.pageSize"
              layout="total, sizes, prev, pager, next, jumper"
              :total="count"
            >
            </el-pagination>
                  <el-tree
                    ref="tree"
                    :data="companyOption"
                    node-key="id"
                    :props="props"
                    @node-click="handleChange"
                  />
                </el-option>
              </el-select>
              <!-- <el-cascader
              v-model="ruleForm.dirid"
              :show-all-levels="false"
              :options="companyOption"
              @change="handleChange"
              :props="{
              label: 'name',
              value: 'id',
              children: 'children',
              checkStrictly: true,
              emitPath: false,
            }"
            ></el-cascader> -->
            </el-form-item>
            <el-form-item size="small">
              <el-input
                v-model="ruleForm.name"
                :placeholder="$t('shuJuGuanLi.lable5')"
              ><i
                  slot="suffix"
                  class="el-icon-search"
                  @click="onSubmit('ruleForm')"
                  style="padding-right: 8px"
                ></i></el-input>
            </el-form-item>
          </div>
          <div>
            <el-form-item>
              <el-button
                type="success"
                v-if="btnStatus.insert"
                @click="(InsertFormdialog = true), getSelectdirTab()"
                icon="el-icon-plus"
                size="small"
              >{{ $t("common.append") }}</el-button>
              <!--              <el-button
                @click="onSubmit('ruleForm')"
                icon="el-icon-search"
                size="small"
                class="primary"
                >{{ $t("common.iquery") }}</el-button
              >-->
              <el-button
                type="info"
                @click="resetForm('ruleForm')"
                icon="el-icon-delete"
                size="small"
              >{{ $t("common.empty") }}</el-button>
            </el-form-item>
          </div>
        </div>
      </el-form>
    </div>
    <div class="dividing-line"></div>
    <div
      class="table_box"
      :style="styleVar"
    >
      <el-table
        :data="tableData"
        style="width: 100%"
        border
        height="calc(100% - 57px)"
      >
        <el-table-column
          align="center"
          type="index"
          :label="$t('dataManage.vmobj.index')"
          width="70px"
        />
        <el-table-column
          align="center"
          prop="id"
          v-if="false"
        />
        <el-table-column
          align="center"
          prop="name"
          :label="$t('common.versionName')"
        />
        <el-table-column
          align="center"
          prop="depName"
          :label="$t('dataManage.vmobj.catalogue')"
        />
        <el-table-column
          align="center"
          prop="descr"
          :label="$t('dataManage.vmobj.describe')"
        />
        <el-table-column
          align="center"
          prop="createName"
          :label="$t('dataManage.vmobj.createonuser')"
        />
        <el-table-column
          align="center"
          prop="createTime"
          :label="$t('dataManage.vmobj.createontime')"
          :formatter="formatTime"
        />
        <el-table-column
          align="center"
          prop="UpdateUser"
          :label="$t('dataManage.vmobj.updateonuser')"
        />
        <el-table-column
          align="center"
          prop="updateTime"
          :label="$t('dataManage.vmobj.updateontime')"
          :formatter="formatTime"
        />
        <el-table-column
          min-width="150"
          :label="$t('common.operate')"
        >
          <template slot-scope="scope">
            <el-button
              v-if="btnStatus.update"
              @click="
                handleEdit(scope.$index, scope.row);
                getSelectdirTab();
              "
              type="warning"
              size="small"
              plain
            >{{ $t("common.update") }}</el-button>
            <el-button
              v-if="btnStatus.delete"
              @click="handleDelete(scope.$index, scope.row)"
              type="danger"
              size="small"
              plain
            >{{ $t("common.delete") }}</el-button>
          </template>
        </el-table-column>
      </el-table>
      <div
        class="pagination_box"
        style="margin-top: 15px"
      >
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="listData.pageIndex"
          :page-sizes="[10, 20, 50, 100]"
          :page-size="listData.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="count"
        >
        </el-pagination>
      </div>
    </div>
    <el-dialog
      :title="$t('dataManage.vmobj.editVersion')"
      :visible.sync="dialogFormVisible"
    >
      <el-form :model="upform">
        <el-form-item
          :label="$t('dataManage.vmobj.name')"
          :label-width="formLabelWidth"
      <div style="height: 500px; overflow: auto">
        <el-form
          :model="upform"
          label-position="top"
        >
          <el-input v-model="upform.name" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item
          :label="$t('dataManage.vmobj.catalogue')"
          :label-width="formLabelWidth"
        >
          <el-cascader
          <el-form-item
            :label="$t('dataManage.vmobj.name')"
            :label-width="formLabelWidth"
          >
            <el-input
              v-model="upform.name"
              autocomplete="off"
              style="width:85%"
            ></el-input>
          </el-form-item>
          <el-form-item
            :label="$t('dataManage.vmobj.catalogue')"
            :label-width="formLabelWidth"
          >
            <el-select
              :popper-append-to-body="false"
              v-model="upform.dirid"
              :placeholder="$t('shuJuGuanLi.pselect.select')"
              style="width:85%"
            >
              <el-option
                :value="upform.dirid"
                :label="upform.depName"
                style="height: auto"
              >
                <el-tree
                  ref="tree"
                  :data="editcatalogOption"
                  node-key="id"
                  :props="props"
                  @node-click="handlupCatalogChange"
                />
              </el-option>
            </el-select>
            <!-- <el-cascader
            style="width: 300px"
            v-model="upform.dirid"
            :options="editcatalogOption"
            @change="upCatalogChange"
            :props="cascader"
          ></el-cascader>
        </el-form-item>
        <el-form-item
          :label="$t('dataManage.vmobj.describe')"
          :label-width="formLabelWidth"
        >
          <el-input v-model="upform.descr" autocomplete="off"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" type="info" class="dialog-footer">
        <el-button @click="editFromDataClose">{{
          $t('common.close')
          ></el-cascader> -->
          </el-form-item>
          <el-form-item
            :label="$t('dataManage.vmobj.describe')"
            :label-width="formLabelWidth"
          >
            <el-input
              v-model="upform.descr"
              autocomplete="off"
              style="width:85%"
            ></el-input>
          </el-form-item>
        </el-form>
      </div>
      <div
        slot="footer"
        type="info"
        class="dialog-footer"
      >
        <el-button
          size="small"
          @click="editFromDataClose"
        >{{
          $t("common.close")
        }}</el-button>
        <el-button @click="editFromData" class="primary">{{
          $t('common.confirm')
        <el-button
          size="small"
          @click="editFromData"
          class="primary"
        >{{
          $t("common.confirm")
        }}</el-button>
      </div>
    </el-dialog>
@@ -174,49 +279,84 @@
    <el-dialog
      :title="$t('dataManage.vmobj.addVersion')"
      :visible.sync="InsertFormdialog"
      width="30%"
    >
      <el-form :model="insertform">
        <el-form-item
          :label="$t('dataManage.vmobj.name')"
          :label-width="formLabelWidth"
      <div style="height: 500px; overflow: auto">
        <el-form
          :model="insertform"
          label-position="top"
        >
          <el-input
            style="width: 300px"
            v-model="insertform.name"
            autocomplete="off"
          ></el-input>
        </el-form-item>
        <el-form-item
          :label="$t('dataManage.vmobj.catalogue')"
          :label-width="formLabelWidth"
        >
          <el-cascader
          <el-form-item
            :label="$t('dataManage.vmobj.name')"
            :label-width="formLabelWidth"
          >
            <el-input
              style="width:85%"
              v-model="insertform.name"
              autocomplete="off"
            ></el-input>
          </el-form-item>
          <el-form-item
            :label="$t('dataManage.vmobj.catalogue')"
            :label-width="formLabelWidth"
          >
            <el-select
              :popper-append-to-body="false"
              v-model="insertform.dirName"
              placeholder="请选择"
              style="width:85%"
            >
              <el-option
                :value="insertform.path"
                :label="insertform.dirName"
                style="height: auto"
              >
                <el-tree
                  ref="tree"
                  :data="editcatalogOption"
                  node-key="id"
                  :props="props"
                  @node-click="catalogChangeAdd"
                />
              </el-option>
            </el-select>
            <!-- <el-cascader
            style="width: 300px"
            v-model="insertform.path"
            :options="catalogOption"
            @change="catalogChange"
            :props="cascader"
          ></el-cascader>
        </el-form-item>
          ></el-cascader> -->
          </el-form-item>
        <el-form-item
          :label="$t('dataManage.vmobj.describe')"
          :label-width="formLabelWidth"
        >
          <el-input
            style="width: 300px"
            v-model="insertform.descr"
            autocomplete="off"
          ></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="insertFromDataClose" type="info">{{
          $t('common.close')
          <el-form-item
            :label="$t('dataManage.vmobj.describe')"
            :label-width="formLabelWidth"
          >
            <el-input
              style="width:85%"
              v-model="insertform.descr"
              autocomplete="off"
            ></el-input>
          </el-form-item>
        </el-form>
      </div>
      <div
        slot="footer"
        class="dialog-footer"
      >
        <el-button
          @click="insertFromDataClose"
          type="info"
          size="small"
        >{{
          $t("common.close")
        }}</el-button>
        <el-button @click="insertFromData" class="primary">{{
          $t('common.confirm')
        <el-button
          @click="insertFromData"
          class="primary"
          size="small"
        >{{
          $t("common.confirm")
        }}</el-button>
      </div>
    </el-dialog>
@@ -312,19 +452,27 @@
  deleteVersion,
  updateVersion,
  selectdirTab,
} from '../../api/api';
import verDirTree from './verDirTree.vue';
import MyBread from '../../components/MyBread.vue';
import verDirTrees from './verDirTrees.vue';
import moment from 'moment';
} from "../../api/api";
import verDirTree from "./verDirTree.vue";
import MyBread from "../../components/MyBread.vue";
import verDirTrees from "./verDirTrees.vue";
import moment from "moment";
export default {
  name: 'versionManage',
  name: "versionManage",
  components: { MyBread, verDirTree, verDirTrees },
  data() {
    return {
      props: {
        label: "name",
        value: "id",
        children: "children",
        checkStrictly: true,
        emitPath: false,
      },
      catalogOption: [],
      editcatalogOption: [],
      showCata: false,
      formLabelWidth: '100px',
      formLabelWidth: "100px",
      dialogFormVisible: false,
      InsertFormdialog: false,
      showinfoBox: false,
@@ -333,6 +481,7 @@
      ruleForm: {},
      insertform: {},
      tableData: [],
      companyOption: [],
      count: 0,
      rowFlag: null,
      listData: {
@@ -342,9 +491,9 @@
        pageSize: 10,
      },
      cascader: {
        label: 'name',
        value: 'id',
        children: 'children',
        label: "name",
        value: "id",
        children: "children",
        checkStrictly: true,
        emitPath: false,
      },
@@ -356,37 +505,100 @@
        insert: false,
        update: false,
      },
      tableHeight: 0,
      timer: 0,
      styleVar: {
        height: "calc(100% - 109px)",
      },
    };
  },
  created() {
    this.getQueryDirTree();
    this.getRoleTabelData();
    this.showPermsBtn();
    this.$set(this.ruleForm, "depName", "请选择存储目录");
  },
  computed: {
    pathId() {
      return this.$store.state.cataNode.id;
    },
  },
  beforeDestroy() {
    this.timer && clearTimeout(this.timer);
    window.removeEventListener("resize", this.onResize);
  },
  mounted() {
    window.addEventListener("resize", this.onResize);
    this.calHeight();
  },
  methods: {
    onResize() {
      this.timer && clearTimeout(this.timer);
      this.timer = setTimeout(() => {
        this.calHeight();
      }, 500);
    },
    calHeight() {
      this.$nextTick(() => {
        const rect = this.$refs.container.getBoundingClientRect();
        this.tableHeight = `${rect.height + 97}px`;
        this.styleVar["height"] = `calc(100% - ${rect.height + 28}px)`;
      });
    },
    //目录切换
    catalogChange(value) {
      this.insertform.dirid = value;
    },
    catalogChangeAdd(data, node, nodeData) {
      this.insertform.path = data.id
      this.insertform.dirid = data.id
      // this.$set(this.insertform, "path", data.id);
      this.$set(this.insertform, "dirName", data.name);
    },
    upCatalogChange(val) {
      this.upform.dirid == val;
    },
    handlupCatalogChange(data, node, nodeData) {
      this.$set(this.upform, "dirid", data.id);
      this.$set(this.upform, "depName", data.name);
      // this.upform.dirid == data.id;
      // this.upform.depName = data.name;
    },
    //目录列表获取
    async getQueryDirTree() {
      const res = await selectdirTab();
      if (res.code != 200) {
        this.$message.error("目录列表获取失败");
        return;
      }
      this.companyOption = this.treeData(res.result);
      // this.ruleForm.dirid = this.companyOption[0].id;
    },
    handleChange(data, node, nodeData) {
      this.$set(this.ruleForm, "dirid", data.id);
      this.$set(this.ruleForm, "depName", data.name);
      // this.ruleForm.dirid = data.id;
      // this.ruleForm.depName = data.name;
      this.onSubmit();
    },
    // handleChange(val) {
    //   this.ruleForm.dirid = val;
    //   this.onSubmit();
    // },
    //目录列表获取
    async getSelectdirTab() {
      const res = await selectdirTab();
      if (res.code != 200) {
        this.$message.error('目录列表获取失败');
        this.$message.error("目录列表获取失败");
        return;
      }
      this.insertform.name = this.getYMD();
      this.insertform.path = 1;
      this.insertform.dirid = 1;
      this.upform.dirid == 1;
      // this.insertform.path = 1;
      // this.insertform.dirid = 1;
      // this.upform.dirid == 1;
      this.catalogOption = this.treeData(res.result);
      this.editcatalogOption = this.treeData(res.result);
    },
@@ -395,9 +607,9 @@
      let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
      let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,0代表1月)
      let myToday = myDate.getDate(); //获取当前日(1-31)
      myMonth = myMonth > 9 ? myMonth : '0' + myMonth;
      myToday = myToday > 9 ? myToday : '0' + myToday;
      let nowDate = 'V' + myYear + myMonth + myToday;
      myMonth = myMonth > 9 ? myMonth : "0" + myMonth;
      myToday = myToday > 9 ? myToday : "0" + myToday;
      let nowDate = "V" + myYear + myMonth + myToday;
      return nowDate;
    },
@@ -407,7 +619,7 @@
      return cloneData.filter((father) => {
        // 循环所有项
        let branchArr = cloneData.filter((child) => father.id == child.pid); // 对比ID,分别上下级菜单,并返回数据
        branchArr.length > 0 ? (father.children = branchArr) : ''; // 给父级添加一个children属性,并赋值
        branchArr.length > 0 ? (father.children = branchArr) : ""; // 给父级添加一个children属性,并赋值
        return father.pid == 0; // 返回一级菜单
      });
    },
@@ -420,8 +632,9 @@
    },
    resetForm() {
      this.ruleForm = {};
      // this.ruleForm.dirid = this.companyOption[0].id;
      this.$store.state.verCateNode = {};
      this.$bus.$emit('clearTressLabel', true);
      this.$bus.$emit("clearTressLabel", true);
      this.getRoleTabelData();
    },
    onSubmit() {
@@ -430,17 +643,17 @@
      this.getRoleTabelData();
    },
    async getRoleTabelData() {
      if (this.listData.tab == '') {
      if (this.listData.tab == "") {
        delete this.listData.tab;
      }
      this.listData.name = this.ruleForm.name;
      this.listData.depName = this.$store.state.verCateNode.name;
      this.listData.dirid = this.ruleForm.dirid;
      const data = await select_Ver_ByPageAndCount(this.listData);
      if (data.code != 200) {
        this.$message.error('列表调用失败');
        this.$message.error("列表调用失败");
      }
      this.tableData = data.result;
      this.count = data.count;
@@ -474,8 +687,8 @@
    async editFromData() {
      if (this.upform.depName == null) {
        this.$message({
          message: '请选择角色所属单位',
          type: 'warning',
          message: "请选择角色所属单位",
          type: "warning",
        });
        return;
      }
@@ -484,14 +697,14 @@
        this.dialogFormVisible = false;
        this.upform = {};
        this.$message({
          message: '修改成功!',
          type: 'success',
          message: "修改成功!",
          type: "success",
        });
        this.getRoleTabelData();
      } else {
        this.$message({
          message: '修改失败!',
          type: 'warning',
          message: "修改失败!",
          type: "warning",
        });
      }
    },
@@ -500,51 +713,66 @@
      this.insertform = {};
    },
    async insertFromData() {
      if (this.insertform.dirid == null) {
        this.$message({
          message: '请选择角色所属单位',
          type: 'warning',
          message: "请选择角色所属单位",
          type: "warning",
        });
        return;
      }
      const data = await insertVersion(this.insertform);
      if (data.code == 200) {
        this.InsertFormdialog = false;
        this.insertform = {};
        this.$message({
          message: '添加成功!',
          type: 'success',
          message: "添加成功!",
          type: "success",
        });
        this.getRoleTabelData();
      } else {
        this.$message({
          message: '添加失败!',
          type: 'warning',
          message: "添加失败!",
          type: "warning",
        });
      }
    },
    formatTime(row, column) {
      let date = row[column.property];
      if (date === undefined || date === null) {
        return '';
        return "";
      }
      return moment(parseInt(date)).format('YYYY-MM-DD HH:mm:ss');
      return moment(parseInt(date)).format("YYYY-MM-DD HH:mm:ss");
    },
    async handleDelete(index, row) {
      const data = await deleteVersion(row.id);
      if (data.code == 200) {
        this.InsertFormdialog = false;
        this.$message({
          message: '删除成功!',
          type: 'success',
    handleDelete(index, row) {
      this.$confirm("此操作将永久删除该版本信息, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(async () => {
          const data = await deleteVersion(row.id);
          if (data.code == 200) {
            this.InsertFormdialog = false;
            this.$message({
              message: "删除成功!",
              type: "success",
            });
            this.getRoleTabelData();
          } else {
            this.$message({
              message: "删除失败!",
              type: "warning",
            });
          }
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消删除",
          });
        });
        this.getRoleTabelData();
      } else {
        this.$message({
          message: '删除失败!',
          type: 'warning',
        });
      }
    },
    handleEdit(index, row) {
      this.dialogFormVisible = true;
@@ -554,7 +782,7 @@
  watch: {
    pathId: {
      immediate: true,
      handler(val) {},
      handler(val) { },
    },
  },
};
@@ -562,164 +790,54 @@
<style lang="less" scoped>
//@import url(); 引入公共css类
.verSionBox {
  height: 81%;
  width: 97%;
  position: absolute;
  box-sizing: border-box;
  height: 98%;
  width: 98%;
  padding: 0.5%;
  .verSionContent {
    width: 100%;
    height: 92%;
    display: flex;
    justify-content: space-between;
    .verSion_leftTree {
      width: 15%;
      height: 95%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
      max-height: 670px;
      overflow-y: auto;
    }
    .verSion_rightContent {
      width: 80%;
      height: 95%;
      border: 1px solid white;
      width: 98%;
      height: 91%;
      border-radius: 5px;
      padding: 1%;
      overflow-y: auto;
    }
  }
  .eldivider {
    margin-top: 0px;
  }
  .primary {
    background: #409eff;
    border: #409eff;
    color: white;
  }
  /deep/ .el-select .el-input__inner {
    border-color: #fff !important;
  }
  .pagination_box {
    margin-top: 20px;
    /deep/.el-input__inner {
      background-color: transparent !important;
      border: 1px solid;
      color: white;
    }
    /deep/.el-pagination__total {
      color: white;
    }
    /deep/.el-pagination__jump {
      color: white;
    }
    /deep/.el-pager li.active {
      color: #409eff;
    }
    /deep/.el-pager li {
      color: white;
      background: transparent;
    }
    /deep/.el-pager li {
      color: white;
    }
    /deep/.btn-prev {
      background: transparent;
    }
    /deep/.btn-next {
      background: transparent;
    }
    /deep/.btn-next i {
      color: white;
    }
    /deep/.btn-prev i {
      color: white;
    }
  }
}
.inquire {
  padding: 8px;
  //margin-top: 20px;
  /deep/.el-form-item__label {
    color: white;
  }
  // 设置输入框的背景色、字体颜色、边框属性设置;
  /deep/.el-input__inner {
    background-color: transparent !important ;
    color: #fff;
    border: 1px solid;
  }
  /*修改table 表体的背景颜色和文字颜色*/
  /deep/ .el-table {
    background-color: transparent;
  border-radius: 5px;
    th,
    td {
      background-color: transparent;
    }
    .el-table__expanded-cell {
      background-color: transparent !important;
    }
    // 表头背景色
    th.el-table__cell {
      background-color: #303030;
      color: #fff;
    }
    tr > td {
      background-color: #303030;
      color: #fff;
    }
    // hover效果
    tr:hover > td {
      background-color: rgba(255, 255, 255, 0.3) !important;
    }
    tbody tr:hover {
      background-color: rgba(255, 255, 255, 0.3) !important;
      // text-align: center;
    }
    // 滚动条宽高
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      /*滚动条宽度*/
      height: 5px;
      /*滚动条高度*/
    }
    /*定义滚动条轨道 内阴影+圆角*/
    .el-table__body-wrapper::-webkit-scrollbar-track {
      box-shadow: 0px 1px 3px #216fe6 inset;
      /*滚动条的背景区域的内阴影*/
      border-radius: 10px;
    }
    /*定义滑块 内阴影+圆角*/
    .el-table__body-wrapper::-webkit-scrollbar-thumb {
      box-shadow: 0px 1px 3px #216fe6 inset;
      border-radius: 6px;
      background-color: #216fe6;
    }
  //margin-bottom: 20px;
  .el-form-item {
    margin: 5px;
  }
  /deep/ .el-dialog {
    background: #303030;
  }
  /deep/.el-range-editor.is-active,
  .el-range-editor.is-active:hover,
  .el-select .el-input.is-focus .el-input__inner {
    border: 1px solid;
  }
  /deep/.el-dialog__title {
    color: white;
  }
  /deep/ .el-select .el-input__inner {
    border-color: #fff !important;
  }
  /deep/.el-cascader .el-input__inner {
    border-color: #fff !important;
}
.bottom {
  width: 100%;
  margin-top: 1%;
  height: 74%;
  display: flex;
  justify-content: space-between;
  .rightTable {
    width: 98%;
    height: 92%;
    border-radius: 5px;
    padding: 1%;
    .table_box {
      width: 100%;
      height: 93%;
      margin: 0 auto;
      overflow: auto;
    }
  }
}
</style>