boss.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  6. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  7. <title>工厂产能管理页</title>
  8. <!-- Favicon-->
  9. <link rel="icon" href="favicon.ico" type="image/x-icon">
  10. <!-- Google Fonts -->
  11. <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
  12. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
  13. <!-- Bootstrap Core Css -->
  14. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  15. <!-- Waves Effect Css -->
  16. <link href="plugins/node-waves/waves.css" rel="stylesheet" />
  17. <!-- Animation Css -->
  18. <link href="plugins/animate-css/animate.css" rel="stylesheet" />
  19. <!-- Morris Chart Css-->
  20. <link href="plugins/morrisjs/morris.css" rel="stylesheet" />
  21. <!-- Custom Css -->
  22. <link href="css/style.css" rel="stylesheet">
  23. <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
  24. <link href="css/themes/all-themes.css" rel="stylesheet" />
  25. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  26. <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  27. <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  28. <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
  29. <meta name="viewport" content="width=device-width, initial-scale=1">
  30. <style>
  31. /* css 代码 */
  32. </style>
  33. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  34. <script src="https://img.hcharts.cn/highcharts/highcharts-more.js"></script>
  35. <script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
  36. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  37. </head>
  38. <body class="theme-red">
  39. <script>
  40. function addContent(name){
  41. console.log( $(name));
  42. $(name).tab('show');
  43. }
  44. </script>
  45. <section class="content" style="margin: 0 auto">
  46. <div class="container-fluid">
  47. <!-- Widgets -->
  48. <div class="row" >
  49. <div class=" col-lg-2 col-md-2 col-sm-6 col-xs-12" >
  50. <div class="info-box bg-pink text-center " onclick="addContent('#capacity-tab')" >
  51. <div class="row text-center" style="">
  52. <div class="col-12">产能</div>
  53. <div class="col-12">1224123</div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class=" col-lg-2 col-md-2 col-sm-6 col-xs-12" >
  58. <div class="info-box bg-pink text-center " onclick="addContent('#home-tab')" >
  59. <div class="row text-center" style="">
  60. <div class="col-12">合格数</div>
  61. <div class="col-12">123123</div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="col-lg-2 col-md-2 col-sm-6 col-xs-12">
  66. <div class="info-box bg-cyan "onclick="addContent('#profile-tab')">
  67. <div class="row text-center" style="">
  68. <div class="col-12">不合格数</div>
  69. <div class="col-12">555</div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="col-lg-2 col-md-2 col-sm-6 col-xs-12">
  74. <div class="info-box bg-light-green " onclick="addContent('#contact-tab')">
  75. <div class="row text-center" style="">
  76. <div class="col-12">堆积数</div>
  77. <div class="col-12">4445</div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="col-lg-2 col-md-2 col-sm-6 col-xs-12">
  82. <div class="info-box bg-orange " onclick="addContent('#time-tab')">
  83. <div class="row text-center" style="">
  84. <div class="col-12">工作时长</div>
  85. <div class="col-12">2245</div>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="col-lg-2 col-md-2 col-sm-6 col-xs-12">
  90. <div class="info-box bg-orange " onclick="addContent('#Unqualified-tab')">
  91. <div class="row text-center" style="">
  92. <div class="col-12">不良率</div>
  93. <div class="col-12">20%</div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div>
  99. <ul class="nav nav-tabs" id="myTab" role="tablist" style="display: none">
  100. <li class="nav-item">
  101. <a class="nav-link active" id="capacity-tab" data-toggle="tab" href="#capacity" role="tab" aria-controls="capacity" aria-selected="true">Capacity</a>
  102. </li>
  103. <li class="nav-item">
  104. <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a>
  105. </li>
  106. <li class="nav-item">
  107. <a class="nav-link" id="profile-tab" data-toggle="tab" href="#ppr" role="tab" aria-controls="ppr" aria-selected="false">Profile</a>
  108. </li>
  109. <li class="nav-item">
  110. <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false">Contact</a>
  111. </li>
  112. <li class="nav-item">
  113. <a class="nav-link" id="time-tab" data-toggle="tab" href="#time" role="tab" aria-controls="time" aria-selected="false">Time</a>
  114. </li>
  115. <li class="nav-item">
  116. <a class="nav-link" id="Unqualified-tab" data-toggle="tab" href="#Unqualified" role="tab" aria-controls="Unqualified" aria-selected="false">Unqualified</a>
  117. </li>
  118. </ul>
  119. <div class="tab-content" id="myTabContent">
  120. <div class="tab-pane" id="capacity" role="tabpanel" aria-labelledby="capacity-tab">
  121. <div id="container0"class="text-center" style="width: 100%;height:300px;margin: 0 auto"></div>
  122. </div>
  123. <div class="tab-pane" id="home" role="tabpanel" aria-labelledby="home-tab">
  124. <div id="container1"class="text-center" style="width: 100%;height:300px;margin: 0 auto"></div>
  125. </div>
  126. <div class="tab-pane" id="ppr" role="tabpanel" aria-labelledby="profile-tab">
  127. <div id="container2" style="width:100%;height:300px;margin: 0 auto"></div>
  128. </div>
  129. <div class="tab-pane" id="contact" role="tabpanel" aria-labelledby="contact-tab">
  130. <div id="container3" style="width:100%;height:300px;margin: 0 auto"></div>
  131. </div>
  132. <div class="tab-pane" id="time" role="tabpanel" aria-labelledby="time-tab">
  133. <div id="container4" style="width:100%;height:300px;margin: 0 auto"></div>
  134. </div>
  135. <div class="tab-pane" id="Unqualified" role="tabpanel" aria-labelledby="Unqualified-tab">
  136. <div id="container5" style="width:100%;height:300px;margin: 0 auto"></div>
  137. </div>
  138. </div>
  139. </div>
  140. <!-- #END# Widgets -->
  141. <div class="cow">
  142. <div class="card">
  143. <div class="body">
  144. <div class="table-responsive">
  145. <table class="table table-hover dashboard-task-infos">
  146. <thead>
  147. <tr>
  148. <th>不良工位</th>
  149. <th>数量</th>
  150. <th>良品工位</th>
  151. <th>数量</th>
  152. </tr>
  153. </thead>
  154. <tbody id="rank-one">
  155. <tr>
  156. <td>张三</td>
  157. <td>11</td>
  158. <td>Task A</td>
  159. <td>22</td>
  160. </tr>
  161. <tr>
  162. <td>李四</td>
  163. <td>33</td>
  164. <td>Task B</td>
  165. <td>44</td>
  166. </tr>
  167. <tr>
  168. <td>王五</td>
  169. <td>21</td>
  170. <td>Task C</td>
  171. <td>12</td>
  172. </tr>
  173. </tbody>
  174. </table>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. <!-- CPU Usage -->
  180. <div class="row clearfix">
  181. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  182. <div class="card">
  183. <div class="header">
  184. <div class="row clearfix">
  185. <div class="col-xs-12 col-sm-6">
  186. <h2>CPU USAGE (%)</h2>
  187. </div>
  188. <div class="col-xs-12 col-sm-6 align-right">
  189. <div class="switch panel-switch-btn">
  190. <span class="m-r-10 font-12">REAL TIME</span>
  191. <label>OFF<input type="checkbox" id="realtime" checked><span class="lever switch-col-cyan"></span>ON</label>
  192. </div>
  193. </div>
  194. </div>
  195. <ul class="header-dropdown m-r--5">
  196. <li class="dropdown">
  197. <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
  198. <i class="material-icons">more_vert</i>
  199. </a>
  200. <ul class="dropdown-menu pull-right">
  201. <li><a href="javascript:void(0);">Action</a></li>
  202. <li><a href="javascript:void(0);">Another action</a></li>
  203. <li><a href="javascript:void(0);">Something else here</a></li>
  204. </ul>
  205. </li>
  206. </ul>
  207. </div>
  208. <div class="body">
  209. <div id="real_time_chart" class="dashboard-flot-chart"></div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <!-- #END# CPU Usage -->
  215. <div class="row clearfix">
  216. <!-- Visitors -->
  217. <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
  218. <div class="card">
  219. <div class="body bg-pink">
  220. <div class="sparkline" data-type="line" data-spot-Radius="4" data-highlight-Spot-Color="rgb(233, 30, 99)" data-highlight-Line-Color="#fff"
  221. data-min-Spot-Color="rgb(255,255,255)" data-max-Spot-Color="rgb(255,255,255)" data-spot-Color="rgb(255,255,255)"
  222. data-offset="90" data-width="100%" data-height="92px" data-line-Width="2" data-line-Color="rgba(255,255,255,0.7)"
  223. data-fill-Color="rgba(0, 188, 212, 0)">
  224. 12,10,9,6,5,6,10,5,7,5,12,13,7,12,11
  225. </div>
  226. <ul class="dashboard-stat-list">
  227. <li>
  228. TODAY
  229. <span class="pull-right"><b>1 200</b> <small>USERS</small></span>
  230. </li>
  231. <li>
  232. YESTERDAY
  233. <span class="pull-right"><b>3 872</b> <small>USERS</small></span>
  234. </li>
  235. <li>
  236. LAST WEEK
  237. <span class="pull-right"><b>26 582</b> <small>USERS</small></span>
  238. </li>
  239. </ul>
  240. </div>
  241. </div>
  242. </div>
  243. <!-- #END# Visitors -->
  244. <!-- Latest Social Trends -->
  245. <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
  246. <div class="card">
  247. <div class="body bg-cyan">
  248. <div class="m-b--35 font-bold">LATEST SOCIAL TRENDS</div>
  249. <ul class="dashboard-stat-list">
  250. <li>
  251. #socialtrends
  252. <span class="pull-right">
  253. <i class="material-icons">trending_up</i>
  254. </span>
  255. </li>
  256. <li>
  257. #materialdesign
  258. <span class="pull-right">
  259. <i class="material-icons">trending_up</i>
  260. </span>
  261. </li>
  262. <li>#adminbsb</li>
  263. <li>#freeadmintemplate</li>
  264. <li>#bootstraptemplate</li>
  265. <li>
  266. #freehtmltemplate
  267. <span class="pull-right">
  268. <i class="material-icons">trending_up</i>
  269. </span>
  270. </li>
  271. </ul>
  272. </div>
  273. </div>
  274. </div>
  275. <!-- #END# Latest Social Trends -->
  276. <!-- Answered Tickets -->
  277. <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
  278. <div class="card">
  279. <div class="body bg-teal">
  280. <div class="font-bold m-b--35">ANSWERED TICKETS</div>
  281. <ul class="dashboard-stat-list">
  282. <li>
  283. TODAY
  284. <span class="pull-right"><b>12</b> <small>TICKETS</small></span>
  285. </li>
  286. <li>
  287. YESTERDAY
  288. <span class="pull-right"><b>15</b> <small>TICKETS</small></span>
  289. </li>
  290. <li>
  291. LAST WEEK
  292. <span class="pull-right"><b>90</b> <small>TICKETS</small></span>
  293. </li>
  294. <li>
  295. LAST MONTH
  296. <span class="pull-right"><b>342</b> <small>TICKETS</small></span>
  297. </li>
  298. <li>
  299. LAST YEAR
  300. <span class="pull-right"><b>4 225</b> <small>TICKETS</small></span>
  301. </li>
  302. <li>
  303. ALL
  304. <span class="pull-right"><b>8 752</b> <small>TICKETS</small></span>
  305. </li>
  306. </ul>
  307. </div>
  308. </div>
  309. </div>
  310. <!-- #END# Answered Tickets -->
  311. </div>
  312. <div class="row clearfix">
  313. <!-- Task Info -->
  314. <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
  315. <div class="card">
  316. <div class="header">
  317. <h2>TASK INFOS</h2>
  318. <ul class="header-dropdown m-r--5">
  319. <li class="dropdown">
  320. <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
  321. <i class="material-icons">more_vert</i>
  322. </a>
  323. <ul class="dropdown-menu pull-right">
  324. <li><a href="javascript:void(0);">Action</a></li>
  325. <li><a href="javascript:void(0);">Another action</a></li>
  326. <li><a href="javascript:void(0);">Something else here</a></li>
  327. </ul>
  328. </li>
  329. </ul>
  330. </div>
  331. <div class="body">
  332. <div class="table-responsive">
  333. <table class="table table-hover dashboard-task-infos">
  334. <thead>
  335. <tr>
  336. <th>#</th>
  337. <th>Task</th>
  338. <th>Status</th>
  339. <th>Manager</th>
  340. <th>Progress</th>
  341. </tr>
  342. </thead>
  343. <tbody >
  344. <tr>
  345. <td>2</td>
  346. <td>Task B</td>
  347. <td><span class="label bg-blue">To Do</span></td>
  348. <td>John Doe</td>
  349. <td>
  350. <div class="progress">
  351. <div class="progress-bar bg-blue" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"></div>
  352. </div>
  353. </td>
  354. </tr>
  355. <tr>
  356. <td>3</td>
  357. <td>Task C</td>
  358. <td><span class="label bg-light-blue">On Hold</span></td>
  359. <td>John Doe</td>
  360. <td>
  361. <div class="progress">
  362. <div class="progress-bar bg-light-blue" role="progressbar" aria-valuenow="72" aria-valuemin="0" aria-valuemax="100" style="width: 72%"></div>
  363. </div>
  364. </td>
  365. </tr>
  366. <tr>
  367. <td>4</td>
  368. <td>Task D</td>
  369. <td><span class="label bg-orange">Wait Approvel</span></td>
  370. <td>John Doe</td>
  371. <td>
  372. <div class="progress">
  373. <div class="progress-bar bg-orange" role="progressbar" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100" style="width: 95%"></div>
  374. </div>
  375. </td>
  376. </tr>
  377. <tr>
  378. <td>5</td>
  379. <td>Task E</td>
  380. <td>
  381. <span class="label bg-red">Suspended</span>
  382. </td>
  383. <td>John Doe</td>
  384. <td>
  385. <div class="progress">
  386. <div class="progress-bar bg-red" role="progressbar" aria-valuenow="87" aria-valuemin="0" aria-valuemax="100" style="width: 87%"></div>
  387. </div>
  388. </td>
  389. </tr>
  390. </tbody>
  391. </table>
  392. </div>
  393. </div>
  394. </div>
  395. </div>
  396. <!-- #END# Task Info -->
  397. <!-- Browser Usage -->
  398. <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
  399. <div class="card">
  400. <div class="header">
  401. <h2>BROWSER USAGE</h2>
  402. <ul class="header-dropdown m-r--5">
  403. <li class="dropdown">
  404. <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
  405. <i class="material-icons">more_vert</i>
  406. </a>
  407. <ul class="dropdown-menu pull-right">
  408. <li><a href="javascript:void(0);">Action</a></li>
  409. <li><a href="javascript:void(0);">Another action</a></li>
  410. <li><a href="javascript:void(0);">Something else here</a></li>
  411. </ul>
  412. </li>
  413. </ul>
  414. </div>
  415. <div class="body">
  416. <div id="donut_chart" class="dashboard-donut-chart"></div>
  417. </div>
  418. </div>
  419. </div>
  420. <!-- #END# Browser Usage -->
  421. </div>
  422. </div>
  423. </section>
  424. <!-- Jquery Core Js -->
  425. <script src="plugins/jquery/jquery.min.js"></script>
  426. <!-- Bootstrap Core Js -->
  427. <script src="plugins/bootstrap/js/bootstrap.js"></script>
  428. <!-- Select Plugin Js -->
  429. <script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
  430. <!-- Slimscroll Plugin Js -->
  431. <script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
  432. <!-- Waves Effect Plugin Js -->
  433. <script src="plugins/node-waves/waves.js"></script>
  434. <!-- Jquery CountTo Plugin Js -->
  435. <script src="plugins/jquery-countto/jquery.countTo.js"></script>
  436. <!-- Morris Plugin Js -->
  437. <script src="plugins/raphael/raphael.min.js"></script>
  438. <script src="plugins/morrisjs/morris.js"></script>
  439. <!-- ChartJs -->
  440. <script src="plugins/chartjs/Chart.bundle.js"></script>
  441. <!-- Flot Charts Plugin Js -->
  442. <script src="plugins/flot-charts/jquery.flot.js"></script>
  443. <script src="plugins/flot-charts/jquery.flot.resize.js"></script>
  444. <script src="plugins/flot-charts/jquery.flot.pie.js"></script>
  445. <script src="plugins/flot-charts/jquery.flot.categories.js"></script>
  446. <script src="plugins/flot-charts/jquery.flot.time.js"></script>
  447. <!-- Sparkline Chart Plugin Js -->
  448. <script src="plugins/jquery-sparkline/jquery.sparkline.js"></script>
  449. <!-- Custom Js -->
  450. <script src="js/admin.js"></script>
  451. <script src="js/pages/index.js"></script>
  452. <!-- Demo Js -->
  453. <script src="js/demo.js"></script>
  454. <script>
  455. function get_data(url, callback){
  456. if(la.anyone.alldata){
  457. callback([
  458. {name:"张三", id:133, approve:300, decline:400, Accumulate:1000,worktime:1},
  459. {name:"李四", id:133, approve:300, decline:400, Accumulate:1000,worktime:2},
  460. ]);
  461. return;
  462. }
  463. callback([{x:1527957798468,y:3000},{x:1527957799468,y:3000},{x:1527957800468,y:3000.5},{x:1527957801468,y:3001}]);
  464. }
  465. get_data('la.acceptedCount.3600',mmm);
  466. function mmm(shuju) {
  467. console.log("------ getting la.acceptedCount.3000 -------")
  468. console.log(shuju);
  469. var chart = Highcharts.chart('container1',{
  470. chart: {
  471. type: 'spline'
  472. },
  473. title: {
  474. text: '月平均降雨量'
  475. },
  476. subtitle: {
  477. text: '数据来源: WorldClimate.com'
  478. },
  479. xAxis: {
  480. tickInterval: 1000, // 坐标轴刻度间隔为一星期
  481. tickWidth: 0,
  482. gridLineWidth: 1,
  483. // 时间格式化字符
  484. // 默认会根据当前的刻度间隔取对应的值,即当刻度间隔为一周时,取 week 值
  485. dateTimeLabelFormats: {
  486. week: '%Y-%m-%d'
  487. }
  488. },
  489. yAxis: {
  490. // min: 0,
  491. // title: {
  492. // text: '降雨量 (mm)'
  493. // }
  494. },
  495. tooltip: {
  496. // head + 每个 point + footer 拼接成完整的 table
  497. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  498. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  499. '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
  500. footerFormat: '</table>',
  501. shared: true,
  502. useHTML: true
  503. },
  504. plotOptions: {
  505. column: {
  506. borderWidth: 0
  507. }
  508. },
  509. series: [{
  510. name: '东京',
  511. data: shuju
  512. }]
  513. });
  514. }
  515. setInterval(lll,100);
  516. function lll() {
  517. }
  518. get_data("la.anyone.alldata", showAllData);
  519. function showAllData(shuju){
  520. var htmlbody = "";
  521. var i = 0;
  522. for(i=0; i < shuju.length; i++){
  523. var one_person = shuju[i];
  524. htmlbody += "<tr>";
  525. htmlbody += " <tr>\n" +
  526. " <td>"+one_person.name+"("+one_person.id+")</td>\n" +
  527. " <td>"+one_person.approve+"</td>\n" +
  528. " <td>"+one_person.decline+"</td>\n" +
  529. " <td>"+one_person.Accumulate+"</td>\n" +
  530. " <td>"+one_person.worktime+"</td>\n" +
  531. " <td>\n" +
  532. " <div class=\"progress\">\n" +
  533. " <div class=\"progress-bar bg-green\" role=\"progressbar\" aria-valuenow=\"62\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 62%\"></div>\n" +
  534. " </div>\n" +
  535. " </td>\n" +
  536. " </tr>";
  537. htmlbody += "</tr>";
  538. }
  539. $("#rank-one").html(htmlbody);
  540. }
  541. </script>
  542. <script>
  543. var chart = Highcharts.chart('container0', {
  544. title: {
  545. text: '产能'
  546. },
  547. /*subtitle: {
  548. text: '普通的'
  549. },*/
  550. xAxis: {
  551. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  552. },
  553. series: [{
  554. type: 'column',
  555. colorByPoint: true,
  556. data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
  557. showInLegend: false
  558. }]
  559. });
  560. </script>
  561. <script>
  562. var chart = Highcharts.chart('container1', {
  563. title: {
  564. text: '合格数'
  565. },
  566. /* subtitle: {
  567. text: '数据来源:thesolarfoundation.com'
  568. },*/
  569. yAxis: {
  570. title: {
  571. text: '就业人数'
  572. }
  573. },
  574. legend: {
  575. layout: 'vertical',
  576. align: 'right',
  577. verticalAlign: 'middle'
  578. },
  579. plotOptions: {
  580. series: {
  581. label: {
  582. connectorAllowed: false
  583. },
  584. pointStart: 2010
  585. }
  586. },
  587. series: [{
  588. name: '安装,实施人员',
  589. data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
  590. }, {
  591. name: '工人',
  592. data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
  593. }, {
  594. name: '销售',
  595. data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
  596. }, {
  597. name: '项目开发',
  598. data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]
  599. }, {
  600. name: '其他',
  601. data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
  602. }],
  603. responsive: {
  604. rules: [{
  605. condition: {
  606. maxWidth: 500
  607. },
  608. chartOptions: {
  609. legend: {
  610. layout: 'horizontal',
  611. align: 'center',
  612. verticalAlign: 'bottom'
  613. }
  614. }
  615. }]
  616. }
  617. });
  618. </script>
  619. <script>
  620. var chart = Highcharts.chart('container2', {
  621. chart: {
  622. type: 'bar'
  623. },
  624. title: {
  625. text: '不合格数'
  626. },
  627. xAxis: {
  628. categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']
  629. },
  630. yAxis: {
  631. min: 0,
  632. title: {
  633. text: '水果消费总量'
  634. }
  635. },
  636. legend: {
  637. /* 图例显示顺序反转
  638. * 这是因为堆叠的顺序默认是反转的,可以设置
  639. * yAxis.reversedStacks = false 来达到类似的效果
  640. */
  641. reversed: true
  642. },
  643. plotOptions: {
  644. series: {
  645. stacking: 'normal'
  646. }
  647. },
  648. series: [{
  649. name: '小张',
  650. data: [5, 3, 4, 7, 2]
  651. }, {
  652. name: '小彭',
  653. data: [2, 2, 3, 2, 1]
  654. }, {
  655. name: '小潘',
  656. data: [3, 4, 4, 2, 5]
  657. }]
  658. });
  659. </script>
  660. <script>
  661. var chart = Highcharts.chart('container3', {
  662. chart: {
  663. type: 'column'
  664. },
  665. title: {
  666. text: '堆积数'
  667. },
  668. /*subtitle: {
  669. text: '数据截止 2017-03,来源: <a href="https://en.wikipedia.org/wiki/List_of_cities_proper_by_population">Wikipedia</a>'
  670. },*/
  671. xAxis: {
  672. type: 'category',
  673. labels: {
  674. rotation: -45 // 设置轴标签旋转角度
  675. }
  676. },
  677. yAxis: {
  678. min: 0,
  679. title: {
  680. text: '人口 (百万)'
  681. }
  682. },
  683. legend: {
  684. enabled: false
  685. },
  686. tooltip: {
  687. pointFormat: '人口总量: <b>{point.y:.1f} 百万</b>'
  688. },
  689. series: [{
  690. name: '总人口',
  691. data: [
  692. ['上海', 24.25],
  693. ['卡拉奇', 23.50],
  694. ['北京', 21.51],
  695. ['德里', 16.78],
  696. ['拉各斯', 16.06],
  697. ['天津', 15.20],
  698. ['伊斯坦布尔', 14.16],
  699. ['东京', 13.51],
  700. ['广州', 13.08],
  701. ['孟买', 12.44],
  702. ['莫斯科', 12.19],
  703. ['圣保罗', 12.03],
  704. ['深圳', 10.46],
  705. ['雅加达', 10.07],
  706. ['拉合尔', 10.05],
  707. ['首尔', 9.99],
  708. ['武汉', 9.78],
  709. ['金沙萨', 9.73],
  710. ['开罗', 9.27],
  711. ['墨西哥', 8.87]
  712. ],
  713. dataLabels: {
  714. enabled: true,
  715. rotation: -90,
  716. color: '#FFFFFF',
  717. align: 'right',
  718. format: '{point.y:.1f}', // :.1f 为保留 1 位小数
  719. y: 10
  720. }
  721. }]
  722. });
  723. </script>
  724. <script>
  725. var chart = Highcharts.chart('container4', {
  726. chart: {
  727. type: 'line'
  728. },
  729. title: {
  730. text: '工作时长'
  731. },
  732. /*/subtitle: {
  733. text: '数据来源: WorldClimate.com'
  734. },*/
  735. xAxis: {
  736. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  737. },
  738. yAxis: {
  739. title: {
  740. text: '气温 (°C)'
  741. }
  742. },
  743. plotOptions: {
  744. line: {
  745. dataLabels: {
  746. // 开启数据标签
  747. enabled: true
  748. },
  749. // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  750. enableMouseTracking: false
  751. }
  752. },
  753. series: [{
  754. name: '东京',
  755. data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
  756. }, {
  757. name: '伦敦',
  758. data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
  759. }]
  760. });
  761. </script>
  762. <script>
  763. var chart = Highcharts.chart('container5', {
  764. chart: {
  765. type: 'column'
  766. },
  767. title: {
  768. text: '不良率'
  769. },
  770. xAxis: {
  771. categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']
  772. },
  773. yAxis: {
  774. min: 0,
  775. title: {
  776. text: '水果消费总量'
  777. }
  778. },
  779. tooltip: {
  780. pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b>' +
  781. '({point.percentage:.0f}%)<br/>',
  782. //:.0f 表示保留 0 位小数,详见教程:https://www.hcharts.cn/docs/basic-labels-string-formatting
  783. shared: true
  784. },
  785. plotOptions: {
  786. column: {
  787. stacking: 'percent'
  788. }
  789. },
  790. series: [{
  791. name: '小张',
  792. data: [5, 3, 4, 7, 2]
  793. }, {
  794. name: '小彭',
  795. data: [2, 2, 3, 2, 1]
  796. }, {
  797. name: '小潘',
  798. data: [3, 4, 4, 2, 5]
  799. }]
  800. });
  801. </script>
  802. </body>
  803. </html>