Commit 59412c4f by zhao_shaonan

运控评估报告页添加loading

parent 0e3401d1
...@@ -59,3 +59,4 @@ ...@@ -59,3 +59,4 @@
font-size:20px; font-size:20px;
} }
} }
/deep/ .el-loading-spinner{margin-top:-40px;}
...@@ -36,12 +36,12 @@ ...@@ -36,12 +36,12 @@
<div class="flex"> <div class="flex">
<div class="fwyxzcl wrap wrap271" ref="fwyxzclWrap"> <div class="fwyxzcl wrap wrap271" ref="fwyxzclWrap">
<p class="wrap_title" ref="fwyxzclTitle">服务运行正确率</p> <p class="wrap_title" ref="fwyxzclTitle">服务运行正确率</p>
<div id="fwyxzcl" style="width:100%;height:calc(100% - 75px)"></div> <div id="fwyxzcl" style="width:100%;height:calc(100% - 75px)" v-loading="fwyxzqltableLoading" element-loading-text="拼命加载中"></div>
<p class="unit">运行总次数:<span v-show="yxzcsTotal!=null" style="color:#333333">{{yxzcsTotal}}</span><span class="el-icon-loading" v-show="yxzcsTotal===null"></span></p> <p class="unit">运行总次数:<span v-show="yxzcsTotal!=null" style="color:#333333">{{yxzcsTotal}}</span><span class="el-icon-loading" v-show="yxzcsTotal===null"></span></p>
</div> </div>
<div class="gxtdqqk wrap wrap271"> <div class="gxtdqqk wrap wrap271">
<p class="wrap_title">各系统调取情况</p> <p class="wrap_title">各系统调取情况</p>
<div id="gxtdqqk" style="width:100%;height:calc(100% - 42px)"> <div id="gxtdqqk" style="width:100%;height:calc(100% - 42px)" v-loading="gxtdqqktableLoading" element-loading-text="拼命加载中">
<ul> <ul>
<li v-for="(item,index) in gxtdqqk" :key="index" class="list_item" :style="{width:`${listWidth}`}"> <li v-for="(item,index) in gxtdqqk" :key="index" class="list_item" :style="{width:`${listWidth}`}">
<p class="xtTitle">{{item.name}}</p> <p class="xtTitle">{{item.name}}</p>
...@@ -54,13 +54,13 @@ ...@@ -54,13 +54,13 @@
</div> </div>
<div class="gsdduqk wrap"> <div class="gsdduqk wrap">
<p class="wrap_title">各时段调取情况</p> <p class="wrap_title">各时段调取情况</p>
<div id="gsdduqk" style="width:100%;height:calc(100% - 42px)"></div> <div id="gsdduqk" style="width:100%;height:calc(100% - 42px)" v-loading="gsddqqktableLoading" element-loading-text="拼命加载中"></div>
</div> </div>
</div> </div>
<!--右--> <!--右-->
<div class="right_con wrap wrapBig"> <div class="right_con wrap wrapBig">
<p class="wrap_title">服务运行时间统计</p> <p class="wrap_title">服务运行时间统计</p>
<div id="fwyxsjtj" style="width:100%;height:calc(100% - 135px)"></div> <div id="fwyxsjtj" style="width:100%;height:calc(100% - 135px)" v-loading="fwyxsjtjtableLoading" element-loading-text="拼命加载中"></div>
<div class="unit" style="text-indent: 36px;line-height: 26px;margin-top: 36px;">运行总时常:<p v-show="fwyxsjtjTotal!=null" style="color:#333333">{{fwyxsjtjTotal}}</p><p class="el-icon-loading" v-show="fwyxsjtjTotal===null"></p></div> <div class="unit" style="text-indent: 36px;line-height: 26px;margin-top: 36px;">运行总时常:<p v-show="fwyxsjtjTotal!=null" style="color:#333333">{{fwyxsjtjTotal}}</p><p class="el-icon-loading" v-show="fwyxsjtjTotal===null"></p></div>
</div> </div>
...@@ -92,6 +92,10 @@ ...@@ -92,6 +92,10 @@
formData:ykpgbgFormData, formData:ykpgbgFormData,
yxzcsTotal:null,//运行总次数 yxzcsTotal:null,//运行总次数
fwyxsjtjTotal:null,//服务运行时间统计 fwyxsjtjTotal:null,//服务运行时间统计
fwyxzqltableLoading:true,
gxtdqqktableLoading:true,
gsddqqktableLoading:true,
fwyxsjtjtableLoading:true,
gxtdqqk:[ gxtdqqk:[
{name:'指纹系统',value:'1000'}, {name:'指纹系统',value:'1000'},
{name:'大数据中心',value:''}, {name:'大数据中心',value:''},
...@@ -307,6 +311,7 @@ ...@@ -307,6 +311,7 @@
} }
] ]
}); });
this.fwyxzqltableLoading=false;
}, },
fwyxsjtj(x,y){ fwyxsjtj(x,y){
//服务运行时间统计 //服务运行时间统计
...@@ -343,6 +348,7 @@ ...@@ -343,6 +348,7 @@
} }
] ]
}); });
this.gsddqqktableLoading=false;
}, },
gsdduqk(x,y){ gsdduqk(x,y){
//各时段调取情况 //各时段调取情况
...@@ -377,10 +383,12 @@ ...@@ -377,10 +383,12 @@
}], }],
color:'#FFAC3B' color:'#FFAC3B'
}); });
this.fwyxsjtjtableLoading=false;
}, },
doquery1(){ doquery1(){
let self=this; let self=this;
self.fwyxzqltableLoading=true;
self.doQueryRequest(JSON.stringify(self.formData),self.FwyxzqlUrl).then(response => { self.doQueryRequest(JSON.stringify(self.formData),self.FwyxzqlUrl).then(response => {
if (response.success === true) { if (response.success === true) {
let xData=['正常次数'+':'+response.data['success_count'], '异常次数'+':'+response.data['error_count']]; let xData=['正常次数'+':'+response.data['success_count'], '异常次数'+':'+response.data['error_count']];
...@@ -399,11 +407,13 @@ ...@@ -399,11 +407,13 @@
type: "error", type: "error",
message: response.message message: response.message
}); });
self.fwyxzqltableLoading=false;
} }
}); });
}, },
doquery2(){ doquery2(){
let self=this; let self=this;
self.gxtdqqktableLoading=true;
self.doQueryRequest(JSON.stringify(self.formData),self.GxtdqqkUrl).then(response => { self.doQueryRequest(JSON.stringify(self.formData),self.GxtdqqkUrl).then(response => {
if (response.success === true) { if (response.success === true) {
if(response.data.list.length!=0){ if(response.data.list.length!=0){
...@@ -421,16 +431,19 @@ ...@@ -421,16 +431,19 @@
item.value=0; item.value=0;
}) })
} }
self.gxtdqqktableLoading=false;
} else { } else {
self.$message({ self.$message({
type: "error", type: "error",
message: response.message message: response.message
}); });
self.gxtdqqktableLoading=false;
} }
}); });
}, },
doquery3(){ doquery3(){
let self=this; let self=this;
self.fwyxsjtjtableLoading=true;
self.doQueryRequest(JSON.stringify(self.formData),self.GsddqqkUrl).then(response => { self.doQueryRequest(JSON.stringify(self.formData),self.GsddqqkUrl).then(response => {
if (response.success === true) { if (response.success === true) {
self.gsdduqk(response.data.x,response.data.y); self.gsdduqk(response.data.x,response.data.y);
...@@ -439,11 +452,13 @@ ...@@ -439,11 +452,13 @@
type: "error", type: "error",
message: response.message message: response.message
}); });
self.fwyxsjtjtableLoading=false;
} }
}); });
}, },
doquery4(){ doquery4(){
let self=this; let self=this;
self.gsddqqktableLoading=true;
self.doQueryRequest(JSON.stringify(self.formData),self.FwyxsjtjUrl).then(response => { self.doQueryRequest(JSON.stringify(self.formData),self.FwyxsjtjUrl).then(response => {
if (response.success === true) { if (response.success === true) {
let xData=['正常'+":"+response.data['succesTime'], '异常'+":"+response.data['errorTime']]; let xData=['正常'+":"+response.data['succesTime'], '异常'+":"+response.data['errorTime']];
...@@ -462,6 +477,7 @@ ...@@ -462,6 +477,7 @@
type: "error", type: "error",
message: response.message message: response.message
}); });
self.gsddqqktableLoading=false;
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment