feat: 对除dashboard外的列表每页记录数进行缓存记录
This commit is contained in:
@@ -48,6 +48,7 @@ const cn = {
|
|||||||
downloadButtonTitle:'下载',
|
downloadButtonTitle:'下载',
|
||||||
filePath:'文件路径',
|
filePath:'文件路径',
|
||||||
},
|
},
|
||||||
|
pageSize: '条/页',
|
||||||
login: {
|
login: {
|
||||||
username: '登录名',
|
username: '登录名',
|
||||||
password: '密码',
|
password: '密码',
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ const en = {
|
|||||||
failedDetail:'Failed Detail'
|
failedDetail:'Failed Detail'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
pageSize: '/page',
|
||||||
webshell:{
|
webshell:{
|
||||||
shellTitle:'Local Shell',
|
shellTitle:'Local Shell',
|
||||||
upload:'Upload',
|
upload:'Upload',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
@current-change="current"
|
@current-change="current"
|
||||||
:current-page="pageObj.pageNo"
|
:current-page="pageObj.pageNo"
|
||||||
:page-sizes="pageSizes?pageSizes:[20, 50, 100]"
|
:page-sizes="pageSizes?pageSizes:[20, 50, 100]"
|
||||||
:page-size="20"
|
:page-size="pageSize"
|
||||||
layout="total, prev, pager, next,sizes,jumper"
|
layout="total, prev, pager, next,sizes,jumper"
|
||||||
:total="this.pageObj.total"
|
:total="this.pageObj.total"
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
@@ -18,9 +18,11 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "pagination",
|
name: "pagination",
|
||||||
props: ['pageObj','pageSizes'],
|
props: ['pageObj','pageSizes', 'tableId'],
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {
|
||||||
|
pageSize: 20
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
background() {
|
background() {
|
||||||
@@ -51,6 +53,14 @@ export default {
|
|||||||
//console.info(element)
|
//console.info(element)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
this.pageSize = pageSize ? pageSize : 20;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
let input = document.querySelector(".el-pagination .el-select .el-input__inner");
|
||||||
|
input.value = this.pageSize + this.$t('pageSize');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<alert-config-box :parentAlertRule="alertRule" @reload="getTableData" ref="alertConfigBox"></alert-config-box>
|
<alert-config-box :parentAlertRule="alertRule" @reload="getTableData" ref="alertConfigBox"></alert-config-box>
|
||||||
@@ -107,6 +107,7 @@
|
|||||||
name: "alert-config",
|
name: "alert-config",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableId: 'alertRuleTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
searchMsg: { //给搜索框子组件传递的信息
|
searchMsg: { //给搜索框子组件传递的信息
|
||||||
zheze_none: true,
|
zheze_none: true,
|
||||||
@@ -355,6 +356,7 @@
|
|||||||
},
|
},
|
||||||
pageSize(val) {
|
pageSize(val) {
|
||||||
this.pageObj.pageSize = val;
|
this.pageObj.pageSize = val;
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
search: function (searchObj) {
|
search: function (searchObj) {
|
||||||
@@ -407,6 +409,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.pageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
//绑定滚动条事件,控制top按钮
|
//绑定滚动条事件,控制top按钮
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn" @click="toTop()"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn" @click="toTop()"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<alert-config-box :parentAlertRule="viewRuleData" @reload="getAlertList" ref="alertConfigBox"></alert-config-box>
|
<alert-config-box :parentAlertRule="viewRuleData" @reload="getAlertList" ref="alertConfigBox"></alert-config-box>
|
||||||
@@ -114,6 +114,7 @@
|
|||||||
name: "alertList",
|
name: "alertList",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableId: 'alertListTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
pageObj: {
|
pageObj: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@@ -294,6 +295,7 @@
|
|||||||
},
|
},
|
||||||
pageSize(val) {
|
pageSize(val) {
|
||||||
this.pageObj.pageSize = val;
|
this.pageObj.pageSize = val;
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.getAlertList();
|
this.getAlertList();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.gutterHandler(".nz-table");
|
this.gutterHandler(".nz-table");
|
||||||
@@ -358,6 +360,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.pageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.getAlertList();
|
this.getAlertList();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
//绑定滚动条事件,控制top按钮
|
//绑定滚动条事件,控制top按钮
|
||||||
|
|||||||
@@ -181,7 +181,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -215,6 +215,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableId: 'assetTable', //需要分页的table的id,用于记录每页数量
|
||||||
searchMsg: { //给搜索框子组件传递的信息
|
searchMsg: { //给搜索框子组件传递的信息
|
||||||
zheze_none: true,
|
zheze_none: true,
|
||||||
searchLabelList: [{
|
searchLabelList: [{
|
||||||
@@ -708,6 +709,7 @@
|
|||||||
,
|
,
|
||||||
pageSize(val) {
|
pageSize(val) {
|
||||||
this.pageObj.pageSize = val;
|
this.pageObj.pageSize = val;
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.getAssetData()
|
this.getAssetData()
|
||||||
},
|
},
|
||||||
getPrincipalName(data) {
|
getPrincipalName(data) {
|
||||||
@@ -772,6 +774,12 @@
|
|||||||
this.getIDCOptionData();
|
this.getIDCOptionData();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.pageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
//左侧dc列表初始选中状态
|
//左侧dc列表初始选中状态
|
||||||
if (this.$store.state.assetData.selectedData.length > 0) {
|
if (this.$store.state.assetData.selectedData.length > 0) {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -177,6 +177,7 @@
|
|||||||
name: "account",
|
name: "account",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableId: 'accountTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
rightBox: { //弹出框相关
|
rightBox: { //弹出框相关
|
||||||
show: false,
|
show: false,
|
||||||
@@ -492,6 +493,7 @@
|
|||||||
},
|
},
|
||||||
pageSize(val) {
|
pageSize(val) {
|
||||||
this.pageObj.pageSize = val;
|
this.pageObj.pageSize = val;
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
search: function (searchObj) {
|
search: function (searchObj) {
|
||||||
@@ -513,6 +515,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.pageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
this.initReceiverData();
|
this.initReceiverData();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
border
|
border
|
||||||
v-scrollBar:el-table
|
v-scrollBar:el-table
|
||||||
height="calc(100% - 125px)"
|
:height="$tableHeight.normal"
|
||||||
ref="dcTable"
|
ref="dcTable"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn1" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn1" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
<!--dc table end-->
|
<!--dc table end-->
|
||||||
<element-set
|
<element-set
|
||||||
@@ -232,6 +232,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableId: 'dcTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn1: false,
|
showTopBtn1: false,
|
||||||
showTopBtn2: false,
|
showTopBtn2: false,
|
||||||
currentDc: {
|
currentDc: {
|
||||||
@@ -492,6 +493,7 @@
|
|||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
pageSize(val) {
|
pageSize(val) {
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.pageObj.pageSize = val;
|
this.pageObj.pageSize = val;
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
@@ -563,6 +565,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.pageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
this.$nextTick(function(){
|
this.$nextTick(function(){
|
||||||
this.getUserData();//绑定滚动条事件,控制top按钮
|
this.getUserData();//绑定滚动条事件,控制top按钮
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -90,6 +90,7 @@
|
|||||||
name: "model",
|
name: "model",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableId: 'modelTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
model: {
|
model: {
|
||||||
id: '',
|
id: '',
|
||||||
@@ -248,6 +249,7 @@
|
|||||||
},
|
},
|
||||||
pageSize(val) {
|
pageSize(val) {
|
||||||
this.pageObj.pageSize = val;
|
this.pageObj.pageSize = val;
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
search: function (searchObj) {
|
search: function (searchObj) {
|
||||||
@@ -274,6 +276,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.pageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
//绑定滚动条事件,控制top按钮
|
//绑定滚动条事件,控制top按钮
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -198,6 +198,7 @@
|
|||||||
name: "prom",
|
name: "prom",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableId: 'promTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
rightBox: { //弹出框相关
|
rightBox: { //弹出框相关
|
||||||
show: false,
|
show: false,
|
||||||
@@ -559,6 +560,7 @@
|
|||||||
},
|
},
|
||||||
pageSize(val) {
|
pageSize(val) {
|
||||||
this.pageObj.pageSize = val;
|
this.pageObj.pageSize = val;
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
search: function (searchObj) {
|
search: function (searchObj) {
|
||||||
@@ -643,6 +645,12 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.pageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.getIdcData();
|
this.getIdcData();
|
||||||
this.getUserData();
|
this.getUserData();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
@@ -784,7 +784,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.info(data);
|
|
||||||
callback(data);
|
callback(data);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<Pagination v-cloak :pageObj="endpointPageObj" @pageNo='endpointPageNo' @pageSize='endpointPageSize' ref="endpointPagination"></Pagination>
|
<Pagination :tableId="tableId" v-cloak :pageObj="endpointPageObj" @pageNo='endpointPageNo' @pageSize='endpointPageSize' ref="endpointPagination"></Pagination>
|
||||||
<button class="to-top" v-show="showTopBtn1" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
<button class="to-top" v-show="showTopBtn1" @click="toTop"><i class="nz-icon nz-icon-top"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -347,6 +347,7 @@
|
|||||||
data() {
|
data() {
|
||||||
let temp=this;
|
let temp=this;
|
||||||
return {
|
return {
|
||||||
|
tableId: 'projectTable', //需要分页的table的id,用于记录每页数量
|
||||||
tableShow: 1, // 1.endpoint; 2.metrics
|
tableShow: 1, // 1.endpoint; 2.metrics
|
||||||
showTopBtn1: false,
|
showTopBtn1: false,
|
||||||
showTopBtn2: false,
|
showTopBtn2: false,
|
||||||
@@ -954,6 +955,7 @@
|
|||||||
},
|
},
|
||||||
endpointPageSize(val) {
|
endpointPageSize(val) {
|
||||||
this.endpointPageObj.pageSize = val;
|
this.endpointPageObj.pageSize = val;
|
||||||
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||||
this.getEndpointTableData();
|
this.getEndpointTableData();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.gutterHandler(".endpoint-table");
|
this.gutterHandler(".endpoint-table");
|
||||||
@@ -1608,6 +1610,12 @@
|
|||||||
this.getMetricsTableData();
|
this.getMetricsTableData();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
//是否存在分页缓存
|
||||||
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||||
|
if (pageSize) {
|
||||||
|
this.endpointPageObj.pageSize = pageSize
|
||||||
|
}
|
||||||
|
|
||||||
this.getPanelData();
|
this.getPanelData();
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.getEndpointTableData();
|
this.getEndpointTableData();
|
||||||
|
|||||||
Reference in New Issue
Block a user