...
|
...
|
@@ -75,7 +75,7 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<!--数据-->
|
|
|
<div class="bd" v-loading="loadingAll">
|
|
|
<div class="bd1" v-loading="loadingAll">
|
|
|
<ul class="infoList">
|
|
|
<li v-for="(item, index) in listAll" :key="index" :style="tableRowHeight()" >
|
|
|
<div
|
...
|
...
|
@@ -102,14 +102,14 @@ |
|
|
<!-- 分页 -->
|
|
|
<div class="pageClass" v-if="optionsSetUp.isPage && !optionsSetUp.isRoll" style='text-align: left;background-color: white'>
|
|
|
<el-pagination
|
|
|
v-if="currentPage"
|
|
|
@size-change="handleSizeChange"
|
|
|
@prev-click="prePage"
|
|
|
@next-click="nextPage"
|
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="currentPage"
|
|
|
v-if="currentPageAll"
|
|
|
@size-change="handleSizeChangeMore"
|
|
|
@prev-click="prePageMore"
|
|
|
@next-click="nextPageMore"
|
|
|
@current-change="handleCurrentChangeMore"
|
|
|
:current-page="currentPageAll"
|
|
|
:page-sizes="pageSizes"
|
|
|
:page-size="pageSize"
|
|
|
:page-size="pageSizeAll"
|
|
|
:total="totalAll">
|
|
|
</el-pagination>
|
|
|
</div>
|
...
|
...
|
@@ -144,6 +144,8 @@ export default { |
|
|
currentPage:1,
|
|
|
pageSize:10,
|
|
|
pageSizes:[10,50,100, 200, 300, 400],
|
|
|
currentPageAll:1,
|
|
|
pageSizeAll:10,
|
|
|
total:0,
|
|
|
totalAll:0,
|
|
|
hackReset: true,
|
...
|
...
|
@@ -269,8 +271,12 @@ export default { |
|
|
},
|
|
|
visConfig() {
|
|
|
this.options.vis = this.optionsSetUp.vis;
|
|
|
this.pageSize = this.options.vis;
|
|
|
this.handleTableData();
|
|
|
if(this.optionsData.dynamicData && this.optionsData.dynamicData.contextData.isMore==true){
|
|
|
this.pageSizeAll=30;
|
|
|
}else{
|
|
|
this.pageSize = this.options.vis;
|
|
|
this.handleTableData();
|
|
|
}
|
|
|
|
|
|
},
|
|
|
handlerRollFn() {
|
...
|
...
|
@@ -298,6 +304,7 @@ export default { |
|
|
this.list = data;
|
|
|
this.listAll=data;
|
|
|
this.loading = false;
|
|
|
this.loadingAll = false;
|
|
|
},
|
|
|
handlerDynamicData(data, refreshTime) {
|
|
|
if (!data) return;
|
...
|
...
|
@@ -313,22 +320,23 @@ export default { |
|
|
getEchartData(val) {
|
|
|
const data = this.queryEchartsData(val);
|
|
|
data.then(res => {
|
|
|
// if(this.optionsData.dynamicData.contextData.isMore){
|
|
|
// console.log("all")
|
|
|
// this.listAll=res;
|
|
|
// this.loadingAll = false;
|
|
|
// this.loading = false;
|
|
|
// if (this.listAll && this.listAll.length > 0) {
|
|
|
// this.totalAll = this.listAll[0].lineCount;
|
|
|
// }
|
|
|
// }else{
|
|
|
console.log("&&&&&&&",this.optionsData.dynamicData.contextData.isMore)
|
|
|
if(this.optionsData.dynamicData.contextData.isMore==true){
|
|
|
console.log("all")
|
|
|
this.listAll=res;
|
|
|
this.loadingAll = false;
|
|
|
this.loading = false;
|
|
|
if (this.listAll && this.listAll.length > 0) {
|
|
|
this.totalAll = this.listAll[0].lineCount;
|
|
|
}
|
|
|
}else{
|
|
|
this.list = res;
|
|
|
this.loading = false;
|
|
|
this.loadingAll = false;
|
|
|
if (this.list && this.list.length > 0) {
|
|
|
this.total = this.list[0].lineCount;
|
|
|
}
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
|
|
|
this.hackResetFun();
|
...
|
...
|
@@ -459,27 +467,59 @@ export default { |
|
|
window.parent.postMessage(param, '*')
|
|
|
}
|
|
|
},
|
|
|
// 每页展示多少条
|
|
|
handleSizeChangeMore(val) {
|
|
|
// 切换页码重置初始页
|
|
|
this.currentPageAll = 1
|
|
|
//props.pageSize = val;
|
|
|
this.pageSizeAll = val;
|
|
|
this.handlerDetailDataMore();
|
|
|
},
|
|
|
|
|
|
// 切换页码
|
|
|
handleCurrentChangeMore(val) {
|
|
|
this.currentPageAll = val;
|
|
|
this.handlerDetailDataMore();
|
|
|
},
|
|
|
// 切换页码
|
|
|
prePageMore(val) {
|
|
|
this.currentPageAll = val;
|
|
|
this.handlerDetailDataMore();
|
|
|
},
|
|
|
|
|
|
// 切换页码
|
|
|
nextPageMore(val) {
|
|
|
this.currentPageAll = val;
|
|
|
this.handlerDetailDataMore();
|
|
|
},
|
|
|
//更多
|
|
|
handlerDetailDataNoPage(){
|
|
|
this.widthStyle='';
|
|
|
this.tableVisible=true;
|
|
|
let optionsData = this.optionsData;
|
|
|
if (this.optionsData.dataType == "dynamicData" ) {
|
|
|
this.loadingAll= true;
|
|
|
let limit = 30;
|
|
|
let page = parseInt(this.currentPage - 1) * limit;
|
|
|
//改变参数值-月季度年,重新加载动态数据--待测
|
|
|
this.optionsData.dynamicData.contextData.page = page;
|
|
|
this.optionsData.dynamicData.contextData.limit = 30;
|
|
|
this.optionsData.dynamicData.contextData.isMore = true;
|
|
|
// this.handlerData();
|
|
|
this.currentPageAll=1;
|
|
|
this.handlerDetailDataMore();
|
|
|
}
|
|
|
},
|
|
|
handlerDetailDataMore(){
|
|
|
this.loadingAll= true;
|
|
|
let limit = 30;
|
|
|
let page = parseInt(this.currentPageAll - 1) * limit;
|
|
|
//改变参数值-月季度年,重新加载动态数据--待测
|
|
|
this.optionsData.dynamicData.contextData.page = page;
|
|
|
this.optionsData.dynamicData.contextData.limit = 30;
|
|
|
this.optionsData.dynamicData.contextData.isMore = true;
|
|
|
},
|
|
|
//更多弹框关闭确定
|
|
|
hideDialogTable(){
|
|
|
this.tableVisible=false;
|
|
|
this.loading=false;
|
|
|
// this.loading=false;
|
|
|
this.loadingAll=false;
|
|
|
this.currentPageAll=1;
|
|
|
/* if (this.optionsData.dataType == "dynamicData" ) {
|
|
|
this.optionsData.dynamicData.contextData.isMore = false;
|
|
|
}*/
|
|
|
},
|
|
|
okFuncTable(){
|
|
|
this.tableVisible=false;
|
...
|
...
|
|