| | |
| | | * @Author: sakuya |
| | | * @Date: 2021年11月29日21:51:15 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-05-12 13:00:03 |
| | | * @LastEditTime: 2024-05-12 13:35:21 |
| | | --> |
| | | |
| | | <template> |
| | | <div class="scTable" :style="{ 'height': _height }" ref="scTableMain" v-loading="loading"> |
| | | <div class="scTable-table" :style="{ 'height': _table_height }"> |
| | | <el-table v-bind="$attrs" :data="tableData" :row-key="rowKey" :key="toggleIndex" ref="scTable" |
| | | :height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" :stripe="config.stripe" |
| | | :summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" @sort-change="sortChange" |
| | | @filter-change="filterChange"> |
| | | :height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" |
| | | :stripe="config.stripe" :summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" |
| | | @sort-change="sortChange" @filter-change="filterChange"> |
| | | <slot></slot> |
| | | <template v-for="(item, index) in userColumn" :key="index"> |
| | | <el-table-column v-if="!item.hide" :column-key="item.prop" :label="item.label" :prop="item.prop" |
| | |
| | | var res = await this.apiObj.get(reqData); |
| | | } catch (error) { |
| | | this.loading = false; |
| | | this.emptyText = error.statusText; |
| | | this.emptyText = error?.statusText; |
| | | return false; |
| | | } |
| | | try { |