fwyq.vue 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072
  1. <template>
  2. <div>
  3. <!-- 阴影背景
  4. <div class="bj_left"><img src="@/assets/images/sprhbj-left.png"/></div>
  5. <div class="bj_right"><img src="@/assets/images/sprhbj-right.png"/></div>-->
  6. <div class="bj_bottom"><img src="@/assets/images/sprhbj-bottom.png"/></div>
  7. <!--头部开始-->
  8. <div class="header">
  9. <h1>城市运行一网统管指挥中心</h1>
  10. </div>
  11. <!--头部结束-->
  12. <!-- 小头部 开始 -->
  13. <div class="nav_min">
  14. <div class="top_txt">
  15. <b>汽开区</b>
  16. <span>小雨</span>
  17. <span>9~16℃</span>
  18. </div>
  19. <div class="top_txt top_txt2">
  20. <span>{{ currentTime }}</span>
  21. <!-- <span>星期六</span>
  22. <b>11:16:58</b> -->
  23. </div>
  24. </div>
  25. <!-- 小头部 结束 -->
  26. <!-- 中间内容 开始 -->
  27. <div class="qkq_con">
  28. <!--左侧开始-->
  29. <div class="con_left_a">
  30. <div class="con_div">
  31. <div class="qkq_tit ">一汽红旗项目服务局</div>
  32. <div class="con_col">
  33. <div class="con_col_c">
  34. <span>招商计划</span>
  35. <b>89</b>
  36. </div>
  37. <div class="con_col_c">
  38. <span>实施计划</span>
  39. <b>76</b>
  40. </div>
  41. <div class="con_col_c">
  42. <span>占比</span>
  43. <b>76%</b>
  44. </div>
  45. </div>
  46. <div id="qkq_chart1" class="qkq_chart"></div>
  47. <div class="con_col_2 clearfix">
  48. <div class="con_col_c">
  49. <span>服务企业</span>
  50. <b>117</b>
  51. <span>次</span>
  52. </div>
  53. <div class="con_col_c">
  54. <span>服务企业</span>
  55. <b>92</b>
  56. <span>家</span>
  57. </div>
  58. <div class="con_col_c">
  59. <span>服务覆盖率</span>
  60. <b>97%</b>
  61. </div>
  62. <div class="con_col_c">
  63. <span>服务满意率</span>
  64. <b>100%</b>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="con_div">
  69. <div class="qkq_tit ">一汽解放项目服务局</div>
  70. <div class="con_col">
  71. <div class="con_col_c">
  72. <span>招商计划</span>
  73. <b>89</b>
  74. </div>
  75. <div class="con_col_c">
  76. <span>实施计划</span>
  77. <b>76</b>
  78. </div>
  79. <div class="con_col_c">
  80. <span>占比</span>
  81. <b>76%</b>
  82. </div>
  83. </div>
  84. <div id="qkq_chart2" class="qkq_chart"></div>
  85. <div class="con_col_2 clearfix">
  86. <div class="con_col_c">
  87. <span>服务企业</span>
  88. <b>117</b>
  89. <span>次</span>
  90. </div>
  91. <div class="con_col_c">
  92. <span>服务企业</span>
  93. <b>92</b>
  94. <span>家</span>
  95. </div>
  96. <div class="con_col_c">
  97. <span>服务覆盖率</span>
  98. <b>97%</b>
  99. </div>
  100. <div class="con_col_c">
  101. <span>服务满意率</span>
  102. <b>100%</b>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="con_div">
  107. <div class="qkq_tit ">一汽轿车项目服务局</div>
  108. <div class="con_col">
  109. <div class="con_col_c">
  110. <span>招商计划</span>
  111. <b>89</b>
  112. </div>
  113. <div class="con_col_c">
  114. <span>实施计划</span>
  115. <b>76</b>
  116. </div>
  117. <div class="con_col_c">
  118. <span>占比</span>
  119. <b>76%</b>
  120. </div>
  121. </div>
  122. <div id="qkq_chart3" class="qkq_chart"></div>
  123. <div class="con_col_2 clearfix">
  124. <div class="con_col_c">
  125. <span>服务企业</span>
  126. <b>117</b>
  127. <span>次</span>
  128. </div>
  129. <div class="con_col_c">
  130. <span>服务企业</span>
  131. <b>92</b>
  132. <span>家</span>
  133. </div>
  134. <div class="con_col_c">
  135. <span>服务覆盖率</span>
  136. <b>97%</b>
  137. </div>
  138. <div class="con_col_c">
  139. <span>服务满意率</span>
  140. <b>100%</b>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="con_left_b">
  146. <div class="con_div">
  147. <div class="qkq_tit ">政策法规</div>
  148. <div class="qkq_zcfg">
  149. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  150. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  151. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  152. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  153. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  154. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  155. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  156. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  157. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  158. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  159. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  160. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  161. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  162. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  163. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  164. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  165. </div>
  166. <div id="qkq_zxt"></div>
  167. </div>
  168. <div class="con_div">
  169. <div class="qkq_tit ">万人助万企</div>
  170. <div class="qkq_wrzwq clearfix">
  171. <div class="qkq_si_div">
  172. <p><b>728</b><span>次</span></p>
  173. <p>深入企业</p>
  174. </div>
  175. <div class="qkq_si_div">
  176. <p><b>787</b><span>万元</span></p>
  177. <p>输送补贴</p>
  178. </div>
  179. <div class="qkq_si_div">
  180. <p><b>187</b><span>个</span></p>
  181. <p>输送岗位</p>
  182. </div>
  183. <div class="qkq_si_div">
  184. <p><b>92</b><span>项</span></p>
  185. <p>提供政策</p>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <div class="con_left_c">
  191. <div class="con_div">
  192. <div class="qkq_tit ">招商指标/实施数量</div>
  193. <div class="clearfix">
  194. <div id="qkq_zszb1"></div>
  195. <div id="qkq_zszb2"></div>
  196. <div class="qkq_zsss">
  197. <p>招商指标:500个</p>
  198. <p>实施数量:500个</p>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="con_div">
  203. <div id="qkq_btzb"></div>
  204. </div>
  205. <div class="con_div">
  206. <div class="qkq_tit ">服务企业台账</div>
  207. <div class="qkq_wrzwq clearfix">
  208. <div class="qkq_si_div">
  209. <p><b>728</b><span>次</span></p>
  210. <p>深入企业</p>
  211. </div>
  212. <div class="qkq_si_div">
  213. <p><b>787</b><span>万元</span></p>
  214. <p>输送补贴</p>
  215. </div>
  216. <div class="qkq_si_div">
  217. <p><b>187</b><span>个</span></p>
  218. <p>输送岗位</p>
  219. </div>
  220. <div class="qkq_si_div">
  221. <p><b>92</b><span>项</span></p>
  222. <p>提供政策</p>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="con_left_d">
  228. <div class="con_div">
  229. <div class="qkq_tit ">汽车零部件产业局</div>
  230. <div class="con_col">
  231. <div class="con_col_c">
  232. <span>招商计划</span>
  233. <b>89</b>
  234. </div>
  235. <div class="con_col_c">
  236. <span>实施计划</span>
  237. <b>76</b>
  238. </div>
  239. <div class="con_col_c">
  240. <span>占比</span>
  241. <b>76%</b>
  242. </div>
  243. </div>
  244. <div id="qkq_chart4" class="qkq_chart"></div>
  245. <div class="con_col_2 clearfix">
  246. <div class="con_col_c">
  247. <span>服务企业</span>
  248. <b>117</b>
  249. <span>次</span>
  250. </div>
  251. <div class="con_col_c">
  252. <span>服务企业</span>
  253. <b>92</b>
  254. <span>家</span>
  255. </div>
  256. <div class="con_col_c">
  257. <span>服务覆盖率</span>
  258. <b>97%</b>
  259. </div>
  260. <div class="con_col_c">
  261. <span>服务满意率</span>
  262. <b>100%</b>
  263. </div>
  264. </div>
  265. </div>
  266. <div class="con_div">
  267. <div class="qkq_tit ">一汽大众项目服务局</div>
  268. <div class="con_col">
  269. <div class="con_col_c">
  270. <span>招商计划</span>
  271. <b>89</b>
  272. </div>
  273. <div class="con_col_c">
  274. <span>实施计划</span>
  275. <b>76</b>
  276. </div>
  277. <div class="con_col_c">
  278. <span>占比</span>
  279. <b>76%</b>
  280. </div>
  281. </div>
  282. <div id="qkq_chart5" class="qkq_chart"></div>
  283. <div class="con_col_2 clearfix">
  284. <div class="con_col_c">
  285. <span>服务企业</span>
  286. <b>117</b>
  287. <span>次</span>
  288. </div>
  289. <div class="con_col_c">
  290. <span>服务企业</span>
  291. <b>92</b>
  292. <span>家</span>
  293. </div>
  294. <div class="con_col_c">
  295. <span>服务覆盖率</span>
  296. <b>97%</b>
  297. </div>
  298. <div class="con_col_c">
  299. <span>服务满意率</span>
  300. <b>100%</b>
  301. </div>
  302. </div>
  303. </div>
  304. <div class="con_div">
  305. <div class="qkq_tit ">一汽丰田项目服务局</div>
  306. <div class="con_col">
  307. <div class="con_col_c">
  308. <span>招商计划</span>
  309. <b>89</b>
  310. </div>
  311. <div class="con_col_c">
  312. <span>实施计划</span>
  313. <b>76</b>
  314. </div>
  315. <div class="con_col_c">
  316. <span>占比</span>
  317. <b>76%</b>
  318. </div>
  319. </div>
  320. <div id="qkq_chart6" class="qkq_chart"></div>
  321. <div class="con_col_2 clearfix">
  322. <div class="con_col_c">
  323. <span>服务企业</span>
  324. <b>117</b>
  325. <span>次</span>
  326. </div>
  327. <div class="con_col_c">
  328. <span>服务企业</span>
  329. <b>92</b>
  330. <span>家</span>
  331. </div>
  332. <div class="con_col_c">
  333. <span>服务覆盖率</span>
  334. <b>97%</b>
  335. </div>
  336. <div class="con_col_c">
  337. <span>服务满意率</span>
  338. <b>100%</b>
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. <!--左侧结束-->
  344. </div>
  345. <!-- 中间内容 结束 -->
  346. <!--底部开始-->
  347. <div class="footer">
  348. <div class="nav-bottom">
  349. <div class="nav-bottom-left">
  350. <div class="nav-li-left">
  351. <span>经济运行</span>
  352. </div>
  353. <div class="nav-li-left">
  354. <span>城市管理</span>
  355. </div>
  356. <div class="nav-li-left" @click="handleNavigation('jtzl')">
  357. <span>交通治理</span>
  358. </div>
  359. <div class="nav-li-left" @click="handleNavigation('jczl')">
  360. <span>基层治理</span>
  361. </div>
  362. </div>
  363. <div class="nav-home-middle" @click="homePage('weather')">
  364. <img src="@/assets/images/home-btn.png"/>
  365. <a>返回首页</a>
  366. </div>
  367. <div class="nav-bottom-right">
  368. <div class="nav-li-right">
  369. <span>营商环境</span>
  370. </div>
  371. <div class="nav-li-right" @click="handleNavigation('yshj')">
  372. <span>政务运行</span>
  373. </div>
  374. <div class="nav-li-right on" @click="handleNavigation('sprh')">
  375. <span>安全应急</span>
  376. </div>
  377. <div class="nav-li-right">
  378. <span>服务一汽</span>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. <!--底部开始-->
  384. </div>
  385. </template>
  386. <script>
  387. import * as echarts from 'echarts'
  388. import $ from 'jquery'
  389. import jQuery from 'jquery'
  390. import "@/assets/images/qkq_body.css";
  391. import "@/assets/images/qkq_index.css";
  392. import "@/assets/images/qkq_sprh.css";
  393. import {getCameraList} from "@/api/system/camera";
  394. import supermap from "@/views/supermap/supermap";
  395. export default {
  396. name: "fwyq",
  397. components: {
  398. supermap
  399. },
  400. data() {
  401. return {
  402. dropdownVisible: false,
  403. cameras: [],
  404. sltProps: null,
  405. currentTime: '',
  406. btnOne: true,
  407. btnTwo: false
  408. };
  409. // 可根据实际情况添加更多设备列表
  410. },
  411. created() {
  412. },
  413. mounted() {
  414. this.qkq_chart1();
  415. this.qkq_chart2();
  416. this.qkq_chart3();
  417. this.qkq_chart4();
  418. this.qkq_chart5();
  419. this.qkq_chart6();
  420. this.getCurrentTime();
  421. this.qkq_zxt();
  422. this.qkq_zszb1();
  423. this.qkq_zszb2();
  424. this.qkq_btzb();
  425. // 每秒刷新时间
  426. setInterval(() => {
  427. this.getCurrentTime();
  428. }, 1000);
  429. },
  430. methods: {
  431. sltHandle() {
  432. this.btnOne = true
  433. this.btnTwo = false
  434. this.$refs.supermap.getSupermap(null, null, null, "slt", null, null)
  435. },
  436. yxtHandle() {
  437. this.btnTwo = true
  438. this.btnOne = false
  439. this.$refs.supermap.getSupermap(null, null, null, "yxt", null, null)
  440. },
  441. handleNavigation(route) {
  442. this.$router.push({path: route});
  443. },
  444. homePage(route) {
  445. this.$router.push({path: route});
  446. },
  447. cameraList() {
  448. getCameraList().then(response => {
  449. this.cameras = response.data;
  450. })
  451. },
  452. toggleDropdown(event) {
  453. this.dropdownVisible = !this.dropdownVisible;
  454. },
  455. qkq_chart1() {
  456. //一汽红旗项目服务局
  457. var myChart = echarts.init(document.getElementById('qkq_chart1'));
  458. var baifenbi = [0.333, 0.444];
  459. var zongjine = [2000, 3000];
  460. var xingm = ['工业类招商', '商业类招商'];
  461. var option = {
  462. color: ['#4171ab'], //进度条颜色
  463. grid: {
  464. left: '2%', //如果离左边太远就用这个......
  465. right: '2%',
  466. bottom: '-20',
  467. top: '5%',
  468. containLabel: true
  469. },
  470. xAxis: [{
  471. show: false,
  472. },
  473. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  474. {
  475. show: false,
  476. }
  477. ],
  478. yAxis: [{
  479. type: 'category',
  480. axisLabel: {
  481. show: false, //让Y轴数据不显示
  482. },
  483. itemStyle: {
  484. },
  485. axisTick: {
  486. show: false, //隐藏Y轴刻度
  487. },
  488. axisLine: {
  489. show: false, //隐藏Y轴线段
  490. },
  491. data: xingm,
  492. },{
  493. show: true,
  494. inverse: true,
  495. data: zongjine,
  496. axisLabel: {
  497. textStyle: {
  498. fontSize:14,
  499. color: '#02d9fc'
  500. },
  501. formatter: '{value} '
  502. },
  503. axisLine: {
  504. show: false
  505. },
  506. splitLine: {
  507. show: false
  508. },
  509. axisTick: {
  510. show: false
  511. },
  512. }],
  513. series: [
  514. //蓝条--------------------我是分割线君------------------------------//
  515. {
  516. show: true,
  517. type: 'bar',
  518. barGap: '-100%',
  519. barWidth: '35%', //统计条宽度
  520. itemStyle: {
  521. normal: {
  522. color: function(params) {
  523. return {
  524. type: 'linear',
  525. x: 0,
  526. y: 1,
  527. x2: 0,
  528. y2: 0,
  529. colorStops: [{
  530. offset: 0,
  531. color: '#0d3b91'
  532. }, {
  533. offset: 1,
  534. color: '#00abda'
  535. }],
  536. }
  537. },
  538. },
  539. },
  540. max: 1,
  541. labelLine: {
  542. show: false,
  543. },
  544. z: 2,
  545. data: baifenbi,
  546. },
  547. //数据条--------------------我是分割线君------------------------------//
  548. {
  549. show: true,
  550. type: 'bar',
  551. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  552. barGap: '-100%',
  553. barWidth: '45%', //统计条宽度
  554. itemStyle: {
  555. normal: {
  556. barBorderRadius: 200,
  557. color: 'rgba(20, 47, 104, 0.0)'
  558. },
  559. },
  560. label: {
  561. normal: {
  562. show: true,
  563. //label 的position位置可以是top bottom left,right,也可以是固定值
  564. //在这里需要上下统一对齐,所以用固定值
  565. position: [0, '-100%'],
  566. rich: { //富文本
  567. white: { //自定义颜色
  568. color: '#ffffff',
  569. },
  570. green: {
  571. color: '#70DDA7',
  572. },
  573. yellow: {
  574. color: '#CCB877',
  575. },
  576. red: {
  577. color: '#BC3C47',
  578. },
  579. gray: {
  580. color: '#727CBA'
  581. }
  582. },
  583. formatter: function(data) {
  584. //富文本固定格式{colorName|这里填你想要写的内容}
  585. return '{white|' + xingm[data.dataIndex] + '}';
  586. },
  587. }
  588. },
  589. data: zongjine
  590. }
  591. ]
  592. };
  593. if (option) {
  594. myChart.setOption(option);
  595. }
  596. },
  597. qkq_chart2() {
  598. //一汽解放项目服务局
  599. var myChart = echarts.init(document.getElementById('qkq_chart2'));
  600. var baifenbi = [0.333, 0.444];
  601. var zongjine = [2000, 3000];
  602. var xingm = ['工业类招商', '商业类招商'];
  603. var option = {
  604. color: ['#61A8FF'], //进度条颜色
  605. grid: {
  606. left: '2%', //如果离左边太远就用这个......
  607. right: '2%',
  608. bottom: '-20',
  609. top: '5%',
  610. containLabel: true
  611. },
  612. xAxis: [{
  613. show: false,
  614. },
  615. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  616. {
  617. show: false,
  618. }
  619. ],
  620. yAxis: [{
  621. type: 'category',
  622. axisLabel: {
  623. show: false, //让Y轴数据不显示
  624. },
  625. itemStyle: {
  626. },
  627. axisTick: {
  628. show: false, //隐藏Y轴刻度
  629. },
  630. axisLine: {
  631. show: false, //隐藏Y轴线段
  632. },
  633. data: xingm,
  634. },{
  635. show: true,
  636. inverse: true,
  637. data: zongjine,
  638. axisLabel: {
  639. textStyle: {
  640. fontSize:14,
  641. color: '#02d9fc'
  642. },
  643. formatter: '{value} '
  644. },
  645. axisLine: {
  646. show: false
  647. },
  648. splitLine: {
  649. show: false
  650. },
  651. axisTick: {
  652. show: false
  653. },
  654. }],
  655. series: [
  656. //蓝条--------------------我是分割线君------------------------------//
  657. {
  658. show: true,
  659. type: 'bar',
  660. barGap: '-100%',
  661. barWidth: '35%', //统计条宽度
  662. itemStyle: {
  663. normal: {
  664. color: function(params) {
  665. return {
  666. type: 'linear',
  667. x: 0,
  668. y: 1,
  669. x2: 0,
  670. y2: 0,
  671. colorStops: [{
  672. offset: 0,
  673. color: '#0d3b91'
  674. }, {
  675. offset: 1,
  676. color: '#00abda'
  677. }],
  678. }
  679. },
  680. },
  681. },
  682. max: 1,
  683. labelLine: {
  684. show: false,
  685. },
  686. z: 2,
  687. data: baifenbi,
  688. },
  689. //数据条--------------------我是分割线君------------------------------//
  690. {
  691. show: true,
  692. type: 'bar',
  693. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  694. barGap: '-100%',
  695. barWidth: '45%', //统计条宽度
  696. itemStyle: {
  697. normal: {
  698. barBorderRadius: 200,
  699. color: 'rgba(20, 47, 104, 0.0)'
  700. },
  701. },
  702. label: {
  703. normal: {
  704. show: true,
  705. //label 的position位置可以是top bottom left,right,也可以是固定值
  706. //在这里需要上下统一对齐,所以用固定值
  707. position: [0, '-100%'],
  708. rich: { //富文本
  709. white: { //自定义颜色
  710. color: '#ffffff',
  711. },
  712. green: {
  713. color: '#70DDA7',
  714. },
  715. yellow: {
  716. color: '#CCB877',
  717. },
  718. red: {
  719. color: '#BC3C47',
  720. },
  721. gray: {
  722. color: '#727CBA'
  723. }
  724. },
  725. formatter: function(data) {
  726. //富文本固定格式{colorName|这里填你想要写的内容}
  727. return '{white|' + xingm[data.dataIndex] + '}';
  728. },
  729. }
  730. },
  731. data: zongjine
  732. }
  733. ]
  734. };
  735. if (option) {
  736. myChart.setOption(option);
  737. }
  738. },
  739. qkq_chart3() {
  740. // 一汽轿车项目服务局
  741. var myChart = echarts.init(document.getElementById('qkq_chart3'));
  742. var baifenbi = [0.333, 0.444];
  743. var zongjine = [2000, 3000];
  744. var xingm = ['工业类招商', '商业类招商'];
  745. var option = {
  746. color: ['#61A8FF'], //进度条颜色
  747. grid: {
  748. left: '2%', //如果离左边太远就用这个......
  749. right: '2%',
  750. bottom: '-20',
  751. top: '5%',
  752. containLabel: true
  753. },
  754. xAxis: [{
  755. show: false,
  756. },
  757. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  758. {
  759. show: false,
  760. }
  761. ],
  762. yAxis: [{
  763. type: 'category',
  764. axisLabel: {
  765. show: false, //让Y轴数据不显示
  766. },
  767. itemStyle: {
  768. },
  769. axisTick: {
  770. show: false, //隐藏Y轴刻度
  771. },
  772. axisLine: {
  773. show: false, //隐藏Y轴线段
  774. },
  775. data: xingm,
  776. },{
  777. show: true,
  778. inverse: true,
  779. data: zongjine,
  780. axisLabel: {
  781. textStyle: {
  782. fontSize:14,
  783. color: '#02d9fc'
  784. },
  785. formatter: '{value} '
  786. },
  787. axisLine: {
  788. show: false
  789. },
  790. splitLine: {
  791. show: false
  792. },
  793. axisTick: {
  794. show: false
  795. },
  796. }],
  797. series: [
  798. //蓝条--------------------我是分割线君------------------------------//
  799. {
  800. show: true,
  801. type: 'bar',
  802. barGap: '-100%',
  803. barWidth: '35%', //统计条宽度
  804. itemStyle: {
  805. normal: {
  806. color: function(params) {
  807. return {
  808. type: 'linear',
  809. x: 0,
  810. y: 1,
  811. x2: 0,
  812. y2: 0,
  813. colorStops: [{
  814. offset: 0,
  815. color: '#0d3b91'
  816. }, {
  817. offset: 1,
  818. color: '#00abda'
  819. }],
  820. }
  821. },
  822. },
  823. },
  824. max: 1,
  825. labelLine: {
  826. show: false,
  827. },
  828. z: 2,
  829. data: baifenbi,
  830. },
  831. //数据条--------------------我是分割线君------------------------------//
  832. {
  833. show: true,
  834. type: 'bar',
  835. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  836. barGap: '-100%',
  837. barWidth: '45%', //统计条宽度
  838. itemStyle: {
  839. normal: {
  840. barBorderRadius: 200,
  841. color: 'rgba(20, 47, 104, 0.0)'
  842. },
  843. },
  844. label: {
  845. normal: {
  846. show: true,
  847. //label 的position位置可以是top bottom left,right,也可以是固定值
  848. //在这里需要上下统一对齐,所以用固定值
  849. position: [0, '-100%'],
  850. rich: { //富文本
  851. white: { //自定义颜色
  852. color: '#ffffff',
  853. },
  854. green: {
  855. color: '#70DDA7',
  856. },
  857. yellow: {
  858. color: '#CCB877',
  859. },
  860. red: {
  861. color: '#BC3C47',
  862. },
  863. gray: {
  864. color: '#727CBA'
  865. }
  866. },
  867. formatter: function(data) {
  868. //富文本固定格式{colorName|这里填你想要写的内容}
  869. return '{white|' + xingm[data.dataIndex] + '}';
  870. },
  871. }
  872. },
  873. data: zongjine
  874. }
  875. ]
  876. };
  877. if (option) {
  878. myChart.setOption(option);
  879. }
  880. },
  881. getCurrentTime() {
  882. const now = new Date();
  883. const year = now.getFullYear();
  884. const month = now.getMonth() + 1;
  885. const date = now.getDate();
  886. const day = now.getDay();
  887. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  888. const hour = now.getHours();
  889. const minute = now.getMinutes();
  890. const second = now.getSeconds();
  891. const formattedMonth = month < 10 ? `0${month}` : month;
  892. const formattedDate = date < 10 ? `0${date}` : date;
  893. const formattedHour = hour < 10 ? `0${hour}` : hour;
  894. const formattedMinute = minute < 10 ? `0${minute}` : minute;
  895. const formattedSecond = second < 10 ? `0${second}` : second;
  896. this.currentTime = `${year}年${formattedMonth}月${formattedDate}日 ${weekDays[day]} ${formattedHour}:${formattedMinute}:${formattedSecond}`;
  897. },
  898. qkq_chart4() {
  899. //摄像头统计
  900. var myChart = echarts.init(document.getElementById('qkq_chart4'));
  901. var baifenbi = [0.333, 0.444];
  902. var zongjine = [2000, 3000];
  903. var xingm = ['工业类招商', '商业类招商'];
  904. var option = {
  905. color: ['#61A8FF'], //进度条颜色
  906. grid: {
  907. left: '2%', //如果离左边太远就用这个......
  908. right: '2%',
  909. bottom: '-20',
  910. top: '5%',
  911. containLabel: true
  912. },
  913. xAxis: [{
  914. show: false,
  915. },
  916. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  917. {
  918. show: false,
  919. }
  920. ],
  921. yAxis: [{
  922. type: 'category',
  923. axisLabel: {
  924. show: false, //让Y轴数据不显示
  925. },
  926. itemStyle: {
  927. },
  928. axisTick: {
  929. show: false, //隐藏Y轴刻度
  930. },
  931. axisLine: {
  932. show: false, //隐藏Y轴线段
  933. },
  934. data: xingm,
  935. },{
  936. show: true,
  937. inverse: true,
  938. data: zongjine,
  939. axisLabel: {
  940. textStyle: {
  941. fontSize:14,
  942. color: '#02d9fc'
  943. },
  944. formatter: '{value} '
  945. },
  946. axisLine: {
  947. show: false
  948. },
  949. splitLine: {
  950. show: false
  951. },
  952. axisTick: {
  953. show: false
  954. },
  955. }],
  956. series: [
  957. //蓝条--------------------我是分割线君------------------------------//
  958. {
  959. show: true,
  960. type: 'bar',
  961. barGap: '-100%',
  962. barWidth: '35%', //统计条宽度
  963. itemStyle: {
  964. normal: {
  965. color: function(params) {
  966. return {
  967. type: 'linear',
  968. x: 0,
  969. y: 1,
  970. x2: 0,
  971. y2: 0,
  972. colorStops: [{
  973. offset: 0,
  974. color: '#0d3b91'
  975. }, {
  976. offset: 1,
  977. color: '#00abda'
  978. }],
  979. }
  980. },
  981. },
  982. },
  983. max: 1,
  984. labelLine: {
  985. show: false,
  986. },
  987. z: 2,
  988. data: baifenbi,
  989. },
  990. //数据条--------------------我是分割线君------------------------------//
  991. {
  992. show: true,
  993. type: 'bar',
  994. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  995. barGap: '-100%',
  996. barWidth: '45%', //统计条宽度
  997. itemStyle: {
  998. normal: {
  999. barBorderRadius: 200,
  1000. color: 'rgba(20, 47, 104, 0.0)'
  1001. },
  1002. },
  1003. label: {
  1004. normal: {
  1005. show: true,
  1006. //label 的position位置可以是top bottom left,right,也可以是固定值
  1007. //在这里需要上下统一对齐,所以用固定值
  1008. position: [0, '-100%'],
  1009. rich: { //富文本
  1010. white: { //自定义颜色
  1011. color: '#ffffff',
  1012. },
  1013. green: {
  1014. color: '#70DDA7',
  1015. },
  1016. yellow: {
  1017. color: '#CCB877',
  1018. },
  1019. red: {
  1020. color: '#BC3C47',
  1021. },
  1022. gray: {
  1023. color: '#727CBA'
  1024. }
  1025. },
  1026. formatter: function(data) {
  1027. //富文本固定格式{colorName|这里填你想要写的内容}
  1028. return '{white|' + xingm[data.dataIndex] + '}';
  1029. },
  1030. }
  1031. },
  1032. data: zongjine
  1033. }
  1034. ]
  1035. };
  1036. if (option) {
  1037. myChart.setOption(option);
  1038. }
  1039. },
  1040. qkq_chart5() {
  1041. //摄像头统计
  1042. var myChart = echarts.init(document.getElementById('qkq_chart5'));
  1043. var baifenbi = [0.333, 0.444];
  1044. var zongjine = [2000, 3000];
  1045. var xingm = ['工业类招商', '商业类招商'];
  1046. var option = {
  1047. color: ['#61A8FF'], //进度条颜色
  1048. grid: {
  1049. left: '2%', //如果离左边太远就用这个......
  1050. right: '2%',
  1051. bottom: '-20',
  1052. top: '5%',
  1053. containLabel: true
  1054. },
  1055. xAxis: [{
  1056. show: false,
  1057. },
  1058. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  1059. {
  1060. show: false,
  1061. }
  1062. ],
  1063. yAxis: [{
  1064. type: 'category',
  1065. axisLabel: {
  1066. show: false, //让Y轴数据不显示
  1067. },
  1068. itemStyle: {
  1069. },
  1070. axisTick: {
  1071. show: false, //隐藏Y轴刻度
  1072. },
  1073. axisLine: {
  1074. show: false, //隐藏Y轴线段
  1075. },
  1076. data: xingm,
  1077. },{
  1078. show: true,
  1079. inverse: true,
  1080. data: zongjine,
  1081. axisLabel: {
  1082. textStyle: {
  1083. fontSize:14,
  1084. color: '#02d9fc'
  1085. },
  1086. formatter: '{value} '
  1087. },
  1088. axisLine: {
  1089. show: false
  1090. },
  1091. splitLine: {
  1092. show: false
  1093. },
  1094. axisTick: {
  1095. show: false
  1096. },
  1097. }],
  1098. series: [
  1099. //蓝条--------------------我是分割线君------------------------------//
  1100. {
  1101. show: true,
  1102. type: 'bar',
  1103. barGap: '-100%',
  1104. barWidth: '35%', //统计条宽度
  1105. itemStyle: {
  1106. normal: {
  1107. color: function(params) {
  1108. return {
  1109. type: 'linear',
  1110. x: 0,
  1111. y: 1,
  1112. x2: 0,
  1113. y2: 0,
  1114. colorStops: [{
  1115. offset: 0,
  1116. color: '#0d3b91'
  1117. }, {
  1118. offset: 1,
  1119. color: '#00abda'
  1120. }],
  1121. }
  1122. },
  1123. },
  1124. },
  1125. max: 1,
  1126. labelLine: {
  1127. show: false,
  1128. },
  1129. z: 2,
  1130. data: baifenbi,
  1131. },
  1132. //数据条--------------------我是分割线君------------------------------//
  1133. {
  1134. show: true,
  1135. type: 'bar',
  1136. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  1137. barGap: '-100%',
  1138. barWidth: '45%', //统计条宽度
  1139. itemStyle: {
  1140. normal: {
  1141. barBorderRadius: 200,
  1142. color: 'rgba(20, 47, 104, 0.0)'
  1143. },
  1144. },
  1145. label: {
  1146. normal: {
  1147. show: true,
  1148. //label 的position位置可以是top bottom left,right,也可以是固定值
  1149. //在这里需要上下统一对齐,所以用固定值
  1150. position: [0, '-100%'],
  1151. rich: { //富文本
  1152. white: { //自定义颜色
  1153. color: '#ffffff',
  1154. },
  1155. green: {
  1156. color: '#70DDA7',
  1157. },
  1158. yellow: {
  1159. color: '#CCB877',
  1160. },
  1161. red: {
  1162. color: '#BC3C47',
  1163. },
  1164. gray: {
  1165. color: '#727CBA'
  1166. }
  1167. },
  1168. formatter: function(data) {
  1169. //富文本固定格式{colorName|这里填你想要写的内容}
  1170. return '{white|' + xingm[data.dataIndex] + '}';
  1171. },
  1172. }
  1173. },
  1174. data: zongjine
  1175. }
  1176. ]
  1177. };
  1178. if (option) {
  1179. myChart.setOption(option);
  1180. }
  1181. },
  1182. qkq_chart6() {
  1183. //摄像头统计
  1184. var myChart = echarts.init(document.getElementById('qkq_chart6'));
  1185. var baifenbi = [0.333, 0.444];
  1186. var zongjine = [2000, 3000];
  1187. var xingm = ['工业类招商', '商业类招商'];
  1188. var option = {
  1189. color: ['#61A8FF'], //进度条颜色
  1190. grid: {
  1191. left: '2%', //如果离左边太远就用这个......
  1192. right: '2%',
  1193. bottom: '-20',
  1194. top: '5%',
  1195. containLabel: true
  1196. },
  1197. xAxis: [{
  1198. show: false,
  1199. },
  1200. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  1201. {
  1202. show: false,
  1203. }
  1204. ],
  1205. yAxis: [{
  1206. type: 'category',
  1207. axisLabel: {
  1208. show: false, //让Y轴数据不显示
  1209. },
  1210. itemStyle: {
  1211. },
  1212. axisTick: {
  1213. show: false, //隐藏Y轴刻度
  1214. },
  1215. axisLine: {
  1216. show: false, //隐藏Y轴线段
  1217. },
  1218. data: xingm,
  1219. },{
  1220. show: true,
  1221. inverse: true,
  1222. data: zongjine,
  1223. axisLabel: {
  1224. textStyle: {
  1225. fontSize:14,
  1226. color: '#02d9fc'
  1227. },
  1228. formatter: '{value} '
  1229. },
  1230. axisLine: {
  1231. show: false
  1232. },
  1233. splitLine: {
  1234. show: false
  1235. },
  1236. axisTick: {
  1237. show: false
  1238. },
  1239. }],
  1240. series: [
  1241. //蓝条--------------------我是分割线君------------------------------//
  1242. {
  1243. show: true,
  1244. type: 'bar',
  1245. barGap: '-100%',
  1246. barWidth: '35%', //统计条宽度
  1247. itemStyle: {
  1248. normal: {
  1249. color: function(params) {
  1250. return {
  1251. type: 'linear',
  1252. x: 0,
  1253. y: 1,
  1254. x2: 0,
  1255. y2: 0,
  1256. colorStops: [{
  1257. offset: 0,
  1258. color: '#0d3b91'
  1259. }, {
  1260. offset: 1,
  1261. color: '#00abda'
  1262. }],
  1263. }
  1264. },
  1265. },
  1266. },
  1267. max: 1,
  1268. labelLine: {
  1269. show: false,
  1270. },
  1271. z: 2,
  1272. data: baifenbi,
  1273. },
  1274. //数据条--------------------我是分割线君------------------------------//
  1275. {
  1276. show: true,
  1277. type: 'bar',
  1278. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  1279. barGap: '-100%',
  1280. barWidth: '45%', //统计条宽度
  1281. itemStyle: {
  1282. normal: {
  1283. barBorderRadius: 200,
  1284. color: 'rgba(20, 47, 104, 0.0)'
  1285. },
  1286. },
  1287. label: {
  1288. normal: {
  1289. show: true,
  1290. //label 的position位置可以是top bottom left,right,也可以是固定值
  1291. //在这里需要上下统一对齐,所以用固定值
  1292. position: [0, '-100%'],
  1293. rich: { //富文本
  1294. white: { //自定义颜色
  1295. color: '#ffffff',
  1296. },
  1297. green: {
  1298. color: '#70DDA7',
  1299. },
  1300. yellow: {
  1301. color: '#CCB877',
  1302. },
  1303. red: {
  1304. color: '#BC3C47',
  1305. },
  1306. gray: {
  1307. color: '#727CBA'
  1308. }
  1309. },
  1310. formatter: function(data) {
  1311. //富文本固定格式{colorName|这里填你想要写的内容}
  1312. return '{white|' + xingm[data.dataIndex] + '}';
  1313. },
  1314. }
  1315. },
  1316. data: zongjine
  1317. }
  1318. ]
  1319. };
  1320. if (option) {
  1321. myChart.setOption(option);
  1322. }
  1323. },
  1324. qkq_zxt(){
  1325. var myChart = echarts.init(document.getElementById('qkq_zxt'));
  1326. var option = {
  1327. title: {
  1328. text: '',
  1329. x:'center',
  1330. textStyle:{
  1331. fontSize:14,
  1332. color:'#fff',
  1333. },
  1334. },
  1335. grid: {
  1336. top:'16%',
  1337. left: '3%',
  1338. right: '1%',
  1339. bottom: '3%',
  1340. containLabel: true
  1341. },
  1342. legend: {
  1343. top:'4%',
  1344. textStyle:{
  1345. fontSize:14,
  1346. color:'#fff',
  1347. },
  1348. },
  1349. tooltip:{
  1350. trigger:'item',
  1351. position:'top',
  1352. backgroundColor:'transparent',
  1353. padding:0,
  1354. formatter:function(params,ticket,callback) {
  1355. var html = '';
  1356. if(params.seriesIndex === 0) {
  1357. html += '<p style="color:red;">'+params.value+'</p>';
  1358. }else if(params.seriesIndex === 1) {
  1359. html += '<p style="color:green;">'+params.value+'</p>';
  1360. }
  1361. return html;
  1362. },
  1363. },
  1364. xAxis: {
  1365. axisLabel:{
  1366. fontSize:12,
  1367. color:'#fff'
  1368. },
  1369. axisLine:{
  1370. lineStyle:{
  1371. color:'#073073',
  1372. type:'solid'
  1373. }
  1374. },
  1375. splitLine:{
  1376. show:false,
  1377. },
  1378. axisTick:{
  1379. show:false
  1380. },
  1381. data: ['2011', '2012', '2013', '2014', '2015', '2016', '2017']
  1382. },
  1383. yAxis: {
  1384. type:'value',
  1385. name:'',
  1386. nameLocation:'end',
  1387. nameTextStyle:{
  1388. fontSize:12,
  1389. color:'#073073'
  1390. },
  1391. axisLabel:{
  1392. fontSize:12,
  1393. color:'#fff'
  1394. },
  1395. axisLine:{
  1396. lineStyle:{
  1397. color:'#073073',
  1398. }
  1399. },
  1400. splitLine:{
  1401. show:false,
  1402. lineStyle:{
  1403. color:'#073073',
  1404. width:1,
  1405. type:'dashed',
  1406. }
  1407. },
  1408. axisTick:{
  1409. show:false
  1410. }
  1411. },
  1412. series: [{
  1413. name:'招商计划',
  1414. type: 'line',
  1415. symbol:'circle',
  1416. symbolSize:8,
  1417. itemStyle:{
  1418. color:'#0c96ff',
  1419. borderColor:'rgb(12,150,255,0.3)',
  1420. borderWidth:4,
  1421. },
  1422. areaStyle:{
  1423. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  1424. offset: 0.3,
  1425. color: 'rgba(58,132,255,0)'
  1426. }, {
  1427. offset: 1,
  1428. color: 'rgba(58,132,255,0.35)'
  1429. }]),
  1430. },
  1431. emphasis:{
  1432. itemStyle:{
  1433. color:'#0c96ff',
  1434. borderColor:'rgb(12,150,255,0.3)',
  1435. borderWidth:4,
  1436. }
  1437. },
  1438. data:[220, 182, 191, 234, 290, 330, 310],
  1439. },{
  1440. name:'实施计划',
  1441. type: 'line',
  1442. symbol:'circle',
  1443. symbolSize:8,
  1444. itemStyle:{
  1445. color:'#00ffff',
  1446. borderColor:'rgb(0,255,255,0.3)',
  1447. borderWidth:4,
  1448. },
  1449. areaStyle:{
  1450. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  1451. offset: 0.3,
  1452. color: 'rgba(58,132,255,0)'
  1453. }, {
  1454. offset: 1,
  1455. color: 'rgba(58,132,255,0.35)'
  1456. }]),
  1457. },
  1458. data:[212, 12, 11, 84, 129, 30, 110]
  1459. }]
  1460. };
  1461. if (option) {
  1462. myChart.setOption(option);
  1463. }
  1464. },
  1465. qkq_zszb1(){
  1466. var myChart = echarts.init(document.getElementById('qkq_zszb1'));
  1467. const dataArr = [
  1468. {
  1469. value: 50,
  1470. name: '招商指标',
  1471. },
  1472. ];
  1473. const color = new echarts.graphic.LinearGradient(0, 0, 1, 0, [
  1474. {
  1475. offset: 0,
  1476. color: '#1f79b6', // 0% 处的颜色
  1477. },
  1478. {
  1479. offset: 1,
  1480. color: '#0dd2db', // 100% 处的颜色
  1481. },
  1482. ]);
  1483. const colorSet = [
  1484. [0.50, color],
  1485. [1, '#15337C'],
  1486. ];
  1487. const rich = {
  1488. white: {
  1489. fontSize: 14,
  1490. color: '#fff',
  1491. fontWeight: '500',
  1492. },
  1493. bule: {
  1494. fontSize: 22,
  1495. fontFamily: 'DINBold',
  1496. color: '#fff',
  1497. fontWeight: '700',
  1498. },
  1499. radius: {
  1500. width: 350,
  1501. height: 80,
  1502. // lineHeight:80,
  1503. borderWidth: 1,
  1504. borderColor: '#0092F2',
  1505. fontSize: 14,
  1506. color: '#fff',
  1507. backgroundColor: '#1B215B',
  1508. borderRadius: 20,
  1509. textAlign: 'center',
  1510. },
  1511. size: {
  1512. height: 400,
  1513. padding: [100, 0, 0, 0],
  1514. },
  1515. };
  1516. var option = {
  1517. tooltip: {
  1518. formatter: '{a} <br/>{b} : {c}%',
  1519. },
  1520. series: [
  1521. {
  1522. type: 'gauge',
  1523. radius: '70%',
  1524. startAngle: '225',
  1525. endAngle: '-45',
  1526. pointer: {
  1527. show: false,
  1528. },
  1529. detail: {
  1530. formatter: function (value) {
  1531. var num = Math.round(value);
  1532. return '{bule|' + num + '}{white|个}';
  1533. },
  1534. rich: rich,
  1535. offsetCenter: ['0%', '0%'],
  1536. },
  1537. data: dataArr,
  1538. title: {
  1539. show: true,
  1540. color: '#fff',
  1541. offsetCenter: ['0', '75%'],
  1542. fontSize: 14
  1543. },
  1544. axisLine: {
  1545. show: true,
  1546. lineStyle: {
  1547. color: colorSet,
  1548. width: 18,
  1549. shadowOffsetX: 0,
  1550. shadowOffsetY: 0,
  1551. opacity: 1,
  1552. },
  1553. },
  1554. axisTick: {
  1555. show: false,
  1556. },
  1557. splitLine: {
  1558. show: false,
  1559. length: 35,
  1560. lineStyle: {
  1561. color: '#00377a',
  1562. width: 2,
  1563. type: 'solid',
  1564. },
  1565. },
  1566. axisLabel: {
  1567. show: false,
  1568. },
  1569. },
  1570. ],
  1571. };
  1572. if(option){
  1573. myChart.setOption(option);
  1574. }
  1575. },
  1576. qkq_zszb2(){
  1577. var myChart = echarts.init(document.getElementById('qkq_zszb2'));
  1578. const dataArr = [
  1579. {
  1580. value: 91,
  1581. name: '实施数量',
  1582. },
  1583. ];
  1584. const color = new echarts.graphic.LinearGradient(0, 0, 1, 0, [
  1585. {
  1586. offset: 0,
  1587. color: '#1f79b6', // 0% 处的颜色
  1588. },
  1589. {
  1590. offset: 1,
  1591. color: '#0dd2db', // 100% 处的颜色
  1592. },
  1593. ]);
  1594. const colorSet = [
  1595. [0.91, color],
  1596. [1, '#15337C'],
  1597. ];
  1598. const rich = {
  1599. white: {
  1600. fontSize: 14,
  1601. color: '#fff',
  1602. fontWeight: '500',
  1603. },
  1604. bule: {
  1605. fontSize: 22,
  1606. fontFamily: 'DINBold',
  1607. color: '#fff',
  1608. fontWeight: '700',
  1609. },
  1610. radius: {
  1611. width: 350,
  1612. height: 80,
  1613. // lineHeight:80,
  1614. borderWidth: 1,
  1615. borderColor: '#0092F2',
  1616. fontSize: 14,
  1617. color: '#fff',
  1618. backgroundColor: '#1B215B',
  1619. borderRadius: 20,
  1620. textAlign: 'center',
  1621. },
  1622. size: {
  1623. height: 400,
  1624. padding: [100, 0, 0, 0],
  1625. },
  1626. };
  1627. var option = {
  1628. tooltip: {
  1629. formatter: '{a} <br/>{b} : {c}%',
  1630. },
  1631. series: [
  1632. {
  1633. type: 'gauge',
  1634. radius: '70%',
  1635. startAngle: '225',
  1636. endAngle: '-45',
  1637. pointer: {
  1638. show: false,
  1639. },
  1640. detail: {
  1641. formatter: function (value) {
  1642. var num = Math.round(value);
  1643. return '{bule|' + num + '}{white|个}';
  1644. },
  1645. rich: rich,
  1646. offsetCenter: ['0%', '0%'],
  1647. },
  1648. data: dataArr,
  1649. title: {
  1650. show: true,
  1651. color: '#fff',
  1652. offsetCenter: ['0', '75%'],
  1653. fontSize: 14
  1654. },
  1655. axisLine: {
  1656. show: true,
  1657. lineStyle: {
  1658. color: colorSet,
  1659. width: 18,
  1660. shadowOffsetX: 0,
  1661. shadowOffsetY: 0,
  1662. opacity: 1,
  1663. },
  1664. },
  1665. axisTick: {
  1666. show: false,
  1667. },
  1668. splitLine: {
  1669. show: false,
  1670. length: 35,
  1671. lineStyle: {
  1672. color: '#00377a',
  1673. width: 2,
  1674. type: 'solid',
  1675. },
  1676. },
  1677. axisLabel: {
  1678. show: false,
  1679. },
  1680. },
  1681. ],
  1682. };
  1683. if(option){
  1684. myChart.setOption(option);
  1685. }
  1686. },
  1687. qkq_btzb(){
  1688. // 基于准备好的dom,初始化echarts实例
  1689. var myChart = echarts.init(document.getElementById('qkq_btzb'));
  1690. var xData = ['2018', '2019', '2020', '2021', '2022', '2023', '2024']
  1691. var lineData = [100, 100, 100, 100, 100, 100, 100]
  1692. var lastYearData = [3, 20, 62, 34, 55, 65, 33];
  1693. var thisYearData = [11, 38, 23, 39, 66, 66, 79];
  1694. var timeLineData = [1];
  1695. let legend=['工业类', '商业类'];
  1696. let textColor = "#fff";
  1697. let lineColor="rgba(16, 62, 91, 0.2)";
  1698. let colors = [{
  1699. borderColor: "rgba(227,161,96,1)",
  1700. start: "rgba(227,161,96,0.8)",
  1701. end: "rgba(227,161,96,0.3)"
  1702. },
  1703. {
  1704. borderColor: "rgba(0,222,255,1)",
  1705. start: "rgba(0,222,255,0.3)",
  1706. end: "rgba(0,222,255,0.8)"
  1707. },
  1708. ];
  1709. let borderData = [];
  1710. let scale = 2;
  1711. borderData = xData.map(item => {
  1712. return scale;
  1713. });
  1714. var option = {
  1715. baseOption: {
  1716. timeline: {
  1717. show: false,
  1718. top: 0,
  1719. data: []
  1720. },
  1721. legend: {
  1722. top: '0%',
  1723. right: '5%',
  1724. itemWidth: 10,
  1725. itemHeight: 5,
  1726. // itemGap: 343,
  1727. icon: 'horizontal',
  1728. textStyle: {
  1729. color: '#ffffff',
  1730. fontSize: 14,
  1731. },
  1732. data: legend
  1733. },
  1734. grid: [{
  1735. show: false,
  1736. left: '5%',
  1737. top: '10%',
  1738. bottom: '8%',
  1739. containLabel: true,
  1740. width: '37%'
  1741. }, {
  1742. show: false,
  1743. left: '53%',
  1744. top: '10%',
  1745. bottom: '8%',
  1746. width: '0%'
  1747. }, {
  1748. show: false,
  1749. right: '2%',
  1750. top: '10%',
  1751. bottom: '8%',
  1752. containLabel: true,
  1753. width: '37%'
  1754. }],
  1755. xAxis: [{
  1756. type: 'value',
  1757. inverse: true,
  1758. axisLine: {
  1759. show: false
  1760. },
  1761. axisTick: {
  1762. show: false
  1763. },
  1764. position: 'top',
  1765. axisLabel: {
  1766. show: true,
  1767. color: textColor
  1768. },
  1769. splitLine:{
  1770. show: true,
  1771. lineStyle:{
  1772. color:lineColor
  1773. }
  1774. },
  1775. }, {
  1776. gridIndex: 1,
  1777. show: false
  1778. }, {
  1779. gridIndex: 2,
  1780. axisLine: {
  1781. show: false
  1782. },
  1783. axisTick: {
  1784. show: false
  1785. },
  1786. position: 'top',
  1787. axisLabel: {
  1788. show: true,
  1789. color: textColor
  1790. },
  1791. splitLine:{
  1792. show: true,
  1793. lineStyle:{
  1794. color:lineColor
  1795. }
  1796. },
  1797. }],
  1798. yAxis: [{
  1799. type: 'category',
  1800. inverse: true,
  1801. position: 'right',
  1802. axisLine: {
  1803. show: true,
  1804. lineStyle:{
  1805. color:lineColor
  1806. }
  1807. },
  1808. axisTick: {
  1809. show: false
  1810. },
  1811. axisLabel: {
  1812. show: false
  1813. },
  1814. data: xData
  1815. }, {
  1816. gridIndex: 1,
  1817. type: 'category',
  1818. inverse: true,
  1819. position: 'left',
  1820. axisLine: {
  1821. show: false
  1822. },
  1823. axisTick: {
  1824. show: false
  1825. },
  1826. axisLabel: {
  1827. show: true,
  1828. padding:[30,0,0,0],
  1829. textStyle: {
  1830. color: '#ffffff',
  1831. fontSize: 14
  1832. },
  1833. align: "center"
  1834. },
  1835. data: xData.map(function(value) {
  1836. return {
  1837. value: value,
  1838. textStyle: {
  1839. align: 'center'
  1840. }
  1841. }
  1842. })
  1843. }, {
  1844. gridIndex: 2,
  1845. type: 'category',
  1846. inverse: true,
  1847. position: 'left',
  1848. axisLine: {
  1849. show: true,
  1850. lineStyle:{
  1851. color:lineColor
  1852. }
  1853. },
  1854. axisTick: {
  1855. show: false
  1856. },
  1857. axisLabel: {
  1858. show: false
  1859. },
  1860. data: xData
  1861. }],
  1862. series: []
  1863. },
  1864. options: []
  1865. }
  1866. option.baseOption.timeline.data.push(timeLineData[0])
  1867. option.options.push({
  1868. series: [{
  1869. name: "工业类",
  1870. type: "bar",
  1871. barWidth: 15,
  1872. stack: "1",
  1873. itemStyle: {
  1874. normal: {
  1875. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  1876. offset: 0,
  1877. color: colors[0].start
  1878. },
  1879. {
  1880. offset: 1,
  1881. color: colors[0].end
  1882. }
  1883. ]),
  1884. }
  1885. },
  1886. label: {
  1887. normal: {
  1888. show: true,
  1889. }
  1890. },
  1891. data: lastYearData,
  1892. animationEasing: "elasticOut"
  1893. },
  1894. {
  1895. name: "工业类",
  1896. type: "bar",
  1897. barWidth: 15,
  1898. stack: "1",
  1899. itemStyle: {
  1900. normal: {
  1901. color: colors[0].borderColor
  1902. }
  1903. },
  1904. data: borderData
  1905. },
  1906. {
  1907. name: "商业类",
  1908. type: "bar",
  1909. stack: "2",
  1910. barWidth: 15,
  1911. xAxisIndex: 2,
  1912. yAxisIndex: 2,
  1913. itemStyle: {
  1914. normal: {
  1915. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  1916. offset: 0,
  1917. color: colors[1].start
  1918. },
  1919. {
  1920. offset: 1,
  1921. color: colors[1].end
  1922. }
  1923. ]),
  1924. }
  1925. },
  1926. label: {
  1927. normal: {
  1928. show: true,
  1929. }
  1930. },
  1931. data: thisYearData,
  1932. animationEasing: "elasticOut"
  1933. },
  1934. {
  1935. name: "商业类",
  1936. type: "bar",
  1937. xAxisIndex: 2,
  1938. yAxisIndex: 2,
  1939. barWidth: 15,
  1940. stack: "2",
  1941. itemStyle: {
  1942. normal: {
  1943. color: colors[1].borderColor
  1944. }
  1945. },
  1946. data: borderData
  1947. },
  1948. ]
  1949. });
  1950. if(option){
  1951. myChart.setOption(option);
  1952. }
  1953. }
  1954. }
  1955. };
  1956. // import '@/assets/images/leftnav.js';
  1957. $(function () {
  1958. var Accordion = function (el, multiple) {
  1959. this.el = el || {};
  1960. this.multiple = multiple || false;
  1961. // Variables privadas
  1962. var links = this.el.find('.link');
  1963. // Evento
  1964. links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
  1965. };
  1966. Accordion.prototype.dropdown = function (e) {
  1967. var $el = e.data.el;
  1968. let $this = $(this);
  1969. let $next = $this.next();
  1970. $next.slideToggle();
  1971. $this.parent().toggleClass('open');
  1972. if (!e.data.multiple) {
  1973. $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
  1974. }
  1975. };
  1976. var accordion = new Accordion($('#accordion'), false);
  1977. $('.submenu li').click(function () {
  1978. $(this).addClass('current').siblings('li').removeClass('current');
  1979. });
  1980. });
  1981. //切换单屏电视墙
  1982. $(function () {
  1983. $(this.$el).find('.facility_tab .div_tab a').TL_Tab({
  1984. tab: ".facility_tab .div_tab a",
  1985. box: ".facility_tab .tab_cont",
  1986. events: "click",
  1987. num: 1,
  1988. speed: 10
  1989. });
  1990. });
  1991. </script>
  1992. <style>
  1993. /* 添加你的CSS样式 */
  1994. </style>