admin-produce.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <!DOCTYPE html>
  2. <html lang=zh-cn>
  3. <head>
  4. <meta charset=utf-8>
  5. <title>网络版后台管理</title>
  6. <meta name=description content=>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="renderer" content="webkit">
  9. <link rel=stylesheet href=css/bootstrap.css>
  10. <link rel=stylesheet href=css/style.css>
  11. <script src=js/jquery-1.9.1.min.js></script>
  12. <script src=js/bootstrap.js></script>
  13. <script src=js/global.js></script>
  14. <script src=js/echarts.js></script>
  15. <script type=js/macarons.js></script>
  16. </head>
  17. <body>
  18. <div class="headerWrapper"></div>
  19. <div class="wrapper">
  20. <div class="leftWrapper">
  21. <div class="leftContent">
  22. <div class="logo logoWl">
  23. <h2>网<span class="logoInfo">络版后台</span><span class="caret"></span></h2>
  24. <div class="logoList">
  25. <ul>
  26. <li><a href="#">文库</a></li>
  27. <li><a href="#">问答</a></li>
  28. <li><a href="#">价格信息</a></li>
  29. <li><a href="#">官网</a></li>
  30. <li><a href="#">通行帐号</a></li>
  31. </ul>
  32. </div>
  33. </div>
  34. <div class="subMenu">
  35. <h2 class="subMenuTitle"><a><i class="iconImg icon-">D</i><div class="subMenuText">用户<span class="fR caret caret-triangle"></span></div></a></h2>
  36. <div class="subMenuContent">
  37. <ul>
  38. <li><a href="admin-newsUser.html">最新用户</a></li>
  39. <li><a href="admin-onlineUser.html">在线用户</a></li>
  40. <li><a href="admin-allUser.html">所有用户</a></li>
  41. </ul>
  42. </div>
  43. </div>
  44. <div class="subMenu">
  45. <h2 class="subMenuTitle"><a class="active"><i class="iconImg icon-">M</i><div class="subMenuText">数据分析<span class="fR caret caret-triangle"></span></div></a></h2>
  46. <div class="subMenuContent">
  47. <ul>
  48. <li><a href="admin-users.html">用户登录分析</a></li>
  49. <li><a href="admin-produce.html">产品分析</a></li>
  50. <li><a href="admin-count.html">客户分布</a></li>
  51. <li><a href="admin-channel.html">获取渠道</a></li>
  52. </ul>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="userMain">
  57. <div class="userContent">
  58. <span><img class="userImg" src="images/01.jpg"></span>
  59. <div class="subMenuText userName"><a href="admin-userinfo.html">管理员</a> <a class="exit" href="#"><span class="glyphicon glyphicon-log-out"></span> 退出</a></div>
  60. </div>
  61. </div>
  62. </div>
  63. <!-- leftWrapper end -->
  64. <div class="mainWrapper container-fluid">
  65. <div class="page-header pageTop">
  66. <h3>产品分析
  67. <small class="btnTime">
  68. <select class="form-control input-sm" style="width:auto; display:inline-block;">
  69. <option>全部</option>
  70. <option>重庆</option>
  71. <option>湖南</option>
  72. <option>广东</option>
  73. <option>山东</option>
  74. <option>四川</option>
  75. <option>江西</option>
  76. <option>甘肃</option>
  77. <option>广西</option>
  78. <option>安徽</option>
  79. <option>河南</option>
  80. <option>内蒙古</option>
  81. <option>云南</option>
  82. <option>浙江</option>
  83. <option>北京</option>
  84. <option>贵州</option>
  85. <option>江苏</option>
  86. <option>湖北</option>
  87. <option>福建</option>
  88. <option>陕西</option>
  89. <option>吉林</option>
  90. <option>新疆</option>
  91. <option>河北</option>
  92. <option>辽宁</option>
  93. <option>山西</option>
  94. <option>黑龙江</option>
  95. <option>天津</option>
  96. <option>上海</option>
  97. <option>海南</option>
  98. <option>青海</option>
  99. <option>西藏</option>
  100. <option>宁夏</option>
  101. <option>其他</option>
  102. </select>
  103. </small>
  104. </h3>
  105. </div>
  106. <div class="chartContent">
  107. <div class="CountMain" id="CountMainArea" style="width:100%; height:350px;"></div>
  108. </div>
  109. <div class="proSection clearfix">
  110. <div class="fL chartContent" style="width:60%;">
  111. <div class="CountMain" id="CountMainPro" style="height:350px;"></div>
  112. </div>
  113. <div class="fR tableContent" style="width:35%; height:345px; overflow-y:auto;">
  114. <table class="table table-hover">
  115. <thead>
  116. <tr>
  117. <th>产品名称</th>
  118. <th>人数(人)</th>
  119. </tr>
  120. </thead>
  121. <tr>
  122. <td><a href="admin-produceList.html">造价全国</a></td>
  123. <td>1830</td>
  124. </tr>
  125. <tr>
  126. <td><a href="admin-produceList.html">造价广东</a></td>
  127. <td>563</td>
  128. </tr>
  129. <tr>
  130. <td><a href="admin-produceList.html">标后预算</a></td>
  131. <td>223</td>
  132. </tr>
  133. <tr>
  134. <td><a href="admin-produceList.html">清单编制</a></td>
  135. <td>160</td>
  136. </tr>
  137. </table>
  138. </div>
  139. </div>
  140. </div>
  141. <!-- mainWrapper end -->
  142. </div>
  143. <script type="text/javascript">
  144. // 基于准备好的dom,初始化echarts实例
  145. var myChart = echarts.init(document.getElementById('CountMainArea'), 'macarons');
  146. option = {
  147. title: {
  148. text: '产品分析'
  149. },
  150. tooltip: {
  151. trigger: 'axis'
  152. },
  153. legend: {
  154. data:['造价全国','造价广东','标后预算','清单编制']
  155. },
  156. grid: {
  157. left: '3%',
  158. right: '4%',
  159. bottom: '3%',
  160. containLabel: true
  161. },
  162. toolbox: {
  163. feature: {
  164. saveAsImage: {}
  165. }
  166. },
  167. xAxis: {
  168. name:'日期',
  169. type: 'category',
  170. boundaryGap: false,
  171. data: ['01-01','01-02','01-03','01-04','01-05','01-06','01-07','01-08','01-09','01-10','01-11','01-12','01-13','01-14','01-15','01-16','01-17','01-18','01-19','01-20','01-21','01-22','01-23','01-24','01-25','01-26','01-27','01-28','01-29','01-30']
  172. },
  173. yAxis: {
  174. type: 'value'
  175. },
  176. series: [
  177. {
  178. name:'造价全国',
  179. type:'line',
  180. stack: '总量',
  181. data:[120, 132, 101, 134, 90, 230, 210,120,132,101,120, 132, 101, 134, 90, 230, 210,120,132,101,120, 132, 101, 134, 90, 230, 210,120,132,101]
  182. },
  183. {
  184. name:'造价广东',
  185. type:'line',
  186. stack: '总量',
  187. data:[220, 182, 191, 234, 290, 330, 310,220,182,191,220, 182, 191, 234, 290, 330, 310,220,182,191,220, 182, 191, 234, 290, 330, 310,220,182,191]
  188. },
  189. {
  190. name:'标后预算',
  191. type:'line',
  192. stack: '总量',
  193. data:[150, 232, 201, 154, 190, 330, 410,150,232,201,150, 232, 201, 154, 190, 330, 410,150,232,201,150, 232, 201, 154, 190, 330, 410,150,232,201]
  194. },
  195. {
  196. name:'清单编制',
  197. type:'line',
  198. stack: '总量',
  199. data:[320, 332, 301, 334, 390, 330, 320,320,332,301,320, 332, 301, 334, 390, 330, 320,320,332,301,320, 332, 301, 334, 390, 330, 320,320,332,301]
  200. }
  201. ]
  202. };
  203. // 使用刚指定的配置项和数据显示图表。
  204. myChart.setOption(option);
  205. // 基于准备好的dom,初始化echarts实例
  206. var myChart = echarts.init(document.getElementById('CountMainPro'), 'macarons');
  207. // 指定图表的配置项和数据
  208. option = {
  209. title : {
  210. text:'产品统计',
  211. x:'center',
  212. textStyle:{
  213. fontSize:20,
  214. fontFamily : "微软雅黑",
  215. }
  216. },
  217. tooltip : {
  218. trigger: 'item',
  219. formatter: "{a} <br/>{b} : {c} ({d}%)"
  220. },
  221. legend: {
  222. //orient: 'vertical',
  223. x:'center',
  224. y:'bottom',
  225. data: ['造价全国','造价广东','标后预算','清单编制']
  226. },
  227. series : [
  228. {
  229. name: '产品统计',
  230. type: 'pie',
  231. radius : '55%',
  232. center: ['50%', '50%'],
  233. data:[
  234. {value:1830, name:'造价全国'},
  235. {value:563, name:'造价广东'},
  236. {value:223, name:'标后预算'},
  237. {value:160, name:'清单编制'}
  238. ],
  239. itemStyle: {
  240. emphasis: {
  241. shadowBlur: 10,
  242. shadowOffsetX: 0,
  243. shadowColor: 'rgba(0, 0, 0, 0.5)'
  244. }
  245. }
  246. }
  247. ]
  248. };
  249. // 使用刚指定的配置项和数据显示图表。
  250. myChart.setOption(option);
  251. </script>
  252. </body>
  253. </html>