Merge branch 'master' of https://e.coding.net/ctcdevteam/ehs/ehs_web
This commit is contained in:
commit
3d53992bfb
|
@ -13,7 +13,7 @@
|
||||||
<el-table v-bind="$attrs" :data="tableData" :row-key="rowKey" :key="toggleIndex" ref="scTable"
|
<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"
|
:height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" :stripe="config.stripe"
|
||||||
:summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" @sort-change="sortChange"
|
:summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" @sort-change="sortChange"
|
||||||
@filter-change="filterChange">
|
@filter-change="filterChange" @selection-change="selectionChange">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
<template v-for="(item, index) in userColumn" :key="index">
|
<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"
|
<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>
|
@current-change="paginationChange" @update:page-size="pageSizeChange"></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<div class="scTable-do" v-if="!hideDo">
|
<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 v-if="!hideRefresh" @click="refresh" icon="el-icon-refresh" circle style="margin-left: 15px">
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="!hideRefresh" @click="reload" icon="el-icon-refresh-right" circle style="margin-left: 15px">
|
<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,
|
border: true,
|
||||||
stripe: this.stripe,
|
stripe: this.stripe,
|
||||||
},
|
},
|
||||||
|
selectNum: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -359,6 +361,10 @@ export default {
|
||||||
}
|
}
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
|
// select事件
|
||||||
|
selectionChange(rows){
|
||||||
|
this.selectNum = rows.length;
|
||||||
|
},
|
||||||
//本地过滤
|
//本地过滤
|
||||||
filterHandler(value, row, column) {
|
filterHandler(value, row, column) {
|
||||||
const property = column.property;
|
const property = column.property;
|
||||||
|
|
|
@ -2046,16 +2046,6 @@ const routes = [
|
||||||
},
|
},
|
||||||
"component": "em/equipmentzl"
|
"component": "em/equipmentzl"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "equipmentj",
|
|
||||||
"path": "/em/equipmentj",
|
|
||||||
"meta": {
|
|
||||||
"title": "监测设备",
|
|
||||||
"icon": "el-icon-cellphone",
|
|
||||||
"perms": ["equipmentjk"]
|
|
||||||
},
|
|
||||||
"component": "em/equipmentjk"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "equipmentj",
|
"name": "equipmentj",
|
||||||
"path": "/em/equipmentjc",
|
"path": "/em/equipmentjc",
|
||||||
|
@ -2072,7 +2062,7 @@ const routes = [
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "监控设备",
|
"title": "监控设备",
|
||||||
"icon": "el-icon-cellphone",
|
"icon": "el-icon-cellphone",
|
||||||
"perms": ["equipmentj"]
|
"perms": ["equipmentjk"]
|
||||||
},
|
},
|
||||||
"component": "em/equipmentjk"
|
"component": "em/equipmentjk"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue