bjzshz.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  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 txt_t">新办企业数</div>
  32. <div id="qkq_bj1"></div>
  33. </div>
  34. <div class="con_div">
  35. <div class="qkq_tit txt_t">即办件统计数</div>
  36. <div class="qkq_qkq_div clearfix">
  37. <div class="qkq_hz fl">
  38. <p>即办件数:<b>13,802</b></p>
  39. <p>承诺件数:<b>1,655</b></p>
  40. </div>
  41. <div id="qkq_bj2" class="fr"></div>
  42. </div>
  43. </div>
  44. <div class="con_div">
  45. <div class="qkq_tit txt_t">部门办结统计</div>
  46. <div id="qkq_bj3"></div>
  47. </div>
  48. </div>
  49. <div class="con_left_f">
  50. <div class="con_div qkq_bjzs">
  51. <div class="qkq_bjzs_con">
  52. <h4>15,457</h4>
  53. <p>大厅办件总数</p>
  54. <div class="qkq_bjzs_bg" ></div>
  55. <div class="qkq_bjzs_txt clearfix">
  56. <div class="qkq_bjzs_txt_fl fl">
  57. <div class="bjzs_txt">
  58. <p>网上预审环节</p>
  59. <p><b>111</b>件</p>
  60. </div>
  61. <div class="bjzs_txt">
  62. <p>接件受理环节</p>
  63. <p><b>111</b>件</p>
  64. </div>
  65. <div class="bjzs_txt">
  66. <p>物料流转环节</p>
  67. <p><b>111</b>件</p>
  68. </div>
  69. <div class="bjzs_txt">
  70. <p>部门办理环节</p>
  71. <p><b>111</b>件</p>
  72. </div>
  73. </div>
  74. <div class="qkq_bjzs_txt_fr fr">
  75. <div class="bjzs_txt">
  76. <p>业务办理项总数</p>
  77. <p><b>111</b>件</p>
  78. </div>
  79. <div class="bjzs_txt">
  80. <p>产生办件事项数</p>
  81. <p><b>111</b>件</p>
  82. </div>
  83. <div class="bjzs_txt">
  84. <p>事项办件发生率</p>
  85. <p><b>111</b>件</p>
  86. </div>
  87. <div class="bjzs_txt">
  88. <p>网上预审环节</p>
  89. <p><b>111</b>件</p>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="con_div">
  96. <div class="qkq_tit txt_t">工程建设项目</div>
  97. <div class="qkq_bjs_con">
  98. <div class="qkq_bjs">
  99. <img src="../../assets/images/qkq_icon19.png"/>
  100. <div class="qkq_bjs_txt">
  101. <p>工程项目名称</p>
  102. <p><b>56</b>件</p>
  103. </div>
  104. </div>
  105. <div class="qkq_bjs">
  106. <img src="../../assets/images/qkq_icon19.png"/>
  107. <div class="qkq_bjs_txt">
  108. <p>工程项目名称</p>
  109. <p><b>56</b>件</p>
  110. </div>
  111. </div>
  112. <div class="qkq_bjs">
  113. <img src="../../assets/images/qkq_icon19.png"/>
  114. <div class="qkq_bjs_txt">
  115. <p>工程项目名称</p>
  116. <p><b>56</b>件</p>
  117. </div>
  118. </div>
  119. <div class="qkq_bjs">
  120. <img src="../../assets/images/qkq_icon19.png"/>
  121. <div class="qkq_bjs_txt">
  122. <p>工程项目名称</p>
  123. <p><b>56</b>件</p>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="con_left_g">
  130. <div class="con_div">
  131. <div class="qkq_tit txt_t">好差评统计</div>
  132. <div id="qkq_bj4"></div>
  133. </div>
  134. <div class="con_div">
  135. <div class="qkq_tit txt_t">办结率统计</div>
  136. <div class="qkq_qkq_div clearfix">
  137. <div class="qkq_hz qkq_hz2 fl">
  138. <p>自然人办件数:<b>13,802</b></p>
  139. <p>自然人办结数:<b>1,655</b></p>
  140. </div>
  141. <div id="qkq_bj5" class="fr"></div>
  142. </div>
  143. </div>
  144. <div class="con_div">
  145. <div class="qkq_tit txt_t">高频事项Top10</div>
  146. <div class="qkq_sxtop">
  147. <p><a><i>1</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  148. <p><a><i>2</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  149. <p><a><i>3</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  150. <p><a><i>4</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  151. <p><a><i>5</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  152. <p><a><i>6</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  153. <p><a><i>7</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  154. <p><a><i>8</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  155. <p><a><i>9</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  156. <p><a><i>10</i>劳动用工备案(签订劳动合同,劳动合同法)</a><span>6442件</span></p>
  157. </div>
  158. </div>
  159. </div>
  160. <!--左侧结束-->
  161. </div>
  162. <!-- 中间内容 结束 -->
  163. <!--底部开始-->
  164. <div class="footer">
  165. <div class="nav-bottom">
  166. <div class="nav-bottom-left">
  167. <div class="nav-li-left" @click="handleNavigation('jjyx')">
  168. <span>经济运行</span>
  169. </div>
  170. <div class="nav-li-left" @click="handleNavigation('csgl')">
  171. <span>城市管理</span>
  172. </div>
  173. <div class="nav-li-left" @click="handleNavigation('jtzl')">
  174. <span>交通治理</span>
  175. </div>
  176. <div class="nav-li-left" @click="handleNavigation('jczl')">
  177. <span>基层治理</span>
  178. </div>
  179. </div>
  180. <div class="nav-home-middle" @click="homePage('weather')">
  181. <img src="@/assets/images/home-btn.png"/>
  182. <a>返回首页</a>
  183. </div>
  184. <div class="nav-bottom-right">
  185. <div class="nav-li-right" @click="handleNavigation('yshj_new')">
  186. <span>营商环境</span>
  187. </div>
  188. <div class="nav-li-right on" @click="handleNavigation('bjzshz')">
  189. <span>政务运行</span>
  190. </div>
  191. <div class="nav-li-right" @click="handleNavigation('aqyj')">
  192. <span>安全应急</span>
  193. </div>
  194. <div class="nav-li-right" @click="handleNavigation('fwyq')">
  195. <span>服务一汽</span>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <!--底部开始-->
  201. </div>
  202. </template>
  203. <script>
  204. import * as echarts from 'echarts'
  205. import $ from 'jquery'
  206. import jQuery from 'jquery'
  207. import "@/assets/images/qkq_body.css";
  208. import "@/assets/images/qkq_index.css";
  209. import "@/assets/images/qkq_sprh.css";
  210. import {
  211. getCameraList
  212. } from "@/api/system/camera";
  213. import supermap from "@/views/supermap/supermap";
  214. export default {
  215. name: "bjzshz",
  216. components: {
  217. supermap
  218. },
  219. data() {
  220. return {
  221. dropdownVisible: false,
  222. cameras: [],
  223. sltProps: null,
  224. currentTime: '',
  225. btnOne: true,
  226. btnTwo: false,
  227. };
  228. // 可根据实际情况添加更多设备列表
  229. },
  230. created() {
  231. },
  232. mounted() {
  233. this.qkq_bj1();
  234. this.qkq_bj2();
  235. this.qkq_bj3();
  236. this.qkq_bj4();
  237. this.qkq_bj5();
  238. this.getCurrentTime();
  239. // 每秒刷新时间
  240. setInterval(() => {
  241. this.getCurrentTime();
  242. }, 1000);
  243. },
  244. methods: {
  245. sltHandle() {
  246. this.btnOne = true
  247. this.btnTwo = false
  248. this.$refs.supermap.getSupermap(null, null, null, "slt", null, null)
  249. },
  250. yxtHandle() {
  251. this.btnTwo = true
  252. this.btnOne = false
  253. this.$refs.supermap.getSupermap(null, null, null, "yxt", null, null)
  254. },
  255. handleNavigation(route) {
  256. this.$router.push({
  257. path: route
  258. });
  259. },
  260. homePage(route) {
  261. this.$router.push({
  262. path: route
  263. });
  264. },
  265. cameraList() {
  266. getCameraList().then(response => {
  267. this.cameras = response.data;
  268. })
  269. },
  270. toggleDropdown(event) {
  271. this.dropdownVisible = !this.dropdownVisible;
  272. },
  273. qkq_bj1() {
  274. //新办企业数
  275. var myChart = echarts.init(document.getElementById('qkq_bj1'));
  276. let label = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月'];
  277. let value = [233, 233, 200, 180, 199, 233, 210, 180];
  278. var json = {
  279. chart0: {
  280. xcategory: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月'],
  281. low: value,
  282. lowLine: [],
  283. }
  284. };
  285. var zrUtil = echarts.util;
  286. zrUtil.each(json.chart0.xcategory, function (item, index) {
  287. json.chart0.lowLine.push([{
  288. coord: [index, json.chart0.low[index]]
  289. }, {
  290. coord: [index + 1, json.chart0.low[index + 1]]
  291. }]);
  292. });
  293. var option = {
  294. grid: {
  295. top: 30,
  296. left:10,
  297. right:10,
  298. bottom:0,
  299. containLabel: true,
  300. },
  301. tooltip: {
  302. trigger: 'axis',
  303. axisPointer: {
  304. lineStyle: {
  305. color: {
  306. type: 'linear',
  307. x: 0,
  308. y: 0,
  309. x2: 0,
  310. y2: 1,
  311. colorStops: [
  312. {
  313. offset: 0,
  314. color: 'rgba(255,255,255,0)', // 0% 处的颜色
  315. },
  316. {
  317. offset: 0.5,
  318. color: 'rgba(255,255,255,1)', // 100% 处的颜色
  319. },
  320. {
  321. offset: 1,
  322. color: 'rgba(255,255,255,0)', // 100% 处的颜色
  323. },
  324. ],
  325. global: false, // 缺省为 false
  326. },
  327. },
  328. },
  329. },
  330. xAxis: [
  331. {
  332. type: 'category',
  333. boundaryGap: false,
  334. axisLabel: {
  335. formatter: '{value}',
  336. fontSize: 14,
  337. margin: 20,
  338. textStyle: {
  339. color: '#7ec7ff',
  340. },
  341. },
  342. axisLine: {
  343. lineStyle: {
  344. color: '#243753',
  345. },
  346. },
  347. splitLine: {
  348. show: false,
  349. lineStyle: {
  350. color: '#243753',
  351. },
  352. },
  353. axisTick: {
  354. show: false,
  355. },
  356. data: label,
  357. },
  358. ],
  359. yAxis: [
  360. {
  361. boundaryGap: false,
  362. type: 'value',
  363. axisLabel: {
  364. textStyle: {
  365. color: '#7ec7ff',
  366. },
  367. },
  368. nameTextStyle: {
  369. color: '#fff',
  370. fontSize: 12,
  371. lineHeight: 40,
  372. },
  373. splitLine: {
  374. lineStyle: {
  375. color: '#243753',
  376. },
  377. },
  378. axisLine: {
  379. show: true,
  380. lineStyle: {
  381. color: '#283352',
  382. },
  383. },
  384. axisTick: {
  385. show: false,
  386. },
  387. },
  388. ],
  389. series: [
  390. {
  391. name: '报名',
  392. type: 'line',
  393. smooth: true,
  394. showSymbol: true,
  395. symbolSize: 8,
  396. zlevel: 3,
  397. itemStyle: {
  398. color: '#19a3df',
  399. borderColor: '#a3c8d8',
  400. },
  401. // lineStyle: {
  402. // normal: {
  403. // width: 6,
  404. // color: '#19a3df',
  405. // },
  406. // },
  407. areaStyle: {
  408. normal: {
  409. color: new echarts.graphic.LinearGradient(
  410. 0,
  411. 0,
  412. 0,
  413. 1,
  414. [
  415. {
  416. offset: 0,
  417. color: 'rgba(88,255,255,0.2)',
  418. },
  419. {
  420. offset: 0.8,
  421. color: 'rgba(88,255,255,0)',
  422. },
  423. ],
  424. false
  425. ),
  426. },
  427. },
  428. data: value,
  429. },
  430. {
  431. name: '实施计划',
  432. type: 'lines',
  433. coordinateSystem: 'cartesian2d',
  434. zlevel: 1,
  435. smooth: true,
  436. symbol: 'circle',
  437. effect: {
  438. show: true,
  439. smooth: true,
  440. period: 2,
  441. symbolSize: 8
  442. },
  443. lineStyle: {
  444. normal: {
  445. color: '#19a3df',
  446. width: 0,
  447. opacity: 0,
  448. curveness: 0,
  449. }
  450. },
  451. data: json.chart0.lowLine
  452. }
  453. ],
  454. };
  455. if (option) {
  456. myChart.setOption(option);
  457. }
  458. },
  459. qkq_bj2() {
  460. var myChart = echarts.init(document.getElementById('qkq_bj2'));
  461. var getmax = 100;
  462. //要改变的数据
  463. var getvalue = 50.12;
  464. var option = {
  465. grid: {
  466. top: 0,
  467. bottom: 0,
  468. left:0
  469. },
  470. angleAxis: {
  471. show: false,
  472. max: (getmax * 360) / 270, //-45度到225度,二者偏移值是270度除360度
  473. type: 'value',
  474. startAngle: 225, //极坐标初始角度
  475. splitLine: {
  476. show: false,
  477. },
  478. },
  479. barMaxWidth: 20, //圆环宽度
  480. radiusAxis: {
  481. show: false,
  482. type: 'category',
  483. },
  484. //圆环位置和大小
  485. polar: {
  486. center: ['50%', '50%'],
  487. radius: '170%',
  488. },
  489. series: [
  490. {
  491. type: 'bar',
  492. data: [
  493. {
  494. //上层圆环,显示数据
  495. value: getvalue,
  496. itemStyle: {
  497. color: '#2AD2FB',
  498. },
  499. },
  500. ],
  501. barGap: '-100%', //柱间距离,上下两层圆环重合
  502. coordinateSystem: 'polar',
  503. roundCap: true, //顶端圆角
  504. z: 3, //圆环层级,同zindex
  505. },
  506. {
  507. //下层圆环,显示最大值
  508. type: 'bar',
  509. data: [
  510. {
  511. value: getmax,
  512. itemStyle: {
  513. color: '#164B9F',
  514. opacity: 1,
  515. borderWidth: 0,
  516. },
  517. },
  518. ],
  519. barGap: '-100%',
  520. coordinateSystem: 'polar',
  521. roundCap: true,
  522. z: 1,
  523. },
  524. //仪表盘
  525. {
  526. type: 'gauge',
  527. startAngle: 225, //起始角度,同极坐标
  528. endAngle: -45, //终止角度,同极坐标
  529. axisLine: {
  530. show: false,
  531. },
  532. splitLine: {
  533. show: false,
  534. },
  535. axisTick: {
  536. show: false,
  537. },
  538. axisLabel: {
  539. show: false,
  540. },
  541. splitLabel: {
  542. show: false,
  543. },
  544. pointer: {
  545. // 分隔线
  546. shadowColor: 'auto', //默认透明
  547. shadowBlur: 5,
  548. length: '50%',
  549. width: '2',
  550. show: false,
  551. },
  552. itemStyle: {
  553. color: '#1598FF',
  554. borderColor: '#1598FF',
  555. borderWidth: 6,
  556. },
  557. detail: {
  558. formatter: function (params) {
  559. // return '完成率\n'+getvalue + '%';
  560. return `{wcl|即办率\n}{number|${getvalue + '%'}}`;
  561. },
  562. rich: {
  563. number: {
  564. fontSize: 25,
  565. textAlign: 'center',
  566. },
  567. wcl: {
  568. fontSize: 16,
  569. textAlign: 'center',
  570. },
  571. },
  572. color: '#fff',
  573. lineHeight: 30,
  574. offsetCenter: ['0', '0'],
  575. },
  576. title: {
  577. show: false,
  578. },
  579. data: [
  580. {
  581. value: getvalue,
  582. },
  583. ],
  584. },
  585. {
  586. name: '外部刻度',
  587. type: 'gauge',
  588. // center: ['20%', '50%'],
  589. radius: '70%',
  590. min: 0, //最小刻度
  591. max: 100, //最大刻度
  592. splitNumber: 10, //刻度数量
  593. startAngle: 225,
  594. endAngle: -45,
  595. axisLine: {
  596. show: true,
  597. lineStyle: {
  598. width: 1,
  599. color: [[1, 'rgba(0,0,0,0)']],
  600. },
  601. }, //仪表盘轴线
  602. axisLabel: {
  603. show: false,
  604. color: '#4d5bd1',
  605. distance: 25,
  606. }, //刻度标签。
  607. axisTick: {
  608. show: true,
  609. splitNumber: 7,
  610. lineStyle: {
  611. color: '#086CAF', //用颜色渐变函数不起作用
  612. width: 2,
  613. },
  614. length: -8,
  615. }, //刻度样式
  616. splitLine: {
  617. show: false,
  618. length: -20,
  619. lineStyle: {
  620. color: '#C7CBCF', //用颜色渐变函数不起作用
  621. },
  622. }, //分隔线样式
  623. detail: {
  624. show: false,
  625. },
  626. pointer: {
  627. show: false,
  628. },
  629. },
  630. ],
  631. };
  632. myChart.setOption(option);
  633. if (option) {
  634. myChart.setOption(option);
  635. }
  636. },
  637. qkq_bj3() {
  638. var myChart = echarts.init(document.getElementById('qkq_bj3'));
  639. var option = {
  640. title: {
  641. text: '',
  642. textStyle: {
  643. align: 'center',
  644. color: '#fff',
  645. fontSize: 20,
  646. },
  647. top: '5%',
  648. left: 'center',
  649. },
  650. tooltip: {
  651. trigger: 'axis',
  652. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  653. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  654. }
  655. },
  656. grid: {
  657. left: '2%',
  658. right: '4%',
  659. bottom: '14%',
  660. top:'16%',
  661. containLabel: true
  662. },
  663. legend: {
  664. data: ['部门1', '部门2', '部门3'],
  665. right: 10,
  666. top:12,
  667. textStyle: {
  668. color: "#fff"
  669. },
  670. itemWidth: 12,
  671. itemHeight: 10,
  672. // itemGap: 35
  673. },
  674. xAxis: {
  675. type: 'category',
  676. data: ['2012','2013','2014','2015','2016','2017','2018','2019'],
  677. axisLine: {
  678. lineStyle: {
  679. color: 'white'
  680. }
  681. },
  682. axisLabel: {
  683. // interval: 0,
  684. // rotate: 40,
  685. textStyle: {
  686. fontFamily: 'Microsoft YaHei'
  687. }
  688. },
  689. },
  690. yAxis: {
  691. type: 'value',
  692. max:'1200',
  693. axisLine: {
  694. show: false,
  695. lineStyle: {
  696. color: 'white'
  697. }
  698. },
  699. splitLine: {
  700. show: true,
  701. lineStyle: {
  702. color: 'rgba(255,255,255,0.3)'
  703. }
  704. },
  705. axisLabel: {}
  706. },
  707. "dataZoom": [{
  708. "show": true,
  709. "height": 8,
  710. "xAxisIndex": [
  711. 0
  712. ],
  713. bottom:'8%',
  714. "start": 10,
  715. "end": 90,
  716. handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z',
  717. handleSize: '110%',
  718. handleStyle:{
  719. color:"#d3dee5",
  720. },
  721. textStyle:{
  722. color:"#fff"},
  723. borderColor:"#90979c"
  724. }, {
  725. "type": "inside",
  726. "show": true,
  727. "height": 15,
  728. "start": 1,
  729. "end": 35
  730. }],
  731. series: [{
  732. name: '部门1',
  733. type: 'bar',
  734. barWidth: '15%',
  735. itemStyle: {
  736. normal: {
  737. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  738. offset: 0,
  739. color: '#fccb05'
  740. }, {
  741. offset: 1,
  742. color: '#f5804d'
  743. }]),
  744. barBorderRadius: 12,
  745. },
  746. },
  747. data: [400, 400, 300, 300, 300, 400, 400, 400, 300]
  748. },
  749. {
  750. name: '部门2',
  751. type: 'bar',
  752. barWidth: '15%',
  753. itemStyle: {
  754. normal: {
  755. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  756. offset: 0,
  757. color: '#8bd46e'
  758. }, {
  759. offset: 1,
  760. color: '#09bcb7'
  761. }]),
  762. barBorderRadius: 11,
  763. }
  764. },
  765. data: [400, 500, 500, 500, 500, 400,400, 500, 500]
  766. },
  767. {
  768. name: '部门3',
  769. type: 'bar',
  770. barWidth: '15%',
  771. itemStyle: {
  772. normal: {
  773. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  774. offset: 0,
  775. color: '#248ff7'
  776. }, {
  777. offset: 1,
  778. color: '#6851f1'
  779. }]),
  780. barBorderRadius: 11,
  781. }
  782. },
  783. data: [400, 600, 700, 700, 1000, 400, 400, 600, 700]
  784. }]
  785. };
  786. if (option) {
  787. myChart.setOption(option);
  788. }
  789. },
  790. qkq_bj4() {
  791. var myChart = echarts.init(document.getElementById('qkq_bj4'));
  792. var zdslColorList = ['#D0A00E', '#34DA62', '#00C0E9', '#0096F3', '#33CCFF']
  793. var option = {
  794. grid: {
  795. top: '5%',
  796. left: '3%',
  797. right: '3%',
  798. bottom: '0',
  799. containLabel: true
  800. },
  801. tooltip: {
  802. backgroundColor: 'rgba(65,114,231,0.8)',
  803. show: false,
  804. },
  805. xAxis: {
  806. show: false,
  807. type: 'value'
  808. },
  809. yAxis: [{
  810. type: 'category',
  811. data: ['非常满意', '满意', '基本满意', '不满意', '非常不满意'],
  812. axisLabel: {
  813. show: true,
  814. textStyle: {
  815. color: '#ADD6FF',
  816. fontSize: '12'
  817. }
  818. },
  819. splitLine: {
  820. show: false
  821. },
  822. axisTick: {
  823. show: false
  824. },
  825. axisLine: {
  826. show: false
  827. },
  828. },
  829. {
  830. splitLine: {
  831. show: false
  832. },
  833. axisTick: {
  834. show: false
  835. },
  836. axisLine: {
  837. show: false
  838. },
  839. axisLabel: {
  840. show: true,
  841. textStyle: {
  842. color: '#ADD6FF',
  843. fontSize: '12'
  844. }
  845. },
  846. data: [150, 298, 206, 75, 154]
  847. }
  848. ],
  849. series: [{
  850. name: "满意度", // bar图的外边框
  851. type: "bar",
  852. barWidth: "40%",
  853. yAxisIndex: 0,
  854. data: [500, 500, 500, 500, 500].map((item, i) => {
  855. return {
  856. value: item,
  857. itemStyle: {
  858. color: "rgba(0,0,0,0)",
  859. barBorderColor: zdslColorList[i],
  860. borderWidth: 1,
  861. shadowColor: "#17209c",
  862. shadowBlur: 4
  863. }
  864. }
  865. }),
  866. },
  867. {
  868. name: "满意度", //这个是Bar图
  869. type: 'bar',
  870. yAxisIndex: 1,
  871. barWidth: "40%",
  872. data: [150, 298, 206, 75, 154]
  873. }
  874. ],
  875. itemStyle: {
  876. color: function(params) {
  877. return zdslColorList[params.dataIndex]
  878. }
  879. }
  880. }
  881. if (option) {
  882. myChart.setOption(option);
  883. }
  884. },
  885. qkq_bj5() {
  886. var myChart = echarts.init(document.getElementById('qkq_bj5'));
  887. var getmax = 100;
  888. //要改变的数据
  889. var getvalue = 50.12;
  890. var option = {
  891. grid: {
  892. top: 0,
  893. bottom: 0,
  894. left:0
  895. },
  896. angleAxis: {
  897. show: false,
  898. max: (getmax * 360) / 270, //-45度到225度,二者偏移值是270度除360度
  899. type: 'value',
  900. startAngle: 225, //极坐标初始角度
  901. splitLine: {
  902. show: false,
  903. },
  904. },
  905. barMaxWidth: 20, //圆环宽度
  906. radiusAxis: {
  907. show: false,
  908. type: 'category',
  909. },
  910. //圆环位置和大小
  911. polar: {
  912. center: ['50%', '50%'],
  913. radius: '170%',
  914. },
  915. series: [
  916. {
  917. type: 'bar',
  918. data: [
  919. {
  920. //上层圆环,显示数据
  921. value: getvalue,
  922. itemStyle: {
  923. color: '#2AD2FB',
  924. },
  925. },
  926. ],
  927. barGap: '-100%', //柱间距离,上下两层圆环重合
  928. coordinateSystem: 'polar',
  929. roundCap: true, //顶端圆角
  930. z: 3, //圆环层级,同zindex
  931. },
  932. {
  933. //下层圆环,显示最大值
  934. type: 'bar',
  935. data: [
  936. {
  937. value: getmax,
  938. itemStyle: {
  939. color: '#164B9F',
  940. opacity: 1,
  941. borderWidth: 0,
  942. },
  943. },
  944. ],
  945. barGap: '-100%',
  946. coordinateSystem: 'polar',
  947. roundCap: true,
  948. z: 1,
  949. },
  950. //仪表盘
  951. {
  952. type: 'gauge',
  953. startAngle: 225, //起始角度,同极坐标
  954. endAngle: -45, //终止角度,同极坐标
  955. axisLine: {
  956. show: false,
  957. },
  958. splitLine: {
  959. show: false,
  960. },
  961. axisTick: {
  962. show: false,
  963. },
  964. axisLabel: {
  965. show: false,
  966. },
  967. splitLabel: {
  968. show: false,
  969. },
  970. pointer: {
  971. // 分隔线
  972. shadowColor: 'auto', //默认透明
  973. shadowBlur: 5,
  974. length: '50%',
  975. width: '2',
  976. show: false,
  977. },
  978. itemStyle: {
  979. color: '#1598FF',
  980. borderColor: '#1598FF',
  981. borderWidth: 6,
  982. },
  983. detail: {
  984. formatter: function (params) {
  985. // return '完成率\n'+getvalue + '%';
  986. return `{wcl|办结率\n}{number|${getvalue + '%'}}`;
  987. },
  988. rich: {
  989. number: {
  990. fontSize: 25,
  991. textAlign: 'center',
  992. },
  993. wcl: {
  994. fontSize: 16,
  995. textAlign: 'center',
  996. },
  997. },
  998. color: '#fff',
  999. lineHeight: 30,
  1000. offsetCenter: ['0', '0'],
  1001. },
  1002. title: {
  1003. show: false,
  1004. },
  1005. data: [
  1006. {
  1007. value: getvalue,
  1008. },
  1009. ],
  1010. },
  1011. {
  1012. name: '外部刻度',
  1013. type: 'gauge',
  1014. // center: ['20%', '50%'],
  1015. radius: '70%',
  1016. min: 0, //最小刻度
  1017. max: 100, //最大刻度
  1018. splitNumber: 10, //刻度数量
  1019. startAngle: 225,
  1020. endAngle: -45,
  1021. axisLine: {
  1022. show: true,
  1023. lineStyle: {
  1024. width: 1,
  1025. color: [[1, 'rgba(0,0,0,0)']],
  1026. },
  1027. }, //仪表盘轴线
  1028. axisLabel: {
  1029. show: false,
  1030. color: '#4d5bd1',
  1031. distance: 25,
  1032. }, //刻度标签。
  1033. axisTick: {
  1034. show: true,
  1035. splitNumber: 7,
  1036. lineStyle: {
  1037. color: '#086CAF', //用颜色渐变函数不起作用
  1038. width: 2,
  1039. },
  1040. length: -8,
  1041. }, //刻度样式
  1042. splitLine: {
  1043. show: false,
  1044. length: -20,
  1045. lineStyle: {
  1046. color: '#C7CBCF', //用颜色渐变函数不起作用
  1047. },
  1048. }, //分隔线样式
  1049. detail: {
  1050. show: false,
  1051. },
  1052. pointer: {
  1053. show: false,
  1054. },
  1055. },
  1056. ],
  1057. };
  1058. myChart.setOption(option);
  1059. if (option) {
  1060. myChart.setOption(option);
  1061. }
  1062. },
  1063. getCurrentTime() {
  1064. const now = new Date();
  1065. const year = now.getFullYear();
  1066. const month = now.getMonth() + 1;
  1067. const date = now.getDate();
  1068. const day = now.getDay();
  1069. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  1070. const hour = now.getHours();
  1071. const minute = now.getMinutes();
  1072. const second = now.getSeconds();
  1073. const formattedMonth = month < 10 ? `0${month}` : month;
  1074. const formattedDate = date < 10 ? `0${date}` : date;
  1075. const formattedHour = hour < 10 ? `0${hour}` : hour;
  1076. const formattedMinute = minute < 10 ? `0${minute}` : minute;
  1077. const formattedSecond = second < 10 ? `0${second}` : second;
  1078. this.currentTime =
  1079. `${year}年${formattedMonth}月${formattedDate}日 ${weekDays[day]} ${formattedHour}:${formattedMinute}:${formattedSecond}`;
  1080. },
  1081. }
  1082. };
  1083. // import '@/assets/images/leftnav.js';
  1084. $(function () {
  1085. var Accordion = function (el, multiple) {
  1086. this.el = el || {};
  1087. this.multiple = multiple || false;
  1088. // Variables privadas
  1089. var links = this.el.find('.link');
  1090. // Evento
  1091. links.on('click', {
  1092. el: this.el,
  1093. multiple: this.multiple
  1094. }, this.dropdown)
  1095. };
  1096. Accordion.prototype.dropdown = function (e) {
  1097. var $el = e.data.el;
  1098. let $this = $(this);
  1099. let $next = $this.next();
  1100. $next.slideToggle();
  1101. $this.parent().toggleClass('open');
  1102. if (!e.data.multiple) {
  1103. $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
  1104. }
  1105. };
  1106. var accordion = new Accordion($('#accordion'), false);
  1107. $('.submenu li').click(function () {
  1108. $(this).addClass('current').siblings('li').removeClass('current');
  1109. });
  1110. });
  1111. </script>
  1112. <style>
  1113. /* 添加你的CSS样式 */
  1114. </style>