projectCostWarnDemoRpt4ZJL-detail.jsp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <!DOCTYPE html>
  2. <html>
  3. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  4. <%@include file="/context/mytags.jsp"%>
  5. <c:set var="ctxPath" value="${pageContext.request.contextPath}" />
  6. <!-- context path -->
  7. <!-- update-begin--Author:xuelin Date:20170428 for:#1755 【美化】用户分析报表,多tab格式,是否可以美化 需要改底层-------------------- -->
  8. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  9. <head>
  10. <meta charset="utf-8">
  11. <title>美都环卫微管理</title>
  12. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  13. <meta name="apple-mobile-web-app-capable" content="yes">
  14. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  15. <!--标准mui.css-->
  16. <link rel="stylesheet" href="plug-in/mui/css/mui.min.css">
  17. <!--App自定义的css-->
  18. <link rel="stylesheet" type="text/css" href="plug-in/mui/css/app.css"/>
  19. <style>
  20. @font-face {
  21. font-family: "iconfont";
  22. src: url('../css/iconfont.ttf') format('truetype')
  23. }
  24. .mui-icon-back::before, .mui-icon-left-nav::before {
  25. content: '\e624';
  26. color:red;
  27. }
  28. .mui-table h4,.mui-table h5,.mui-table .mui-h5,.mui-table .mui-h6,.mui-table p{
  29. margin-top: 0;
  30. }
  31. .mui-table h4{
  32. line-height: 21px;
  33. font-weight: 500;
  34. }
  35. .mui-table .oa-icon{
  36. position: absolute;
  37. right:0;
  38. bottom: 0;
  39. }
  40. .mui-table .oa-icon-star-filled{
  41. color:#f14e41;
  42. }
  43. .divtitle{
  44. margin: 20px 15px 7px;
  45. color: red;
  46. font-size: 15px;
  47. }
  48. .mui-popup{position: fixed;}
  49. .detailTableName{
  50. font-size:16px;
  51. text-align:"left";
  52. }
  53. .detailTableValue{
  54. font-size:16px;
  55. }
  56. .mui-popup {
  57. text-align: right;
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <header class="mui-bar mui-bar-nav">
  63. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  64. <h1 class="mui-title">${projectname }</h1>
  65. </header>
  66. <div class="mui-content">
  67. <div id="echarts-line" style="height:600px;">
  68. <div id="container" style="height:80%;"></div>
  69. </div>
  70. </div>
  71. </body>
  72. <script src="plug-in/mui/mui.min.js"></script>
  73. <script src = "plug-in/stats/statscommon.js"></script>
  74. <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
  75. <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
  76. <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
  77. <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
  78. <!-- <script src = "webpage/cn/com/lzt/wxviewer/wxMultirowViewer.js"></script> -->
  79. <%-- <c:if test='${not empty defindedJS}'>
  80. <script src = "${defindedJS}"></script>
  81. </c:if> --%>
  82. <script>
  83. mui.init({
  84. swipeBack:true //启用右滑关闭功能
  85. });
  86. $(function() {
  87. $(document).ready(function() {
  88. // attendanceStatssearch();
  89. });
  90. });
  91. /* function attendanceStatssearch(){
  92. var url = '${htmlurl}';
  93. handleAjaxSimple(url, "", handleSuccess);
  94. }
  95. function handleSuccess(data){
  96. document.getElementById("mui-table-view").innerHTML=data.obj;
  97. }
  98. function getHeight(className) {
  99. var height = $(className).height();
  100. return height;
  101. }
  102. function setLineHeight(className) {
  103. var height = getHeight(className) + "px";
  104. $(className).css("line-height",height);
  105. } */
  106. var dom = document.getElementById("container");
  107. var myChart = echarts.init(dom);
  108. window.onresize = myChart.resize; // 适应屏幕放大缩小
  109. var app = {};
  110. option = null;
  111. option = {
  112. baseOption: {
  113. title : {
  114. subtext : '单位:万元 ',
  115. x : 'right'
  116. },
  117. tooltip: {
  118. trigger: 'axis'
  119. },
  120. legend: {
  121. top:"50px",
  122. data:['预算','预算执行']
  123. },
  124. toolbox: {
  125. show: true,
  126. feature: {
  127. /* magicType: {show: true, type: ['stack', 'tiled']},*/
  128. saveAsImage: {show: true} //可下载图片
  129. }
  130. },
  131. grid: {
  132. left: '10%', //设置canvas图距左的距离
  133. top: '20%',
  134. right: '10%',
  135. bottom: '10%'
  136. },
  137. xAxis: {
  138. type: 'category',
  139. boundaryGap: false,
  140. data: ['一月','二月','三月','四月','五月','六月','七月']
  141. },
  142. yAxis: {
  143. type: 'value'
  144. },
  145. series: [
  146. {
  147. name: '预算',
  148. type: 'line',
  149. smooth:false,
  150. //关键点,为true是不支持虚线,实线就用true
  151. itemStyle:{
  152. normal:{
  153. lineStyle:{
  154. width:2,
  155. color:"red",
  156. type:'dotted' //'dotted'虚线 'solid'实线
  157. }
  158. }
  159. },
  160. data: [50, 100, 150, 200, 250, 300, 350]
  161. },
  162. {
  163. name: '预算执行',
  164. type: 'line',
  165. smooth:true,
  166. itemStyle:{
  167. normal:{
  168. lineStyle:{
  169. color:"green"
  170. }
  171. }
  172. },
  173. data: [24, 66, 102, 156, 241, 298, 367]
  174. }]
  175. }
  176. };
  177. if (option && typeof option === "object") {
  178. myChart.setOption(option, true);
  179. }
  180. </script>
  181. </html>