main_admin.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961
  1. {extend name="common/base"/}
  2. {block name="style"}
  3. <link rel="stylesheet" href="../../../../public/static/assets/icons/main-icon/iconfont.css">
  4. <style type="text/css">
  5. .dashboard-num table {
  6. width: 100%;
  7. }
  8. .dashboard-num td {
  9. text-align: center;
  10. padding: 16px 0;
  11. width: 20%;
  12. border-left: 1px solid #f1f1f1;
  13. position: relative;
  14. }
  15. .dashboard-num td:nth-child(1) {
  16. border-left: none
  17. }
  18. .dashboard-num .num-title {
  19. padding-bottom: 10px;
  20. color: #999;
  21. }
  22. .dashboard-num .blue {
  23. font-size: 20px;
  24. font-weight: 300;
  25. }
  26. .dashboard-num td .badge {
  27. position: absolute;
  28. top: 0;
  29. right: 0;
  30. }
  31. .dashboard-num td .badge span {
  32. padding: 2px 4px;
  33. font-size: 12px;
  34. border-radius: 0 0 0 4px;
  35. }
  36. .dashboard-total td {
  37. border-top: 1px solid #f1f1f1
  38. }
  39. .dashboard-logs .layui-timeline-item {
  40. padding-bottom: 1px;
  41. }
  42. .info-td {
  43. width: 90px;
  44. text-align: right;
  45. background-color: #fafafa;
  46. color: #999;
  47. padding: 5px 3px;
  48. }
  49. .info-td {
  50. width: 90px;
  51. text-align: right;
  52. background-color: #fafafa;
  53. color: #999;
  54. padding: 5px 3px;
  55. }
  56. .layui-card-body .layui-timeline-title {
  57. padding-bottom: 0;
  58. font-size: 14px;
  59. }
  60. .layui-card-body .layui-timeline-item {
  61. padding-bottom: 5px;
  62. }
  63. .top-box {
  64. height: 30%;
  65. }
  66. .top-title {
  67. height: 4.5vh;
  68. font-size: 1vw;
  69. line-height: 4.5vh;
  70. color: grey;
  71. border-bottom: 1px solid rgb(221, 219, 219);
  72. }
  73. .top-box-middle {
  74. height: 16vh;
  75. /* background: url({__IMG__}/base.png) no-repeat;
  76. background-size: 70% 70%;
  77. background-position: 50% 85%; */
  78. }
  79. .top-box-bottom {
  80. height: 13.5vh;
  81. font-size: 1vw;
  82. }
  83. .top-box-bottom-1,
  84. .top-box-bottom-1 a {
  85. float: left;
  86. width: 97%;
  87. }
  88. .top-box-bottom-2,
  89. .top-box-bottom-2 a {
  90. float: left;
  91. width: 97%;
  92. }
  93. .sleep {
  94. width: 100%;
  95. height: 0.01vh;
  96. border-bottom: 1px solid rgb(221, 219, 219);
  97. float: left;
  98. /* margin-top: -1vh;
  99. left: -0.25vw; */
  100. position: relative;
  101. padding: 0;
  102. }
  103. .top-box-bottom-2 {
  104. float: left;
  105. height: 48px;
  106. }
  107. .bottom-box-left,
  108. .bottom-box-right {
  109. height: 64vh;
  110. }
  111. .heading {
  112. background-color: #f1f1f1;
  113. }
  114. .heading th {
  115. text-align: center;
  116. height: 2.5vh;
  117. }
  118. .form td {
  119. text-align: center;
  120. height: 2.5vh;
  121. }
  122. .layui-tab .layui-tab-title li {
  123. font-size: 0.7vw;
  124. }
  125. .layui-matter-item li a {
  126. display: block;
  127. padding: 12px;
  128. background-color: #f8f8f8;
  129. color: #999;
  130. border-radius: 3px;
  131. transition: all .3s;
  132. -webkit-transition: all .3s;
  133. font-size: 0.7vw;
  134. }
  135. .layui-matter-item li a:hover {
  136. background-color: #F2F8FF;
  137. }
  138. .layui-matter-item li span {
  139. float: right;
  140. }
  141. .layui-matter-item li cite {
  142. font-size: 0.7vw;
  143. font-weight: 300;
  144. color: #187FDD;
  145. }
  146. .top-head {
  147. /* width: 20%; */
  148. }
  149. .middle-left {
  150. width: 60%;
  151. }
  152. .middle-right {
  153. width: 40%;
  154. }
  155. .top-box-middle-money {
  156. width: 100%;
  157. height: 15.2vh;
  158. line-height: 14.5vh;
  159. font-size: 2.2vw;
  160. text-align: center;
  161. }
  162. .top-box-middle-money-left {
  163. color: #1287ff;
  164. }
  165. .top-box-middle-money-right {
  166. color: #999;
  167. font-size: 0.9vw;
  168. }
  169. .top-box-middle-left {
  170. background: url({__IMG__}/main-first.png) no-repeat;
  171. background-size: 100% 85%;
  172. background-position: 85% 50%;
  173. }
  174. .top-box-middle-left-2 {
  175. background: url({__IMG__}/main-second.png) no-repeat;
  176. background-size: 85% 70%;
  177. background-position: 50% 50%;
  178. }
  179. .top-box-middle-left-3 {
  180. background: url({__IMG__}/main-third.png) no-repeat;
  181. background-size: 90% 70%;
  182. background-position: 50% 50%;
  183. }
  184. .top-box-middle-left-4 {
  185. background: url({__IMG__}/main-fourth.png) no-repeat;
  186. background-size: 80% 65%;
  187. background-position: 50% 50%;
  188. }
  189. .button-search {
  190. margin-left: 1vw;
  191. }
  192. #test2 {
  193. width: 100%;
  194. height: 32vh;
  195. }
  196. #test2 .layui-laydate-main {
  197. width: 100%;
  198. }
  199. #test2 .layui-laydate-content td {
  200. height: 3.645vh;
  201. }
  202. #test2 .layui-laydate-content th {
  203. width: 1%;
  204. padding: 7px 0;
  205. }
  206. .layui-laydate-content td>div{
  207. height: auto;
  208. }
  209. #test2 #layui-laydate1 .layui-laydate-header {
  210. background-color: #fff;
  211. border-bottom: 1px solid #e2e2e2;
  212. height: 4.6vh;
  213. font-size: 0.85vw;
  214. line-height: 2vh;
  215. }
  216. #test2 .laydate-theme-molv .layui-laydate-header i,
  217. .laydate-theme-molv .layui-laydate-header span {
  218. color: #2c2727b7;
  219. }
  220. #test2 .laydate-theme-molv .layui-laydate-footer {
  221. border: none;
  222. }
  223. #test2 .laydate-theme-molv .layui-laydate-content {
  224. border: none;
  225. border-top: none;
  226. border-bottom: 1px solid #e2e2e2;
  227. height: 28vh;
  228. }
  229. #test2 .laydate-theme-molv .layui-laydate-header i,
  230. .laydate-theme-molv .layui-laydate-header span {
  231. padding-left: 0;
  232. }
  233. .layui-laydate-content td, .layui-laydate-content th{
  234. height: 21px;
  235. }
  236. /* .layui-laydate-content td>div {
  237. height: 0.3vh;
  238. }
  239. .layui-laydate-content th {
  240. height: 0.25vh;
  241. } */
  242. .laydate-theme-molv {
  243. width: 100%;
  244. }
  245. .main-input {
  246. width: auto;
  247. }
  248. .main-input-name {
  249. display: flex;
  250. }
  251. .layui-form-label {
  252. padding: 9px 0;
  253. position: relative;
  254. display: block;
  255. text-align: left;
  256. width: 80px;
  257. font-weight: 400;
  258. line-height: 20px;
  259. }
  260. </style>
  261. {/block}
  262. <!-- 主体 -->
  263. {block name="body"}
  264. <div class="p-3">
  265. <div class="layui-row layui-col-space12">
  266. <div class="layui-col-md3 top-head">
  267. <div class="layui-card top-box">
  268. <div class="layui-card-header top-title"><span style="font-size: 0.85vw;font-weight: 600;">财政局数量</span>
  269. </div>
  270. <div class="layui-card-body">
  271. <div class="layui-sales-info top-box-middle">
  272. <!-- <div class="top-box-middle-left" style="width: 37.5%;height: 95%;float: left;">
  273. </div> -->
  274. <div class="top-box-middle-right" style="width: 62.5%;height: 95%;float: left;">
  275. <p class="top-box-middle-money">
  276. <span class="top-box-middle-money-left"></span>
  277. <span class="top-box-middle-money-right">万元</span>
  278. </p>
  279. </div>
  280. </div>
  281. <!-- <div class="layui-sales-info top-box-bt" style="height: 10.5vh;width: auto;margin-bottom: -0.8vh;">
  282. <ul class="layui-row layui-col-space12">
  283. <li class="layui-col-md12"
  284. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  285. &nbsp;&nbsp;&nbsp;&nbsp;预算总额&nbsp;&nbsp;&nbsp;<span
  286. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  287. style="float: right;color: #187FDD;">&nbsp;</span></li>
  288. <div class="sleep"></div>
  289. <li class="layui-col-md12"
  290. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  291. &nbsp;&nbsp;&nbsp;&nbsp;结算总额&nbsp;&nbsp;&nbsp;<span
  292. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  293. style="float: right;color: #187FDD;">&nbsp;</span></li>
  294. </ul>
  295. </div> -->
  296. </div>
  297. </div>
  298. </div>
  299. <div class="layui-col-md3 top-head">
  300. <div class="layui-card top-box">
  301. <div class="layui-card-header top-title"><span style="font-size: 0.85vw;font-weight: 600;">公司数量</span>
  302. </div>
  303. <div class="layui-card-body">
  304. <div class="layui-sales-info top-box-middle">
  305. <!-- <div class="top-box-middle-left-2" style="width: 37.5%;height: 95%;float: left;">
  306. </div> -->
  307. <div class="top-box-middle-right" style="width: 62.5%;height: 95%;float: left;">
  308. <p class="top-box-middle-money">
  309. <span class="top-box-middle-money-left"></span>
  310. <span class="top-box-middle-money-right">万元</span>
  311. </p>
  312. </div>
  313. </div>
  314. <!-- <div class="layui-sales-info top-box-bt" style="height: 10.5vh;width: auto;margin-bottom: -0.8vh;">
  315. <ul class="layui-row layui-col-space12">
  316. <li class="layui-col-md12"
  317. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  318. &nbsp;&nbsp;&nbsp;&nbsp;2023年上半年服务费用&nbsp;&nbsp;&nbsp;<span
  319. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  320. style="float: right;color: #187FDD;"></span></li>
  321. <div class="sleep"></div>
  322. <li class="layui-col-md12"
  323. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  324. &nbsp;&nbsp;&nbsp;&nbsp;2023年下半年服务费用&nbsp;&nbsp;&nbsp;<span
  325. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  326. style="float: right;color: #187FDD;"></span></li>
  327. </ul>
  328. </div> -->
  329. </div>
  330. </div>
  331. </div>
  332. <div class="layui-col-md3 top-head">
  333. <div class="layui-card top-box">
  334. <div class="layui-card-header top-title"><span style="font-size: 0.85vw;font-weight: 600;">业主数量</span>
  335. </div>
  336. <div class="layui-card-body">
  337. <div class="layui-sales-info top-box-middle">
  338. <!-- <div class="top-box-middle-left-3" style="width: 37.5%;height: 95%;float: left;">
  339. </div> -->
  340. <div class="top-box-middle-right" style="width: 62.5%;height: 95%;float: left;">
  341. <p class="top-box-middle-money">
  342. <span class="top-box-middle-money-left"></span>
  343. <span class="top-box-middle-money-right">%</span>
  344. </p>
  345. </div>
  346. </div>
  347. <!-- <div class="layui-sales-info top-box-bt" style="height: 10.5vh;width: auto;margin-bottom: -0.8vh;">
  348. <ul class="layui-row layui-col-space12">
  349. <li class="layui-col-md12"
  350. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  351. &nbsp;&nbsp;&nbsp;&nbsp;预算核增减率&nbsp;&nbsp;&nbsp;<span
  352. style="float: right;">%&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  353. style="float: right;color: #187FDD;"></span></li>
  354. <div class="sleep"></div>
  355. <li class="layui-col-md12"
  356. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  357. &nbsp;&nbsp;&nbsp;&nbsp;结算核增减率&nbsp;&nbsp;&nbsp;<span
  358. style="float: right;">%&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  359. style="float: right;color: #187FDD;">&nbsp;</span></li>
  360. </ul>
  361. </div> -->
  362. </div>
  363. </div>
  364. </div>
  365. <div class="layui-col-md3 top-head">
  366. <div class="layui-card top-box">
  367. <div class="layui-card-header top-title"><span style="font-size: 0.85vw;font-weight: 600;">今日访问</span>
  368. </div>
  369. <div class="layui-card-body">
  370. <div class="layui-sales-info top-box-middle">
  371. <!-- <div class="top-box-middle-left-4" style="width: 37.5%;height: 95%;float: left;">
  372. </div> -->
  373. <div class="top-box-middle-right" style="width: 62.5%;height: 95%;float: left;">
  374. <p class="top-box-middle-money">
  375. <span class="top-box-middle-money-left"></span>
  376. <span class="top-box-middle-money-right">个</span>
  377. </p>
  378. </div>
  379. </div>
  380. <!-- <div class="layui-sales-info top-box-bt" style="height: 10.5vh;width: auto;margin-bottom: -0.8vh;">
  381. <ul class="layui-row layui-col-space12">
  382. <li class="layui-col-md12"
  383. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  384. &nbsp;&nbsp;&nbsp;&nbsp;正在作业&nbsp;&nbsp;&nbsp;<span
  385. style="float: right;">个&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  386. style="float: right;color: #187FDD;">&nbsp;</span></li>
  387. <div class="sleep"></div>
  388. <li class="layui-col-md12"
  389. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.71vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  390. &nbsp;&nbsp;&nbsp;&nbsp;已归档&nbsp;&nbsp;&nbsp;<span
  391. style="float: right;">个&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  392. style="float: right;color: #187FDD;">&nbsp;</span></li>
  393. </ul>
  394. </div> -->
  395. </div>
  396. </div>
  397. </div>
  398. <div class="layui-col-md9">
  399. <div class="layui-card">
  400. <div class="layui-card-header">
  401. </div>
  402. <div class="layui-card-body">
  403. <div id="map" style="height: 578px;"></div>
  404. </div>
  405. </div>
  406. </div>
  407. <div class="layui-col-md3">
  408. <div class="layui-card">
  409. <div class="layui-card-header">
  410. </div>
  411. <div class="layui-card-body">
  412. <div id="zxrs" style="height: 252px"></div>
  413. </div>
  414. </div>
  415. </div>
  416. <div class="layui-col-md3">
  417. <div class="layui-card">
  418. <div class="layui-card-header">
  419. </div>
  420. <div class="layui-card-body">
  421. <div id="llq" style="height: 252px"></div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. <!-- <div class="layui-row layui-col-space12">
  427. <div class="layui-col-md5 middle-left">
  428. <div class="layui-card">
  429. <div class="layui-card-body bottom-box-left" style="padding-top: 0;overflow: hidden;">
  430. <div class="layui-tab layui-tab-brief" style="height: 88%;">
  431. <ul class="layui-tab-title" style="font-size: 1vw; font-weight: 600;">
  432. <li class="layui-this" style="font-size: 0.95vw;">
  433. <i class="layui-icon">&#xe63c; </i> 待审核任务
  434. </li>
  435. </ul>
  436. <div class="layui-tab-content" style="height: 100%; overflow: hidden;">
  437. <table class="layui-hide" id="cost_project" lay-filter="cost_project"></table>
  438. </div>
  439. </div>
  440. </div>
  441. </div>
  442. </div>
  443. <div class="layui-col-md4 middle-right">
  444. <div class="layui-card">
  445. <div class="layui-card-body bottom-box-left" style="padding-top: 0;">
  446. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="height: 63.75vh; /* 容器高度 */overflow: hidden;">
  447. <ul class="layui-tab-title" style="font-size: 1vw; font-weight: 600;color: grey;">
  448. <li class="layui-this" style="font-size: 0.95vw;">
  449. <i class="layui-icon iconfont">&#xe68d; </i> 临期项目
  450. </li>
  451. <li style="font-size: 0.95vw;">
  452. <i class="layui-icon iconfont">&#xe702; </i> 逾期项目
  453. </li>
  454. </ul>
  455. <div class="layui-tab-content">
  456. <div class="layui-tab-item layui-show">
  457. <table class="layui-hide" id="advent_project" lay-filter="advent_project"></table>
  458. </div>
  459. <div class="layui-tab-item">
  460. <table class="layui-hide" id="late_project" lay-filter="late_project"></table>
  461. </div>
  462. <div class="layui-tab-item"></div>
  463. </div>
  464. </div>
  465. </div>
  466. </div>
  467. </div>
  468. <div class="layui-col-md3 middle-left">
  469. <div class="layui-card">
  470. <div class="layui-card-body bottom-box-left">
  471. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  472. <div class="layui-card-header top-title" style="font-size: 0.95vw;font-weight: 600;">
  473. 项目列表
  474. </div>
  475. <div class="layui-card-body layui-col-space12">
  476. <div class="layui-col-md3 main-input-name" style="width: 40%;">
  477. <label class="layui-form-label">
  478. 项目名称:
  479. </label>
  480. <div class="layui-input-block">
  481. <input type="text" name="title" placeholder="请输入项目名称" autocomplete="off"
  482. class="layui-input main-input">
  483. </div>
  484. </div>
  485. <div class="layui-col-md3 main-input-name" style="width: 35%;">
  486. <label class="layui-form-label" style="text-align: center;">
  487. 负责人:
  488. </label>
  489. <div class="layui-input-block">
  490. <input type="text" name="title" placeholder="请输入负责人" autocomplete="off"
  491. class="layui-input main-input">
  492. </div>
  493. </div>
  494. <div class="layui-col-md3 main-input-name">
  495. <button class="layui-btn layui-bg-blue button-search"><i
  496. class="layui-icon">&#xe615;</i></button>
  497. </div>
  498. </div>
  499. <div class="layui-tab-content">
  500. <div class="layui-tab-item layui-show">
  501. <table class="layui-hide" id="cost_project2" lay-filter="cost_project2"></table>
  502. </div>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. <div class="layui-col-md3 middle-right">
  509. <div class="layui-card">
  510. <div class="layui-card-body bottom-box-left">
  511. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  512. <div class="layui-card-header top-title" style="font-size: 0.95vw;font-weight: 600;">
  513. 通讯录
  514. </div>
  515. <div class="layui-card-body layui-col-space12">
  516. <div class="layui-col-md5 main-input-name" style="width: 65%;">
  517. <label class="layui-form-label" style="width: 7vw;">
  518. 联系人姓名:
  519. </label>
  520. <div class="layui-input-block">
  521. <input type="text" name="title" placeholder="请输入联系人姓名" autocomplete="off"
  522. class="layui-input main-input">
  523. </div>
  524. </div>
  525. <div class="layui-col-md2 main-input-name">
  526. <button class="layui-btn layui-bg-blue button-search" style="margin-left: 0;"><i
  527. class="layui-icon">&#xe615;</i></button>
  528. </div>
  529. </div>
  530. <table class="layui-hide" id="head" lay-filter="head"></table>
  531. </div>
  532. </div>
  533. </div>
  534. </div>
  535. </div> -->
  536. </div>
  537. </div>
  538. <div class="layui-col-md4">
  539. </div>
  540. </div>
  541. </div>
  542. {/block}
  543. <!-- /主体 -->
  544. <!-- 脚本 -->
  545. {block name="script"}
  546. <script src="https://cdn.staticfile.org/echarts/5.3.0/echarts.min.js"></script>
  547. <script>
  548. const moduleInit = ['tool'];
  549. function gouguInit() {
  550. var layer = layui.layer, tool = layui.tool;
  551. // 访问量
  552. var fwlCharts = echarts.init(document.getElementById('fwl'));
  553. var fwlOptions = {
  554. tooltip: {
  555. trigger: 'axis',
  556. axisPointer: {
  557. type: 'cross',
  558. label: {
  559. backgroundColor: '#6a7985'
  560. }
  561. }
  562. },
  563. grid: {
  564. left: '-1%',
  565. right: '0',
  566. bottom: '0',
  567. top: '5px',
  568. containLabel: false
  569. },
  570. xAxis: [
  571. {
  572. type: 'category',
  573. boundaryGap: false,
  574. data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
  575. show: false
  576. }
  577. ],
  578. yAxis: [
  579. {
  580. type: 'value',
  581. show: false
  582. }
  583. ],
  584. series: [
  585. {
  586. name: '总量',
  587. type: 'line',
  588. stack: '总量',
  589. smooth: true,
  590. lineStyle: {
  591. width: 0
  592. },
  593. showSymbol: false,
  594. areaStyle: {
  595. opacity: 0.8,
  596. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  597. offset: 0,
  598. color: '#1890ff'
  599. }, {
  600. offset: 1,
  601. color: '#1890ff'
  602. }])
  603. },
  604. emphasis: {
  605. focus: 'series'
  606. },
  607. data: [120, 132, 156, 200, 90, 100, 165]
  608. },
  609. ]
  610. };
  611. fwlCharts.setOption(fwlOptions);
  612. // 渲染表信息
  613. var zfbsCharts = echarts.init(document.getElementById('zfbs'));
  614. var zfbsOptions = {
  615. color: ['#1890ff', '#666'],
  616. tooltip: {},
  617. grid: {
  618. left: '0',
  619. right: '20',
  620. bottom: '30',
  621. containLabel: true
  622. },
  623. xAxis: {
  624. data: ['1月', '2月', '3月', '4月', '6月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
  625. show: false,
  626. },
  627. yAxis: {
  628. show: false
  629. },
  630. series: [{
  631. type: 'bar',
  632. data: [726, 1013, 690, 892, 982, 570, 536, 546, 988, 1002, 500, 506],
  633. barMaxWidth: 45
  634. }]
  635. }
  636. zfbsCharts.setOption(zfbsOptions);
  637. // 地图数据信息
  638. function randomValue() {
  639. return Math.round(Math.random() * 1000);
  640. }
  641. var mapCharts = echarts.init(document.getElementById('map'));
  642. var dataList = [
  643. { name: "南海诸岛", value: 0 },
  644. { name: '北京', value: randomValue() },
  645. { name: '天津', value: randomValue() },
  646. { name: '上海', value: randomValue() },
  647. { name: '重庆', value: randomValue() },
  648. { name: '河北', value: randomValue() },
  649. { name: '河南', value: randomValue() },
  650. { name: '云南', value: randomValue() },
  651. { name: '辽宁', value: randomValue() },
  652. { name: '黑龙江', value: randomValue() },
  653. { name: '湖南', value: randomValue() },
  654. { name: '安徽', value: randomValue() },
  655. { name: '山东', value: randomValue() },
  656. { name: '新疆', value: randomValue() },
  657. { name: '江苏', value: randomValue() },
  658. { name: '浙江', value: randomValue() },
  659. { name: '江西', value: randomValue() },
  660. { name: '湖北', value: randomValue() },
  661. { name: '广西', value: randomValue() },
  662. { name: '甘肃', value: randomValue() },
  663. { name: '山西', value: randomValue() },
  664. { name: '内蒙古', value: randomValue() },
  665. { name: '陕西', value: randomValue() },
  666. { name: '吉林', value: randomValue() },
  667. { name: '福建', value: randomValue() },
  668. { name: '贵州', value: randomValue() },
  669. { name: '广东', value: randomValue() },
  670. { name: '青海', value: randomValue() },
  671. { name: '西藏', value: randomValue() },
  672. { name: '四川', value: randomValue() },
  673. { name: '宁夏', value: randomValue() },
  674. { name: '海南', value: randomValue() },
  675. { name: '台湾', value: randomValue() },
  676. { name: '香港', value: randomValue() },
  677. { name: '澳门', value: randomValue() }
  678. ]
  679. // 世界地图
  680. var mapOption = {
  681. tooltip: {
  682. formatter: function (params, ticket, callback) {
  683. return params.seriesName + '<br />' + params.name + ':' + params.value
  684. }
  685. },
  686. visualMap: {
  687. min: 0,
  688. max: 1500,
  689. left: 'left',
  690. top: 'bottom',
  691. text: ['高', '低'],//取值范围的文字
  692. inRange: {
  693. color: ['#e0ffff', '#006edd']//取值范围的颜色
  694. },
  695. show: true//图注
  696. },
  697. geo: {
  698. map: 'china',
  699. roam: false, //不开启缩放和平移
  700. zoom: 1.23, //视角缩放比例
  701. label: {
  702. normal: {
  703. show: true,
  704. fontSize: '10',
  705. color: 'rgba(0,0,0,0.7)'
  706. }
  707. },
  708. itemStyle: {
  709. normal: {
  710. borderColor: 'rgba(0, 0, 0, 0.2)'
  711. },
  712. emphasis: {
  713. areaColor: '#F3B329',//鼠标选择区域颜色
  714. shadowOffsetX: 0,
  715. shadowOffsetY: 0,
  716. shadowBlur: 20,
  717. borderWidth: 0,
  718. shadowColor: 'rgba(0, 0, 0, 0.5)'
  719. }
  720. }
  721. },
  722. series: [
  723. {
  724. name: '信息量',
  725. type: 'map',
  726. geoIndex: 0,
  727. data: dataList
  728. }
  729. ]
  730. };
  731. mapCharts.setOption(mapOption);
  732. var myCharts = echarts.init(document.getElementById('zxrs'));
  733. var mData = [50, 100, 150, 80, 120, 150, 200, 250, 220, 250, 300, 350, 400, 380, 440, 450, 500, 550, 500];
  734. var option = {
  735. tooltip: {
  736. trigger: "axis"
  737. },
  738. xAxis: [{
  739. type: "category",
  740. boundaryGap: !1,
  741. data: ["06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "11:30", "12:00", "12:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00"]
  742. }],
  743. yAxis: [{
  744. type: "value"
  745. }],
  746. series: [{
  747. name: "总量",
  748. type: "line",
  749. smooth: !0,
  750. itemStyle: {
  751. normal: {
  752. areaStyle: {
  753. type: "default"
  754. }
  755. }
  756. },
  757. data: mData
  758. }]
  759. };
  760. myCharts.setOption(option);
  761. // 动态改变图表1数据
  762. setInterval(function () {
  763. for (var i = 0; i < mData.length; i++) {
  764. mData[i] += (Math.random() * 50 - 25);
  765. if (mData[i] < 0) {
  766. mData[i] = 0;
  767. }
  768. }
  769. myCharts.setOption({
  770. series: [{
  771. data: mData
  772. }]
  773. });
  774. }, 1000);
  775. // 渲染浏览器分布
  776. var llqCharts = echarts.init(document.getElementById('llq'));
  777. var llqOptions = {
  778. tooltip: {
  779. trigger: 'item'
  780. },
  781. legend: {
  782. bottom: '1%',
  783. left: 'center',
  784. icon: 'circle', // 设置小圆点
  785. itemWidth: 10, // 设置宽度
  786. itemHeight: 10, // 设置高度
  787. },
  788. series: [
  789. {
  790. name: '浏览器分布',
  791. type: 'pie',
  792. radius: ['40%', '70%'],
  793. avoidLabelOverlap: false,
  794. label: {
  795. show: false,
  796. position: 'center'
  797. },
  798. emphasis: {
  799. label: {
  800. show: true,
  801. fontSize: '14px',
  802. }
  803. },
  804. labelLine: {
  805. show: false
  806. },
  807. data: [
  808. { value: 1048, name: 'Chrome' },
  809. { value: 735, name: 'Safair' },
  810. { value: 580, name: 'Firefox' },
  811. { value: 484, name: 'Edge' },
  812. { value: 300, name: 'IE' },
  813. { value: 200, name: 'Other' },
  814. ]
  815. }
  816. ]
  817. };
  818. llqCharts.setOption(llqOptions);
  819. // 窗口大小改变事件
  820. window.onresize = function () {
  821. myCharts.resize();
  822. mapCharts.resize();
  823. fwlCharts.resize();
  824. zfbsCharts.resize();
  825. llqCharts.resize();
  826. };
  827. }
  828. </script>
  829. <script src="../../assets/third_party/echart/echarts.min.js"></script>
  830. <script src="../../assets/third_party/echart/china.js"></script>
  831. <script src="../../../../public/static/assets/layui/layui.js"></script>
  832. <script src="../../../../public/static/assets/gougu/gouguInit.js"></script>
  833. </script>
  834. {/block}
  835. <!-- /脚本 -->