index.html 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440
  1. <!--
  2. 访问地址:https://paycloud.vip
  3. -->
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="UTF-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  10. <title>可视化-数据中心</title>
  11. <link rel="stylesheet" href="css/index.css">
  12. <link rel="stylesheet" href="css/reset.css">
  13. </head>
  14. <body>
  15. <div id="particles-js" class="main">
  16. <div class="main_con">
  17. <div class="main_top">
  18. <div class="main_top_left">
  19. <div class="main_top_left_top">
  20. <img src="./images/main_top_left.png"/>
  21. <div class="main_top_left_top_title">公开数据展示</div>
  22. <div class="main_top_left_top_con">
  23. <div class="main_top_left_top_con_list">
  24. <span class="main_top_left_c_l_n main_top_left_c_l_n1">0</span>
  25. <p>党务公开</p>
  26. </div>
  27. <div class="main_top_left_top_con_list">
  28. <span class="main_top_left_c_l_n main_top_left_c_l_n2">0</span>
  29. <p>政务公开</p>
  30. </div>
  31. <div class="main_top_left_top_con_list">
  32. <span class="main_top_left_c_l_n main_top_left_c_l_n3">0</span>
  33. <p>财务公开</p>
  34. </div>
  35. <div class="main_top_left_top_con_left">
  36. <div class="main_top_left_t_c_l_left">
  37. <span class="main_top_left_c_l_n main_top_left_c_l_n4">0</span>
  38. <p>村务公开</p>
  39. </div>
  40. <div class="main_top_left_t_c_l_right">
  41. <span class="main_top_left_c_l_n main_top_left_c_l_n5">0</span>
  42. <p>居务公开</p>
  43. </div>
  44. </div>
  45. <div class="main_top_left_top_con_right main_top_left_top_con_right2">
  46. <div class="main_top_left_t_c_r_left">
  47. <span class="main_top_left_c_l_n">0</span>
  48. <p>占位公开</p>
  49. </div>
  50. <div class="main_top_left_t_c_r_right">
  51. <span class="main_top_left_c_l_n">0</span>
  52. <p>占位公开</p>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="main_top_left_top main_top_left_bottom">
  58. <img src="./images/main_top_left.png"/>
  59. <div class="main_top_left_top_title">XX信息员添加数据展示</div>
  60. <div id="baseId" class="main_top_left_top_con"></div>
  61. </div>
  62. </div>
  63. <div class="main_top_middle">
  64. <div class="main_top_middle_top_title">
  65. <img class="title_bg" src="./images/title_bg.png">
  66. 服务大数据可视化监管平台
  67. <a class="title_web" href="" target="blank">管理系统</a>
  68. <a class="title_admin" href="" target="blank">web网页</a>
  69. </div>
  70. <div class="main_top_middle_num_title">XX公开数量</div>
  71. <div class="main_top_middle_num">
  72. <!-- <div class="main_top_middle_num_list">
  73. <img src="./images/center_num.png">
  74. <p class="main_top_middle_num_list6">0</p>
  75. </div> -->
  76. <div class="main_top_middle_num_list">
  77. <img src="./images/center_num.png">
  78. <p class="main_top_middle_num_list5">0</p>
  79. </div>
  80. <div class="main_top_middle_num_list">
  81. <img src="./images/center_num.png">
  82. <p class="main_top_middle_num_list4">0</p>
  83. </div>
  84. <div class="main_top_middle_num_list">
  85. <img src="./images/center_num.png">
  86. <p class="main_top_middle_num_list3">0</p>
  87. </div>
  88. <div class="main_top_middle_num_list">
  89. <img src="./images/center_num.png">
  90. <p class="main_top_middle_num_list2">0</p>
  91. </div>
  92. <div class="main_top_middle_num_list">
  93. <img src="./images/center_num.png">
  94. <p class="main_top_middle_num_list1">0</p>
  95. </div>
  96. </div>
  97. <div class="main_top_middle_bottom">
  98. <div class="main_top_middle_bottom_echarts">
  99. <img src="./images/main_top_bottom.png">
  100. <div class="main_top_echarts_con">
  101. <div class="main_top_echarts_con_title">XX公开数量占比</div>
  102. <div id="threeTasksId" class="main_top_echarts_pie"></div>
  103. </div>
  104. </div>
  105. <div class="main_top_middle_bottom_echarts main_top_middle_bottom_echarts_right">
  106. <img src="./images/main_top_bottom.png">
  107. <div class="main_top_echarts_con">
  108. <div class="main_top_echarts_con_title">XX公开数量占比</div>
  109. <div id="publicityId" class="main_top_echarts_pie"></div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="main_top_left main_top_right">
  115. <div class="main_top_left_top">
  116. <img src="./images/main_top_left.png"/>
  117. <div class="main_top_left_top_title">XX数据展示</div>
  118. <div class="main_top_left_top_con">
  119. <div class="main_top_left_top_con_left">
  120. <span class="daysData">0</span>
  121. <p>今日公开</p>
  122. </div>
  123. <div class="main_top_left_top_con_right">
  124. <span class="weekData">0</span>
  125. <p>本周公开</p>
  126. </div>
  127. <div class="main_top_left_top_con_list">
  128. <span class="monthData">0</span>
  129. <p>本月公开</p>
  130. </div>
  131. <div class="main_top_left_top_con_list">
  132. <span class="someThing">0</span>
  133. <p>办事指南</p>
  134. </div>
  135. <div class="main_top_left_top_con_list">
  136. <span class="policyData">0</span>
  137. <p>政策解读</p>
  138. </div>
  139. </div>
  140. </div>
  141. <div class="main_top_left_top main_top_left_bottom">
  142. <img src="./images/main_top_left.png"/>
  143. <div class="main_top_left_top_title">XXXX数量类型占比</div>
  144. <div id="questionId" class="main_top_left_top_con">
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <div class="main_middle">
  150. <div class="main_middle_list">
  151. <img src="./images/main_middle.png">
  152. <div class="main_list_title main_list_title1">XXX镇</div>
  153. <span class="main_list_title_num main_list_title_num1">0</span>
  154. </div>
  155. <div class="main_middle_list">
  156. <img src="./images/main_middle.png">
  157. <div class="main_list_title main_list_title2">XX镇</div>
  158. <span class="main_list_title_num main_list_title_num2">0</span>
  159. </div>
  160. <div class="main_middle_list">
  161. <img src="./images/main_middle.png">
  162. <div class="main_list_title main_list_title3">XXXX</div>
  163. <span class="main_list_title_num main_list_title_num3">0</span>
  164. </div>
  165. <div class="main_middle_list">
  166. <img src="./images/main_middle.png">
  167. <div class="main_list_title main_list_title4">XXXX</div>
  168. <span class="main_list_title_num main_list_title_num4">0</span>
  169. </div>
  170. <div class="main_middle_list">
  171. <img src="./images/main_middle.png">
  172. <div class="main_list_title main_list_title5">XXXX</div>
  173. <span class="main_list_title_num main_list_title_num5">0</span>
  174. </div>
  175. </div>
  176. <div class="main_bottom">
  177. <div class="main_bottom_top">
  178. <div class="main_bottom_top_list">
  179. <img src="./images/main_bottopm_top1.png">
  180. <div class="main_bottom_t_l_title">XX指南</div>
  181. <div class="main_bottom_t_l_con">
  182. <div class="main_bottom_t_l_main">
  183. <ul>
  184. <li>
  185. <div class="main_bottom_t_l_main_list">
  186. <div class="main_bottom_t_list_title main_bottom_t_list_title1">精品可视化模板店里更多哦</div>
  187. <div class="main_bottom_t_list_time main_bottom_t_list_time1">2020/05/20</div>
  188. </div>
  189. </li>
  190. <li>
  191. <div class="main_bottom_t_l_main_list">
  192. <div class="main_bottom_t_list_title main_bottom_t_list_title2">精品可视化模板店里更多哦</div>
  193. <div class="main_bottom_t_list_time main_bottom_t_list_time2">2020/05/20</div>
  194. </div>
  195. </li>
  196. <li>
  197. <div class="main_bottom_t_l_main_list">
  198. <div class="main_bottom_t_list_title main_bottom_t_list_title3">精品可视化模板店里更多哦</div>
  199. <div class="main_bottom_t_list_time main_bottom_t_list_time3">2020/05/20</div>
  200. </div>
  201. </li>
  202. <li>
  203. <div class="main_bottom_t_l_main_list">
  204. <div class="main_bottom_t_list_title main_bottom_t_list_title4">精品可视化模板店里更多哦</div>
  205. <div class="main_bottom_t_list_time main_bottom_t_list_time4">2020/05/20</div>
  206. </div>
  207. </li>
  208. </ul>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="main_bottom_top_list">
  213. <img src="./images/main_bottopm_top2.png">
  214. <div class="main_bottom_t_l_title">XXXX公开占比</div>
  215. <div id="departmentId" class="main_bottom_t_l_chart"></div>
  216. </div>
  217. <div class="main_bottom_top_list">
  218. <img src="./images/main_bottopm_top1.png">
  219. <div class="main_bottom_t_l_title">政策XX</div>
  220. <div class="main_bottom_t_l_con">
  221. <div class="main_bottom_t_l_main2">
  222. <ul>
  223. <li>
  224. <div class="main_bottom_t_l_main_list">
  225. <div class="main_bottom_t_list_title main_bottom_polity_title1">精品可视化模板店里更多哦</div>
  226. <div class="main_bottom_t_list_time main_bottom_polity_time1">2020/05/20</div>
  227. </div>
  228. </li>
  229. <li>
  230. <div class="main_bottom_t_l_main_list">
  231. <div class="main_bottom_t_list_title main_bottom_polity_title2">精品可视化模板店里更多哦</div>
  232. <div class="main_bottom_t_list_time main_bottom_polity_time1">2020/05/20</div>
  233. </div>
  234. </li>
  235. <li>
  236. <div class="main_bottom_t_l_main_list">
  237. <div class="main_bottom_t_list_title main_bottom_polity_title3">精品可视化模板店里更多哦</div>
  238. <div class="main_bottom_t_list_time main_bottom_polity_time1">2020/05/20</div>
  239. </div>
  240. </li>
  241. <li>
  242. <div class="main_bottom_t_l_main_list">
  243. <div class="main_bottom_t_list_title main_bottom_polity_title4">精品可视化模板店里更多哦</div>
  244. <div class="main_bottom_t_list_time main_bottom_polity_time1">2020/05/20</div>
  245. </div>
  246. </li>
  247. </ul>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. <div class="main_bottom_bottom">
  253. <div class="main_bottom_b_left">
  254. <img src="./images/main_bottom_bottom.png">
  255. <div class="main_bottom_b_title">主要关注XXXX占比</div>
  256. <div id="coverageId" class="main_bottom_b_con"></div>
  257. </div>
  258. <div class="main_bottom_b_middle1">
  259. <img src="./images/main_bootm_middle.png">
  260. <div class="main_bottom_b_title">关注XXXX占比</div>
  261. <div id="contentId" class="main_bottom_b_con main_bottom_b_con2"></div>
  262. </div>
  263. <div class="main_bottom_b_middle2">
  264. <img src="./images/main_bootm_middle.png">
  265. <div class="main_bottom_b_title">XXXX发布量</div>
  266. <div id="publicNumId" class="main_bottom_b_con main_bottom_b_con2"></div>
  267. </div>
  268. <div class="main_bottom_b_right">
  269. <img src="./images/main_bottom_bottom.png">
  270. <div class="main_bottom_b_title">XXX公开数量</div>
  271. <div id="yearsNumId" class="main_bottom_b_con"></div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </body>
  278. </html>
  279. <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
  280. <script src="https://www.jq22.com/jquery/echarts-4.2.1.min.js"></script>
  281. <script type="text/javascript" src="js/dataScoll.js"></script>
  282. <script type="text/javascript" src="js/digitalScroll.js"></script>
  283. <script type="text/javascript" src="js/jcarousellite.js"></script>
  284. <script type="text/javascript" src="js/particles.min.js"></script>
  285. <script type="text/javascript" src="js/app.js"></script>
  286. <script>
  287. $(function() {
  288. function apiFn() {
  289. this.hostname = ""
  290. }
  291. apiFn.prototype = {
  292. Init:function() {
  293. this.findCount()
  294. this.otherDataFn()
  295. this.baseInfo()
  296. this.questionFn()
  297. this.publicityFn()
  298. this.threeTasksFn()
  299. this.departmentFn()
  300. this.guideFn()
  301. this.policyFn()
  302. this.coverageFn()
  303. this.yearsNumFn()
  304. this.contentFn()
  305. this.publicNumFn()
  306. setInterval(function() {
  307. numInit()
  308. },6000)
  309. },
  310. findCount:function() {
  311. },
  312. // 其他数据展示
  313. otherDataFn:function() {
  314. $(".daysData").addClass("counter-value").text("304")
  315. $(".weekData").addClass("counter-value").text("2044")
  316. $(".monthData").addClass("counter-value").text("909")
  317. $(".someThing").addClass("counter-value").text("980")
  318. $(".policyData").addClass("counter-value").text("200")
  319. },
  320. // 基础信息
  321. baseInfo:function() {
  322. var baseChart = echarts.init(document.getElementById('baseId'));
  323. var charts = [
  324. {name: "测试1", num: 200},
  325. {name: "测试2", num: 300},
  326. {name: "测试3", num: 400},
  327. {name: "测试4", num: 500},
  328. {name: "测试5", num: 300},
  329. ]
  330. var color = ['rgba(100,255,249', 'rgba(100,255,249', 'rgba(100,255,249', 'rgba(100,255,249', 'rgba(100,255,249']
  331. let lineY = []
  332. for (var i = 0; i < charts.length; i++) {
  333. var x = i
  334. if (x > color.length - 1) {
  335. x = color.length - 1
  336. }
  337. var data = {
  338. name: charts[i].name,
  339. color: color[x] + ')',
  340. value: charts[i].num,
  341. itemStyle: {
  342. normal: {
  343. show: true,
  344. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  345. offset: 0,
  346. color: color[x] + ', 0.3)'
  347. }, {
  348. offset: 1,
  349. color: color[x] + ', 1)'
  350. }], false),
  351. barBorderRadius: 10
  352. },
  353. emphasis: {
  354. shadowBlur: 15,
  355. shadowColor: 'rgba(0, 0, 0, 0.1)'
  356. }
  357. }
  358. }
  359. lineY.push(data)
  360. }
  361. var option= {
  362. title: {
  363. show: false
  364. },
  365. grid: {
  366. // borderWidth: 1,
  367. top: '10%',
  368. left: '30%',
  369. right: '20%',
  370. bottom: '3%'
  371. },
  372. color: color,
  373. yAxis: [{
  374. type: 'category',
  375. inverse: true,
  376. axisTick: {
  377. show: false
  378. },
  379. axisLine: {
  380. show: false
  381. },
  382. axisLabel: {
  383. show: false,
  384. inside: false
  385. },
  386. data: charts.name
  387. }, {
  388. type: 'category',
  389. inverse: true,
  390. axisLine: {
  391. show: false
  392. },
  393. axisTick: {
  394. show: false
  395. },
  396. axisLabel: {
  397. show: true,
  398. inside: false,
  399. textStyle: {
  400. color: '#38E1E1',
  401. fontSize: '8',
  402. },
  403. formatter: function (val,index) {
  404. return `${charts[index].num}`
  405. }
  406. },
  407. splitArea: {
  408. show: false
  409. },
  410. splitLine: {
  411. show: false
  412. },
  413. data: charts
  414. }],
  415. xAxis: {
  416. // type: 'value',
  417. axisTick: {
  418. show: false
  419. },
  420. axisLine: {
  421. show: false
  422. },
  423. splitLine: {
  424. show: false
  425. },
  426. axisLabel: {
  427. show: false
  428. }
  429. },
  430. series: [{
  431. name: '',
  432. type: 'bar',
  433. zlevel: 2,
  434. barWidth: '5px',
  435. data: lineY,
  436. animationDuration: 1500,
  437. label: {
  438. normal: {
  439. color: 'white',
  440. show: true,
  441. position: [-65, -2],
  442. textStyle: {
  443. fontSize: 8
  444. },
  445. formatter: function (a, b) {
  446. return a.name
  447. }
  448. }
  449. }
  450. }],
  451. animationEasing: 'cubicOut'
  452. }
  453. baseChart.setOption(option)
  454. setInterval(function() {
  455. baseChart.clear()
  456. baseChart.setOption(option)
  457. },40000)
  458. },
  459. // 问题反馈类型占比
  460. questionFn:function() {
  461. var numArr = [
  462. {name: '测试11', value: 300},
  463. {name: '测试22', value: 500},
  464. {name: '测试33', value: 400},
  465. {name: '测试44', value: 350},
  466. {name: '测试55', value: 363},
  467. {name: '测试66', value: 800},
  468. ]
  469. // for(var i = 0; i < data.list.length; i++) {
  470. // numArr.push({name: data.list[i].name,value: data.list[i].num})
  471. // }
  472. var datas = numArr
  473. var questionChart = echarts.init(document.getElementById('questionId'));
  474. var option = {
  475. title: {
  476. left: 'center'
  477. },
  478. tooltip: {
  479. trigger: 'item',
  480. formatter: '{a} <br/>{b} : {c} ({d}%)'
  481. },
  482. color:['#2E8CFF', '#FD9133','#37D2D4','#19CA88','#858FF8'],
  483. legend: {
  484. itemWidth: 11,// 标志图形的长度
  485. itemHeight: 11,// 标志图形的宽度
  486. orient: 'vertical',
  487. // left: 'right',
  488. top: '15%',
  489. x: '50%',
  490. data: datas,
  491. textStyle: { //图例文字的样式
  492. color: '#fff',
  493. fontSize: 8
  494. },
  495. },
  496. series: [
  497. {
  498. name: '问题反馈',
  499. type: 'pie',
  500. radius: '75%',
  501. center: ['20%', '50%'],
  502. animationDuration: 2500,
  503. data: datas,
  504. label: {
  505. normal: {
  506. position: 'inner',
  507. show : false
  508. }
  509. }
  510. }
  511. ]
  512. };
  513. questionChart.setOption(option)
  514. setInterval(function() {
  515. questionChart.clear()
  516. questionChart.setOption(option)
  517. },8000)
  518. },
  519. // 党务公开
  520. publicityFn:function() {
  521. var dataArr = [
  522. {name: '测试11', value: 300},
  523. {name: '测试22', value: 500},
  524. {name: '测试33', value: 400},
  525. {name: '测试44', value: 350},
  526. {name: '测试55', value: 363},
  527. {name: '测试66', value: 800},
  528. ]
  529. // for(var i = 0; i < res.list.length; i++) {
  530. // dataArr.push({name: res.list[i].name, value: res.list[i].num})
  531. // }
  532. var publicitChart = echarts.init(document.getElementById('publicityId'));
  533. var data = dataArr
  534. var option = {
  535. color: ['#38EB70', '#F7E16C', '#0EFCFF', '#FD9133', '#4D92F2'],
  536. tooltip: {
  537. trigger: 'item',
  538. formatter: '{a} <br/>{b} : {c} ({d}%)'
  539. },
  540. legend: {
  541. itemWidth: 12,// 标志图形的长度
  542. itemHeight: 12,// 标志图形的宽度
  543. orient: 'vertical',
  544. // left: 'right',
  545. top: '5%',
  546. bottom: '50%',
  547. x: '45%',
  548. textStyle: {
  549. color: '#fff',
  550. fontSize: 8,
  551. },
  552. data: data,
  553. },
  554. series: [
  555. // 主要展示层的
  556. {
  557. radius: ['70%', '90%'],
  558. center: ['25%', '50%'],
  559. type: 'pie',
  560. label: {
  561. normal: {
  562. position: 'inner',
  563. show : false
  564. }
  565. },
  566. name: "XX公开数量",
  567. data: data,
  568. },
  569. // 边框的设置
  570. {
  571. radius: ['50%', '55%'],
  572. center: ['25%', '50%'],
  573. type: 'pie',
  574. label: {
  575. normal: {
  576. show: false
  577. },
  578. emphasis: {
  579. show: false
  580. }
  581. },
  582. labelLine: {
  583. normal: {
  584. show: false
  585. },
  586. emphasis: {
  587. show: false
  588. }
  589. },
  590. animation: false,
  591. tooltip: {
  592. show: false
  593. },
  594. data: [{
  595. value: 1,
  596. itemStyle: {
  597. color: "rgba(250,250,250,0.3)",
  598. },
  599. }],
  600. }
  601. ]
  602. };
  603. publicitChart.setOption(option)
  604. setInterval(function() {
  605. publicitChart.clear()
  606. publicitChart.setOption(option)
  607. },6000)
  608. },
  609. // 三务公开数量
  610. threeTasksFn:function() {
  611. let names = "666666";
  612. if(6 - names.length > 0) {
  613. for(g = 0; g < 6 - names.length; g++) {
  614. $(".main_top_middle_num_list"+(6 - g)).text('0')
  615. }
  616. }
  617. for(var j = 0; j < names.length; j++) {
  618. $(".main_top_middle_num_list"+(names.length - j)).text(names.substr(j,1))
  619. }
  620. var dataArr = [
  621. {name: '测试11', value: 300},
  622. {name: '测试22', value: 500},
  623. {name: '测试33', value: 400},
  624. {name: '测试44', value: 350},
  625. {name: '测试55', value: 363},
  626. {name: '测试66', value: 800},
  627. ]
  628. for(var i = 1; i < dataArr.length; i++) {
  629. $(".main_top_left_c_l_n"+i).addClass("counter-value").text(dataArr[i].value)
  630. }
  631. var threeTasksChart = echarts.init(document.getElementById('threeTasksId'));
  632. var data = dataArr
  633. var option = {
  634. color: ['#38EB70', '#2E8CFF', '#0EFCFF', '#858FF8', '#FD9133','#F7E270'],
  635. tooltip : {
  636. trigger: 'item',
  637. formatter: "{a} <br/>{b} : {c} ({d}%)"
  638. },
  639. legend: {
  640. itemWidth: 15,// 标志图形的长度
  641. itemHeight: 15,// 标志图形的宽度
  642. orient: 'vertical',
  643. // left: 'right',
  644. top: '10%',
  645. bottom: '50%',
  646. x: '50%',
  647. textStyle: {
  648. color: '#fff',
  649. fontSize: 8,
  650. },
  651. data: data
  652. },
  653. series :
  654. {
  655. name:'三务公开数量',
  656. type:'pie',
  657. animationDuration: 1500,
  658. radius: ['70%', '90%'],
  659. center: ['25%', '50%'],
  660. roseType : 'radius',
  661. label: {
  662. normal: {
  663. position: 'inner',
  664. show : false
  665. }
  666. },
  667. data:data
  668. }
  669. };
  670. threeTasksChart.setOption(option)
  671. setInterval(function() {
  672. threeTasksChart.clear()
  673. threeTasksChart.setOption(option)
  674. },4000)
  675. },
  676. // 各部门苏木镇嘎查村公开占比
  677. departmentFn:function() {
  678. var dataArr = [
  679. {name: '测试11', value: 300},
  680. {name: '测试22', value: 500},
  681. {name: '测试33', value: 400},
  682. {name: '测试44', value: 350},
  683. {name: '测试55', value: 363},
  684. ]
  685. // 中间滚动数据展示
  686. for(var j = 0; j < dataArr.length; j++) {
  687. $(".main_list_title_num"+(j+1)).addClass("counter-value").text(dataArr[j].value)
  688. $(".main_list_title"+(j+1)).text(dataArr[j].name)
  689. }
  690. var departmentChart = echarts.init(document.getElementById('departmentId'));
  691. var data = dataArr
  692. var option = {
  693. color: ['#FD9133', '#47F6A2', '#37D2D4', '#3493FF'],
  694. tooltip : {
  695. trigger: 'item',
  696. formatter: "{a} <br/>{b} : {c} ({d}%)"
  697. },
  698. legend: {
  699. itemWidth: 15,// 标志图形的长度
  700. itemHeight: 15,// 标志图形的宽度
  701. orient: 'vertical',
  702. // left: 'right',
  703. top: '30%',
  704. bottom: '50%',
  705. x: '5%',
  706. textStyle: {
  707. color: '#fff',
  708. fontSize: 8,
  709. },
  710. data: data,
  711. },
  712. series: [
  713. {
  714. name: 'XXXX公开占比',
  715. type: 'pie',
  716. radius: ['50%', '70%'],
  717. center: ['78%', '52%'],
  718. labelLine: {
  719. normal: {
  720. length: 12,
  721. lineStyle: {
  722. type: 'solid',
  723. color: '#0EFCFF'
  724. }
  725. }
  726. },
  727. label: {
  728. normal: {
  729. formatter: (params)=>{
  730. return params.name
  731. },
  732. borderWidth: 0,
  733. borderRadius: 4,
  734. padding: [0,0],
  735. height: 20,
  736. fontSize: 8,
  737. align: 'center',
  738. color: '#0EFCFF',
  739. }
  740. },
  741. data: data
  742. },
  743. {
  744. color: '#0EFCFF',
  745. type: 'pie',
  746. radius: ['55', '56'],
  747. center: ['78%', '52%'],
  748. data: [100],
  749. label: {
  750. show: false
  751. }
  752. },
  753. {
  754. type: 'pie',
  755. radius: ['25', '26'],
  756. center: ['78%', '52%'],
  757. data: [100],
  758. label: {
  759. show: false
  760. }
  761. }
  762. ]
  763. };
  764. departmentChart.setOption(option)
  765. setInterval(function() {
  766. departmentChart.clear()
  767. departmentChart.setOption(option)
  768. },12000)
  769. },
  770. // 办事指南
  771. guideFn:function() {
  772. $(".main_bottom_t_l_main").jCarouselLite({
  773. vertical: true,
  774. hoverPause:true,
  775. visible: 4,
  776. auto: 1000,
  777. speed: 500
  778. });
  779. },
  780. // 政策解读
  781. policyFn:function() {
  782. $(".main_bottom_t_l_main2").jCarouselLite({
  783. vertical: true,
  784. hoverPause:true,
  785. visible: 4,
  786. auto: 1000,
  787. speed: 500
  788. });
  789. },
  790. // 主要关注内容区域占比
  791. coverageFn:function() {
  792. var resArr = [
  793. {name: '测试11', value: 300},
  794. {name: '测试22', value: 500},
  795. {name: '测试33', value: 400},
  796. {name: '测试44', value: 350},
  797. {name: '测试55', value: 363},
  798. {name: '测试66', value: 800},
  799. ]
  800. var indicatorArr = []
  801. var numArr = []
  802. for(var i = 0; i < resArr.length; i++) {
  803. indicatorArr.push({name: resArr[i].name,max: 900})
  804. numArr.push(resArr[i].value)
  805. }
  806. var data = [
  807. {
  808. value: numArr,
  809. }
  810. ]
  811. var coverageChart = echarts.init(document.getElementById('coverageId'));
  812. var option = {
  813. legend: {
  814. show: true,
  815. icon: "circle",
  816. bottom: 30,
  817. center: 0,
  818. itemWidth: 14,
  819. itemHeight: 14,
  820. itemGap: 21,
  821. orient: "horizontal",
  822. data: ['a', 'b'],
  823. textStyle: {
  824. fontSize: '70%',
  825. color: '#0EFCFF'
  826. },
  827. },
  828. radar: {
  829. // shape: 'circle',
  830. radius: '70%',
  831. triggerEvent: true,
  832. // type: 'default',
  833. name: {
  834. textStyle: {
  835. color: '#39DCF4',
  836. fontSize: '10',
  837. // borderRadius: 3,
  838. padding: [10, 10]
  839. }
  840. },
  841. nameGap: '2',
  842. indicator: indicatorArr,
  843. splitArea: {
  844. areaStyle: {
  845. color: 'rgba(255,255,255,0)'
  846. }
  847. },
  848. axisLine: { //指向外圈文本的分隔线样式
  849. lineStyle: {
  850. color: 'rgba(255,255,255,.2)'
  851. }
  852. },
  853. splitLine: {
  854. lineStyle: {
  855. width: 1,
  856. color: 'rgba(255,255,255,.2)'
  857. }
  858. },
  859. },
  860. series: [{
  861. name: 'XXX区域占比',
  862. type: 'radar',
  863. animationDuration: 2000,
  864. areaStyle: {
  865. normal: {
  866. color: {
  867. type: 'linear',
  868. opacity: 1,
  869. x: 0,
  870. y: 0,
  871. x2: 0,
  872. y2: 1,
  873. color: '#2EEFAD'
  874. }
  875. }
  876. },
  877. symbolSize: 0,
  878. lineStyle: {
  879. normal: {
  880. // color: 'rgba(252,211,3, 1)',
  881. width: 0
  882. }
  883. },
  884. data: data
  885. }]
  886. };
  887. coverageChart.setOption(option)
  888. setInterval(function() {
  889. coverageChart.clear()
  890. coverageChart.setOption(option)
  891. },10000)
  892. },
  893. // 本年公开数量
  894. yearsNumFn:function() {
  895. var resArr = [
  896. {name: '测试11', value: 30},
  897. {name: '测试22', value: 50},
  898. {name: '测试33', value: 40},
  899. {name: '测试44', value: 35},
  900. {name: '测试55', value: 36},
  901. {name: '测试66', value: 80},
  902. ]
  903. var nameArr = []
  904. var caiArr = []
  905. var cunArr = []
  906. var danArr = []
  907. var junArr = []
  908. var zhenArr = []
  909. for(var i = 0; i < resArr.length; i++) {
  910. nameArr.push(resArr[i].name)
  911. caiArr.push(resArr[i].value)
  912. cunArr.push(resArr[i].value)
  913. danArr.push(resArr[i].value)
  914. junArr.push(resArr[i].value)
  915. zhenArr.push(resArr[i].value)
  916. }
  917. var yearsNumChart = echarts.init(document.getElementById('yearsNumId'));
  918. var spNum = 5,_max=100;
  919. var y_data = nameArr.reverse();
  920. var _datamax = [100,100,100,100,100,100,100,100,100,100,100,100],
  921. _data1 = caiArr.reverse(),
  922. _data2 = cunArr.reverse(),
  923. _data3 = danArr.reverse();
  924. _data4 = junArr.reverse();
  925. _data5 = zhenArr.reverse();
  926. var fomatter_fn = function(v) {
  927. return (v.value / _max * 100).toFixed(0)
  928. }
  929. var _label = {
  930. normal: {
  931. show: true,
  932. position: 'inside',
  933. formatter: fomatter_fn,
  934. textStyle: {
  935. color: '#fff',
  936. fontSize: 8
  937. }
  938. }
  939. };
  940. var option = {
  941. grid: {
  942. containLabel: true,
  943. left: 0,
  944. top: 0,
  945. right: 0,
  946. bottom: 0
  947. },
  948. tooltip: {
  949. show: true,
  950. backgroundColor: '#fff',
  951. borderColor: '#ddd',
  952. borderWidth: 1,
  953. textStyle: {
  954. color: '#3c3c3c',
  955. fontSize: 16
  956. },
  957. extraCssText: 'box-shadow: 0 0 5px rgba(0, 0, 0, 0.1)'
  958. },
  959. xAxis: {
  960. splitNumber: spNum,
  961. interval: _max / spNum,
  962. max: _max,
  963. axisLabel: {
  964. show: false,
  965. formatter: function(v) {
  966. var _v = (v / _max * 100).toFixed(0);
  967. return _v == 0 ? _v : _v + '%';
  968. }
  969. },
  970. axisLine: {
  971. show: false
  972. },
  973. axisTick: {
  974. show: false
  975. },
  976. splitLine: {
  977. show: false
  978. }
  979. },
  980. yAxis: [{
  981. data: y_data,
  982. axisLabel: {
  983. fontSize: 8,
  984. color: 'rgba(255,255,255,.7)'
  985. },
  986. axisLine: {
  987. show: false
  988. },
  989. axisTick: {
  990. show: false
  991. },
  992. splitLine: {
  993. show: false
  994. }
  995. }, {
  996. show: false,
  997. data: y_data,
  998. axisLine: {
  999. show: false
  1000. }
  1001. }],
  1002. series: [{
  1003. type: 'bar',
  1004. name: '财务',
  1005. stack: '2',
  1006. label: _label,
  1007. legendHoverLink: false,
  1008. barWidth: 7,
  1009. itemStyle: {
  1010. normal: {
  1011. color: '#FD9133'
  1012. },
  1013. emphasis: {
  1014. color: '#FD9133'
  1015. }
  1016. },
  1017. data: _data1
  1018. }, {
  1019. type: 'bar',
  1020. name: '村务',
  1021. stack: '2',
  1022. legendHoverLink: false,
  1023. barWidth: 20,
  1024. label: _label,
  1025. itemStyle: {
  1026. normal: {
  1027. color: '#2E8CFF'
  1028. },
  1029. emphasis: {
  1030. color: '#2E8CFF'
  1031. }
  1032. },
  1033. data: _data2
  1034. }, {
  1035. type: 'bar',
  1036. stack: '2',
  1037. name: '党务',
  1038. legendHoverLink: false,
  1039. barWidth: 20,
  1040. label: _label,
  1041. itemStyle: {
  1042. normal: {
  1043. color: '#37D2D4'
  1044. },
  1045. emphasis: {
  1046. color: '#37D2D4'
  1047. }
  1048. },
  1049. data: _data3
  1050. }, {
  1051. type: 'bar',
  1052. stack: '2',
  1053. name: '居务',
  1054. legendHoverLink: false,
  1055. barWidth: 20,
  1056. label: _label,
  1057. itemStyle: {
  1058. normal: {
  1059. color: '#19CA88'
  1060. },
  1061. emphasis: {
  1062. color: '#19CA88'
  1063. }
  1064. },
  1065. data: _data4
  1066. }, {
  1067. type: 'bar',
  1068. stack: '2',
  1069. name: '政务',
  1070. legendHoverLink: false,
  1071. barWidth: 20,
  1072. label: _label,
  1073. itemStyle: {
  1074. normal: {
  1075. color: '#0EFCFF'
  1076. },
  1077. emphasis: {
  1078. color: '#0EFCFF'
  1079. }
  1080. },
  1081. data: _data5
  1082. }]
  1083. };
  1084. yearsNumChart.setOption(option)
  1085. setInterval(function() {
  1086. yearsNumChart.clear()
  1087. yearsNumChart.setOption(option)
  1088. },120000)
  1089. },
  1090. // 关注内容区域占比
  1091. contentFn:function() {
  1092. var resArr = [
  1093. {name: '测试11', value: 30},
  1094. {name: '测试22', value: 50},
  1095. {name: '测试55', value: 33},
  1096. {name: '测试66', value: 80},
  1097. ]
  1098. var nameArr = []
  1099. var caiArr = []
  1100. var cunArr = []
  1101. var danArr = []
  1102. var junArr = []
  1103. var zhenArr = []
  1104. for(var i = 0; i < resArr.length; i++) {
  1105. nameArr.push(resArr[i].name)
  1106. caiArr.push(resArr[i].value)
  1107. cunArr.push(resArr[i].value)
  1108. danArr.push(resArr[i].value)
  1109. junArr.push(resArr[i].value)
  1110. zhenArr.push(resArr[i].value)
  1111. }
  1112. var contentChart = echarts.init(document.getElementById('contentId'));
  1113. var option = {
  1114. tooltip: {
  1115. trigger: 'axis'
  1116. },
  1117. legend: {
  1118. x: '35%',
  1119. y: '0%',
  1120. data: ["财务","村务","党务","居务","政务"],
  1121. textStyle: {
  1122. color: "#fff",
  1123. fontSize: 8
  1124. },
  1125. itemWidth: 10,
  1126. itemHeight: 10,
  1127. },
  1128. calculable: true,
  1129. xAxis: [
  1130. {
  1131. type: 'category',
  1132. data: nameArr,
  1133. axisLabel: {
  1134. interval: 0,
  1135. textStyle: {
  1136. fontSize: 8,
  1137. color: 'rgba(255,255,255,.7)',
  1138. }
  1139. },
  1140. "axisTick": { //y轴刻度线
  1141. "show": false
  1142. },
  1143. "axisLine": { //y轴
  1144. "show": false,
  1145. },
  1146. }
  1147. ],
  1148. yAxis: [
  1149. {
  1150. type: 'value',
  1151. scale: true,
  1152. name: '单位:%',
  1153. nameTextStyle: {
  1154. color: 'rgba(255,255,255,.7)',
  1155. fontSize: 8
  1156. },
  1157. max: 100,
  1158. min: 0,
  1159. boundaryGap: [0.2, 0.2],
  1160. "axisTick": { //y轴刻度线
  1161. "show": false
  1162. },
  1163. "axisLine": { //y轴
  1164. "show": false,
  1165. },
  1166. axisLabel: {
  1167. textStyle: {
  1168. color: 'rgba(255,255,255,.8)',
  1169. fontSize: 8
  1170. // opacity: 0.1,
  1171. }
  1172. },
  1173. splitLine: { //决定是否显示坐标中网格
  1174. show: true,
  1175. lineStyle: {
  1176. color: ['#fff'],
  1177. opacity: 0.2
  1178. }
  1179. },
  1180. },
  1181. {
  1182. type: 'value',
  1183. scale: true,
  1184. show: false,
  1185. // name: "销量额(万元)",
  1186. nameTextStyle: {
  1187. color: 'rgba(255,255,255,.2)',
  1188. },
  1189. max: 1,
  1190. min: 0,
  1191. boundaryGap: [0.2, 0.2],
  1192. "axisTick": { //y轴刻度线
  1193. "show": false
  1194. },
  1195. "axisLine": { //y轴
  1196. "show": false,
  1197. },
  1198. axisLabel: {
  1199. textStyle: {
  1200. color: 'rgba(255,255,255,.2)',
  1201. // opacity: 0.1,
  1202. }
  1203. },
  1204. splitLine: { //决定是否显示坐标中网格
  1205. show: true,
  1206. lineStyle: {
  1207. color: ['#fff'],
  1208. opacity: 0.2
  1209. }
  1210. },
  1211. }
  1212. ],
  1213. color: ['#0EFCFF', '#FD9133'],
  1214. grid: {
  1215. left: '5%',
  1216. right: '1%',
  1217. top: '25%',
  1218. bottom: '15%'
  1219. // containLabel: true
  1220. },
  1221. series: [
  1222. {
  1223. barWidth: '10%',
  1224. name: '财务',
  1225. type: 'bar',
  1226. data: caiArr,
  1227. },
  1228. {
  1229. animationDuration: 2500,
  1230. barWidth: '20%',
  1231. name: '村务',
  1232. type: 'bar',
  1233. data: cunArr,
  1234. },
  1235. {
  1236. animationDuration: 2500,
  1237. barWidth: '20%',
  1238. name: '党务',
  1239. type: 'bar',
  1240. data: danArr,
  1241. },
  1242. {
  1243. animationDuration: 2500,
  1244. barWidth: '20%',
  1245. name: '居务',
  1246. type: 'bar',
  1247. data: junArr,
  1248. },
  1249. {
  1250. animationDuration: 2500,
  1251. barWidth: '20%',
  1252. name: '政务',
  1253. type: 'bar',
  1254. data: zhenArr,
  1255. }
  1256. ]
  1257. };
  1258. contentChart.setOption(option)
  1259. setInterval(function() {
  1260. contentChart.clear()
  1261. contentChart.setOption(option)
  1262. },90000)
  1263. },
  1264. // 巡察
  1265. publicNumFn:function() {
  1266. var resArr = [
  1267. {name: '测试11', value: 300},
  1268. {name: '测试22', value: 500},
  1269. {name: '测试33', value: 400},
  1270. {name: '测试44', value: 350},
  1271. {name: '测试55', value: 363},
  1272. {name: '测试66', value: 800},
  1273. ]
  1274. var xunArr = []
  1275. var jingArr = []
  1276. var dateArr = []
  1277. for(var i = 0; i < resArr.length; i++) {
  1278. xunArr.push(resArr[i].value)
  1279. jingArr.push(resArr[i].value)
  1280. dateArr.push(resArr[i].name)
  1281. }
  1282. var publicNumChart = echarts.init(document.getElementById('publicNumId'));
  1283. var option = {
  1284. tooltip: {
  1285. trigger: 'axis'
  1286. },
  1287. legend: {
  1288. x: '35%',
  1289. y: '0%',
  1290. data: ['巡察', '警示'],
  1291. textStyle: {
  1292. color: "#fff",
  1293. fontSize: 8
  1294. },
  1295. itemWidth: 10,
  1296. itemHeight: 10,
  1297. },
  1298. calculable: true,
  1299. xAxis: [
  1300. {
  1301. type: 'category',
  1302. data: dateArr,
  1303. axisLabel: {
  1304. interval: 0,
  1305. textStyle: {
  1306. fontSize: 8,
  1307. color: 'rgba(255,255,255,.7)',
  1308. }
  1309. },
  1310. "axisTick": { //y轴刻度线
  1311. "show": false
  1312. },
  1313. "axisLine": { //y轴
  1314. "show": false,
  1315. },
  1316. }
  1317. ],
  1318. yAxis: [
  1319. {
  1320. type: 'value',
  1321. scale: true,
  1322. name: '单位:%',
  1323. nameTextStyle: {
  1324. color: 'rgba(255,255,255,.7)',
  1325. fontSize: 8
  1326. },
  1327. max: 1000,
  1328. min: 0,
  1329. boundaryGap: [0.2, 0.2],
  1330. "axisTick": { //y轴刻度线
  1331. "show": false
  1332. },
  1333. "axisLine": { //y轴
  1334. "show": false,
  1335. },
  1336. axisLabel: {
  1337. textStyle: {
  1338. color: 'rgba(255,255,255,.8)',
  1339. fontSize: 8
  1340. // opacity: 0.1,
  1341. }
  1342. },
  1343. splitLine: { //决定是否显示坐标中网格
  1344. show: true,
  1345. lineStyle: {
  1346. color: ['#fff'],
  1347. opacity: 0.2
  1348. }
  1349. },
  1350. },
  1351. {
  1352. type: 'value',
  1353. scale: true,
  1354. show: false,
  1355. // name: "销量额(万元)",
  1356. nameTextStyle: {
  1357. color: 'rgba(255,255,255,.2)',
  1358. },
  1359. max: 1,
  1360. min: 0,
  1361. boundaryGap: [0.2, 0.2],
  1362. "axisTick": { //y轴刻度线
  1363. "show": false
  1364. },
  1365. "axisLine": { //y轴
  1366. "show": false,
  1367. },
  1368. axisLabel: {
  1369. textStyle: {
  1370. color: 'rgba(255,255,255,.2)',
  1371. // opacity: 0.1,
  1372. }
  1373. },
  1374. splitLine: { //决定是否显示坐标中网格
  1375. show: true,
  1376. lineStyle: {
  1377. color: ['#fff'],
  1378. opacity: 0.2
  1379. }
  1380. },
  1381. }
  1382. ],
  1383. color: ['#2E8CFF', '#38EB70'],
  1384. grid: {
  1385. left: '5%',
  1386. right: '1%',
  1387. top: '25%',
  1388. bottom: '15%'
  1389. // containLabel: true
  1390. },
  1391. series: [
  1392. {
  1393. animationDuration: 2500,
  1394. barWidth: '20%',
  1395. name: '巡察',
  1396. type: 'bar',
  1397. data: xunArr,
  1398. },
  1399. {
  1400. barWidth: '20%',
  1401. name: '警示',
  1402. type: 'bar',
  1403. data: jingArr,
  1404. }
  1405. ],
  1406. animationEasing: 'cubicOut'
  1407. };
  1408. publicNumChart.setOption(option)
  1409. setInterval(function() {
  1410. publicNumChart.clear()
  1411. publicNumChart.setOption(option)
  1412. },60000)
  1413. }
  1414. }
  1415. var start = new apiFn()
  1416. start.Init()
  1417. })
  1418. </script>