123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902 |
- <template>
- <div class="header-actions" v-if="getActionList.length != 0 &&getActionList.length>2">
- <div class="overflow-box">
- <el-button v-for="(item, index) in getActionList" :key="index" :type="item.type || 'primary'" :plain="item.plain || false"
- v-bind="getHeaderActions(item)" @click="item.action" :disabled="item.disabled || false">
- {{ item.text }}
- </el-button>
- </div>
- </div>
- <div class="stat-warp" v-if="statConfig.length != 0" :class="statWarpHeight > 200 && isMore ? 'show-more' : ''">
- <div class="title">
- <select v-model="statSelectVal" v-if="statConfig.length > 1" @change="changeStatData">
- <option :value="index" v-for="(i, index) in statConfig" :key="index">
- {{ i.label }}
- </option>
- </select>
- <div v-if="statConfig.length === 1">{{ statConfig[0].label }}</div>
- </div>
- <div class="more-btn" @click="isMore = !isMore" v-if="statWarpHeight > 200">
- <span>
- <i v-if="!isMore" class="iconfont icon-btn_xiala22"></i>
- <i v-else class="iconfont icon-btn_shouqi22"></i>
- </span>
- </div>
- <ul id="statWarp">
- <li v-show="!i.data" :class="'theme' + i.type" v-for="(i, index) in statConfig[statSelectVal].data" :key="index"
- @click="i.click ? i.click(i, index) : ''" :style="i.click ? 'cursor: pointer' : ''">
- <div class="label">{{ i.label }}</div>
- <div class="num">{{ i.num }}</div>
- </li>
- <li v-show="i.data" v-for="(i, index) in statConfig[statSelectVal].data" :key="index" class="multi-data" :class="'theme' + i.type"
- @click="i.click ? i.click(i, index) : ''" :style="i.click ? 'cursor: pointer' : ''">
- <div class="label">{{ i.label }}</div>
- <div class="num-warp">
- <div class="num-box" v-for="(j, jindex) in i.data" :key="jindex">
- <div class="num-small" :style="'color:' + j.color">
- {{ j.num }}
- </div>
- <div class="label-small">{{ j.label }}</div>
- </div>
- </div>
- </li>
- </ul>
- </div>
- <div class="table-list-container by-table" v-loading="loading" v-if="!hideAll">
- <!-- v-if="!hideHeader" -->
- <header v-if="false" class="header">
- <h2>{{ title }}</h2>
- </header>
- <div class="by-search" v-if="!hideSearch">
- <div style="display: flex">
- <div v-if="getActionList.length != 0 &&getActionList.length <=2" style="margin-right:10px">
- <el-button v-for="(item, index) in getActionList" :key="index" :type="item.type || 'primary'" :plain="item.plain || false"
- v-bind="getHeaderActions(item)" @click="item.action" :disabled="item.disabled || false">
- {{ item.text }}
- </el-button>
- </div>
- <div class="by-dropdown" v-for="(i, index) in selectConfigCopy" :key="i.prop" style="margin-right: 10px">
- <div v-if="i.type" class="selectTime" style="display:flex;align-items:center">
- <span style="font-size:12px;height:32px;margin-right:15px">{{i.label || ''}}</span>
- <el-date-picker v-model="pagination[i.prop]" :type="i.itemType?i.itemType:'date'" size="small" :placeholder="i.placeholder"
- style="width:120px" :value-format="dateFormatInit(i.itemType)"
- @change="i.fn?i.fn(pagination[i.prop]):searchItemSelctOne(i,pagination[i.prop],pagination[i.propOne])"
- :clearable="i.clearable!=undefined?i.clearable :true" />
- <span style="margin-right:25px" v-if="i.propOne">-</span>
- <el-date-picker v-model="pagination[i.propOne]" v-if="i.propOne" :type="i.itemType?i.itemType:'date'" size="small"
- :placeholder="i.placeholderOne" style="width:120px" :value-format="dateFormatInit(i.itemType)"
- @change="i.fn?i.fn(pagination[i.propOne]):searchItemSelctOne(i,pagination[i.prop],pagination[i.propOne])"
- :clearable="i.clearable!=undefined?i.clearable :true" />
- </div>
- <div v-else>
- <div class="by-dropdown-title">
- {{getSelectLabel(pagination[i.prop],i) || i.label || i.labelCopy}}
- <i style="margin-left: 5px" class="iconfont icon-iconm_xialan1"></i>
- </div>
- <ul class="by-dropdown-lists">
- <li @click="searchItemSelct('all', i, index)" v-if="i.isShowAll === false ? i.isShowAll : true" style="">
- {{ $t("common.all") }}
- </li>
- <li v-for="j in i.data" :key="j.value || j.dictKey" @click="searchItemSelct(j, i)" style="">
- {{ j.label || j.dictValue }}
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div style="display: flex;align-items:center">
- <el-input :placeholder="$t('common.pleaseEnterKeywords')" style="font-size:12px" suffix-icon="search" size="mini" v-model="pagination.keyword"
- @keyup.enter="searchFn">
- </el-input>
- <el-icon :size="16" style="cursor:pointer;margin-left: 10px" @click="searchFn">
- <Search />
- </el-icon>
- <el-icon :size="16" style="cursor:pointer;margin-left: 10px" @click="searchReset">
- <Refresh />
- </el-icon>
- <div class="more-icon" @click="retrievalModalFn" v-if="false">
- <i class="iconfont icon-iconx_saixuan"></i>
- </div>
- </div>
- </div>
- <component :is="containerTag">
- <div class="filter-form-container">
- <slot />
- </div>
- <el-table ref="hocElTable" :data="source" v-if="!hideTable" style="width: 100%" v-bind="$attrs" v-on="tableEvents" row-key="id" :tree-props="{
- children: 'children',
- hasChildren: 'hasChildren',
- }" :height="tableHeight">
- <el-table-column v-for="(item, index) in configData" :key="index" v-bind="getAttrsValue(item)" :type="item.type || ''" :selectable="
- (rowData, rowIndex) => isSelectable(rowData, rowIndex, item)
- ">
- <template #header v-if="item.attrs.isNeedHeaderSlot">
- <slot :name="item.attrs.headerSlot" :headerLabel="item.attrs.label" v-if="item.attrs.headerSlot">
- 头部插槽占位符
- </slot>
- </template>
- <template #default="scope" v-if="!item.type">
- <slot :name="item.attrs.slot" :item="scope.row" :headerLabel="item.attrs.label" v-if="item.attrs.slot">
- 插槽占位符
- </slot>
- <div v-else-if="isFunction(getValue(scope, item))">
- <component :is="renderTypeList[getMatchRenderFunction(item)].target" :cell-list="getValue(scope, item)()" :row="scope.row"
- :parent="getParent" @click="
- ($event) => {
- handleNativeClick(getAttrsValue(item), $event, item);
- }
- " />
- </div>
- <div v-else>
- {{ getValue(scope, item) }}
- </div>
- </template>
- </el-table-column>
- </el-table>
- <el-row v-if="!hidePagination" class="table-pagination" justify="end" type="flex">
- <el-pagination background layout="total, sizes, prev, pager, next, jumper" :current-page="getPagination.pageNum"
- :page-size="getPagination.pageSize" :total="getPagination.total" @size-change="handleSizeChange"
- @current-change="handlePageChange" />
- </el-row>
- </component>
- </div>
- </template>
-
- <script>
- import { isFunction as isFn, isBoolean } from "./type";
- import ElementsMapping from "./ElementsMapping";
- import ComponentsMapping from "./ComponentsMapping";
- import { computed, defineComponent, getCurrentInstance, ref, watch } from "vue";
- import expand from "./expand";
- import Sortable from "sortablejs";
- export default defineComponent({
- name: "Table",
- components: {
- ElementsMapping,
- ComponentsMapping,
- },
- props: {
- hideSearch: {
- type: Boolean,
- default: false,
- },
- onMoreSearch: {
- type: Boolean,
- default: false,
- },
- hideAll: {
- type: Boolean,
- default: false,
- },
- hideTable: {
- type: Boolean,
- default: false,
- },
- //顶部搜索下拉配置
- selectConfig: {
- type: Array,
- default() {
- return [];
- },
- },
- // 获取表格元数据时携带的参数
- filterParams: {
- type: Object,
- default() {
- return {};
- },
- },
- // 表格加载 loading
- loading: {
- type: Boolean,
- default: false,
- },
- // 表格名称
- title: {
- type: String,
- default: "",
- },
- // 表格元数据
- source: {
- type: Array,
- required: true,
- default() {
- return [];
- },
- },
- // tableHeight: {
- // type: Number,
- // required: false,
- // },
- searchConfig: {
- type: Object,
- default() {
- return {
- keyword: "",
- };
- },
- },
- statConfig: {
- type: Array,
- default() {
- return [];
- },
- },
- // 指定外层容器的渲染组件
- containerTag: {
- type: String,
- default: "div",
- },
- // 是否隐藏表头
- hideHeader: {
- type: Boolean,
- default: false,
- },
- // 是否隐藏分页
- hidePagination: {
- type: Boolean,
- default: false,
- },
- // 分页配置
- pagination: {
- type: Object,
- default() {
- return {};
- },
- },
- // 表格配置文件
- config: {
- type: Array,
- default() {
- return [];
- },
- },
- // 表头右上方的按钮组
- actionList: {
- type: Array,
- default() {
- return [{ text: "", action: () => {} }];
- },
- },
- // element table 原生事件
- tableEvents: {
- type: Object,
- default() {
- return {};
- },
- },
- searchKey: {
- type: String,
- default: "keyword",
- },
- // 是否显示过滤的全部选项
- // isShowAll: {
- // type: Boolean,
- // default: true,
- // },
- },
- setup(props) {
- const tableHeight = ref(0);
- const getTableHeight = () => {
- // if (window.innerHeight >= 920) {
- // tableHeight.value = 650;
- // } else {
- // tableHeight.value = 550;
- // }
- tableHeight.value = window.innerHeight - 225;
- };
- getTableHeight();
- window.addEventListener("resize", () => {
- getTableHeight();
- });
- const { proxy } = getCurrentInstance();
- // 过滤出有属性的
- // const configData = ref([]);
- // configData.value = proxy.config.filter((x) => x && x.attrs);
- const configData = computed(() => proxy.config.filter((x) => x && x.attrs));
- // console.log(configData.value, "ssssssssss");
- const selectConfigCopy = computed(() => {
- return props.selectConfig.map((item) => {
- if (!item.labelCopy) item.labelCopy = { ...item }.label;
- return item;
- });
- });
- let isMore = ref(false);
- const changeStatData = () => {
- statWarpHeight.value = document.getElementById("statWarp").offsetHeight;
- };
- let statWarpHeight = ref(0);
- watch(
- proxy.statConfig,
- (newValue, oldValue) => {
- setTimeout(() => {
- //获取statWarp的height
- statWarpHeight.value =
- document.getElementById("statWarp").offsetHeight;
- }, 500);
- },
- { immediate: true }
- );
- let statSelectVal = ref(0);
- const retrievalModal = ref(false);
- const getAttrsValue = (item) => {
- const { attrs } = item;
- const result = {
- ...attrs,
- };
- delete result.prop;
- return result;
- };
- const renderTypeList = ref({
- render: {},
- renderHTML: {
- target: "elements-mapping",
- },
- renderComponent: {
- target: "components-mapping",
- },
- renderMoreBtn: {
- target: "more-btn",
- },
- });
- const getParent = computed(() => {
- return proxy.$parent;
- });
- // 复制过滤条件
- // const firstValue = ref(true);
- const paginationCopy = ref({});
- // if (firstValue.value) {
- // paginationCopy.value = Object.freeze(proxy.deepClone(props.pagination));
- // firstValue.value = false;
- // }
- paginationCopy.value = Object.freeze(proxy.deepClone(props.pagination));
- const getPagination = computed(() => {
- const params = {
- pageNum: 1,
- pageSize: 10,
- total: 0,
- };
- return Object.assign({}, params, props.pagination);
- });
- const getActionList = computed(() => {
- return props.actionList
- .slice()
- .reverse()
- .filter((it) => it.text);
- });
- const getValue = (scope, configItem) => {
- const prop = configItem.attrs.prop;
- const renderName = getMatchRenderFunction(configItem);
- const renderObj = renderTypeList.value[renderName];
- if (renderObj && isFunction(configItem[renderName])) {
- return renderObj.target
- ? getRenderValue(scope, configItem, {
- name: renderName,
- type: "bind",
- })
- : getRenderValue(scope, configItem);
- }
- return scope.row[prop];
- };
- const getRenderValue = (
- scope,
- item,
- fn = { name: "render", type: "call" }
- ) => {
- const prop = item.attrs.prop;
- const propValue = prop && scope.row[prop];
- scope.row.$index = scope.$index;
- const args = propValue !== undefined ? propValue : scope.row;
- return item[fn.name][fn.type](getParent.value, args);
- };
- // 匹配 render 开头的函数
- const getMatchRenderFunction = (obj) => {
- return Object.keys(obj).find((key) => {
- const matchRender = key.match(/^render.*/);
- return matchRender && matchRender[0];
- });
- };
- const isFunction = (fn) => {
- return isFn(fn);
- };
- const searchFn = (val) => {
- if (props.loading) return;
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, {
- [props.searchKey]: props.pagination.keyword,
- })
- );
- };
- const retrievalModalFn = () => {
- proxy.$emit("moreSearch", "");
- //获取父组件定义的moreSearch方法
- };
- const searchReset = () => {
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, {
- type: "",
- status: "",
- ...paginationCopy.value,
- })
- );
- };
- const handlePageChange = (val) => {
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, { pageNum: val })
- );
- };
- const handleSizeChange = (val) => {
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, { pageSize: val })
- );
- };
- const getHeaderActions = (item) => {
- return {
- ...item.attrs,
- };
- };
- const stopBubbles = (e) => {
- const event = e || window.event;
- if (event && event.stopPropagation) {
- event.stopPropagation();
- } else {
- event.cancelBubble = true;
- }
- };
- const handleNativeClick = ({ isBubble }, e, item) => {
- // 考虑到单元格内渲染了组件,并且组件自身可能含有点击事件,故添加了阻止冒泡机制
- // 若指定 isBubble 为 false,则当前单元格恢复冒泡机制
- if (isBoolean(isBubble) && !isBubble) return;
- stopBubbles(e);
- };
- //下拉搜索相关
- const searchItemSelct = (item, i, index) => {
- if (item == "all") {
- // i.label = { ...props.selectConfig[index] }.labelCopy;
- i.label = props.selectConfig[index].labelCopy;
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, { [i.prop]: "" })
- );
- return;
- }
- i.label = item.label || item.dictValue;
- let value = null;
- if (item.value !== "" && item.value != undefined) {
- value = item.value;
- } else if (item.dictKey !== "" && item.dictKey != undefined) {
- value = item.dictKey;
- } else {
- console.log("过滤");
- }
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, {
- [i.prop]: value,
- })
- );
- };
- const getSelectLabel = (value, item) => {
- if (value !== "" && value != undefined) {
- let current = item.data.find(
- (x) => x.value == value || x.dictKey == value
- );
- if (current) {
- if (current.label) {
- return current.label;
- }
- if (current.dictValue) {
- return current.dictValue;
- }
- }
- } else {
- return item.labelCopy;
- }
- };
- const dateFormatInit = (itemType) => {
- if (!itemType) {
- return "YYYY-MM-DD HH:mm:ss";
- }
- const formatObj = {
- year: "YYYY",
- month: "YYYY-MM",
- date: "YYYY-MM-DD HH:mm:ss",
- dates: "YYYY-MM-DD",
- datetime: "YYYY-MM-DD HH:mm:ss",
- monthrange: "YYYY-MM-DD HH:mm:ss",
- datetimerange: "YYYY-MM-DD HH:mm:ss",
- daterange: "YYYY-MM-DD HH:mm:ss",
- };
- return formatObj[itemType];
- };
- const searchItemSelctOne = (item, prop, propOne) => {
- if (prop && propOne) {
- let str = "";
- let end = "";
- if (prop.includes(":")) {
- str = prop.substr(0, 10);
- }
- if (propOne.includes(":")) {
- end = propOne.substr(0, 10);
- }
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, {
- [item.prop]: str + " 00:00:00",
- [item.propOne]: end + " 23:59:59",
- })
- );
- } else if (prop == null && propOne == null) {
- proxy.$emit(
- "getList",
- Object.assign(props.filterParams, {
- [item.prop]: "",
- [item.propOne]: "",
- })
- );
- }
- };
- const isSelectable = (row, index, item) => {
- if (item.type === "selection") {
- if (item.attrs && item.attrs.checkAtt) {
- if (row[item.attrs.checkAtt]) {
- return row[item.attrs.checkAtt];
- }
- } else {
- return true;
- }
- }
- };
- const hocElTable = ref();
- return {
- tableHeight,
- configData,
- getParent,
- getPagination,
- renderTypeList,
- getActionList,
- getAttrsValue,
- getValue,
- getRenderValue,
- getMatchRenderFunction,
- isFunction,
- handlePageChange,
- handleSizeChange,
- getHeaderActions,
- stopBubbles,
- handleNativeClick,
- searchFn,
- searchItemSelct,
- getSelectLabel,
- dateFormatInit,
- searchItemSelctOne,
- selectConfigCopy,
- isSelectable,
- retrievalModal,
- retrievalModalFn,
- searchReset,
- statSelectVal,
- statWarpHeight,
- isMore,
- changeStatData,
- hocElTable,
- };
- },
- });
- </script>
- <style>
- .table-list-container th {
- color: #333 !important;
- }
- .by-table td .el-button + .el-button {
- margin-left: 0 !important;
- }
- .by-table td .el-button {
- background: none !important;
- margin: 0 !important;
- padding: 8px 6px !important;
- }
- .el-checkbox__input.is-disabled .el-checkbox__inner {
- background-color: #dee1e6;
- border-color: #b2b4b9;
- }
- .el-table .cell {
- line-height: 34px;
- }
- </style>
- <style lang="scss" scoped>
- .sortableActive {
- background: #f5f7fa !important;
- }
- .show-more {
- height: auto !important;
- }
- .stat-warp {
- margin-bottom: 20px;
- background: #fff;
- padding: 0 20px;
- height: 200px;
- overflow: hidden;
- position: relative;
- .more-btn {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- height: 40px;
- cursor: pointer;
- font-size: 12px;
- line-height: 30px;
- text-align: center;
- background: linear-gradient(
- 180deg,
- rgba(255, 255, 255, 0) 0%,
- rgba(255, 255, 255, 0.8) 100%
- );
- i {
- color: #999;
- }
- }
- .title {
- height: 60px;
- select {
- height: 60px;
- border: none;
- outline: none;
- -webkit-appearance: none;
- appearance: none;
- font-size: 12px;
- font-weight: bold;
- background: url("@/assets/images/sanjiao.png") no-repeat right center;
- padding-right: 20px;
- }
- div {
- height: 60px;
- font-size: 12px;
- font-weight: bold;
- line-height: 60px;
- }
- }
- ul {
- padding: 0;
- overflow: hidden;
- margin: 0;
- li {
- list-style: none;
- min-width: 285px;
- box-sizing: border-box;
- margin: 0 20px 20px 0;
- background: #eff6ff;
- float: left;
- overflow: hidden;
- padding: 20px;
- color: #333333;
- border-radius: 10px;
- .label {
- font-size: 12px;
- }
- .label::before {
- width: 10px;
- height: 10px;
- content: "";
- border-radius: 50%;
- background: #0084ff;
- display: inline-block;
- margin-right: 10px;
- }
- .num {
- margin-top: 10px;
- font-size: 24px;
- font-weight: bold;
- }
- }
- //#F5F3FF #9E64ED
- .theme2 {
- background: #f5f3ff;
- .label::before {
- background: #9e64ed;
- }
- }
- //#FFF1E1 #FF9315
- .theme3 {
- background: #fff1e1;
- .label::before {
- background: #ff9315;
- }
- }
- //#E2FBE8 #39C55A
- .theme4 {
- background: #e2fbe8;
- .label::before {
- background: #39c55a;
- }
- }
- .theme5 {
- background: #ffebe9;
- .label::before {
- background: #f94539;
- }
- }
- .theme6 {
- background: #e4f9f9;
- .label::before {
- background: #53cbcb;
- }
- }
- .multi-data {
- .label::before {
- display: none;
- }
- .label {
- font-size: 12px;
- font-weight: bold;
- color: #333;
- margin-bottom: 8px;
- }
- .num-warp {
- overflow: hidden;
- .num-box {
- float: left;
- min-width: 80px;
- margin-right: 20px;
- .num-small {
- font-size: 16px;
- font-weight: bold;
- margin-bottom: 8px;
- }
- .label-small {
- color: #666;
- font-size: 12px;
- }
- }
- }
- }
- }
- }
- .by-search {
- display: flex;
- justify-content: space-between;
- margin-bottom: 10px;
- .more-icon {
- float: right;
- cursor: pointer;
- line-height: 32px;
- text-align: center;
- margin-left: 5px;
- }
- }
- .by-dropdown {
- position: relative;
- text-align: left;
- height: 32px;
- z-index: 1010;
- padding: 0 10px;
- transition: all 0.5s ease;
- cursor: pointer;
- line-height: 32px;
- .by-dropdown-title {
- font-size: 12px;
- background-color: #fff;
- }
- ul {
- position: absolute;
- left: 0;
- top: 32px;
- padding: 0;
- margin: 0;
- z-index: 100;
- display: none;
- white-space: nowrap;
- min-width: 80px;
- li {
- list-style: none;
- font-size: 12px;
- height: 30px;
- padding: 0 10px;
- text-align: left;
- line-height: 30px;
- }
- li:hover {
- background-color: #eff6ff;
- color: #0084ff;
- }
- }
- }
- .by-dropdown::before {
- display: block;
- width: 1px;
- content: " ";
- position: absolute;
- height: 14px;
- top: 8px;
- background-color: #ddd;
- right: 0;
- z-index: 1011;
- }
- .by-dropdown:hover {
- background: #ffffff;
- border-radius: 2px 2px 2px 2px;
- opacity: 1;
- ul {
- background: #ffffff;
- box-shadow: 0px 2px 16px 1px rgba(0, 0, 0, 0.06);
- border-radius: 2px 2px 2px 2px;
- opacity: 1;
- display: block;
- text-align: left;
- }
- }
- .header-actions {
- flex: 1;
- overflow-x: auto;
- padding: 20px;
- background: #fff;
- margin-bottom: 20px;
- .overflow-box {
- :deep() .el-button:nth-child(1) {
- margin-left: 10px;
- }
- }
- }
- .table-list-container {
- background: #fff;
- padding: 15px 15px 10px 15px;
- .table-pagination {
- padding-top: 5px;
- }
- .header {
- display: flex;
- padding-bottom: 20px;
- }
- .el-table {
- :deep() th {
- font-size: 12px;
- }
- :deep() td {
- font-size: 12px;
- }
- }
- }
- .by-dropdown-lists {
- max-height: 50vh;
- overflow-y: auto;
- line-height: 1;
- }
- :deep(.selectTime .el-input__wrapper) {
- box-shadow: none;
- }
- :deep(.selectTime .el-input__inner) {
- color: #000 !important;
- font-size: 12px !important;
- }
- :deep(.selectTime .el-input .el-input__icon) {
- color: #000 !important;
- font-size: 12px !important;
- }
- </style>
|