jjyx.vue 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371
  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_e">
  30. <div class="con_div">
  31. <div class="qkq_tit ">规模以上工业增加值</div>
  32. <div class="qkq_jjyx_div">
  33. <div id="qkq_zjz1_1"></div>
  34. <div id="qkq_zjz2_1"></div>
  35. </div>
  36. </div>
  37. <div class="con_div">
  38. <div class="qkq_tit ">固定资产投资额</div>
  39. <div class="qkq_jjyx_div">
  40. <div id="qkq_zjz1_2"></div>
  41. <div id="qkq_zjz2_2"></div>
  42. </div>
  43. </div>
  44. <div class="con_div">
  45. <div class="qkq_tit ">民间投资额</div>
  46. <div class="qkq_jjyx_div">
  47. <div id="qkq_zjz1_3"></div>
  48. <div id="qkq_zjz2_3"></div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="con_left_f">
  53. <div class="con_div clearfix">
  54. <div class="con_left_l fl">
  55. <div class="qkq_tit ">政策法规</div>
  56. <div class="qkq_zcfg">
  57. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  58. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  59. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  60. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  61. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  62. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  63. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  64. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  65. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  66. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  67. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  68. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  69. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  70. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  71. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  72. <p>汽开区的一些政策法规的列表展示<span>2024-01-01</span></p>
  73. </div>
  74. </div>
  75. <div class="con_left_r fr">
  76. <div class="qkq_tit ">主要经济指标</div>
  77. <div class="qkq_zcfg">
  78. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  79. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  80. <p>汽开区的一些主要经济指标的列表展示<i class="down">9.0%</i></p>
  81. <p>汽开区的一些主要经济指标的列表展示<i class="down">9.0%</i></p>
  82. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  83. <p>汽开区的一些主要经济指标的列表展示<i class="down">9.0%</i></p>
  84. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  85. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  86. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  87. <p>汽开区的一些主要经济指标的列表展示<i class="down">9.0%</i></p>
  88. <p>汽开区的一些主要经济指标的列表展示<i class="down">9.0%</i></p>
  89. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  90. <p>汽开区的一些主要经济指标的列表展示<i class="down">9.0%</i></p>
  91. <p>汽开区的一些主要经济指标的列表展示<i class="up">9.0%</i></p>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="con_div">
  96. <div id="qkq_jdt"></div>
  97. </div>
  98. <div class="con_div">
  99. <div id="qkq_kxt"></div>
  100. </div>
  101. </div>
  102. <div class="con_left_g">
  103. <div class="con_div">
  104. <div class="qkq_tit ">规模以上工业增加值</div>
  105. <div class="qkq_jjyx_div">
  106. <div id="qkq_zjz1_4"></div>
  107. <div id="qkq_zjz2_4"></div>
  108. </div>
  109. </div>
  110. <div class="con_div">
  111. <div class="qkq_tit ">固定资产投资额</div>
  112. <div class="qkq_jjyx_div">
  113. <div id="qkq_zjz1_5"></div>
  114. <div id="qkq_zjz2_5"></div>
  115. </div>
  116. </div>
  117. <div class="con_div">
  118. <div class="qkq_tit ">民间投资额</div>
  119. <div class="qkq_jjyx_div">
  120. <div id="qkq_zjz1_6"></div>
  121. <div id="qkq_zjz2_6"></div>
  122. </div>
  123. </div>
  124. </div>
  125. <!--左侧结束-->
  126. </div>
  127. <!-- 中间内容 结束 -->
  128. <!--底部开始-->
  129. <div class="footer">
  130. <div class="nav-bottom">
  131. <div class="nav-bottom-left">
  132. <div class="nav-li-left on" @click="handleNavigation('jjyx')">
  133. <span>经济运行</span>
  134. </div>
  135. <div class="nav-li-left" @click="handleNavigation('csgl')">
  136. <span>城市管理</span>
  137. </div>
  138. <div class="nav-li-left" @click="handleNavigation('jtzl')">
  139. <span>交通治理</span>
  140. </div>
  141. <div class="nav-li-left" @click="handleNavigation('jczl')">
  142. <span>基层治理</span>
  143. </div>
  144. </div>
  145. <div class="nav-home-middle" @click="homePage('weather')">
  146. <img src="@/assets/images/home-btn.png"/>
  147. <a>返回首页</a>
  148. </div>
  149. <div class="nav-bottom-right">
  150. <div class="nav-li-right">
  151. <span>营商环境</span>
  152. </div>
  153. <div class="nav-li-right" @click="handleNavigation('yshj')">
  154. <span>政务运行</span>
  155. </div>
  156. <div class="nav-li-right" @click="handleNavigation('aqyj')">
  157. <span>安全应急</span>
  158. </div>
  159. <div class="nav-li-right" @click="handleNavigation('fwyq')">
  160. <span>服务一汽</span>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. <!--底部开始-->
  166. </div>
  167. </template>
  168. <script>
  169. import * as echarts from 'echarts'
  170. import $ from 'jquery'
  171. import jQuery from 'jquery'
  172. import "@/assets/images/qkq_body.css";
  173. import "@/assets/images/qkq_index.css";
  174. import "@/assets/images/qkq_sprh.css";
  175. import {
  176. getCameraList
  177. } from "@/api/system/camera";
  178. import supermap from "@/views/supermap/supermap";
  179. export default {
  180. name: "jjyx",
  181. components: {
  182. supermap
  183. },
  184. data() {
  185. return {
  186. dropdownVisible: false,
  187. cameras: [],
  188. sltProps: null,
  189. currentTime: '',
  190. btnOne: true,
  191. btnTwo: false
  192. };
  193. // 可根据实际情况添加更多设备列表
  194. },
  195. created() {
  196. },
  197. mounted() {
  198. this.qkq_zjz1_1();
  199. this.qkq_zjz2_1();
  200. this.qkq_zjz1_2();
  201. this.qkq_zjz2_2();
  202. this.qkq_zjz1_3();
  203. this.qkq_zjz2_3();
  204. this.qkq_zjz1_4();
  205. this.qkq_zjz2_4();
  206. this.qkq_zjz1_5();
  207. this.qkq_zjz2_5();
  208. this.qkq_zjz1_6();
  209. this.qkq_zjz2_6();
  210. this.getCurrentTime();
  211. this.qkq_jdt();
  212. this.qkq_kxt();
  213. // 每秒刷新时间
  214. setInterval(() => {
  215. this.getCurrentTime();
  216. }, 1000);
  217. },
  218. methods: {
  219. sltHandle() {
  220. this.btnOne = true
  221. this.btnTwo = false
  222. this.$refs.supermap.getSupermap(null, null, null, "slt", null, null)
  223. },
  224. yxtHandle() {
  225. this.btnTwo = true
  226. this.btnOne = false
  227. this.$refs.supermap.getSupermap(null, null, null, "yxt", null, null)
  228. },
  229. handleNavigation(route) {
  230. this.$router.push({
  231. path: route
  232. });
  233. },
  234. homePage(route) {
  235. this.$router.push({
  236. path: route
  237. });
  238. },
  239. cameraList() {
  240. getCameraList().then(response => {
  241. this.cameras = response.data;
  242. })
  243. },
  244. toggleDropdown(event) {
  245. this.dropdownVisible = !this.dropdownVisible;
  246. },
  247. qkq_zjz1_1() {
  248. //一汽红旗项目服务局
  249. var myChart = echarts.init(document.getElementById('qkq_zjz1_1'));
  250. var data = [{
  251. value: "10",
  252. itemStyle: {
  253. color: "#ffbf00"
  254. }
  255. },
  256. {
  257. value: "100",
  258. itemStyle: {
  259. color: "#fc465"
  260. }
  261. }
  262. ];
  263. var dataTotal = Number(data[1].value) + Number(data[0].value)
  264. var dataArr = [{
  265. value: Number(data[0].value),
  266. name: '增加值',
  267. itemStyle: {
  268. normal: {
  269. color: "#5a98ed"
  270. }
  271. }
  272. }, {
  273. value: Number(data[1].value),
  274. name: '总数',
  275. itemStyle: {
  276. normal: {
  277. color: "#1a3b72"
  278. }
  279. }
  280. }]
  281. var option = {
  282. title: [{
  283. text: '工业增加值',
  284. left: '49%',
  285. top: '40%',
  286. textAlign: 'center',
  287. textBaseline: 'middle',
  288. textStyle: {
  289. color: '#66b1ff',
  290. fontWeight: 'normal',
  291. fontSize: 16
  292. }
  293. }, {
  294. text: Math.floor((data[1].value / dataTotal) * 100) + '%',
  295. left: '49%',
  296. top: '55%',
  297. textAlign: 'center',
  298. textBaseline: 'middle',
  299. textStyle: {
  300. color: '#ffff00',
  301. fontWeight: 'normal',
  302. fontSize: 18
  303. }
  304. }],
  305. series: [{
  306. radius: ['55%', '70%'],
  307. name: '',
  308. type: 'pie',
  309. selectedOffset: 16,
  310. startAngle: 90,
  311. z: 3,
  312. labelLine: {
  313. normal: {
  314. length: 5,
  315. length2: 10,
  316. lineStyle: {
  317. width: 2
  318. }
  319. }
  320. },
  321. label: {
  322. normal: {
  323. textStyle: {
  324. fontSize: 14
  325. },
  326. formatter: function (params) {
  327. return params.name + '\n' + params.value
  328. }
  329. }
  330. },
  331. data: dataArr
  332. }]
  333. };
  334. myChart.setOption(option, true);
  335. if (option) {
  336. myChart.setOption(option);
  337. }
  338. },
  339. qkq_zjz2_1() {
  340. var myChart = echarts.init(document.getElementById('qkq_zjz2_1'));
  341. let xData = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  342. let yData = [25, 100, 50, 45, 75, 25, 100, 50, 45, 75, 25, 100, 50, 45, 75]
  343. let barData = [25, 60, 50, 45, 75, 25, 60, 50, 45, 75, 25, 60, 50, 45, 75]
  344. function calMax(arr) {
  345. let max = 0;
  346. arr.forEach((el) => {
  347. el.forEach((el1) => {
  348. if (!(el1 === undefined || el1 === '')) {
  349. if (Number(max) < Number(el1)) {
  350. max = Number(el1);
  351. }
  352. }
  353. })
  354. })
  355. let maxint = Math.ceil(max / 9.5);
  356. //不让最高的值超过最上面的刻度
  357. let maxval = maxint * 10;
  358. //让显示的刻度是整数
  359. return maxval;
  360. }
  361. var max = Math.ceil(calMax([yData]) / 50) * 50;
  362. var max1 = Math.ceil(calMax([barData]) / 50) * 50;
  363. var option = {
  364. legend: {
  365. left: '1%',
  366. textStyle: {
  367. color: "#fff",
  368. fontSize: 12
  369. },
  370. },
  371. grid: {
  372. left: '1%',
  373. top: 60,
  374. right: 0,
  375. bottom: 0,
  376. containLabel: true
  377. },
  378. tooltip: {
  379. trigger: 'axis'
  380. },
  381. xAxis: {
  382. data: xData,
  383. axisTick: {
  384. show: false
  385. },
  386. axisLabel: {
  387. color: 'rgba(204, 234, 255, 1)'
  388. },
  389. axisLine: {
  390. lineStyle: {
  391. color: 'rgba(18, 255, 255, 0.5)'
  392. }
  393. }
  394. },
  395. yAxis: [{
  396. max: max1,
  397. name: '2024年',
  398. nameTextStyle: {
  399. align: 'left',
  400. color: 'rgba(204, 234, 255, 1)'
  401. },
  402. axisLabel: {
  403. color: 'rgba(204, 234, 255, 1)'
  404. },
  405. axisTick: {
  406. show: false
  407. },
  408. axisLine: {
  409. show: false
  410. },
  411. splitLine: {
  412. lineStyle: {
  413. type: 'dashed',
  414. color: 'rgba(18, 255, 255, 0.5)'
  415. }
  416. }
  417. }, {
  418. max: max,
  419. name: '2023年',
  420. position: 'right',
  421. nameTextStyle: {
  422. align: 'right',
  423. color: 'rgba(204, 234, 255, 1)'
  424. },
  425. axisLabel: {
  426. color: 'rgba(204, 234, 255, 1)'
  427. },
  428. axisTick: {
  429. show: false
  430. },
  431. axisLine: {
  432. show: false
  433. },
  434. splitLine: {
  435. lineStyle: {
  436. type: 'dashed',
  437. color: 'rgba(18, 255, 255, 0.5)'
  438. }
  439. }
  440. }],
  441. series: [
  442. {
  443. name: '2024年',
  444. type: 'bar',
  445. data: barData,
  446. barWidth: 10,
  447. yAxisIndex: 0,
  448. itemStyle: {
  449. normal: {
  450. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  451. offset: 0,
  452. color: '#1D82FF'
  453. }, {
  454. offset: 1,
  455. color: '#00FFF6'
  456. }]),
  457. barBorderRadius: [4, 4, 0, 0]
  458. }
  459. }
  460. },
  461. {
  462. name: '2023年',
  463. type: 'line',
  464. data: yData,
  465. yAxisIndex: 1,
  466. smooth: true,
  467. symbol: 'none',
  468. itemStyle: {
  469. normal: {
  470. lineStyle: {
  471. color: {
  472. // 两端添加透明度,模拟两端线收缩
  473. colorStops: [{
  474. offset: 0,
  475. color: 'rgba(255, 227, 168, 0)' // 0% 处的颜色
  476. }, {
  477. offset: 0.2,
  478. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  479. }, {
  480. offset: 0.8,
  481. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  482. }, {
  483. offset: 1,
  484. color: 'rgba(255, 227, 168, 0)'
  485. }]
  486. },
  487. shadowColor: 'rgba(255, 120, 0, 1)',
  488. shadowBlur: 8
  489. },
  490. areaStyle: {
  491. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  492. offset: 0,
  493. color: 'rgba(197, 106, 255, 0.6)'
  494. }, {
  495. offset: 0.6,
  496. color: 'rgba(255, 120, 0, 0)'
  497. }]),
  498. }
  499. }
  500. }
  501. },
  502. {
  503. type: 'lines',
  504. coordinateSystem: 'cartesian2d',
  505. data: barData.map((item, index) => {
  506. return {
  507. coords: [
  508. [index, 0],
  509. [index, item - 4]
  510. ]
  511. };
  512. }),
  513. effect: {
  514. show: true,
  515. period: 2.5,
  516. trailLength: 0.5, //控制拖尾长度
  517. symbolSize: [15, 2],
  518. symbol: this.$store.state.common.echarts_baseStreamer,
  519. loop: true,
  520. color: '#fff' //流光颜色
  521. },
  522. lineStyle: {
  523. width: 0,
  524. opacity: 0.6,
  525. curveness: 0
  526. },
  527. z: 999
  528. },
  529. ]
  530. };
  531. if (option) {
  532. myChart.setOption(option);
  533. }
  534. },
  535. qkq_zjz1_2() {
  536. //一汽红旗项目服务局
  537. var myChart = echarts.init(document.getElementById('qkq_zjz1_2'));
  538. var data = [{
  539. value: "10",
  540. itemStyle: {
  541. color: "#ffbf00"
  542. }
  543. },
  544. {
  545. value: "100",
  546. itemStyle: {
  547. color: "#fc465"
  548. }
  549. }
  550. ];
  551. var dataTotal = Number(data[1].value) + Number(data[0].value)
  552. var dataArr = [{
  553. value: Number(data[0].value),
  554. name: '增加值',
  555. itemStyle: {
  556. normal: {
  557. color: "#5a98ed"
  558. }
  559. }
  560. }, {
  561. value: Number(data[1].value),
  562. name: '总数',
  563. itemStyle: {
  564. normal: {
  565. color: "#1a3b72"
  566. }
  567. }
  568. }]
  569. var option = {
  570. title: [{
  571. text: '工业增加值',
  572. left: '49%',
  573. top: '40%',
  574. textAlign: 'center',
  575. textBaseline: 'middle',
  576. textStyle: {
  577. color: '#66b1ff',
  578. fontWeight: 'normal',
  579. fontSize: 16
  580. }
  581. }, {
  582. text: Math.floor((data[1].value / dataTotal) * 100) + '%',
  583. left: '49%',
  584. top: '55%',
  585. textAlign: 'center',
  586. textBaseline: 'middle',
  587. textStyle: {
  588. color: '#ffff00',
  589. fontWeight: 'normal',
  590. fontSize: 18
  591. }
  592. }],
  593. series: [{
  594. radius: ['55%', '70%'],
  595. name: '',
  596. type: 'pie',
  597. selectedOffset: 16,
  598. startAngle: 90,
  599. z: 3,
  600. labelLine: {
  601. normal: {
  602. length: 5,
  603. length2: 10,
  604. lineStyle: {
  605. width: 2
  606. }
  607. }
  608. },
  609. label: {
  610. normal: {
  611. textStyle: {
  612. fontSize: 14
  613. },
  614. formatter: function (params) {
  615. return params.name + '\n' + params.value
  616. }
  617. }
  618. },
  619. data: dataArr
  620. }]
  621. };
  622. myChart.setOption(option, true);
  623. if (option) {
  624. myChart.setOption(option);
  625. }
  626. },
  627. qkq_zjz2_2() {
  628. var myChart = echarts.init(document.getElementById('qkq_zjz2_2'));
  629. let xData = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  630. let yData = [25, 100, 50, 45, 75, 25, 100, 50, 45, 75, 25, 100, 50, 45, 75]
  631. let barData = [25, 60, 50, 45, 75, 25, 60, 50, 45, 75, 25, 60, 50, 45, 75]
  632. function calMax(arr) {
  633. let max = 0;
  634. arr.forEach((el) => {
  635. el.forEach((el1) => {
  636. if (!(el1 === undefined || el1 === '')) {
  637. if (Number(max) < Number(el1)) {
  638. max = Number(el1);
  639. }
  640. }
  641. })
  642. })
  643. let maxint = Math.ceil(max / 9.5);
  644. //不让最高的值超过最上面的刻度
  645. let maxval = maxint * 10;
  646. //让显示的刻度是整数
  647. return maxval;
  648. }
  649. var max = Math.ceil(calMax([yData]) / 50) * 50;
  650. var max1 = Math.ceil(calMax([barData]) / 50) * 50;
  651. var option = {
  652. legend: {
  653. left: '1%',
  654. textStyle: {
  655. color: "#fff",
  656. fontSize: 12
  657. },
  658. },
  659. grid: {
  660. left: '1%',
  661. top: 60,
  662. right: 0,
  663. bottom: 0,
  664. containLabel: true
  665. },
  666. tooltip: {
  667. trigger: 'axis'
  668. },
  669. xAxis: {
  670. data: xData,
  671. axisTick: {
  672. show: false
  673. },
  674. axisLabel: {
  675. color: 'rgba(204, 234, 255, 1)'
  676. },
  677. axisLine: {
  678. lineStyle: {
  679. color: 'rgba(18, 255, 255, 0.5)'
  680. }
  681. }
  682. },
  683. yAxis: [{
  684. max: max1,
  685. name: '2024年',
  686. nameTextStyle: {
  687. align: 'left',
  688. color: 'rgba(204, 234, 255, 1)'
  689. },
  690. axisLabel: {
  691. color: 'rgba(204, 234, 255, 1)'
  692. },
  693. axisTick: {
  694. show: false
  695. },
  696. axisLine: {
  697. show: false
  698. },
  699. splitLine: {
  700. lineStyle: {
  701. type: 'dashed',
  702. color: 'rgba(18, 255, 255, 0.5)'
  703. }
  704. }
  705. }, {
  706. max: max,
  707. name: '2023年',
  708. position: 'right',
  709. nameTextStyle: {
  710. align: 'right',
  711. color: 'rgba(204, 234, 255, 1)'
  712. },
  713. axisLabel: {
  714. color: 'rgba(204, 234, 255, 1)'
  715. },
  716. axisTick: {
  717. show: false
  718. },
  719. axisLine: {
  720. show: false
  721. },
  722. splitLine: {
  723. lineStyle: {
  724. type: 'dashed',
  725. color: 'rgba(18, 255, 255, 0.5)'
  726. }
  727. }
  728. }],
  729. series: [{
  730. name: '2024年',
  731. type: 'bar',
  732. data: barData,
  733. barWidth: 10,
  734. yAxisIndex: 0,
  735. itemStyle: {
  736. normal: {
  737. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  738. offset: 0,
  739. color: '#1D82FF'
  740. }, {
  741. offset: 1,
  742. color: '#00FFF6'
  743. }]),
  744. barBorderRadius: [4, 4, 0, 0]
  745. }
  746. }
  747. }, {
  748. name: '2023年',
  749. type: 'line',
  750. data: yData,
  751. yAxisIndex: 1,
  752. smooth: true,
  753. symbol: 'none',
  754. itemStyle: {
  755. normal: {
  756. lineStyle: {
  757. color: {
  758. // 两端添加透明度,模拟两端线收缩
  759. colorStops: [{
  760. offset: 0,
  761. color: 'rgba(255, 227, 168, 0)' // 0% 处的颜色
  762. }, {
  763. offset: 0.2,
  764. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  765. }, {
  766. offset: 0.8,
  767. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  768. }, {
  769. offset: 1,
  770. color: 'rgba(255, 227, 168, 0)'
  771. }]
  772. },
  773. shadowColor: 'rgba(255, 120, 0, 1)',
  774. shadowBlur: 8
  775. },
  776. areaStyle: {
  777. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  778. offset: 0,
  779. color: 'rgba(197, 106, 255, 0.6)'
  780. }, {
  781. offset: 0.6,
  782. color: 'rgba(255, 120, 0, 0)'
  783. }]),
  784. }
  785. }
  786. }
  787. },
  788. {
  789. type: 'lines',
  790. coordinateSystem: 'cartesian2d',
  791. data: barData.map((item, index) => {
  792. return {
  793. coords: [
  794. [index, 0],
  795. [index, item - 4]
  796. ]
  797. };
  798. }),
  799. effect: {
  800. show: true,
  801. period: 2.5,
  802. trailLength: 0.5, //控制拖尾长度
  803. symbolSize: [15, 2],
  804. symbol: this.$store.state.common.echarts_baseStreamer,
  805. loop: true,
  806. color: '#fff' //流光颜色
  807. },
  808. lineStyle: {
  809. width: 0,
  810. opacity: 0.6,
  811. curveness: 0
  812. },
  813. z: 999
  814. },]
  815. };
  816. if (option) {
  817. myChart.setOption(option);
  818. }
  819. },
  820. qkq_zjz1_3() {
  821. //一汽红旗项目服务局
  822. var myChart = echarts.init(document.getElementById('qkq_zjz1_3'));
  823. var data = [{
  824. value: "10",
  825. itemStyle: {
  826. color: "#ffbf00"
  827. }
  828. },
  829. {
  830. value: "100",
  831. itemStyle: {
  832. color: "#fc465"
  833. }
  834. }
  835. ];
  836. var dataTotal = Number(data[1].value) + Number(data[0].value)
  837. var dataArr = [{
  838. value: Number(data[0].value),
  839. name: '增加值',
  840. itemStyle: {
  841. normal: {
  842. color: "#5a98ed"
  843. }
  844. }
  845. }, {
  846. value: Number(data[1].value),
  847. name: '总数',
  848. itemStyle: {
  849. normal: {
  850. color: "#1a3b72"
  851. }
  852. }
  853. }]
  854. var option = {
  855. title: [{
  856. text: '工业增加值',
  857. left: '49%',
  858. top: '40%',
  859. textAlign: 'center',
  860. textBaseline: 'middle',
  861. textStyle: {
  862. color: '#66b1ff',
  863. fontWeight: 'normal',
  864. fontSize: 16
  865. }
  866. }, {
  867. text: Math.floor((data[1].value / dataTotal) * 100) + '%',
  868. left: '49%',
  869. top: '55%',
  870. textAlign: 'center',
  871. textBaseline: 'middle',
  872. textStyle: {
  873. color: '#ffff00',
  874. fontWeight: 'normal',
  875. fontSize: 18
  876. }
  877. }],
  878. series: [{
  879. radius: ['55%', '70%'],
  880. name: '',
  881. type: 'pie',
  882. selectedOffset: 16,
  883. startAngle: 90,
  884. z: 3,
  885. labelLine: {
  886. normal: {
  887. length: 5,
  888. length2: 10,
  889. lineStyle: {
  890. width: 2
  891. }
  892. }
  893. },
  894. label: {
  895. normal: {
  896. textStyle: {
  897. fontSize: 14
  898. },
  899. formatter: function (params) {
  900. return params.name + '\n' + params.value
  901. }
  902. }
  903. },
  904. data: dataArr
  905. }]
  906. };
  907. myChart.setOption(option, true);
  908. if (option) {
  909. myChart.setOption(option);
  910. }
  911. },
  912. qkq_zjz2_3() {
  913. var myChart = echarts.init(document.getElementById('qkq_zjz2_3'));
  914. let xData = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  915. let yData = [25, 100, 50, 45, 75, 25, 100, 50, 45, 75, 25, 100, 50, 45, 75]
  916. let barData = [25, 60, 50, 45, 75, 25, 60, 50, 45, 75, 25, 60, 50, 45, 75]
  917. function calMax(arr) {
  918. let max = 0;
  919. arr.forEach((el) => {
  920. el.forEach((el1) => {
  921. if (!(el1 === undefined || el1 === '')) {
  922. if (Number(max) < Number(el1)) {
  923. max = Number(el1);
  924. }
  925. }
  926. })
  927. })
  928. let maxint = Math.ceil(max / 9.5);
  929. //不让最高的值超过最上面的刻度
  930. let maxval = maxint * 10;
  931. //让显示的刻度是整数
  932. return maxval;
  933. }
  934. var max = Math.ceil(calMax([yData]) / 50) * 50;
  935. var max1 = Math.ceil(calMax([barData]) / 50) * 50;
  936. var option = {
  937. legend: {
  938. left: '1%',
  939. textStyle: {
  940. color: "#fff",
  941. fontSize: 12
  942. },
  943. },
  944. grid: {
  945. left: '1%',
  946. top: 60,
  947. right: 0,
  948. bottom: 0,
  949. containLabel: true
  950. },
  951. tooltip: {
  952. trigger: 'axis'
  953. },
  954. xAxis: {
  955. data: xData,
  956. axisTick: {
  957. show: false
  958. },
  959. axisLabel: {
  960. color: 'rgba(204, 234, 255, 1)'
  961. },
  962. axisLine: {
  963. lineStyle: {
  964. color: 'rgba(18, 255, 255, 0.5)'
  965. }
  966. }
  967. },
  968. yAxis: [{
  969. max: max1,
  970. name: '2024年',
  971. nameTextStyle: {
  972. align: 'left',
  973. color: 'rgba(204, 234, 255, 1)'
  974. },
  975. axisLabel: {
  976. color: 'rgba(204, 234, 255, 1)'
  977. },
  978. axisTick: {
  979. show: false
  980. },
  981. axisLine: {
  982. show: false
  983. },
  984. splitLine: {
  985. lineStyle: {
  986. type: 'dashed',
  987. color: 'rgba(18, 255, 255, 0.5)'
  988. }
  989. }
  990. }, {
  991. max: max,
  992. name: '2023年',
  993. position: 'right',
  994. nameTextStyle: {
  995. align: 'right',
  996. color: 'rgba(204, 234, 255, 1)'
  997. },
  998. axisLabel: {
  999. color: 'rgba(204, 234, 255, 1)'
  1000. },
  1001. axisTick: {
  1002. show: false
  1003. },
  1004. axisLine: {
  1005. show: false
  1006. },
  1007. splitLine: {
  1008. lineStyle: {
  1009. type: 'dashed',
  1010. color: 'rgba(18, 255, 255, 0.5)'
  1011. }
  1012. }
  1013. }],
  1014. series: [{
  1015. name: '2024年',
  1016. type: 'bar',
  1017. data: barData,
  1018. barWidth: 10,
  1019. yAxisIndex: 0,
  1020. itemStyle: {
  1021. normal: {
  1022. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1023. offset: 0,
  1024. color: '#1D82FF'
  1025. }, {
  1026. offset: 1,
  1027. color: '#00FFF6'
  1028. }]),
  1029. barBorderRadius: [4, 4, 0, 0]
  1030. }
  1031. }
  1032. }, {
  1033. name: '2023年',
  1034. type: 'line',
  1035. data: yData,
  1036. yAxisIndex: 1,
  1037. smooth: true,
  1038. symbol: 'none',
  1039. itemStyle: {
  1040. normal: {
  1041. lineStyle: {
  1042. color: {
  1043. // 两端添加透明度,模拟两端线收缩
  1044. colorStops: [{
  1045. offset: 0,
  1046. color: 'rgba(255, 227, 168, 0)' // 0% 处的颜色
  1047. }, {
  1048. offset: 0.2,
  1049. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1050. }, {
  1051. offset: 0.8,
  1052. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1053. }, {
  1054. offset: 1,
  1055. color: 'rgba(255, 227, 168, 0)'
  1056. }]
  1057. },
  1058. shadowColor: 'rgba(255, 120, 0, 1)',
  1059. shadowBlur: 8
  1060. },
  1061. areaStyle: {
  1062. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1063. offset: 0,
  1064. color: 'rgba(197, 106, 255, 0.6)'
  1065. }, {
  1066. offset: 0.6,
  1067. color: 'rgba(255, 120, 0, 0)'
  1068. }]),
  1069. }
  1070. }
  1071. }
  1072. },
  1073. {
  1074. type: 'lines',
  1075. coordinateSystem: 'cartesian2d',
  1076. data: barData.map((item, index) => {
  1077. return {
  1078. coords: [
  1079. [index, 0],
  1080. [index, item - 4]
  1081. ]
  1082. };
  1083. }),
  1084. effect: {
  1085. show: true,
  1086. period: 2.5,
  1087. trailLength: 0.5, //控制拖尾长度
  1088. symbolSize: [15, 2],
  1089. symbol: this.$store.state.common.echarts_baseStreamer,
  1090. loop: true,
  1091. color: '#fff' //流光颜色
  1092. },
  1093. lineStyle: {
  1094. width: 0,
  1095. opacity: 0.6,
  1096. curveness: 0
  1097. },
  1098. z: 999
  1099. },]
  1100. };
  1101. if (option) {
  1102. myChart.setOption(option);
  1103. }
  1104. },
  1105. qkq_zjz1_4() {
  1106. //一汽红旗项目服务局
  1107. var myChart = echarts.init(document.getElementById('qkq_zjz1_4'));
  1108. var data = [{
  1109. value: "10",
  1110. itemStyle: {
  1111. color: "#ffbf00"
  1112. }
  1113. },
  1114. {
  1115. value: "100",
  1116. itemStyle: {
  1117. color: "#fc465"
  1118. }
  1119. }
  1120. ];
  1121. var dataTotal = Number(data[1].value) + Number(data[0].value)
  1122. var dataArr = [{
  1123. value: Number(data[0].value),
  1124. name: '增加值',
  1125. itemStyle: {
  1126. normal: {
  1127. color: "#5a98ed"
  1128. }
  1129. }
  1130. }, {
  1131. value: Number(data[1].value),
  1132. name: '总数',
  1133. itemStyle: {
  1134. normal: {
  1135. color: "#1a3b72"
  1136. }
  1137. }
  1138. }]
  1139. var option = {
  1140. title: [{
  1141. text: '工业增加值',
  1142. left: '49%',
  1143. top: '40%',
  1144. textAlign: 'center',
  1145. textBaseline: 'middle',
  1146. textStyle: {
  1147. color: '#66b1ff',
  1148. fontWeight: 'normal',
  1149. fontSize: 16
  1150. }
  1151. }, {
  1152. text: Math.floor((data[1].value / dataTotal) * 100) + '%',
  1153. left: '49%',
  1154. top: '55%',
  1155. textAlign: 'center',
  1156. textBaseline: 'middle',
  1157. textStyle: {
  1158. color: '#ffff00',
  1159. fontWeight: 'normal',
  1160. fontSize: 18
  1161. }
  1162. }],
  1163. series: [{
  1164. radius: ['55%', '70%'],
  1165. name: '',
  1166. type: 'pie',
  1167. selectedOffset: 16,
  1168. startAngle: 90,
  1169. z: 3,
  1170. labelLine: {
  1171. normal: {
  1172. length: 5,
  1173. length2: 10,
  1174. lineStyle: {
  1175. width: 2
  1176. }
  1177. }
  1178. },
  1179. label: {
  1180. normal: {
  1181. textStyle: {
  1182. fontSize: 14
  1183. },
  1184. formatter: function (params) {
  1185. return params.name + '\n' + params.value
  1186. }
  1187. }
  1188. },
  1189. data: dataArr
  1190. }]
  1191. };
  1192. myChart.setOption(option, true);
  1193. if (option) {
  1194. myChart.setOption(option);
  1195. }
  1196. },
  1197. qkq_zjz2_4() {
  1198. var myChart = echarts.init(document.getElementById('qkq_zjz2_4'));
  1199. let xData = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  1200. let yData = [25, 100, 50, 45, 75, 25, 100, 50, 45, 75, 25, 100, 50, 45, 75]
  1201. let barData = [25, 60, 50, 45, 75, 25, 60, 50, 45, 75, 25, 60, 50, 45, 75]
  1202. function calMax(arr) {
  1203. let max = 0;
  1204. arr.forEach((el) => {
  1205. el.forEach((el1) => {
  1206. if (!(el1 === undefined || el1 === '')) {
  1207. if (Number(max) < Number(el1)) {
  1208. max = Number(el1);
  1209. }
  1210. }
  1211. })
  1212. })
  1213. let maxint = Math.ceil(max / 9.5);
  1214. //不让最高的值超过最上面的刻度
  1215. let maxval = maxint * 10;
  1216. //让显示的刻度是整数
  1217. return maxval;
  1218. }
  1219. var max = Math.ceil(calMax([yData]) / 50) * 50;
  1220. var max1 = Math.ceil(calMax([barData]) / 50) * 50;
  1221. var option = {
  1222. legend: {
  1223. left: '1%',
  1224. textStyle: {
  1225. color: "#fff",
  1226. fontSize: 12
  1227. },
  1228. },
  1229. grid: {
  1230. left: '1%',
  1231. top: 60,
  1232. right: 0,
  1233. bottom: 0,
  1234. containLabel: true
  1235. },
  1236. tooltip: {
  1237. trigger: 'axis'
  1238. },
  1239. xAxis: {
  1240. data: xData,
  1241. axisTick: {
  1242. show: false
  1243. },
  1244. axisLabel: {
  1245. color: 'rgba(204, 234, 255, 1)'
  1246. },
  1247. axisLine: {
  1248. lineStyle: {
  1249. color: 'rgba(18, 255, 255, 0.5)'
  1250. }
  1251. }
  1252. },
  1253. yAxis: [{
  1254. max: max1,
  1255. name: '2024年',
  1256. nameTextStyle: {
  1257. align: 'left',
  1258. color: 'rgba(204, 234, 255, 1)'
  1259. },
  1260. axisLabel: {
  1261. color: 'rgba(204, 234, 255, 1)'
  1262. },
  1263. axisTick: {
  1264. show: false
  1265. },
  1266. axisLine: {
  1267. show: false
  1268. },
  1269. splitLine: {
  1270. lineStyle: {
  1271. type: 'dashed',
  1272. color: 'rgba(18, 255, 255, 0.5)'
  1273. }
  1274. }
  1275. }, {
  1276. max: max,
  1277. name: '2023年',
  1278. position: 'right',
  1279. nameTextStyle: {
  1280. align: 'right',
  1281. color: 'rgba(204, 234, 255, 1)'
  1282. },
  1283. axisLabel: {
  1284. color: 'rgba(204, 234, 255, 1)'
  1285. },
  1286. axisTick: {
  1287. show: false
  1288. },
  1289. axisLine: {
  1290. show: false
  1291. },
  1292. splitLine: {
  1293. lineStyle: {
  1294. type: 'dashed',
  1295. color: 'rgba(18, 255, 255, 0.5)'
  1296. }
  1297. }
  1298. }],
  1299. series: [{
  1300. name: '2024年',
  1301. type: 'bar',
  1302. data: barData,
  1303. barWidth: 10,
  1304. yAxisIndex: 0,
  1305. itemStyle: {
  1306. normal: {
  1307. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1308. offset: 0,
  1309. color: '#1D82FF'
  1310. }, {
  1311. offset: 1,
  1312. color: '#00FFF6'
  1313. }]),
  1314. barBorderRadius: [4, 4, 0, 0]
  1315. }
  1316. }
  1317. }, {
  1318. name: '2023年',
  1319. type: 'line',
  1320. data: yData,
  1321. yAxisIndex: 1,
  1322. smooth: true,
  1323. symbol: 'none',
  1324. itemStyle: {
  1325. normal: {
  1326. lineStyle: {
  1327. color: {
  1328. // 两端添加透明度,模拟两端线收缩
  1329. colorStops: [{
  1330. offset: 0,
  1331. color: 'rgba(255, 227, 168, 0)' // 0% 处的颜色
  1332. }, {
  1333. offset: 0.2,
  1334. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1335. }, {
  1336. offset: 0.8,
  1337. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1338. }, {
  1339. offset: 1,
  1340. color: 'rgba(255, 227, 168, 0)'
  1341. }]
  1342. },
  1343. shadowColor: 'rgba(255, 120, 0, 1)',
  1344. shadowBlur: 8
  1345. },
  1346. areaStyle: {
  1347. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1348. offset: 0,
  1349. color: 'rgba(197, 106, 255, 0.6)'
  1350. }, {
  1351. offset: 0.6,
  1352. color: 'rgba(255, 120, 0, 0)'
  1353. }]),
  1354. }
  1355. }
  1356. }
  1357. },
  1358. {
  1359. type: 'lines',
  1360. coordinateSystem: 'cartesian2d',
  1361. data: barData.map((item, index) => {
  1362. return {
  1363. coords: [
  1364. [index, 0],
  1365. [index, item - 4]
  1366. ]
  1367. };
  1368. }),
  1369. effect: {
  1370. show: true,
  1371. period: 2.5,
  1372. trailLength: 0.5, //控制拖尾长度
  1373. symbolSize: [15, 2],
  1374. symbol: this.$store.state.common.echarts_baseStreamer,
  1375. loop: true,
  1376. color: '#fff' //流光颜色
  1377. },
  1378. lineStyle: {
  1379. width: 0,
  1380. opacity: 0.6,
  1381. curveness: 0
  1382. },
  1383. z: 999
  1384. },]
  1385. };
  1386. if (option) {
  1387. myChart.setOption(option);
  1388. }
  1389. },
  1390. qkq_zjz1_5() {
  1391. //一汽红旗项目服务局
  1392. var myChart = echarts.init(document.getElementById('qkq_zjz1_5'));
  1393. var data = [{
  1394. value: "10",
  1395. itemStyle: {
  1396. color: "#ffbf00"
  1397. }
  1398. },
  1399. {
  1400. value: "100",
  1401. itemStyle: {
  1402. color: "#fc465"
  1403. }
  1404. }
  1405. ];
  1406. var dataTotal = Number(data[1].value) + Number(data[0].value)
  1407. var dataArr = [{
  1408. value: Number(data[0].value),
  1409. name: '增加值',
  1410. itemStyle: {
  1411. normal: {
  1412. color: "#5a98ed"
  1413. }
  1414. }
  1415. }, {
  1416. value: Number(data[1].value),
  1417. name: '总数',
  1418. itemStyle: {
  1419. normal: {
  1420. color: "#1a3b72"
  1421. }
  1422. }
  1423. }]
  1424. var option = {
  1425. title: [{
  1426. text: '工业增加值',
  1427. left: '49%',
  1428. top: '40%',
  1429. textAlign: 'center',
  1430. textBaseline: 'middle',
  1431. textStyle: {
  1432. color: '#66b1ff',
  1433. fontWeight: 'normal',
  1434. fontSize: 16
  1435. }
  1436. }, {
  1437. text: Math.floor((data[1].value / dataTotal) * 100) + '%',
  1438. left: '49%',
  1439. top: '55%',
  1440. textAlign: 'center',
  1441. textBaseline: 'middle',
  1442. textStyle: {
  1443. color: '#ffff00',
  1444. fontWeight: 'normal',
  1445. fontSize: 18
  1446. }
  1447. }],
  1448. series: [{
  1449. radius: ['55%', '70%'],
  1450. name: '',
  1451. type: 'pie',
  1452. selectedOffset: 16,
  1453. startAngle: 90,
  1454. z: 3,
  1455. labelLine: {
  1456. normal: {
  1457. length: 5,
  1458. length2: 10,
  1459. lineStyle: {
  1460. width: 2
  1461. }
  1462. }
  1463. },
  1464. label: {
  1465. normal: {
  1466. textStyle: {
  1467. fontSize: 14
  1468. },
  1469. formatter: function (params) {
  1470. return params.name + '\n' + params.value
  1471. }
  1472. }
  1473. },
  1474. data: dataArr
  1475. }]
  1476. };
  1477. myChart.setOption(option, true);
  1478. if (option) {
  1479. myChart.setOption(option);
  1480. }
  1481. },
  1482. qkq_zjz2_5() {
  1483. var myChart = echarts.init(document.getElementById('qkq_zjz2_5'));
  1484. let xData = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  1485. let yData = [25, 100, 50, 45, 75, 25, 100, 50, 45, 75, 25, 100, 50, 45, 75]
  1486. let barData = [25, 60, 50, 45, 75, 25, 60, 50, 45, 75, 25, 60, 50, 45, 75]
  1487. function calMax(arr) {
  1488. let max = 0;
  1489. arr.forEach((el) => {
  1490. el.forEach((el1) => {
  1491. if (!(el1 === undefined || el1 === '')) {
  1492. if (Number(max) < Number(el1)) {
  1493. max = Number(el1);
  1494. }
  1495. }
  1496. })
  1497. })
  1498. let maxint = Math.ceil(max / 9.5);
  1499. //不让最高的值超过最上面的刻度
  1500. let maxval = maxint * 10;
  1501. //让显示的刻度是整数
  1502. return maxval;
  1503. }
  1504. var max = Math.ceil(calMax([yData]) / 50) * 50;
  1505. var max1 = Math.ceil(calMax([barData]) / 50) * 50;
  1506. var option = {
  1507. legend: {
  1508. left: '1%',
  1509. textStyle: {
  1510. color: "#fff",
  1511. fontSize: 12
  1512. },
  1513. },
  1514. grid: {
  1515. left: '1%',
  1516. top: 60,
  1517. right: 0,
  1518. bottom: 0,
  1519. containLabel: true
  1520. },
  1521. tooltip: {
  1522. trigger: 'axis'
  1523. },
  1524. xAxis: {
  1525. data: xData,
  1526. axisTick: {
  1527. show: false
  1528. },
  1529. axisLabel: {
  1530. color: 'rgba(204, 234, 255, 1)'
  1531. },
  1532. axisLine: {
  1533. lineStyle: {
  1534. color: 'rgba(18, 255, 255, 0.5)'
  1535. }
  1536. }
  1537. },
  1538. yAxis: [{
  1539. max: max1,
  1540. name: '2024年',
  1541. nameTextStyle: {
  1542. align: 'left',
  1543. color: 'rgba(204, 234, 255, 1)'
  1544. },
  1545. axisLabel: {
  1546. color: 'rgba(204, 234, 255, 1)'
  1547. },
  1548. axisTick: {
  1549. show: false
  1550. },
  1551. axisLine: {
  1552. show: false
  1553. },
  1554. splitLine: {
  1555. lineStyle: {
  1556. type: 'dashed',
  1557. color: 'rgba(18, 255, 255, 0.5)'
  1558. }
  1559. }
  1560. }, {
  1561. max: max,
  1562. name: '2023年',
  1563. position: 'right',
  1564. nameTextStyle: {
  1565. align: 'right',
  1566. color: 'rgba(204, 234, 255, 1)'
  1567. },
  1568. axisLabel: {
  1569. color: 'rgba(204, 234, 255, 1)'
  1570. },
  1571. axisTick: {
  1572. show: false
  1573. },
  1574. axisLine: {
  1575. show: false
  1576. },
  1577. splitLine: {
  1578. lineStyle: {
  1579. type: 'dashed',
  1580. color: 'rgba(18, 255, 255, 0.5)'
  1581. }
  1582. }
  1583. }],
  1584. series: [{
  1585. name: '2024年',
  1586. type: 'bar',
  1587. data: barData,
  1588. barWidth: 10,
  1589. yAxisIndex: 0,
  1590. itemStyle: {
  1591. normal: {
  1592. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1593. offset: 0,
  1594. color: '#1D82FF'
  1595. }, {
  1596. offset: 1,
  1597. color: '#00FFF6'
  1598. }]),
  1599. barBorderRadius: [4, 4, 0, 0]
  1600. }
  1601. }
  1602. }, {
  1603. name: '2023年',
  1604. type: 'line',
  1605. data: yData,
  1606. yAxisIndex: 1,
  1607. smooth: true,
  1608. symbol: 'none',
  1609. itemStyle: {
  1610. normal: {
  1611. lineStyle: {
  1612. color: {
  1613. // 两端添加透明度,模拟两端线收缩
  1614. colorStops: [{
  1615. offset: 0,
  1616. color: 'rgba(255, 227, 168, 0)' // 0% 处的颜色
  1617. }, {
  1618. offset: 0.2,
  1619. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1620. }, {
  1621. offset: 0.8,
  1622. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1623. }, {
  1624. offset: 1,
  1625. color: 'rgba(255, 227, 168, 0)'
  1626. }]
  1627. },
  1628. shadowColor: 'rgba(255, 120, 0, 1)',
  1629. shadowBlur: 8
  1630. },
  1631. areaStyle: {
  1632. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1633. offset: 0,
  1634. color: 'rgba(197, 106, 255, 0.6)'
  1635. }, {
  1636. offset: 0.6,
  1637. color: 'rgba(255, 120, 0, 0)'
  1638. }]),
  1639. }
  1640. }
  1641. }
  1642. },
  1643. {
  1644. type: 'lines',
  1645. coordinateSystem: 'cartesian2d',
  1646. data: barData.map((item, index) => {
  1647. return {
  1648. coords: [
  1649. [index, 0],
  1650. [index, item - 4]
  1651. ]
  1652. };
  1653. }),
  1654. effect: {
  1655. show: true,
  1656. period: 2.5,
  1657. trailLength: 0.5, //控制拖尾长度
  1658. symbolSize: [15, 2],
  1659. symbol: this.$store.state.common.echarts_baseStreamer,
  1660. loop: true,
  1661. color: '#fff' //流光颜色
  1662. },
  1663. lineStyle: {
  1664. width: 0,
  1665. opacity: 0.6,
  1666. curveness: 0
  1667. },
  1668. z: 999
  1669. },]
  1670. };
  1671. if (option) {
  1672. myChart.setOption(option);
  1673. }
  1674. },
  1675. qkq_zjz1_6() {
  1676. //一汽红旗项目服务局
  1677. var myChart = echarts.init(document.getElementById('qkq_zjz1_6'));
  1678. var data = [{
  1679. value: "10",
  1680. itemStyle: {
  1681. color: "#ffbf00"
  1682. }
  1683. },
  1684. {
  1685. value: "100",
  1686. itemStyle: {
  1687. color: "#fc465"
  1688. }
  1689. }
  1690. ];
  1691. var dataTotal = Number(data[1].value) + Number(data[0].value)
  1692. var dataArr = [{
  1693. value: Number(data[0].value),
  1694. name: '增加值',
  1695. itemStyle: {
  1696. normal: {
  1697. color: "#5a98ed"
  1698. }
  1699. }
  1700. }, {
  1701. value: Number(data[1].value),
  1702. name: '总数',
  1703. itemStyle: {
  1704. normal: {
  1705. color: "#1a3b72"
  1706. }
  1707. }
  1708. }]
  1709. var option = {
  1710. title: [{
  1711. text: '工业增加值',
  1712. left: '49%',
  1713. top: '40%',
  1714. textAlign: 'center',
  1715. textBaseline: 'middle',
  1716. textStyle: {
  1717. color: '#66b1ff',
  1718. fontWeight: 'normal',
  1719. fontSize: 16
  1720. }
  1721. }, {
  1722. text: Math.floor((data[1].value / dataTotal) * 100) + '%',
  1723. left: '49%',
  1724. top: '55%',
  1725. textAlign: 'center',
  1726. textBaseline: 'middle',
  1727. textStyle: {
  1728. color: '#ffff00',
  1729. fontWeight: 'normal',
  1730. fontSize: 18
  1731. }
  1732. }],
  1733. series: [{
  1734. radius: ['55%', '70%'],
  1735. name: '',
  1736. type: 'pie',
  1737. selectedOffset: 16,
  1738. startAngle: 90,
  1739. z: 3,
  1740. labelLine: {
  1741. normal: {
  1742. length: 5,
  1743. length2: 10,
  1744. lineStyle: {
  1745. width: 2
  1746. }
  1747. }
  1748. },
  1749. label: {
  1750. normal: {
  1751. textStyle: {
  1752. fontSize: 14
  1753. },
  1754. formatter: function (params) {
  1755. return params.name + '\n' + params.value
  1756. }
  1757. }
  1758. },
  1759. data: dataArr
  1760. }]
  1761. };
  1762. myChart.setOption(option, true);
  1763. if (option) {
  1764. myChart.setOption(option);
  1765. }
  1766. },
  1767. qkq_zjz2_6() {
  1768. var myChart = echarts.init(document.getElementById('qkq_zjz2_6'));
  1769. let xData = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  1770. let yData = [25, 100, 50, 45, 75, 25, 100, 50, 45, 75, 25, 100, 50, 45, 75]
  1771. let barData = [25, 60, 50, 45, 75, 25, 60, 50, 45, 75, 25, 60, 50, 45, 75]
  1772. function calMax(arr) {
  1773. let max = 0;
  1774. arr.forEach((el) => {
  1775. el.forEach((el1) => {
  1776. if (!(el1 === undefined || el1 === '')) {
  1777. if (Number(max) < Number(el1)) {
  1778. max = Number(el1);
  1779. }
  1780. }
  1781. })
  1782. })
  1783. let maxint = Math.ceil(max / 9.5);
  1784. //不让最高的值超过最上面的刻度
  1785. let maxval = maxint * 10;
  1786. //让显示的刻度是整数
  1787. return maxval;
  1788. }
  1789. var max = Math.ceil(calMax([yData]) / 50) * 50;
  1790. var max1 = Math.ceil(calMax([barData]) / 50) * 50;
  1791. var option = {
  1792. legend: {
  1793. left: '1%',
  1794. textStyle: {
  1795. color: "#fff",
  1796. fontSize: 12
  1797. },
  1798. },
  1799. grid: {
  1800. left: '1%',
  1801. top: 60,
  1802. right: 0,
  1803. bottom: 0,
  1804. containLabel: true
  1805. },
  1806. tooltip: {
  1807. trigger: 'axis'
  1808. },
  1809. xAxis: {
  1810. data: xData,
  1811. axisTick: {
  1812. show: false
  1813. },
  1814. axisLabel: {
  1815. color: 'rgba(204, 234, 255, 1)'
  1816. },
  1817. axisLine: {
  1818. lineStyle: {
  1819. color: 'rgba(18, 255, 255, 0.5)'
  1820. }
  1821. }
  1822. },
  1823. yAxis: [{
  1824. max: max1,
  1825. name: '2024年',
  1826. nameTextStyle: {
  1827. align: 'left',
  1828. color: 'rgba(204, 234, 255, 1)'
  1829. },
  1830. axisLabel: {
  1831. color: 'rgba(204, 234, 255, 1)'
  1832. },
  1833. axisTick: {
  1834. show: false
  1835. },
  1836. axisLine: {
  1837. show: false
  1838. },
  1839. splitLine: {
  1840. lineStyle: {
  1841. type: 'dashed',
  1842. color: 'rgba(18, 255, 255, 0.5)'
  1843. }
  1844. }
  1845. }, {
  1846. max: max,
  1847. name: '2023年',
  1848. position: 'right',
  1849. nameTextStyle: {
  1850. align: 'right',
  1851. color: 'rgba(204, 234, 255, 1)'
  1852. },
  1853. axisLabel: {
  1854. color: 'rgba(204, 234, 255, 1)'
  1855. },
  1856. axisTick: {
  1857. show: false
  1858. },
  1859. axisLine: {
  1860. show: false
  1861. },
  1862. splitLine: {
  1863. lineStyle: {
  1864. type: 'dashed',
  1865. color: 'rgba(18, 255, 255, 0.5)'
  1866. }
  1867. }
  1868. }],
  1869. series: [{
  1870. name: '2024年',
  1871. type: 'bar',
  1872. data: barData,
  1873. barWidth: 10,
  1874. yAxisIndex: 0,
  1875. itemStyle: {
  1876. normal: {
  1877. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1878. offset: 0,
  1879. color: '#1D82FF'
  1880. }, {
  1881. offset: 1,
  1882. color: '#00FFF6'
  1883. }]),
  1884. barBorderRadius: [4, 4, 0, 0]
  1885. }
  1886. }
  1887. }, {
  1888. name: '2023年',
  1889. type: 'line',
  1890. data: yData,
  1891. yAxisIndex: 1,
  1892. smooth: true,
  1893. symbol: 'none',
  1894. itemStyle: {
  1895. normal: {
  1896. lineStyle: {
  1897. color: {
  1898. // 两端添加透明度,模拟两端线收缩
  1899. colorStops: [{
  1900. offset: 0,
  1901. color: 'rgba(255, 227, 168, 0)' // 0% 处的颜色
  1902. }, {
  1903. offset: 0.2,
  1904. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1905. }, {
  1906. offset: 0.8,
  1907. color: 'rgba(255, 227, 168, 1)' // 100% 处的颜色
  1908. }, {
  1909. offset: 1,
  1910. color: 'rgba(255, 227, 168, 0)'
  1911. }]
  1912. },
  1913. shadowColor: 'rgba(255, 120, 0, 1)',
  1914. shadowBlur: 8
  1915. },
  1916. areaStyle: {
  1917. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1918. offset: 0,
  1919. color: 'rgba(197, 106, 255, 0.6)'
  1920. }, {
  1921. offset: 0.6,
  1922. color: 'rgba(255, 120, 0, 0)'
  1923. }]),
  1924. }
  1925. }
  1926. }
  1927. },
  1928. {
  1929. type: 'lines',
  1930. coordinateSystem: 'cartesian2d',
  1931. data: barData.map((item, index) => {
  1932. return {
  1933. coords: [
  1934. [index, 0],
  1935. [index, item - 4]
  1936. ]
  1937. };
  1938. }),
  1939. effect: {
  1940. show: true,
  1941. period: 2.5,
  1942. trailLength: 0.5, //控制拖尾长度
  1943. symbolSize: [15, 2],
  1944. symbol: this.$store.state.common.echarts_baseStreamer,
  1945. loop: true,
  1946. color: '#fff' //流光颜色
  1947. },
  1948. lineStyle: {
  1949. width: 0,
  1950. opacity: 0.6,
  1951. curveness: 0
  1952. },
  1953. z: 999
  1954. },]
  1955. };
  1956. if (option) {
  1957. myChart.setOption(option);
  1958. }
  1959. },
  1960. qkq_jdt() {
  1961. var myChart = echarts.init(document.getElementById('qkq_jdt'));
  1962. //亮色图片
  1963. var uploadedDataURL1 = "/asset/get/s/4CJ7_TCzJkXXblRL.png";
  1964. var uploadedDataURL2 = "/asset/get/s/QekC70YLG_BZZXae.png";
  1965. var baifenbi = [0.333, 0.444, 0.555, 0.777, 0.888, 0.922];
  1966. var grayBar = [1, 1, 1, 1, 1, 1];
  1967. var paiming = [6, 5, 4, 3, 2, 1];
  1968. var zongjine = [2000, 3000, 4000, 5000, 6000, 7000];
  1969. var xingm = ['实际经济指标的目标1', '实际经济指标的目标2', '实际经济指标的目标3', '实际经济指标的目标4', '实际经济指标的目标5', '实际经济指标的目标6'];
  1970. var option = {
  1971. color: ['#61A8FF'], //进度条颜色
  1972. grid: {
  1973. left: '2%', //如果离左边太远就用这个......
  1974. right: '0%',
  1975. bottom: '-15%',
  1976. top: '5%',
  1977. containLabel: true
  1978. },
  1979. xAxis: [
  1980. {
  1981. show: false,
  1982. },
  1983. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  1984. {
  1985. show: false,
  1986. }
  1987. ],
  1988. yAxis: {
  1989. type: 'category',
  1990. axisLabel: {
  1991. show: false, //让Y轴数据不显示
  1992. },
  1993. itemStyle: {},
  1994. axisTick: {
  1995. show: false, //隐藏Y轴刻度
  1996. },
  1997. axisLine: {
  1998. show: false, //隐藏Y轴线段
  1999. },
  2000. data: xingm,
  2001. },
  2002. series: [
  2003. //背景色--------------------我是分割线君------------------------------//
  2004. {
  2005. show: true,
  2006. type: 'bar',
  2007. barGap: '-100%',
  2008. barWidth: '35%', //统计条宽度
  2009. itemStyle: {
  2010. normal: {
  2011. color: 'rgba(231,89,89,0.11)'
  2012. },
  2013. },
  2014. z: 1,
  2015. data: grayBar,
  2016. },
  2017. //蓝条--------------------我是分割线君------------------------------//
  2018. {
  2019. show: true,
  2020. type: 'bar',
  2021. barGap: '-100%',
  2022. barWidth: '35%', //统计条宽度
  2023. itemStyle: {
  2024. normal: {
  2025. color: {
  2026. type: 'bar',
  2027. colorStops: [{
  2028. offset: 0,
  2029. color: '#39A7FC' // 0% 处的颜色
  2030. }, {
  2031. offset: 1,
  2032. color: '#00FBFF' // 100% 处的颜色
  2033. }],
  2034. globalCoord: false, // 缺省为 false
  2035. }
  2036. },
  2037. },
  2038. max: 1,
  2039. label: {
  2040. normal: {
  2041. show: true,
  2042. textStyle: {
  2043. color: '#fff', //百分比颜色
  2044. },
  2045. position: 'inside',
  2046. //百分比格式
  2047. formatter: function (data) {
  2048. return (baifenbi[data.dataIndex] * 100).toFixed(1) + '%';
  2049. },
  2050. }
  2051. },
  2052. labelLine: {
  2053. show: false,
  2054. },
  2055. z: 2,
  2056. data: baifenbi,
  2057. },
  2058. //数据条--------------------我是分割线君------------------------------//
  2059. {
  2060. show: true,
  2061. type: 'bar',
  2062. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  2063. barGap: '-100%',
  2064. barWidth: '35%', //统计条宽度
  2065. itemStyle: {
  2066. normal: {
  2067. barBorderRadius: 200,
  2068. color: 'rgba(22,203,115,0.05)'
  2069. },
  2070. },
  2071. label: {
  2072. normal: {
  2073. show: true,
  2074. //label 的position位置可以是top bottom left,right,也可以是固定值
  2075. //在这里需要上下统一对齐,所以用固定值
  2076. position: ['0', '-130%'],
  2077. rich: { //富文本
  2078. white: { //自定义颜色
  2079. color: '#ffffff',
  2080. },
  2081. start1: {
  2082. backgroundColor: {
  2083. image: uploadedDataURL1,
  2084. }
  2085. },
  2086. start2: {
  2087. backgroundColor: { //这里可以添加你想自定义的图片
  2088. image: uploadedDataURL2,
  2089. },
  2090. },
  2091. green: {
  2092. color: '#70DDA7',
  2093. },
  2094. yellow: {
  2095. color: '#CCB877',
  2096. },
  2097. red: {
  2098. color: '#BC3C47',
  2099. },
  2100. gray: {
  2101. color: '#727CBA'
  2102. }
  2103. },
  2104. formatter: function (data) {
  2105. //富文本固定格式{colorName|这里填你想要写的内容}
  2106. if (paiming[data.dataIndex] == 1) {
  2107. return '{start1|}{red|' + paiming[data.dataIndex] + ' ' + xingm[data.dataIndex] + '}' + ' ' + '{white| 经济指标的目标:}{gray|' + zongjine[data.dataIndex] + '}{white|元}';
  2108. } else if (paiming[data.dataIndex] == 2) {
  2109. return '{start1|}{yellow|' + paiming[data.dataIndex] + ' ' + xingm[data.dataIndex] + '}' + ' ' + '{white| 经济指标的目标:}{gray|' + zongjine[data.dataIndex] + '}{white|元}';
  2110. } else if (paiming[data.dataIndex] == 3) {
  2111. return '{start1|}{green|' + paiming[data.dataIndex] + ' ' + xingm[data.dataIndex] + '}' + ' ' + '{white| 经济指标的目标:}{gray|' + zongjine[data.dataIndex] + '}{white|元}';
  2112. } else {
  2113. return '{start2|}{white|' + paiming[data.dataIndex] + ' ' + xingm[data.dataIndex] + '}' + ' ' + '{white| 经济指标的目标:}{gray|' + zongjine[data.dataIndex] + '}{white|元}';
  2114. }
  2115. },
  2116. }
  2117. },
  2118. data: zongjine
  2119. },
  2120. {
  2121. type: 'lines',
  2122. coordinateSystem: 'cartesian2d',
  2123. data: baifenbi.map((item, index) => {
  2124. return {
  2125. coords: [
  2126. [0, index],
  2127. [item, index],
  2128. ]
  2129. };
  2130. }),
  2131. effect: {
  2132. show: true,
  2133. period: 2.5,
  2134. trailLength: 0.5, //控制拖尾长度
  2135. symbolSize: [15, 2],
  2136. symbol: this.$store.state.common.echarts_baseStreamer,
  2137. loop: true,
  2138. color: '#fff' //流光颜色
  2139. },
  2140. lineStyle: {
  2141. width: 0,
  2142. opacity: 0.6,
  2143. curveness: 0
  2144. },
  2145. z: 99
  2146. },
  2147. ]
  2148. };
  2149. if (option) {
  2150. myChart.setOption(option);
  2151. }
  2152. },
  2153. qkq_kxt() {
  2154. var myChart = echarts.init(document.getElementById('qkq_kxt'));
  2155. var option = {
  2156. grid: {
  2157. top: '10%',
  2158. bottom: '10%',
  2159. right: '30',
  2160. left: '30'
  2161. },
  2162. xAxis: {
  2163. axisLabel: {
  2164. color: 'rgba(204, 234, 255, 1)'
  2165. },
  2166. axisLine: {
  2167. lineStyle: {
  2168. color: 'rgba(4, 38, 65, 0.5)'
  2169. }
  2170. },
  2171. data: [
  2172. '一月',
  2173. '二月',
  2174. '三月',
  2175. '四月',
  2176. '五月',
  2177. '六月',
  2178. '七月',
  2179. '八月',
  2180. '九月',
  2181. '十月',
  2182. '十一月',
  2183. '十二月'
  2184. ]
  2185. },
  2186. yAxis: {
  2187. type: 'value',
  2188. scale: true,
  2189. max: 12,
  2190. min: 0,
  2191. interval: 4,
  2192. axisLabel: {
  2193. color: 'rgba(204, 234, 255, 1)'
  2194. },
  2195. axisLine: {
  2196. lineStyle: {
  2197. color: 'rgba(4, 38, 65, 0.5)'
  2198. }
  2199. },
  2200. },
  2201. series: [
  2202. {
  2203. type: 'candlestick',
  2204. data: [
  2205. [0, 0, 0, 0],
  2206. [0, 0, 0, 0],
  2207. [3, 4, 2, 5],
  2208. [4, 6, 3, 7],
  2209. [7, 9, 5, 10],
  2210. [5, 8, 4, 9],
  2211. [6, 6.5, 5, 7.5],
  2212. [0, 0, 0, 0],
  2213. [6, 9, 5, 10],
  2214. [4, 6, 3, 7],
  2215. [5, 7, 4, 8],
  2216. [6, 9, 5, 10],
  2217. [6.5, 9, 5.5, 10],
  2218. ]
  2219. }
  2220. ]
  2221. };
  2222. if (option) {
  2223. myChart.setOption(option);
  2224. }
  2225. },
  2226. getCurrentTime() {
  2227. const now = new Date();
  2228. const year = now.getFullYear();
  2229. const month = now.getMonth() + 1;
  2230. const date = now.getDate();
  2231. const day = now.getDay();
  2232. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  2233. const hour = now.getHours();
  2234. const minute = now.getMinutes();
  2235. const second = now.getSeconds();
  2236. const formattedMonth = month < 10 ? `0${month}` : month;
  2237. const formattedDate = date < 10 ? `0${date}` : date;
  2238. const formattedHour = hour < 10 ? `0${hour}` : hour;
  2239. const formattedMinute = minute < 10 ? `0${minute}` : minute;
  2240. const formattedSecond = second < 10 ? `0${second}` : second;
  2241. this.currentTime =
  2242. `${year}年${formattedMonth}月${formattedDate}日 ${weekDays[day]} ${formattedHour}:${formattedMinute}:${formattedSecond}`;
  2243. },
  2244. }
  2245. };
  2246. // import '@/assets/images/leftnav.js';
  2247. $(function () {
  2248. var Accordion = function (el, multiple) {
  2249. this.el = el || {};
  2250. this.multiple = multiple || false;
  2251. // Variables privadas
  2252. var links = this.el.find('.link');
  2253. // Evento
  2254. links.on('click', {
  2255. el: this.el,
  2256. multiple: this.multiple
  2257. }, this.dropdown)
  2258. };
  2259. Accordion.prototype.dropdown = function (e) {
  2260. var $el = e.data.el;
  2261. let $this = $(this);
  2262. let $next = $this.next();
  2263. $next.slideToggle();
  2264. $this.parent().toggleClass('open');
  2265. if (!e.data.multiple) {
  2266. $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
  2267. }
  2268. };
  2269. var accordion = new Accordion($('#accordion'), false);
  2270. $('.submenu li').click(function () {
  2271. $(this).addClass('current').siblings('li').removeClass('current');
  2272. });
  2273. });
  2274. </script>
  2275. <style>
  2276. /* 添加你的CSS样式 */
  2277. </style>