Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
anji-plus-report
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王涛
3 years ago
Commit
adca486c3736a395bb39ff042435e2bbfbfa8065
2 parents
cd73a80d
1441105b
Merge branch 'master-500-dev' of
http://192.168.1.136:82/monitor_v3/anji-plus-re…
…port into master-500-dev
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletions
report-ui/src/api/axios.js
report-ui/src/utils/request.js
report-ui/src/utils/request1.js
report-ui/src/views/report/bigscreen/designer/widget/monitor/tablePage.vue
report-ui/src/api/axios.js
View file @
adca486
report-ui/src/utils/request.js
View file @
adca486
...
...
@@ -55,11 +55,17 @@ service.interceptors.response.use(
}
},
error
=>
{
//start lsq 超时用console输出信息 2022-03-14
if
(
error
.
code
==
'ECONNABORTED'
&&
error
.
message
.
indexOf
(
'timeout'
)
!=-
1
){
console
.
log
(
error
.
message
)
}
else
{
Message
({
message
:
error
.
message
,
type
:
'error'
,
duration
:
5
*
1000
})
}
//end lsq 2022-03-14
return
Promise
.
reject
(
error
)
}
)
...
...
report-ui/src/utils/request1.js
View file @
adca486
...
...
@@ -55,11 +55,17 @@ service.interceptors.response.use(
}
},
error
=>
{
//start lsq 超时用console输出信息 2022-03-14
if
(
error
.
code
==
'ECONNABORTED'
&&
error
.
message
.
indexOf
(
'timeout'
)
!=-
1
){
console
.
log
(
error
.
message
)
}
else
{
Message
({
message
:
error
.
message
,
type
:
'error'
,
duration
:
5
*
1000
})
}
//end lsq 2022-03-14
return
Promise
.
reject
(
error
)
}
)
...
...
report-ui/src/views/report/bigscreen/designer/widget/monitor/tablePage.vue
View file @
adca486
...
...
@@ -15,7 +15,7 @@
</div>
</div>
<!--数据-->
<div class="bd">
<div class="bd"
v-loading="loading"
>
<ul class="infoList">
<li v-for="(item, index) in list" :key="index" :style="tableRowHeight()" >
<div
...
...
@@ -67,6 +67,7 @@ export default {
},
data() {
return {
loading:true,
currentPage:1,
pageSize:10,
pageSizes:[10,50,100, 200, 300, 400],
...
...
@@ -198,6 +199,7 @@ export default {
},
handlerStaticData(data) {
this.list = data;
this.loading=false;
},
handlerDynamicData(data, refreshTime) {
if (!data) return;
...
...
@@ -214,6 +216,7 @@ export default {
const data = this.queryEchartsData(val);
data.then(res => {
this.list = res;
this.loading=false;
if(this.list && this.list.length>0){
this.total=this.list[0].lineCount;
}
...
...
@@ -268,6 +271,8 @@ export default {
handleCurrentChange(val){
//props.currentPage = val;
this.currentPage = val;
console.log("aaaaaaaaaaaaaa",val)
this.handleTableData();
},
// 切换页码
...
...
@@ -287,6 +292,7 @@ export default {
handleTableData(){
let optionsData=this.optionsData;
if(this.optionsData.dataType=="dynamicData" && this.optionsSetUp.isPage){
this.loading=true;
let limit=parseInt(this.optionsData.dynamicData.contextData.limit);
let page=parseInt(this.currentPage-1)*limit;
//改变参数值-月季度年,重新加载动态数据--待测
...
...
Please
register
or
login
to post a comment