diff --git a/src/main/java/com/sipai/controller/user/UserController.java b/src/main/java/com/sipai/controller/user/UserController.java index 48387365..6763f563 100644 --- a/src/main/java/com/sipai/controller/user/UserController.java +++ b/src/main/java/com/sipai/controller/user/UserController.java @@ -17,6 +17,7 @@ import io.swagger.annotations.*; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import org.activiti.engine.RepositoryService; +import org.apache.commons.collections.CollectionUtils; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -866,6 +867,9 @@ public class UserController { public String getUsersByIds(HttpServletRequest request, Model model) { String userIds = request.getParameter("userIds"); List list = this.userService.selectListByWhere("where id in ('" + userIds.replace(",", "','") + "') order by CHARINDEX(','+ id +',','," + userIds + ",')"); + if (CollectionUtils.isNotEmpty(list)){ + list = list.stream().filter(u -> StringUtils.isNotBlank(u.getId())).collect(toList()); + } JSONArray json = JSONArray.fromObject(list); model.addAttribute("result", json); return "result"; diff --git a/src/main/java/com/sipai/controller/work/MPointController.java b/src/main/java/com/sipai/controller/work/MPointController.java index 0af81b99..aa05fa4c 100644 --- a/src/main/java/com/sipai/controller/work/MPointController.java +++ b/src/main/java/com/sipai/controller/work/MPointController.java @@ -4152,8 +4152,15 @@ public class MPointController { for (int i = 0; i < ids.length; i++) { com.alibaba.fastjson.JSONObject jsonObject2 = new com.alibaba.fastjson.JSONObject(); - //通过es查询bizid - MPoint mPoint_es = mPointService.selectById(ids[i]); + //通过数据库查询测点(优先通过unitId和测点编码查询) + MPoint mPoint_es = mPointService.selectById(unitId, ids[i]); + if (mPoint_es == null) { + // 尝试通过测点编码查询 + List mPointList = mPointService.selectListByWhere(unitId, "where mpointcode='" + ids[i] + "'"); + if (mPointList != null && mPointList.size() > 0) { + mPoint_es = mPointList.get(0); + } + } if (mPoint_es != null) { unitId = mPoint_es.getBizid(); diff --git a/src/main/webapp/IMG/loginbp.png b/src/main/webapp/IMG/loginbp.png new file mode 100644 index 00000000..93b1007d Binary files /dev/null and b/src/main/webapp/IMG/loginbp.png differ diff --git a/src/main/webapp/JS/main/main_js.js b/src/main/webapp/JS/main/main_js.js index 2daa0041..a8f088c2 100644 --- a/src/main/webapp/JS/main/main_js.js +++ b/src/main/webapp/JS/main/main_js.js @@ -1,6 +1,5 @@ //金山项目首页 - /** * 获取点位实时值 * @param unitId @@ -10,192 +9,89 @@ */ function getValue4Es(unitId, mpointCode, valueId, textId) { $.ajax({ - type: 'GET', - url: ext.contextPath + '/work/mpoint/getValue4Es.do?unitId=' + unitId + '&mpointCode=' + mpointCode, + type: "GET", + url: + ext.contextPath + + "/work/mpoint/getValue4Es.do?unitId=" + + unitId + + "&mpointCode=" + + mpointCode, async: true, globle: false, error: function () { return false; }, success: function (data) { - if (data != null && data != '') { - var data = eval('(' + data + ')'); + if (data != null && data != "") { + var data = eval("(" + data + ")"); //只限制上限为0.8 下限根据设定值自己设 // var maxvalue = data.alarmmax/0.8; // var minvalue = data.alarmmin/maxvalue; // var acvalue = data.parmvalue/maxvalue*100; - $('#' + valueId).html(data.parmvalue);//赋值 + $("#" + valueId).html(data.parmvalue); //赋值 if (data.unit == undefined) { - $('#' + textId).html(data.parmname);//赋值名称 + $("#" + textId).html(data.parmname); //赋值名称 } else { - $('#' + textId).html(data.parmname + ' (' + data.unit + ')');//赋值名称+单位 + $("#" + textId).html(data.parmname + " (" + data.unit + ")"); //赋值名称+单位 } } - } + }, }); } function getValue(unitId, mpointCode, valueId, textId) { $.ajax({ - type: 'GET', - url: ext.contextPath + '/work/mpoint/getValue.do?unitId=' + unitId + '&mpointCode=' + mpointCode, + type: "GET", + url: + ext.contextPath + + "/work/mpoint/getValue.do?unitId=" + + unitId + + "&mpointCode=" + + mpointCode, async: true, globle: false, error: function () { return false; }, success: function (data) { - if (data != null && data != '') { - var data = eval('(' + data + ')'); + if (data != null && data != "") { + var data = eval("(" + data + ")"); console.log(data); - $('#' + valueId).html(data.parmvalue);//赋值 + $("#" + valueId).html(data.parmvalue); //赋值 if (data.unit == undefined) { - $('#' + textId).html(data.parmname);//赋值名称 + $("#" + textId).html(data.parmname); //赋值名称 } else { - $('#' + textId).html(data.parmname + ' (' + data.unit + ')');//赋值名称+单位 + $("#" + textId).html(data.parmname + " (" + data.unit + ")"); //赋值名称+单位 } } - } + }, }); } -// /** -// * echart饼图--通用 -- 新 -// */ -// function echartPie2(unitId, mpointCode, echartId, textId) { -// var myChart = echarts.init(document.getElementById(echartId)); -// $.ajax({ -// type: 'GET', -// url: ext.contextPath + '/work/mpoint/getValue4Es.do?unitId=' + unitId + '&mpointCode=' + mpointCode, -// async: true, -// globle: false, -// error: function () { -// return false; -// }, -// success: function (data) { -// if (data != null && data != '') { -// var echart_minvalue = 0.2; -// var echart_maxvalue = 0.8; - -// // var data = eval('(' + data + ')'); -// //180度的上限 -// var maxvalue_20 = data.alarmmax * 1.2; -// //0度的下限 -// var minvalue_20 = data.alarmmin - data.alarmmin * 0.2; - -// var maxvalue = data.alarmmax; -// var minvalue = data.alarmmin; - -// //判断是否需要下限 -// if (data.alarmmin == null || data.alarmmin == '') { -// minvalue_20 = 0; -// minvalue = 0; -// echart_minvalue = 0; -// } - -// var parmvalue = data.parmvalue; -// var rate = 0; -// var unit = ''; - -// $('#' + textId).html(data.parmname); - -// if (data.unit != undefined && data.unit != null && data.unit != '') { -// unit = '(' + data.unit + ')'; -// } - -// //计算实际值比例 -// if (maxvalue_20 <= 1) { -// minvalue_20 = minvalue_20 * 100; -// maxvalue_20 = maxvalue_20 * 100; -// parmvalue = parmvalue * 100; -// minvalue = minvalue * 100; -// maxvalue = maxvalue * 100; -// if (maxvalue != undefined && minvalue != undefined) { -// rate = parmvalue / (maxvalue_20 - minvalue_20) * 100; -// } else { -// rate = parmvalue; -// } - -// rate += 20; -// } else { -// if (maxvalue != undefined && minvalue != undefined) { -// // rate = parmvalue / maxvalue_20 * 100; -// rate = (parmvalue / maxvalue) * 0.8 * 100; -// } else { -// rate = parmvalue; -// } -// } - -// //计算颜色 -// var colorStr = '#6C6C6C'; -// if (parmvalue < minvalue) { -// colorStr = '#67e0e3'; -// } else if (parmvalue > maxvalue) { -// colorStr = '#fd666d'; -// } else { -// colorStr = '#37a2da'; -// // 37a2da -// } - -// console.log(data.parmname + '扩大下限:' + minvalue_20 + '------扩大上限:' + maxvalue_20 + '------实际比率:' + rate + '------实际值:' + parmvalue + '------实际下限:' + minvalue + '------实际上限:' + maxvalue); - -// var option = { -// toolbox: { //可视化的工具箱 -// show: false, feature: { -// restore: { //重置 -// show: true -// }, saveAsImage: {//保存图片 -// show: true -// } -// } -// }, series: [{ -// name: '业务指标', type: 'gauge', startAngle: 180, endAngle: 0, radius: 70, center: ['50%', '80%'],//设置饼图位置 -// axisLine: { -// show: true, // 属性lineStyle控制线条样式 -// lineStyle: { -// width: 15, // color: [[0.2, '#e2e2e2'], [0.8, '#66d99f'], [maxvalue, '#f35a4a']] -// color: [[echart_minvalue, '#67e0e3'], [echart_maxvalue, '#37a2da'], [maxvalue_20, '#fd666d']] -// } -// }, splitLine: { -// show: false, -// }, axisTick: { -// show: false, -// }, axisLabel: { -// show: false, -// }, pointer: { -// length: '40px', width: '3px', -// }, detail: { -// offsetCenter: [0, '20%'], fontSize: 14, color: colorStr, //formatter: data.parmname, -// formatter: data.parmvalue + unit//data.parmvalue为实际值 acvalue为计算后的比例 -// }, data: [{value: rate}] -// }] -// }; -// myChart.setOption(option); -// myChart.resize(); -// } -// } -// }); -// } - /** * echart饼图--通用 */ function echartPie(unitId, mpointCode, echartId, textId) { var myChart = echarts.init(document.getElementById(echartId)); $.ajax({ - type: 'GET', - url: ext.contextPath + '/work/mpoint/getValue4Es.do?unitId=' + unitId + '&mpointCode=' + mpointCode, + type: "GET", + url: + ext.contextPath + + "/work/mpoint/getValue4Es.do?unitId=" + + unitId + + "&mpointCode=" + + mpointCode, async: true, globle: false, error: function () { return false; }, success: function (data) { - if (data != null && data != '') { + if (data != null && data != "") { var echart_minvalue = 0.2; var echart_maxvalue = 0.8; - var data = eval('(' + data + ')'); + var data = eval("(" + data + ")"); //180度的上限 var maxvalue_20 = data.alarmmax * 1.2; //0度的下限 @@ -205,7 +101,7 @@ function echartPie(unitId, mpointCode, echartId, textId) { var minvalue = data.alarmmin; //判断是否需要下限 - if (data.alarmmin == null || data.alarmmin == '') { + if (data.alarmmin == null || data.alarmmin == "") { minvalue_20 = 0; minvalue = 0; echart_minvalue = 0; @@ -213,12 +109,12 @@ function echartPie(unitId, mpointCode, echartId, textId) { var parmvalue = data.parmvalue; var rate = 0; - var unit = ''; + var unit = ""; - $('#' + textId).html(data.parmname); + $("#" + textId).html(data.parmname); - if (data.unit != undefined && data.unit != null && data.unit != '') { - unit = '(' + data.unit + ')'; + if (data.unit != undefined && data.unit != null && data.unit != "") { + unit = "(" + data.unit + ")"; } //计算实际值比例 @@ -229,7 +125,7 @@ function echartPie(unitId, mpointCode, echartId, textId) { minvalue = minvalue * 100; maxvalue = maxvalue * 100; if (maxvalue != undefined && minvalue != undefined) { - rate = parmvalue / (maxvalue_20 - minvalue_20) * 100; + rate = (parmvalue / (maxvalue_20 - minvalue_20)) * 100; } else { rate = parmvalue; } @@ -245,204 +141,95 @@ function echartPie(unitId, mpointCode, echartId, textId) { } //计算颜色 - var colorStr = '#6C6C6C'; + var colorStr = "#6C6C6C"; if (parmvalue < minvalue) { - colorStr = '#6C6C6C'; + colorStr = "#6C6C6C"; } else if (parmvalue > maxvalue) { - colorStr = '#f35a4a'; + colorStr = "#f35a4a"; } else { - colorStr = '#66d99f'; + colorStr = "#66d99f"; } - console.log(data.parmname + '扩大下限:' + minvalue_20 + '------扩大上限:' + maxvalue_20 + '------实际比率:' + rate + '------实际值:' + parmvalue + '------实际下限:' + minvalue + '------实际上限:' + maxvalue); + console.log( + data.parmname + + "扩大下限:" + + minvalue_20 + + "------扩大上限:" + + maxvalue_20 + + "------实际比率:" + + rate + + "------实际值:" + + parmvalue + + "------实际下限:" + + minvalue + + "------实际上限:" + + maxvalue, + ); var option = { - toolbox: { //可视化的工具箱 - show: false, feature: { - restore: { //重置 - show: true - }, saveAsImage: {//保存图片 - show: true - } - } - }, series: [{ - name: '业务指标', type: 'gauge', startAngle: 180, endAngle: 0, radius: 70, center: ['50%', '80%'],//设置饼图位置 - axisLine: { - show: true, // 属性lineStyle控制线条样式 - lineStyle: { - width: 15, // color: [[0.2, '#e2e2e2'], [0.8, '#66d99f'], [maxvalue, '#f35a4a']] - color: [[echart_minvalue, '#f35a4a'], [echart_maxvalue, '#66d99f'], [maxvalue_20, '#f35a4a']] - } - }, splitLine: { - show: false, - }, axisTick: { - show: false, - }, axisLabel: { - show: false, - }, pointer: { - length: '40px', width: '3px', - }, detail: { - offsetCenter: [0, '20%'], fontSize: 14, color: colorStr, //formatter: data.parmname, - formatter: data.parmvalue + unit//data.parmvalue为实际值 acvalue为计算后的比例 - }, data: [{value: rate}] - }] + toolbox: { + //可视化的工具箱 + show: false, + feature: { + restore: { + //重置 + show: true, + }, + saveAsImage: { + //保存图片 + show: true, + }, + }, + }, + series: [ + { + name: "业务指标", + type: "gauge", + startAngle: 180, + endAngle: 0, + radius: 70, + center: ["50%", "80%"], //设置饼图位置 + axisLine: { + show: true, // 属性lineStyle控制线条样式 + lineStyle: { + width: 15, // color: [[0.2, '#e2e2e2'], [0.8, '#66d99f'], [maxvalue, '#f35a4a']] + color: [ + [echart_minvalue, "#f35a4a"], + [echart_maxvalue, "#66d99f"], + [maxvalue_20, "#f35a4a"], + ], + }, + }, + splitLine: { + show: false, + }, + axisTick: { + show: false, + }, + axisLabel: { + show: false, + }, + pointer: { + length: "40px", + width: "3px", + }, + detail: { + offsetCenter: [0, "20%"], + fontSize: 14, + color: colorStr, //formatter: data.parmname, + formatter: data.parmvalue + unit, //data.parmvalue为实际值 acvalue为计算后的比例 + }, + data: [{ value: rate }], + }, + ], }; myChart.setOption(option); myChart.resize(); } - } + }, }); } - -// /** -// * echart饼图--通用--新 -// */ -// function echartPie(unitId, mpointCode, echartId, textId) { -// var myChart = echarts.init(document.getElementById(echartId)); -// var data = { -// "confirmalarm": "0", -// "parmname": "进水PH", -// "signaltag": "", -// "soundalarm": "0", -// "remoteup": "0", -// "triggercycle": "0", -// "triggermutation": "0", -// "ledcolor": "1", -// "id": "D_JinSPH", -// "numtail": "0", -// "signaltype": "AI", -// "active": "启用", -// "flowset": 0, -// "unit": "mg/l", -// "sourceType": "auto", -// "mpointcode": "D_JinSPH", -// "triggerequoff": "0", -// "disname": "", -// "valuetype": "sql", -// "directtype": "1", -// "freq": 1, -// "morder": 999, -// "showname": "1", -// "rate": 1, -// "subscriptionStatus": 0, -// "mpointid": "D_JinSPH", -// "valuemeaning": "", -// "mathop": "*", -// "triggeralarm": "1", -// "equipmentid": "", -// "biztype": "", -// "parmvalue": 20, -// "alarmmax": 14, -// "alarmmin": 6, -// "ledtype": "1", -// "measuredt": "2026-03-11T18:20:27Z", -// "bizid": "0533JS" -// }; - - -// if (data != null && data != '') { -// var echart_minvalue = 0.2; -// var echart_maxvalue = 0.8; - -// // var data = eval('(' + data + ')'); -// //180度的上限 -// var maxvalue_20 = data.alarmmax * 1.2; -// //0度的下限 -// var minvalue_20 = data.alarmmin - data.alarmmin * 0.2; - -// var maxvalue = data.alarmmax; -// var minvalue = data.alarmmin; - -// //判断是否需要下限 -// if (data.alarmmin == null || data.alarmmin == '') { -// minvalue_20 = 0; -// minvalue = 0; -// echart_minvalue = 0; -// } - -// var parmvalue = data.parmvalue; -// var rate = 0; -// var unit = ''; - -// $('#' + textId).html(data.parmname); - -// if (data.unit != undefined && data.unit != null && data.unit != '') { -// unit = '(' + data.unit + ')'; -// } - -// //计算实际值比例 -// if (maxvalue_20 <= 1) { -// minvalue_20 = minvalue_20 * 100; -// maxvalue_20 = maxvalue_20 * 100; -// parmvalue = parmvalue * 100; -// minvalue = minvalue * 100; -// maxvalue = maxvalue * 100; -// if (maxvalue != undefined && minvalue != undefined) { -// rate = parmvalue / (maxvalue_20 - minvalue_20) * 100; -// } else { -// rate = parmvalue; -// } - -// rate += 20; -// } else { -// if (maxvalue != undefined && minvalue != undefined) { -// // rate = parmvalue / maxvalue_20 * 100; -// rate = (parmvalue / maxvalue) * 0.8 * 100; -// } else { -// rate = parmvalue; -// } -// } - -// //计算颜色 -// var colorStr = '#6C6C6C'; -// if (parmvalue < minvalue) { -// colorStr = '#67e0e3'; -// } else if (parmvalue > maxvalue) { -// colorStr = '#fd666d'; -// } else { -// colorStr = '#37a2da'; -// // 37a2da -// } - -// console.log(data.parmname + '扩大下限:' + minvalue_20 + '------扩大上限:' + maxvalue_20 + '------实际比率:' + rate + '------实际值:' + parmvalue + '------实际下限:' + minvalue + '------实际上限:' + maxvalue); - -// var option = { -// toolbox: { //可视化的工具箱 -// show: false, feature: { -// restore: { //重置 -// show: true -// }, saveAsImage: {//保存图片 -// show: true -// } -// } -// }, series: [{ -// name: '业务指标', type: 'gauge', startAngle: 180, endAngle: 0, radius: 70, center: ['50%', '80%'],//设置饼图位置 -// axisLine: { -// show: true, // 属性lineStyle控制线条样式 -// lineStyle: { -// width: 15, // color: [[0.2, '#e2e2e2'], [0.8, '#66d99f'], [maxvalue, '#f35a4a']] -// color: [[echart_minvalue, '#67e0e3'], [echart_maxvalue, '#37a2da'], [maxvalue_20, '#fd666d']] -// } -// }, splitLine: { -// show: false, -// }, axisTick: { -// show: false, -// }, axisLabel: { -// show: false, -// }, pointer: { -// length: '40px', width: '3px', -// }, detail: { -// offsetCenter: [0, '20%'], fontSize: 14, color: colorStr, //formatter: data.parmname, -// formatter: data.parmvalue + unit//data.parmvalue为实际值 acvalue为计算后的比例 -// }, data: [{value: rate}] -// }] -// }; -// myChart.setOption(option); -// myChart.resize(); -// } -// } - /** * echart折线图--单点 */ @@ -450,460 +237,483 @@ function echartLine(unitId, mpointCode, echartId) { var myChart = echarts.init(document.getElementById(echartId)); $.ajax({ - type: 'GET', - url: ext.contextPath + '/work/mpoint/getValueMonth.do?unitId=' + unitId + '&mpointCode=' + mpointCode, + type: "GET", + url: + ext.contextPath + + "/work/mpoint/getValueMonth.do?unitId=" + + unitId + + "&mpointCode=" + + mpointCode, async: true, globle: false, error: function () { return false; }, success: function (data) { - var data = eval('(' + data + ')'); + var data = eval("(" + data + ")"); var option = { tooltip: { - trigger: 'axis' - }, title: [{ - left: 'center', text: data.name - }], grid: { - left: '3%', right: '4%', bottom: '3%', containLabel: true - }, xAxis: { - type: 'category', + trigger: "axis", + }, + title: [ + { + left: "center", + text: data.name, + }, + ], + grid: { + left: "3%", + right: "4%", + bottom: "3%", + containLabel: true, + }, + xAxis: { + type: "category", boundaryGap: false, - data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31'] - }, yAxis: { - type: 'value' - }, series: [{ - name: '上限', type: 'line', // stack: '总量', - data: data.maxlist - }, { - name: '下限', type: 'line', // stack: '总量', - data: data.minlist - }, { - name: '实际值', type: 'line', // stack: '总量', - data: data.datalist - }] + data: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + ], + }, + yAxis: { + type: "value", + }, + series: [ + { + name: "上限", + type: "line", // stack: '总量', + data: data.maxlist, + }, + { + name: "下限", + type: "line", // stack: '总量', + data: data.minlist, + }, + { + name: "实际值", + type: "line", // stack: '总量', + data: data.datalist, + }, + ], }; myChart.setOption(option); myChart.resize(); - } + }, }); } -/** - * echart混合图--双柱状+折线 - */ -function echartMixed(unitId, mpointCode, echartId) { - var myChart = echarts.init(document.getElementById(echartId)); - - var datastr = { - "barData1": { - "name": "工业进水量", - "data": [89483, 96870, 85420, 92150, 88960, 95340, 91280] - }, - "barData2": { - "name": "工业出水量", - "data": [87297, 88460, 82100, 89500, 85600, 91200, 88500] - }, - "barData3": { - "name": "生活进水量", - "data": [89483, 96870, 85420, 92150, 88960, 95340, 91280] - }, - "barData4": { - "name": "生活出水量", - "data": [87297, 88460, 82100, 89500, 85600, 91200, 88500] - }, - "lineData": { - "name": "累计水量", - "data": [176780, 185330, 167520, 181650, 174560, 186540, 179780] - }, - "timeJson": [ - "2026-03-10", - "2026-03-11", - "2026-03-12", - "2026-03-13", - "2026-03-14", - "2026-03-15", - "2026-03-16" - ] - }; - - var option = { - color: ['#67D89F', '#FFBB00', '#5B8FF9', '#F6903D', '#EE6666'], - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross' - } - }, - legend: { - data: [datastr.barData1.name, datastr.barData2.name, datastr.barData3.name, datastr.barData4.name, datastr.lineData.name] - }, - xAxis: [{ - type: 'category', - axisLabel: { - interval: 0 - }, - data: datastr.timeJson - }], - yAxis: [{ - type: 'value', - name: '水量(m³)', - position: 'left' - }], - grid: { - left: '2%', - right: '5%', - bottom: '3%', - containLabel: true - }, - series: [ - { - name: datastr.barData1.name, - type: 'bar', - barWidth: 20, - data: datastr.barData1.data - }, - { - name: datastr.barData2.name, - type: 'bar', - barWidth: 20, - data: datastr.barData2.data - }, - { - name: datastr.barData3.name, - type: 'bar', - barWidth: 20, - data: datastr.barData3.data - }, - { - name: datastr.barData4.name, - type: 'bar', - barWidth: 20, - data: datastr.barData4.data - }, - { - name: datastr.lineData.name, - type: 'line', - smooth: true, - symbol: 'circle', - symbolSize: 6, - lineStyle: { - width: 2 - }, - data: datastr.lineData.data - } - ] - }; - myChart.setOption(option); - myChart.resize(); -} - -/** - * echart曲线图--单点 - */ -function echartLine2(unitId, mpointCode, echartId) { - var myChart = echarts.init(document.getElementById(echartId)); - - var datastr = { - "dataJson": [ - { - "data": [ - 89483.1, - 96870.97, - 85420.5, - 92150.3, - 88960.8, - 95340.2, - 91280.6 - ], - "name": "每日进水出水总量", - "type": "line", - "smooth": true, - "symbol": "circle", - "symbolSize": 6, - "lineStyle": { - "width": 2 - }, - "areaStyle": { - "opacity": 0.1 - } - }, - ], - "timeJson": [ - "2026-03-10", - "2026-03-11", - "2026-03-12", - "2026-03-13", - "2026-03-14", - "2026-03-15", - "2026-03-16" - ] - } - - var data1 = datastr.dataJson; - var data2 = datastr.timeJson; - - var option = { - color: ['#67D89F', '#5B8FF9'], - tooltip: { - trigger: 'axis' - }, - legend: {}, - xAxis: [{ - type: 'category', - boundaryGap: false, - axisLabel: { - interval: 0 - }, - data: data2 - }], - yAxis: [{ - type: 'value' - }], - grid: { - left: '2%', - right: '5%', - bottom: '3%', - containLabel: true - }, - series: data1 - }; - myChart.setOption(option); - myChart.resize(); -} - /** * echart柱状图--单点 */ -function echartColumnar2(unitId, mpointCode, echartId) { +function echartColumnar(unitId, mpointCode, echartId) { var myChart = echarts.init(document.getElementById(echartId)); - var datastr = { - "dataJson": [ - { - "barWidth": 30, - "stack": "total", - "data": [ - 89483.1, - 96870.97, - 0, - 0, - 0, - 0, - 0 - ], - "name": "每日进水量", - "label": { - "show": "true" + $.ajax({ + type: "GET", + url: + ext.contextPath + + "/work/mpoint/getValueMonth.do?unitId=" + + unitId + + "&mpointCode=" + + mpointCode, + async: true, + globle: false, + error: function () { + return false; + }, + success: function (data) { + var data = eval("(" + data + ")"); + var option = { + color: "#62AEDF", + tooltip: { + trigger: "axis", + axisPointer: { + // 坐标轴指示器,坐标轴触发有效 + type: "shadow", // 默认为直线,可选为:'line' | 'shadow' + }, }, - "type": "bar" - }, - { - "barWidth": 30, - "stack": "total", - "data": [ - 87297.59, - 88460.4, - 0, - 0, - 0, - 0, - 0 - ], - "name": "每日出水量", - "label": { - "show": "true" + xAxis: { + type: "category", + data: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + ], }, - "type": "bar" - } - - ], - "timeJson": [ - "2026-03-10", - "2026-03-11", - "2026-03-12", - "2026-03-13", - "2026-03-14", - "2026-03-15", - "2026-03-16" - ] - } - - var data1 = datastr.dataJson; - var data2 = datastr.timeJson; - - var option = { - color: ['#67D89F', '#FFBB00'], legend: {}, calculable: true, xAxis: [{ - type: 'category', axisLabel: { - interval: 0,//代表显示所有x轴标签显示 - }, data: data2 - }], yAxis: [{ - type: 'value' - }], grid: { - left: '2%', right: '5%', bottom: '3%', containLabel: true - }, series: data1 - }; - myChart.setOption(option); - myChart.resize(); - - // $.ajax({ - // type: 'GET', - // url: ext.contextPath + '/work/mpoint/getValueMonth.do?unitId=' + unitId + '&mpointCode=' + mpointCode, - // async: true, - // globle: false, - // error: function () { - // return false; - // }, - // success: function (data) { - // var data = eval('(' + data + ')'); - // var option = { - // color: '#62AEDF', tooltip: { - // trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 - // type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' - // } - // }, xAxis: { - // type: 'category', - // data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31'] - // }, yAxis: { - // type: 'value' - // }, title: [{ - // left: 'center', text: data.name - // }], grid: { - // left: '3%', right: '4%', bottom: '3%', containLabel: true - // }, series: [{ - // data: data.datalist, type: 'bar', showBackground: true - // // backgroundStyle: { - // // //color: '#62AEDF' - // // } - // }] - // }; - // myChart.setOption(option); - // myChart.resize(); - // } - // }); + yAxis: { + type: "value", + }, + title: [ + { + left: "center", + text: data.name, + }, + ], + grid: { + left: "3%", + right: "4%", + bottom: "3%", + containLabel: true, + }, + series: [ + { + data: data.datalist, + type: "bar", + showBackground: true, + // backgroundStyle: { + // //color: '#62AEDF' + // } + }, + ], + }; + myChart.setOption(option); + myChart.resize(); + }, + }); } /** - * echart柱状图--多点 + * echart柱状图--多点 (原有) */ -function echartColumnar1(unitId, mpointCode, echartId) { +function echartColumnar2_1(unitId, mpointCode, echartId) { var myChart = echarts.init(document.getElementById(echartId)); + $.ajax({ + type: "GET", + url: + ext.contextPath + + "/work/mpoint/getValueWeekS.do?unitId=" + + unitId + + "&mpointCode=" + + mpointCode, + async: true, + globle: false, + error: function () { + return false; + }, + success: function (data) { + var datastr = eval("(" + data + ")"); - var datastr = { - "dataJson": [ - { - "barWidth": 30, - "stack": "total", - "data": [ - 89483.1, - 96870.97, - 0, - 0, - 0, - 0, - 0 + var data1 = datastr.dataJson; + var data2 = datastr.timeJson; + + var option = { + color: ["#67D89F", "#FFBB00"], + legend: {}, + calculable: true, + xAxis: [ + { + type: "category", + axisLabel: { + interval: 0, //代表显示所有x轴标签显示 + }, + data: data2, + }, ], - "name": "每日进水量", - "label": { - "show": "true" - }, - "type": "bar" - }, - { - "barWidth": 30, - "stack": "total", - "data": [ - 87297.59, - 88460.4, - 0, - 0, - 0, - 0, - 0 + yAxis: [ + { + type: "value", + }, ], - "name": "每日出水量", - "label": { - "show": "true" + grid: { + left: "2%", + right: "5%", + bottom: "3%", + containLabel: true, }, - "type": "bar" + series: data1, + }; + myChart.setOption(option); + myChart.resize(); + }, + }); +} + +function initEchartColumnar2() { + var chart = echarts.init(document.getElementById('myChartProduce8')); + var option = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + } + }, + legend: { + data: ['工业进水', '工业出水', '生活进水', '生活出水'], + top: 5, + textStyle: { + fontSize: 12 + } + }, + grid: { + left: '5%', + right: '5%', + bottom: '8%', + top: '18%', + containLabel: true + }, + xAxis: { + type: 'category', + data: ['3/16', '3/17', '3/18', '3/19', '3/20', '3/21', '3/22'], + axisLine: { + lineStyle: { + color: '#e8e8e8' + } + }, + axisLabel: { + color: '#666', + fontSize: 12 + } + }, + yAxis: { + type: 'value', + name: 'm³/D', + nameTextStyle: { + fontSize: 12 + }, + axisLine: { + show: false + }, + axisTick: { + show: false + }, + axisLabel: { + color: '#666', + fontSize: 12 + }, + splitLine: { + lineStyle: { + color: '#f0f0f0' + } + } + }, + series: [ + { + name: '工业进水', + type: 'bar', + barWidth: '20%', + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: '#378dcc'}, + {offset: 1, color: '#5ba3d9'} + ]) + }, + data: [0, 0, 0, 0, 0, 0, 0] + }, + { + name: '工业出水', + type: 'bar', + barWidth: '20%', + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: '#5b8def'}, + {offset: 1, color: '#40a9ff'} + ]) + }, + data: [0, 0, 0, 0, 0, 0, 0] + }, + { + name: '生活进水', + type: 'bar', + barWidth: '20%', + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: '#52c41a'}, + {offset: 1, color: '#73d13d'} + ]) + }, + data: [0, 0, 0, 0, 0, 0, 0] + }, + { + name: '生活出水', + type: 'bar', + barWidth: '20%', + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: '#2ecc71'}, + {offset: 1, color: '#58d68d'} + ]) + }, + data: [0, 0, 0, 0, 0, 0, 0] + } + ] + }; + chart.setOption(option); + chart.resize(); + +} + +/** + * echart柱状图--多点 (TGLW新版)- (工业生活污水流量7天日趋势) + */ +function echartColumnar2(unitId, mpointCode, echartId) { + var myChart = echarts.init(document.getElementById(echartId)); + + $.ajax({ + type: "GET", + // url: ext.contextPath + '/work/mpoint/getValueWeekS.do?unitId=' + unitId + '&mpointCode=' + mpointCode, + url: + ext.contextPath + + "/work/mpoint/getValueWeekS.do?unitId=" + + unitId + + "&mpointCode=" + + "C_GYJsssll,C_GYCsssll,C_SHJsssll,C_SHCsssll", + async: true, + globle: false, + error: function () { + return false; + }, + success: function (data) { + var datastr = eval("(" + data + ")"); + + var data1 = datastr.dataJson; + var data2 = datastr.timeJson; + var series = []; + var legendData = []; + + if (data1) { + data1.forEach(function(item, index) { + legendData.push(item.name); + var colors = [ + [{offset: 0, color: '#378dcc'}, {offset: 1, color: '#5ba3d9'}], + [{offset: 0, color: '#5b8def'}, {offset: 1, color: '#40a9ff'}], + [{offset: 0, color: '#52c41a'}, {offset: 1, color: '#73d13d'}], + [{offset: 0, color: '#2ecc71'}, {offset: 1, color: '#58d68d'}] + ]; + series.push({ + name: item.name, + type: item.type || 'bar', + barWidth: '20%', + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, colors[index % colors.length]) + }, + data: item.data + }); + }); } - ], - "timeJson": [ - "2026-03-10", - "2026-03-11", - "2026-03-12", - "2026-03-13", - "2026-03-14", - "2026-03-15", - "2026-03-16" - ] - } - - var data1 = datastr.dataJson; - var data2 = datastr.timeJson; - - // var option = { - // color: ['#67D89F', '#FFBB00'], legend: {}, calculable: true, xAxis: [{ - // type: 'category', axisLabel: { - // interval: 0,//代表显示所有x轴标签显示 - // }, data: data2 - // }], yAxis: [{ - // type: 'value' - // }], grid: { - // left: '2%', right: '5%', bottom: '3%', containLabel: true - // }, series: data1 - // }; - // myChart.setOption(option); - // myChart.resize(); - - - - var option = { - color: ['#67D89F', '#FFBB00'], legend: {}, calculable: true, xAxis: [{ - type: 'category', axisLabel: { - interval: 0,//代表显示所有x轴标签显示 - }, data: data2 - }], yAxis: [{ - type: 'value' - }], grid: { - left: '2%', right: '5%', bottom: '3%', containLabel: true - }, series: data1 - }; - myChart.setOption(option); - myChart.resize(); - - - // $.ajax({ - // type: 'GET', - // url: ext.contextPath + '/work/mpoint/getValueWeekS.do?unitId=' + unitId + '&mpointCode=' + mpointCode, - // async: true, - // globle: false, - // error: function () { - // return false; - // }, - // success: function (data) { - // var datastr = eval('(' + data + ')'); - // - // var data1 = datastr.dataJson; - // var data2 = datastr.timeJson; - // - // var option = { - // color: ['#67D89F', '#FFBB00'], legend: {}, calculable: true, xAxis: [{ - // type: 'category', axisLabel: { - // interval: 0,//代表显示所有x轴标签显示 - // }, data: data2 - // }], yAxis: [{ - // type: 'value' - // }], grid: { - // left: '2%', right: '5%', bottom: '3%', containLabel: true - // }, series: data1 - // }; - // myChart.setOption(option); - // myChart.resize(); - // } - // }); + var option = { + tooltip: { + trigger: "axis", + axisPointer: { + type: "shadow", + }, + }, + legend: { + data: legendData, + top: 5, + textStyle: { + fontSize: 12, + }, + }, + grid: { + left: "5%", + right: "5%", + bottom: "8%", + top: "18%", + containLabel: true, + }, + xAxis: [ + { + type: "category", + data: data2, + axisLine: { + lineStyle: { + color: "#e8e8e8", + }, + }, + axisLabel: { + color: "#666", + fontSize: 12, + interval: 0, //代表显示所有x轴标签显示 + }, + }, + ], + yAxis: { + type: "value", + name: "m³/D", + nameTextStyle: { + fontSize: 12, + }, + axisLine: { + show: false, + }, + axisTick: { + show: false, + }, + axisLabel: { + color: "#666", + fontSize: 12, + }, + splitLine: { + lineStyle: { + color: "#f0f0f0", + }, + }, + }, + series: series, + }; + myChart.setOption(option); + myChart.resize(); + }, + }); } /** @@ -911,7 +721,10 @@ function echartColumnar1(unitId, mpointCode, echartId) { * @param unitId */ function getPic(unitId) { - $("#mainImg").attr("src", ext.contextPath + "/IMG/main/main_" + unitId + ".jpg"); + $("#mainImg").attr( + "src", + ext.contextPath + "/IMG/main/main_" + unitId + ".jpg", + ); } /** @@ -922,21 +735,37 @@ function getPic(unitId, unit, proDatavisualFrame) { //$("#mainImg").attr("src", ext.contextPath + "/IMG/main/main_" + unitId + ".jpg"); var unitIds = JSON.parse(unit); var proDatavisualFrames = JSON.parse(proDatavisualFrame); - var active = ''; - var item = ''; + var active = ""; + var item = ""; var proDatavisualFrames_i = 0; if (unitIds != null && unitIds.length > 0) { for (var i = 0; i < unitIds.length; i++) { - if (unitIds[i].type == 'B' || unitIds[i].type == 'C') { + if (unitIds[i].type == "B" || unitIds[i].type == "C") { var proDatavisualFrameId = proDatavisualFrames[proDatavisualFrames_i]; proDatavisualFrames_i++; if (unitId == unitIds[i].id) { - active = 'active'; + active = "active"; } else { - active = ''; + active = ""; } var src = ext.contextPath + "/IMG/main/main_" + unitIds[i].id + ".jpg"; - item += '
' + '' + '' + '
'; + item += + '
' + + '' + + '" + + "
"; } } } @@ -944,17 +773,39 @@ function getPic(unitId, unit, proDatavisualFrame) { } function getUnitsByUnitId4Select(id, funname, proDatavisualFrame) { - $.post(ext.contextPath + "/user/getUnitsByUnitId4Select.do", {id: id}, function (data) { - //console.log(data); - var unitIds = data; - eval(funname + "('" + id + "','" + unitIds + "','" + proDatavisualFrame + "')") - }); + $.post( + ext.contextPath + "/user/getUnitsByUnitId4Select.do", + { id: id }, + function (data) { + //console.log(data); + var unitIds = data; + eval( + funname + + "('" + + id + + "','" + + unitIds + + "','" + + proDatavisualFrame + + "')", + ); + }, + ); } function proDatavisualFrame(unitId, proDatavisualFrameId) { - if (proDatavisualFrameId != null && proDatavisualFrameId != undefined && proDatavisualFrameId != '') { - parent.addTab(proDatavisualFrameId, '工艺可视化', 'process/dataVisualFrame/view.do?frameId=' + proDatavisualFrameId + '&unitId=' + unitId); + if ( + proDatavisualFrameId != null && + proDatavisualFrameId != undefined && + proDatavisualFrameId != "" + ) { + parent.addTab( + proDatavisualFrameId, + "工艺可视化", + "process/dataVisualFrame/view.do?frameId=" + + proDatavisualFrameId + + "&unitId=" + + unitId, + ); } } - - diff --git a/src/main/webapp/jsp/equipment/equipmentCardList.jsp b/src/main/webapp/jsp/equipment/equipmentCardList.jsp index 9d528ead..2d0acf2c 100644 --- a/src/main/webapp/jsp/equipment/equipmentCardList.jsp +++ b/src/main/webapp/jsp/equipment/equipmentCardList.jsp @@ -141,9 +141,9 @@ formatter: function (value, row, index) { var buts = ""; - buts += ''; - buts += ''; - buts += ''; + // buts += ''; + // buts += ''; + // buts += ''; buts += ''; buts += ''; diff --git a/src/main/webapp/jsp/equipment/equipmentCardReamrkView.jsp b/src/main/webapp/jsp/equipment/equipmentCardReamrkView.jsp index f58bffed..8276270a 100644 --- a/src/main/webapp/jsp/equipment/equipmentCardReamrkView.jsp +++ b/src/main/webapp/jsp/equipment/equipmentCardReamrkView.jsp @@ -105,16 +105,15 @@ masterId: id, tbName: tbName }, function (data) { - //console.info(data) + // 清空之前的配置 + previews = []; + previewConfigs = []; if (data.length > 0) { - previews = new Array(); $('#maintenancefile').show(); for (var i = 0; i < data.length; i++) { var previewConfig = new Object(); - var path = data[i].abspath; - path = path.substring(path.indexOf('webapps') + 7, path.length); - path = ext.basePath.replace(ext.contextPath, '') + path.replace(/\\/g, "\/"); - ; + // 预览地址:添加preview=true参数,让浏览器内嵌显示 + var path = ext.contextPath + "/report/rptInfoSetFile/downloadFile4minio.do?id=" + data[i].id + "&tbName=" + tbName + "&preview=true"; previews.push(path); previewConfig['width'] = '2500px'; previewConfig['caption'] = data[i].filename; diff --git a/src/main/webapp/jsp/equipment/maintenancePlanHandle.jsp b/src/main/webapp/jsp/equipment/maintenancePlanHandle.jsp index 55b33328..eaa71ae4 100644 --- a/src/main/webapp/jsp/equipment/maintenancePlanHandle.jsp +++ b/src/main/webapp/jsp/equipment/maintenancePlanHandle.jsp @@ -47,7 +47,7 @@ $("#subForm").bootstrapValidator('validate');//提交验证 //setTimeout(function(){ if ($("#subForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码 - $.post(ext.contextPath + "/equipment/maintenancePlan/doupdate.do", $("#subForm").serialize(), function(data) { + $.post(ext.contextPath + "/maintenance/equipmentPlan/doupdate.do", $("#subForm").serialize(), function(data) { if (data.res == 1){ $("#table").bootstrapTable('refresh'); closeModal("subModal"); @@ -70,7 +70,7 @@ $("#subUnitForm").bootstrapValidator('validate');//提交验证 //setTimeout(function(){ if ($("#subForm").data('bootstrapValidator').isValid() && $("#subUnitForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码 - $.post(ext.contextPath + "/equipment/maintenancePlan/doupdate.do", $("#subForm").serialize(), function(data) { + $.post(ext.contextPath + "/maintenance/equipmentPlan/doupdate.do", $("#subForm").serialize(), function(data) { var routeNum = $("#routeNum").val(); if (data.res == 1){ $.post(ext.contextPath + "/equipment/maintenancePlan/submitAuditAgain.do", $("#subUnitForm").serialize()+"&routeNum="+routeNum, function(unitdata) { @@ -426,6 +426,43 @@
--%> + +
+ + + + + + + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ + + +
+
+ +
+ +
+
+

关联设备

diff --git a/src/main/webapp/jsp/login.jsp b/src/main/webapp/jsp/login.jsp index 11c773fc..fe74e3e6 100644 --- a/src/main/webapp/jsp/login.jsp +++ b/src/main/webapp/jsp/login.jsp @@ -135,7 +135,7 @@ //配置logo var array = eval(${jsonArray}); var verCode = true; - var bgpath = ["IMG/login/bg1.png"]; + var bgpath = ["IMG/loginbp.png"]; if(array!=null && array!=undefined && array.length>0){ for(var i =0;i
-->
diff --git a/src/main/webapp/jsp/main_JS_Company.jsp b/src/main/webapp/jsp/main_JS_Company.jsp index 64c58ef9..d8f9ad6d 100644 --- a/src/main/webapp/jsp/main_JS_Company.jsp +++ b/src/main/webapp/jsp/main_JS_Company.jsp @@ -78,7 +78,7 @@ /* 上部分区域 */ .top-section { display: grid; - grid-template-columns: 220px 1fr 220px; + grid-template-columns: 220px 1fr 240px; gap: 15px; margin-bottom: 15px; align-items: start; @@ -186,7 +186,7 @@ /* 设备运行卡片 */ .device-list { - max-height: 360px; + max-height: 343px; overflow-y: auto; } @@ -424,6 +424,7 @@ padding: 10px 15px; border-top: 1px solid #f0f0f0; background: #fafafa; + margin: 0; } .pagination-info { @@ -483,6 +484,127 @@ .device-list::-webkit-scrollbar-track { background: #f1f1f1; } + + /* 企业模块样式 */ + .enterprise-section { + margin-top: 15px; + } + + .enterprise-stats { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 15px; + margin-bottom: 15px; + } + + .enterprise-stat-card { + background: #fff; + border-radius: 8px; + padding: 20px; + text-align: center; + box-shadow: 0 2px 8px rgba(0,0,0,0.08); + } + + .enterprise-stat-card .stat-value { + font-size: 32px; + font-weight: bold; + color: #0c4377; + margin-bottom: 5px; + } + + .enterprise-stat-card .stat-label { + font-size: 14px; + color: #666; + } + + .enterprise-stat-card.primary .stat-value { + color: #378dcc; + } + + .enterprise-stat-card.success .stat-value { + color: #52c41a; + } + + .enterprise-stat-card.warning .stat-value { + color: #faad14; + } + + .enterprise-list-wrapper { + display: grid; + grid-template-columns: repeat(5, 1fr); + gap: 15px; + } + + .enterprise-item { + background: #fff; + border-radius: 8px; + padding: 15px; + box-shadow: 0 2px 8px rgba(0,0,0,0.08); + transition: transform 0.2s, box-shadow 0.2s; + } + + .enterprise-item:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0,0,0,0.12); + } + + .enterprise-item-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 10px; + padding-bottom: 10px; + border-bottom: 1px solid #f0f0f0; + } + + .enterprise-item-name { + font-size: 14px; + font-weight: bold; + color: #333; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 150px; + } + + .enterprise-item-status { + padding: 2px 8px; + border-radius: 4px; + font-size: 12px; + } + + .enterprise-item-status.online { + background: #e6f7e6; + color: #52c41a; + } + + .enterprise-item-status.offline { + background: #fff1f0; + color: #ff4d4f; + } + + .enterprise-item-flow { + display: flex; + justify-content: space-between; + align-items: center; + } + + .enterprise-flow-label { + font-size: 12px; + color: #999; + } + + .enterprise-flow-value { + font-size: 18px; + font-weight: bold; + color: #378dcc; + } + + .enterprise-flow-unit { + font-size: 12px; + color: #999; + margin-left: 2px; + } @@ -838,19 +1391,19 @@
- 进水累计 + 进水累计
- -- - + -- +
- 出水累计 + 出水累计
- -- - + -- +
@@ -861,19 +1414,19 @@
- 进水累计 + 进水累计
- -- - + -- +
- 出水累计 + 出水累计
- -- - + -- +
@@ -887,7 +1440,7 @@
污水流量7天日趋势
-
+
@@ -897,6 +1450,7 @@
+
@@ -1011,6 +1565,39 @@
+ + +
+
+
企业概况
+
+ +
+
+
--
+
企业总数
+
+
+
--
+
接入总数
+
+
+
--
+
离线企业
+
+
+
--
+
总瞬时流量(m³/h)
+
+
+ + +
+ +
+
+
+
diff --git a/src/main/webapp/jsp/main_JS_Company2_init.jsp b/src/main/webapp/jsp/main_JS_Company2_init.jsp new file mode 100644 index 00000000..ad8e22c1 --- /dev/null +++ b/src/main/webapp/jsp/main_JS_Company2_init.jsp @@ -0,0 +1,398 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ page import="com.sipai.entity.base.ServerObject" %> +<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %> + +<%@ page import="com.sipai.entity.base.MainConfig" %> +<% request.setAttribute("type_pro", MainConfig.type_pro); %> +<% request.setAttribute("type_safe", MainConfig.type_safe); %> +<% request.setAttribute("type_eff", MainConfig.type_eff); %> +<% request.setAttribute("type_pic", MainConfig.type_pic); %> + + + + + <%= ServerObject.atttable.get("TOPTITLE")%> + + + + + + + + + + + + + + +
+ +
+
+
+ <%--图片--%> + + +
+
+
+
+
+ 水量及电耗 +
+
+ +
+
-
+
-
+
+
+
-
+
-
+
+ +
+
-
+
-
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+ 一车间 +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+
+
+
+
+
+
+
+ 二车间 +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+ - +
+
+
+
+
+
+
+
+
+
+ +
+ + + \ No newline at end of file diff --git a/src/main/webapp/jsp/sparepart/sewageList.jsp b/src/main/webapp/jsp/sparepart/sewageList.jsp index 81552407..f4764e26 100644 --- a/src/main/webapp/jsp/sparepart/sewageList.jsp +++ b/src/main/webapp/jsp/sparepart/sewageList.jsp @@ -354,7 +354,9 @@ var buts= ''; buts+= ''; buts+= ''; - buts+= ''; + + // buts+= ''; + buts+= ''; buts+= ''; buts+= ''; diff --git a/src/main/webapp/jsp/user/jobList.jsp b/src/main/webapp/jsp/user/jobList.jsp index 00745b75..2fafbc06 100644 --- a/src/main/webapp/jsp/user/jobList.jsp +++ b/src/main/webapp/jsp/user/jobList.jsp @@ -20,7 +20,10 @@ src="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/js/bootstrap-switch.min.js" charset="utf-8">