This commit is contained in:
shijing 2024-04-09 16:39:15 +08:00
commit 3d53992bfb
2 changed files with 8 additions and 12 deletions

View File

@ -13,7 +13,7 @@
<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">
@filter-change="filterChange" @selection-change="selectionChange">
<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"
@ -40,6 +40,7 @@
@current-change="paginationChange" @update:page-size="pageSizeChange"></el-pagination>
</div>
<div class="scTable-do" v-if="!hideDo">
<span v-show="selectNum>0">已选择 <span style="font-weight: bold">{{selectNum}}</span> </span>
<el-button v-if="!hideRefresh" @click="refresh" icon="el-icon-refresh" circle style="margin-left: 15px">
</el-button>
<el-button v-if="!hideRefresh" @click="reload" icon="el-icon-refresh-right" circle style="margin-left: 15px">
@ -155,6 +156,7 @@ export default {
border: true,
stripe: this.stripe,
},
selectNum: 0
};
},
mounted() {
@ -359,6 +361,10 @@ export default {
}
this.getData();
},
// select
selectionChange(rows){
this.selectNum = rows.length;
},
//
filterHandler(value, row, column) {
const property = column.property;

View File

@ -2046,16 +2046,6 @@ const routes = [
},
"component": "em/equipmentzl"
},
{
"name": "equipmentj",
"path": "/em/equipmentj",
"meta": {
"title": "监测设备",
"icon": "el-icon-cellphone",
"perms": ["equipmentjk"]
},
"component": "em/equipmentjk"
},
{
"name": "equipmentj",
"path": "/em/equipmentjc",
@ -2072,7 +2062,7 @@ const routes = [
"meta": {
"title": "监控设备",
"icon": "el-icon-cellphone",
"perms": ["equipmentj"]
"perms": ["equipmentjk"]
},
"component": "em/equipmentjk"
},