diff --git a/img/operEnvironment/cjjc.png b/img/operEnvironment/cjjc.png new file mode 100644 index 0000000..86dace0 Binary files /dev/null and b/img/operEnvironment/cjjc.png differ diff --git a/js/consQuality/consQuality.js b/js/consQuality/consQuality.js index 2a05905..9d04b04 100644 --- a/js/consQuality/consQuality.js +++ b/js/consQuality/consQuality.js @@ -59,7 +59,7 @@ layui.use(['layer', 'element', 'table'], function () { ConstructionQualityList(); //检测记录对比 - detectionRecord('',''); + detectionRecord('','A'); //质量检测 qualityInspectionApi(); @@ -385,10 +385,10 @@ function detectionRecord(button,construction){ } console.log(construction) console.log(construction=='table') - if(construction=='table'){ + if(construction=='A' || construction=='B' || construction=='C'){ $(".echarts-div").css("display","none"); $("#data-table-div").css("display","block"); - getDataTable(); + getDataTable(construction); }else{ $(".echarts-div").css("display","block"); $("#data-table-div").css("display","none"); @@ -398,7 +398,7 @@ function detectionRecord(button,construction){ } //施工质量列表 -function getDataTable(){ +function getDataTable(type){ const url = commonUrl + "screen/largeScreen/constructionQuality/getDevDataList"; table.render({ elem: '#data-table', @@ -413,6 +413,7 @@ function getDataTable(){ orgId: orgId, userId: userId, bidCode: bidCode, + type:type }, cols: [[ {field: 'number', width:80,title: '序号', align: 'center', type: 'numbers', fixed: 'left'}, @@ -440,6 +441,76 @@ function getDataTable(){ }) } + +//施工质量列表 +function getDataTable(type){ + const url = commonUrl + "screen/largeScreen/constructionQuality/getDevDataList"; + let cols; + if(type=='A'){ + cols= [[ + {field: 'number', width:80,title: '序号', align: 'center', type: 'numbers', fixed: 'left'}, + {field: 'name', align: 'center', title: '区域名称'}, + {field: 'bidName', align: 'center', title: '工程名称'}, + {field: 'val', align: 'center', title: '本次沉降'}, + {field: 'hisVal', align: 'center', title: '累计沉降'}, + {field: 'createTime', align: 'center', title: '检测时间'}, + {field: 'jcUser', align: 'center', title: '检测人'}, + {field: 'jhUser', align: 'center', title: '校核人'}, + {field: 'devCode', align: 'center', title: '仪器型号计量编号'} + ]]; + } else if(type=='B' ){ + cols= [[ + {field: 'number', width:80,title: '序号', align: 'center', type: 'numbers', fixed: 'left'}, + {field: 'bidName', align: 'center', title: '工程名称'}, + {field: 'local', align: 'center', title: '检测位置'}, + {field: 'name', align: 'center', title: '检测点名称'}, + {field: 'jcUser', align: 'center', title: '检测人'}, + {field: 'val', align: 'center', title: '是否合格'}, + {field: 'createTime', align: 'center', title: '检测时间'}, + ]]; + } else if(type=='C' ){ + cols= [[ + {field: 'number', width:80,title: '序号', align: 'center', type: 'numbers', fixed: 'left'}, + {field: 'bidName', align: 'center', title: '工程名称'}, + {field: 'local', align: 'center', title: '检测面'}, + {field: 'name', align: 'center', title: '测点名称'}, + {field: 'jcUser', align: 'center', title: '检测人'}, + {field: 'val', align: 'center', title: '是否合格'}, + {field: 'createTime', align: 'center', title: '检测时间'}, + ]]; + } + + table.render({ + elem: '#data-table', + url: url, + skin: 'line', + headers:{ + decrypt:"decrypt", + "Authorization":token + }, + where: { + roleCode: roleCode, + orgId: orgId, + userId: userId, + bidCode: bidCode, + type:type + }, + cols: cols, + initComplete: function () { + // 在表格渲染完成后,重新渲染序号列 + var that = this.elem.next(); + var tool = that.children('.layui-table-box').children('.layui-table-fixed').children('.layui-table-body').children('.layui-table'); + tool.find("tr").each(function (index, item) { + $(this).find('td[data-field="LAY_TABLE_INDEX"]').text(index + 1); + }); + }, + page: true, //开启分页 + loading: true, //数据加载中。。。 + limits: [5, 10, 20, 100], + limit: 7 + }) +} + //查询echars function getDetectionRecord(params){ const url = commonUrl + "screen/largeScreen/constructionQuality/detectionRecord"; diff --git a/pages/consQuality/consQuality.html b/pages/consQuality/consQuality.html index 5c3f351..d568b10 100644 --- a/pages/consQuality/consQuality.html +++ b/pages/consQuality/consQuality.html @@ -78,10 +78,12 @@