Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r30935 -r30949 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 30935) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 30949) @@ -143,6 +143,33 @@ } /* + *报表查询封装函数(兼容30854之前未打增量之前的方法) + */ +function seachReport(url, params, html) { + if (html) { + document.getElementById('thisIframe').contentWindow.document.body.innerHTML = html; + return; + } + var html = ''; + + setTimeout(function () { + document.getElementById('thisIframe').contentWindow.document.body.innerHTML = html; + document.getElementById('thisIframe').contentWindow.document.getElementById("reportHiddenForm").action = url; + document.getElementById('thisIframe').contentWindow.document.getElementById("reportHiddenForm").submit(); + }, 1000); +} + +/* *IE8以下兼容document.getElementsByClassName */ function documentGetElementsByClassName(className) { @@ -3594,4 +3621,65 @@ var Base64 = new Base64(); return Base64; -})); \ No newline at end of file +})); + +//SZYK-27:提示上传设备运行物理参数 +function showPromptUploadDeviceParameterPicture(warningType){ + var params = {}; + + if(warningType){ + params = { + warningType:warningType + } + } + + Ext.Ajax.request({ + url : WWWROOT + '/system/systemWarningAction!promptUploadDeviceParameterPicture.do', + method : 'POST', + params : params, + success : function someFn(response, request){ + var result = Ext.decode(response.responseText, true); + console.log(result) + if(result.data.length > 0){ + var tipGrid = new Ext.grid.GridPanel({ + store: new Ext.data.Store({ + reader : new Ext.data.JsonReader({ + fields : ["content"] + }) + }), + columns: [ + {header: "提示内容", width: 600, dataIndex: 'content'} + ], + stripeRows: true, + viewConfig: { + forceFit:true + }, + hideHeaders:true, + height:200, + width:580 + }); + var data = []; + for(var i = 0;i < result.data.length;i++){ + //需要提示的告警类型 + var content = result.data[i]; + data.push({ + content:content + }); + } + tipGrid.getStore().loadData(data); + var tipWindow = new Ext.Window({ + autoHeight:true, + title : '提示信息', + width:600, + height:400, + draggable:true, + modal:true, + closeAction:'close', + items:[tipGrid] + }); + tipWindow.show(); + Ext.QuickTips.init(); + } + } + }); +} \ No newline at end of file