|
|
@@ -87,20 +87,25 @@
|
|
|
<div class="layui-tab-content">
|
|
|
<div class="layui-tab-item layui-show">
|
|
|
<p id ="desc1" class="desc_label"></p>
|
|
|
- <p id ="desc11" class="desc_label">未发生线路过载</p>
|
|
|
+ <br>
|
|
|
+ <p id ="desc11" class="desc_label"></p>
|
|
|
+ <br>
|
|
|
<p class="desc_label" style="color: #ff0000;">注:线路负载率持续1小时在70%-100%为重载,持续1小时在100%以上为过载。</p>
|
|
|
-
|
|
|
+ <br>
|
|
|
<table id="demo" lay-filter="test"></table>
|
|
|
</div>
|
|
|
<div class="layui-tab-item">
|
|
|
- <p id ="desc2">
|
|
|
- </p>
|
|
|
- <p><br>注:配变负载率连续2小时在80%-100%之间为重载,连续2小时在100%以上为过载。</p>
|
|
|
+ <p id ="desc2" class="desc_label"></p>
|
|
|
+ <br>
|
|
|
+ <p class="desc_label" style="color: #ff0000;">注:配变负载率连续2小时在80%-100%之间为重载,连续2小时在100%以上为过载。</p>
|
|
|
+ <br>
|
|
|
<table id="demo2" lay-filter="test"></table>
|
|
|
</div>
|
|
|
<div class="layui-tab-item">
|
|
|
- <p id ="desc3"> 受理抢修类工单47件,万户报修率0.181,全省排名第5,报修率较低的为东平,较高的为岱岳。抢修到达现场及时率100%;岱岳超70分钟工单2件。" +
|
|
|
- "疑似虚假回单0件。无因报修引发的诉求升级工单。全年累计受理抢修类工单305件,万户报修率1.173,全省排名第3。不涉及电采暖用户</p>
|
|
|
+ <p id ="desc3" class="desc_label"></p>
|
|
|
+ <br>
|
|
|
+ <p class="desc_label" style="color: #ff0000;">注:台区停电数据来源于供服系统</p>
|
|
|
+ <br>
|
|
|
<table id="demo3" lay-filter="test"></table>
|
|
|
</div>
|
|
|
|
|
|
@@ -146,12 +151,14 @@
|
|
|
var $ = layui.$;
|
|
|
$step = $("#step_demo").step();
|
|
|
})
|
|
|
+ var $element;
|
|
|
layui.use('element', function(){
|
|
|
- var element = layui.element;
|
|
|
+ $element= layui.element;
|
|
|
//一些事件触发
|
|
|
- element.on('tab(demo)', function(data){
|
|
|
+ $element.on('tab(demo)', function(data){
|
|
|
console.log(data);
|
|
|
});
|
|
|
+
|
|
|
});
|
|
|
layui.use('laydate', function(){
|
|
|
var laydate = layui.laydate;
|
|
|
@@ -338,28 +345,8 @@
|
|
|
for (var i =0;i<100;i++){
|
|
|
data.push({id:i,username:'2',sex:'3',city:'4',sign:'5'});
|
|
|
}
|
|
|
- $table.render({
|
|
|
- elem: '#demo2'
|
|
|
- ,limit:100
|
|
|
- ,cols: [[ //表头
|
|
|
- {field: 'id', title: 'ID', width:80}
|
|
|
- ,{field: 'username', title: '用户名', width:80}
|
|
|
- ,{field: 'sex', title: '性别', width:80}
|
|
|
- ,{field: 'city', title: '城市', width:80}
|
|
|
- ]],
|
|
|
- data:data
|
|
|
- });
|
|
|
- $table.render({
|
|
|
- elem: '#demo3'
|
|
|
- ,limit:100
|
|
|
- ,cols: [[ //表头
|
|
|
- {field: 'id', title: 'ID', width:80}
|
|
|
- ,{field: 'username', title: '用户名', width:80}
|
|
|
- ,{field: 'sex', title: '性别', width:80}
|
|
|
- ,{field: 'city', title: '城市', width:80}
|
|
|
- ]],
|
|
|
- data:data
|
|
|
- });
|
|
|
+
|
|
|
+
|
|
|
var reportInf = $("#reportTypeDiv").find("select option:selected").val();//所选报表类型
|
|
|
var dayRange = $("#dayRange").val();//日报-年月日
|
|
|
var dateRange = $("#dateRange").val();//周报-年月日-年月日
|
|
|
@@ -397,12 +384,13 @@
|
|
|
monthNum : monthNum,//无用
|
|
|
countNum : countNum//无用
|
|
|
},
|
|
|
- success : function(data) {
|
|
|
+ success : function(data) {debugger
|
|
|
if (data.code == 0) {//查询结果集成功
|
|
|
// 日报
|
|
|
if (timeType == '00') {
|
|
|
$("#gongjubiao").hide();
|
|
|
$("#reportTable").show();
|
|
|
+ $element.tabDelete('demo', '22');
|
|
|
//渲染表格
|
|
|
$table.render({
|
|
|
elem: '#demo'
|
|
|
@@ -416,7 +404,7 @@
|
|
|
]],
|
|
|
data:data.data.resList.result
|
|
|
});
|
|
|
- debugger
|
|
|
+
|
|
|
$("#desc1").html(" "+data.data.resList.descStr[0]);
|
|
|
|
|
|
$("#desc11").html(" "+data.data.resList.descStr[1]);
|
|
|
@@ -424,9 +412,45 @@
|
|
|
goStep(3);
|
|
|
// 月报 或 周报
|
|
|
} else if (timeType == '02' || timeType == '01') {
|
|
|
+ $table.render({
|
|
|
+ elem: '#demo2'
|
|
|
+ ,limit:100
|
|
|
+ ,cols: [[ //表头
|
|
|
+ {field: 'id', title: '单位', width:150}
|
|
|
+ ,{field: 'username', title: '供电所', width:150}
|
|
|
+ ,{field: 'sex', title: '公变名称', width:150}
|
|
|
+ ,{field: 'city', title: '过载时长', width:150}
|
|
|
+ ,{field: 'city', title: '平均负载率(%)', width:150}
|
|
|
+ ,{field: 'city', title: '原因', width:150}
|
|
|
+ ,{field: 'city', title: '解决措施', width:150}
|
|
|
|
|
|
+ ]],
|
|
|
+ data:data
|
|
|
+ });
|
|
|
}
|
|
|
-
|
|
|
+ $table.render({
|
|
|
+ elem: '#demo3'
|
|
|
+ ,limit:100
|
|
|
+ ,cols: [[ //表头
|
|
|
+ {field: 'id', title: '单位\\分类', width:150,rowspan:2}
|
|
|
+ ,{field: 'username', title: '客户总量(户)', width:150,rowspan:2}
|
|
|
+ ,{field: 'sex', title: '平均到达现场时间(分)', width:150,rowspan:2}
|
|
|
+ ,{field: 'city', title: '工单处理平均时长(分)', width:150,rowspan:2}
|
|
|
+ ,{field: 'city', title: '到达现场超时数', width:150,rowspan:2}
|
|
|
+ ,{field: 'city', title: '工单时长超70分钟数', width:150,rowspan:2}
|
|
|
+ ,{field: 'city', title: '故障类型', width:600,colspan:4}
|
|
|
+ ,{field: 'city', title: '疑似虚假回单', width:150}
|
|
|
+ ,{field: 'city', title: '工单总数', width:150}
|
|
|
+ ,{field: 'city', title: '万户报修率', width:150}
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {field: 'username', title: '客户内部故障', width:150}
|
|
|
+ ,{field: 'username', title: '低压故障', width:150}
|
|
|
+ ,{field: 'username', title: '非电力故障', width:150}
|
|
|
+ ,{field: 'username', title: '电能质量等故障', width:150}
|
|
|
+ ]],
|
|
|
+ data:data
|
|
|
+ });
|
|
|
} else {
|
|
|
$.ErrorAlert(res.MINErrorMessage);
|
|
|
}
|