index3.js 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKn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rlE0zUR+mHfB2/2+HaxrEStyguKlGpqWvvtq/3C4L7jb+7cLHmQn0iVV+1i6tqsa9TTbXesWssamhfHEechhyPq6fZFN589eqgnsPMlqerqaUbB9LgsLfTv6z348oTr6VrbVfXs8XcubXesur8S8Te3DO9coigxjCjuXOIMKDl3KNXwjHmL13qF/td7D+7c+kk6l+G94nX1iG3L7l1rZBqX9r1/4DnPdcTwHjGSQkgpgrhHnNW+6CG3PLivZ/+OLSJwyp+0R6yPNgBgjG48HtJEyBjZjd+3LpWbvPzEkb1P+3bBH9GNWznz8wvufMTJX+js2bd906fVjY/SmV/f3OMLX1n/52Zu6p/1du18slw4X6rNPazcDdm2xSsft/O/3/Penpc2RZx7inP305p7XBv8GhOm21f/zYZU4+R7jnZu/WH+/Kn+xj+ZNbl92Zof2QPndx3e/qsX/xATplqBM2ysUPdgjjLLIxFm8dCxNstb8uD3vmU1T763790D/zbj1o5/Kg9c2P7GCz9/DgEVCiDDeBgpPuVZ3tXBxzs1fej7q3JTp6/Lnz+zaf/zP9n1WUxNRwO/nHhqk6d4mD58Ps20eKg+cj6NqQRBOHI+HQ/XhyZJya7AJ5pPjwF+9Z0AS48LJpnIq34nAEAc2X4oP4udgDHA60Zn8TdiychmmMyu6/dbIgUBrGxfJEc8xo1n0Lg/+kPvuVwF/I97d2s4eL011mqWquP8ce0j1jesow3iR2toq3PTMXvdz2THdvjVr7YzNibpsD9cc6NztB/6f4ffQsan0xs3AAAAAElFTkSuQmCC'
  3. let app = new Vue({
  4. el: '#app',
  5. data () {
  6. return {
  7. time: '',
  8. year: '2022',
  9. config1: {
  10. number: [100],
  11. content: '{nt}个',
  12. },
  13. centerData: '',
  14. storageRecordConfig: {
  15. header: ['时间', '所属集团', '工作情况'],
  16. headerBGC: '#05507b33',
  17. oddRowBGC: '#69c0ff0f',
  18. evenRowBGC: '',
  19. headerHeight: '40',
  20. rowNum: 4,
  21. align: ['center'],
  22. data: [
  23. ['<span class="lightOut"><span class="light red"></span></span>', '2022年1月', '山西焦煤', '已经开展高层次人才引进工作'],
  24. ['<span class="lightOut"><span class="light yellow"></span></span>', '2022年2月', '山西文旅', '不能按期完成序时进度'],
  25. ['<span class="lightOut"><span class="light green"></span></span>', '2022年3月', '大地控股', '已经实现中长期激励机制贯彻'],
  26. ['<span class="lightOut"><span class="light red"></span></span>', '2022年4月', '国际能源', '薪酬结果没有做到公开'],
  27. ['<span class="lightOut"><span class="light yellow"></span></span>', '2022年5月', '山西焦煤', '已经开展高层次人才引进工作'],
  28. ['<span class="lightOut"><span class="light green"></span></span>', '2022年6月', '山西焦煤', '不能按期完成序时进度'],
  29. ],
  30. },
  31. storageRecordConfig2: {
  32. header: ['企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
  33. headerBGC: '#05507b33',
  34. oddRowBGC: '#05507b33',
  35. evenRowBGC: '',
  36. headerHeight: '40',
  37. rowNum: 4,
  38. align: ['center', 'center', 'center', 'center'],
  39. data: [
  40. ['山西焦煤', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  41. ['山西文旅', '六定长效机制情况未更新', '2022.12.01-12.31', '7天'],
  42. ['大地控股', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  43. ['国际能源', '六定长效机制情况未更新', '2022.12.01-12.31', '1天'],
  44. ['山西焦煤', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  45. ['山西焦煤', '六定长效机制情况未更新', '2022.12.01-12.31', '3天'],
  46. ],
  47. },
  48. companyList: companyList,
  49. companyListTitle: companyListTitle,
  50. commonOption: {
  51. title: {
  52. text: 'xxx',
  53. x: 'center',
  54. y: '3%',
  55. textStyle: {
  56. color: '#69C0FF',
  57. fontSize: 24,
  58. },
  59. },
  60. tooltip: {
  61. trigger: 'axis',
  62. axisPointer: {
  63. type: 'shadow',
  64. },
  65. },
  66. grid: {
  67. top: '22%',
  68. right: '5%',
  69. left: '8%',
  70. bottom: '26%',
  71. },
  72. legend: {
  73. data: '',
  74. top: '12%',
  75. right: '5%',
  76. textStyle: {
  77. color: 'rgba(250,250,250,0.6)',
  78. fontSize: 14,
  79. },
  80. },
  81. xAxis: {
  82. data: companyList.map(item => item.name),
  83. axisLine: {
  84. show: true, //隐藏X轴轴线
  85. lineStyle: {
  86. color: '#005094',
  87. width: 1,
  88. },
  89. },
  90. axisTick: {
  91. show: false, //隐藏X轴刻度
  92. },
  93. axisLabel: {
  94. show: true,
  95. rotate: 15,
  96. textStyle: {
  97. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  98. fontSize: 16,
  99. },
  100. },
  101. },
  102. yAxis: [
  103. {
  104. type: 'value',
  105. nameTextStyle: {
  106. color: '#ebf8ac',
  107. fontSize: 16,
  108. },
  109. splitLine: {
  110. show: true,
  111. lineStyle: {
  112. color: '#68b4dd66',
  113. type: 'dashed',
  114. },
  115. },
  116. axisLine: {
  117. show: false,
  118. },
  119. axisLabel: {
  120. show: true,
  121. textStyle: {
  122. color: 'rgba(250,250,250,0.6)',
  123. fontSize: 16,
  124. },
  125. },
  126. },
  127. ],
  128. },
  129. }
  130. },
  131. mounted () {
  132. this.time = formatDate()
  133. this.timer = setInterval(() => {
  134. this.time = formatDate()
  135. }, 1000)
  136. this.centerData = data
  137. // 左侧图表
  138. this.initChartL1()
  139. this.initChartL2()
  140. this.initChartL3()
  141. this.initChartL4()
  142. this.initChartL5()
  143. this.initChartL6()
  144. this.initChartL7()
  145. this.initChartL8()
  146. // 中间图表
  147. this.initChartC1()
  148. this.initChartC2()
  149. // 右侧图表
  150. this.initChartR1()
  151. this.initChartR2()
  152. this.initChartR3()
  153. this.initChartR4()
  154. this.initChartR5()
  155. this.initChartR6()
  156. this.initChartR7()
  157. this.initChartR8()
  158. },
  159. beforeDestroy () {
  160. if (this.timer) {
  161. clearInterval(this.timer);
  162. }
  163. },
  164. methods: {
  165. handleGoPage (url) {
  166. if (url.length) {
  167. window.location.href = url
  168. }
  169. },
  170. handleGoBack () {
  171. window.history.go(-1)
  172. },
  173. numFormat (value) {
  174. if (!value) return '0'
  175. var intPart = Number(value).toFixed(0) // 获取整数部分
  176. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  177. var floatPart = '.00' // 预定义小数部分
  178. var value2Array = value.toString().split('.')
  179. // =2表示数据有小数位
  180. if (value2Array.length === 2) {
  181. floatPart = value2Array[1].toString() // 拿到小数部分
  182. if (floatPart.length === 1) {
  183. // 补0
  184. return intPartFormat + '.' + floatPart + '0'
  185. } else {
  186. return intPartFormat + '.' + floatPart
  187. }
  188. } else {
  189. return intPartFormat
  190. }
  191. },
  192. initChartL1 () {
  193. let myChart = echarts.init(this.$refs['echartL1'])
  194. let option = {
  195. ..._.cloneDeep(this.commonOption),
  196. series: [
  197. {
  198. name: '当前各三级企业本部机构数',
  199. type: 'bar',
  200. barWidth: 15,
  201. itemStyle: {
  202. normal: {
  203. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  204. {
  205. offset: 0,
  206. color: '#69c0ff',
  207. },
  208. {
  209. offset: 1,
  210. color: '#082550',
  211. },
  212. ]),
  213. },
  214. },
  215. data: dataL1[0],
  216. },
  217. ],
  218. }
  219. option.title.text = '各三级企业本部机构数'
  220. option.legend.data = ['当前各三级企业本部机构数']
  221. option.yAxis.push({
  222. splitLine: {
  223. show: false,
  224. },
  225. axisLine: {
  226. show: false,
  227. },
  228. })
  229. myChart.setOption(option)
  230. },
  231. initChartL2 () {
  232. let myChart = echarts.init(this.$refs['echartL2'])
  233. let option = {
  234. ..._.cloneDeep(this.commonOption),
  235. series: [
  236. {
  237. name: '当前各三级企业所属架构数',
  238. type: 'bar',
  239. barWidth: 15,
  240. itemStyle: {
  241. normal: {
  242. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  243. {
  244. offset: 0,
  245. color: '#69c0ff',
  246. },
  247. {
  248. offset: 1,
  249. color: '#082550',
  250. },
  251. ]),
  252. },
  253. },
  254. data: dataL2[0]
  255. }
  256. ],
  257. }
  258. option.title.text = '各三级企业所属架构数'
  259. option.legend.data = ['当前各三级企业所属架构数']
  260. option.yAxis.push({
  261. splitLine: {
  262. show: false,
  263. },
  264. axisLine: {
  265. show: false,
  266. },
  267. })
  268. myChart.setOption(option)
  269. },
  270. initChartL3 () {
  271. let myChart = echarts.init(this.$refs['echartL3'])
  272. console.log(this.commonOption, "this.commonOption")
  273. let option = {
  274. ..._.cloneDeep(this.commonOption),
  275. series: [
  276. {
  277. name: '当前总部中层管理人数',
  278. type: 'bar',
  279. barWidth: 15,
  280. itemStyle: {
  281. normal: {
  282. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  283. {
  284. offset: 0,
  285. color: '#5e7ae9',
  286. },
  287. {
  288. offset: 1,
  289. color: '#082550',
  290. },
  291. ]),
  292. },
  293. },
  294. data: dataL3[0],
  295. },
  296. ],
  297. }
  298. option.title.text = '各三级企业本部中层管理人数'
  299. option.legend.data = ['当前总部中层管理人数']
  300. option.yAxis.push({
  301. type: 'value',
  302. axisLine: {
  303. show: false,
  304. },
  305. splitLine: {
  306. show: false,
  307. },
  308. })
  309. myChart.setOption(option)
  310. },
  311. initChartL4 () {
  312. let myChart = echarts.init(this.$refs['echartL4'])
  313. let option = {
  314. ..._.cloneDeep(this.commonOption),
  315. series: [
  316. {
  317. name: '当前管理人员数',
  318. type: 'bar',
  319. barWidth: 12,
  320. smooth: true, //平滑曲线显示
  321. showAllSymbol: true, //显示所有图形。
  322. symbol: 'circle', //标记的图形为实心圆
  323. symbolSize: 8, //标记的大小
  324. smooth: false,
  325. itemStyle: {
  326. //折线拐点标志的样式
  327. color: '#B889EA',
  328. borderColor: '#B889EA',
  329. width: 2,
  330. shadowColor: '#B889EA',
  331. shadowBlur: 4,
  332. },
  333. lineStyle: {
  334. color: '#B889EA',
  335. width: 2,
  336. },
  337. data: dataL4[0],
  338. },
  339. {
  340. name: '管理人员数占总人数比值',
  341. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  342. type: 'line',
  343. itemStyle: {
  344. normal: {
  345. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  346. {
  347. offset: 0,
  348. color: '#69c0ff',
  349. },
  350. {
  351. offset: 1,
  352. color: '#082550',
  353. },
  354. ]),
  355. },
  356. },
  357. data: dataL4[1],
  358. markLine: {
  359. data: [
  360. {
  361. name: '管理人员比值核定上限',
  362. yAxis: 15,
  363. lineStyle: {
  364. color: '#fff',
  365. },
  366. label: {
  367. formatter: '{b}',
  368. position: 'middle',
  369. color: '#fff',
  370. },
  371. }
  372. ],
  373. label: {
  374. distance: [20, 8],
  375. },
  376. },
  377. },
  378. ],
  379. }
  380. option.title.text = '各三级企业管理人员数'
  381. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  382. option.legend.show = true
  383. option.tooltip = {
  384. trigger: 'axis',
  385. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  386. }
  387. option.yAxis.push({
  388. max: 20,
  389. type: 'value',
  390. axisLine: {
  391. show: false,
  392. },
  393. splitLine: {
  394. show: false,
  395. },
  396. axisLabel: {
  397. show: true,
  398. formatter: '{value} %',
  399. textStyle: {
  400. color: 'rgba(250,250,250,0.6)',
  401. },
  402. },
  403. })
  404. myChart.setOption(option)
  405. },
  406. initChartL5 () {
  407. let myChart = echarts.init(this.$refs['echartL5'])
  408. let option = {
  409. ..._.cloneDeep(this.commonOption),
  410. series: [
  411. {
  412. name: '各三级企业总人数',
  413. type: 'bar',
  414. barWidth: 15,
  415. itemStyle: {
  416. normal: {
  417. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  418. {
  419. offset: 0,
  420. color: '#69c0ff',
  421. },
  422. {
  423. offset: 1,
  424. color: '#082550',
  425. },
  426. ]),
  427. },
  428. },
  429. data: dataL5[0],
  430. },
  431. {
  432. name: '去年同期人数变化率',
  433. type: 'line',
  434. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  435. smooth: true, //平滑曲线显示
  436. showAllSymbol: true, //显示所有图形。
  437. symbol: 'circle', //标记的图形为实心圆
  438. symbolSize: 8, //标记的大小
  439. smooth: false,
  440. itemStyle: {
  441. //折线拐点标志的样式
  442. color: '#b889ea',
  443. borderColor: '#b889ea',
  444. width: 2,
  445. shadowColor: '#b889ea',
  446. shadowBlur: 4,
  447. },
  448. lineStyle: {
  449. color: '#b889ea',
  450. width: 2,
  451. },
  452. data: dataL5[1],
  453. },
  454. ],
  455. }
  456. option.title.text = '各三级企业总人数'
  457. option.legend.data = ['各三级企业总人数', '去年同期人数变化率']
  458. option.legend.show = true
  459. option.tooltip = {
  460. trigger: 'axis',
  461. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  462. }
  463. option.yAxis.push({
  464. type: 'value',
  465. axisLine: {
  466. show: false,
  467. },
  468. splitLine: {
  469. show: false,
  470. },
  471. axisLabel: {
  472. show: true,
  473. formatter: '{value} %',
  474. textStyle: {
  475. color: 'rgba(250,250,250,0.6)',
  476. },
  477. },
  478. })
  479. myChart.setOption(option)
  480. },
  481. initChartL6 () {
  482. let myChart = echarts.init(this.$refs['echartL6'])
  483. let option = {
  484. ..._.cloneDeep(this.commonOption),
  485. series: [
  486. {
  487. name: '本部员额数',
  488. type: 'bar',
  489. barWidth: 15,
  490. itemStyle: {
  491. normal: {
  492. barBorderRadius: [10, 10, 0, 0],
  493. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  494. {
  495. offset: 0,
  496. color: '#43ede3',
  497. },
  498. {
  499. offset: 1,
  500. color: '#082550',
  501. },
  502. ]),
  503. },
  504. },
  505. data: dataL6[0],
  506. },
  507. ],
  508. }
  509. option.title.text = '各三级企业本部员额数'
  510. option.legend.data = ['本部员额数']
  511. option.legend.show = true
  512. option.yAxis.push({
  513. splitLine: {
  514. show: false,
  515. },
  516. axisLine: {
  517. show: false,
  518. },
  519. })
  520. myChart.setOption(option)
  521. },
  522. initChartL7 () {
  523. let myChart = echarts.init(this.$refs['echartL7'])
  524. let option = {
  525. ..._.cloneDeep(this.commonOption),
  526. series: [
  527. {
  528. name: '人数变化',
  529. type: 'line',
  530. barWidth: 15,
  531. itemStyle: {
  532. normal: {
  533. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  534. {
  535. offset: 0,
  536. color: '#43ede3',
  537. },
  538. {
  539. offset: 1,
  540. color: '#43ede3',
  541. },
  542. ]),
  543. },
  544. },
  545. // markLine: {
  546. // data: [{ type: 'average', name: 'Avg' }],
  547. // },
  548. data: dataL7[0],
  549. },
  550. {
  551. name: '全员劳动生产率同比变化',
  552. type: 'line',
  553. barWidth: 15,
  554. yAxisIndex: 1,
  555. itemStyle: {
  556. normal: {
  557. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  558. {
  559. offset: 0,
  560. color: '#b889ea',
  561. },
  562. {
  563. offset: 1,
  564. color: '#b889ea',
  565. },
  566. ]),
  567. },
  568. },
  569. data: dataL7[1],
  570. },
  571. ],
  572. }
  573. option.title.text = '人数变化和全员劳动生产率变化率分析'
  574. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  575. option.legend.show = true
  576. option.tooltip = {
  577. trigger: 'axis',
  578. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  579. }
  580. option.yAxis = [
  581. {
  582. type: 'value',
  583. axisLine: {
  584. show: false,
  585. },
  586. splitLine: {
  587. show: false,
  588. },
  589. axisLabel: {
  590. show: true,
  591. formatter: '{value} %',
  592. textStyle: {
  593. color: 'rgba(250,250,250,0.6)',
  594. },
  595. },
  596. },
  597. {
  598. type: 'value',
  599. axisLine: {
  600. show: false,
  601. },
  602. splitLine: {
  603. show: false,
  604. },
  605. axisLabel: {
  606. show: true,
  607. formatter: '{value} %',
  608. textStyle: {
  609. color: 'rgba(250,250,250,0.6)',
  610. },
  611. },
  612. }
  613. ]
  614. myChart.setOption(option)
  615. },
  616. initChartL8 () {
  617. let myChart = echarts.init(this.$refs['echartL8'])
  618. let option = {
  619. ..._.cloneDeep(this.commonOption),
  620. series: [
  621. {
  622. name: '人数变化',
  623. type: 'line',
  624. barWidth: 15,
  625. itemStyle: {
  626. normal: {
  627. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  628. {
  629. offset: 0,
  630. color: '#43ede3',
  631. },
  632. {
  633. offset: 1,
  634. color: '#43ede3',
  635. },
  636. ]),
  637. },
  638. },
  639. // markLine: {
  640. // data: [{ type: 'average', name: 'Avg' }],
  641. // },
  642. data: dataL8[0],
  643. },
  644. {
  645. name: '人工成本利润率同比变化',
  646. type: 'line',
  647. barWidth: 15,
  648. yAxisIndex: 1,
  649. itemStyle: {
  650. normal: {
  651. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  652. {
  653. offset: 0,
  654. color: '#b889ea',
  655. },
  656. {
  657. offset: 1,
  658. color: '#b889ea',
  659. },
  660. ]),
  661. },
  662. },
  663. data: dataL8[1],
  664. },
  665. ],
  666. }
  667. option.title.text = '人数变化和人工利润率变化分析'
  668. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  669. option.legend.show = true
  670. option.tooltip = {
  671. trigger: 'axis',
  672. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  673. }
  674. option.yAxis = [
  675. {
  676. type: 'value',
  677. axisLine: {
  678. show: false,
  679. },
  680. splitLine: {
  681. show: false,
  682. },
  683. axisLabel: {
  684. show: true,
  685. formatter: '{value} %',
  686. textStyle: {
  687. color: 'rgba(250,250,250,0.6)',
  688. },
  689. },
  690. },
  691. {
  692. type: 'value',
  693. axisLine: {
  694. show: false,
  695. },
  696. splitLine: {
  697. show: false,
  698. },
  699. axisLabel: {
  700. show: true,
  701. formatter: '{value} %',
  702. textStyle: {
  703. color: 'rgba(250,250,250,0.6)',
  704. },
  705. },
  706. }
  707. ]
  708. myChart.setOption(option)
  709. },
  710. // 中间图表---------------------------------------------开始
  711. initChartC1 () {
  712. let myChart = echarts.init(this.$refs['echartC1'])
  713. let option = {
  714. ..._.cloneDeep(this.commonOption),
  715. series: [
  716. {
  717. name: '全员劳动生产率(万/人)',
  718. type: 'bar',
  719. barWidth: 12,
  720. smooth: true, //平滑曲线显示
  721. showAllSymbol: true, //显示所有图形。
  722. symbol: 'circle', //标记的图形为实心圆
  723. symbolSize: 8, //标记的大小
  724. smooth: false,
  725. itemStyle: {
  726. //折线拐点标志的样式
  727. color: '#B889EA',
  728. borderColor: '#B889EA',
  729. width: 2,
  730. shadowColor: '#B889EA',
  731. shadowBlur: 4,
  732. },
  733. lineStyle: {
  734. color: '#B889EA',
  735. width: 2,
  736. },
  737. data: dataC1[0],
  738. markLine: {
  739. data: [
  740. {
  741. name: '省属企业平均水平',
  742. yAxis: 50.13,
  743. lineStyle: {
  744. color: '#fff',
  745. },
  746. label: {
  747. formatter: '{b}',
  748. position: 'middle',
  749. color: '#fff',
  750. },
  751. },
  752. {
  753. name: '央企平均水平',
  754. yAxis: 69.4,
  755. lineStyle: {
  756. color: '#fff',
  757. },
  758. label: {
  759. formatter: '{b}',
  760. position: 'middle',
  761. color: '#fff',
  762. },
  763. },
  764. ],
  765. label: {
  766. distance: [20, 8],
  767. },
  768. },
  769. },
  770. {
  771. name: '全员劳动生产率同比变化',
  772. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  773. type: 'line',
  774. itemStyle: {
  775. normal: {
  776. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  777. {
  778. offset: 0,
  779. color: '#69c0ff',
  780. },
  781. {
  782. offset: 1,
  783. color: '#082550',
  784. },
  785. ]),
  786. },
  787. },
  788. data: dataC1[1],
  789. },
  790. ],
  791. }
  792. option.title.text = '全员劳动生产率'
  793. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  794. option.legend.show = true
  795. option.tooltip = {
  796. trigger: 'axis',
  797. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  798. }
  799. option.yAxis.push({
  800. type: 'value',
  801. axisLine: {
  802. show: false,
  803. },
  804. splitLine: {
  805. show: false,
  806. },
  807. axisLabel: {
  808. show: true,
  809. formatter: '{value} %',
  810. textStyle: {
  811. color: 'rgba(250,250,250,0.6)',
  812. },
  813. },
  814. })
  815. myChart.setOption(option)
  816. tools.loopShowTooltip(myChart, option, {
  817. nterval: 2000,
  818. loopSeries: true,
  819. });
  820. },
  821. initChartC2 () {
  822. let myChart = echarts.init(this.$refs['echartC2'])
  823. let option = {
  824. ..._.cloneDeep(this.commonOption),
  825. series: [
  826. {
  827. name: '人工成本利润率同比变化',
  828. type: 'line',
  829. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  830. smooth: true, //平滑曲线显示
  831. showAllSymbol: true, //显示所有图形。
  832. symbol: 'circle', //标记的图形为实心圆
  833. symbolSize: 8, //标记的大小
  834. smooth: false,
  835. itemStyle: {
  836. //折线拐点标志的样式
  837. color: '#B889EA',
  838. borderColor: '#B889EA',
  839. width: 2,
  840. shadowColor: '#B889EA',
  841. shadowBlur: 4,
  842. },
  843. lineStyle: {
  844. color: '#B889EA',
  845. width: 2,
  846. },
  847. data: dataC2[0],
  848. },
  849. {
  850. name: '人工成本利润率',
  851. type: 'bar',
  852. barWidth: 15,
  853. itemStyle: {
  854. normal: {
  855. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  856. {
  857. offset: 0,
  858. color: '#69c0ff',
  859. },
  860. {
  861. offset: 1,
  862. color: '#082550',
  863. },
  864. ]),
  865. },
  866. },
  867. data: dataC2[1],
  868. markLine: {
  869. data: [
  870. {
  871. name: '省属企业平均水平',
  872. yAxis: 67.09,
  873. lineStyle: {
  874. color: '#fff',
  875. },
  876. label: {
  877. formatter: '{b}',
  878. position: 'end',
  879. color: '#fff',
  880. },
  881. },
  882. {
  883. name: '央企平均水平',
  884. yAxis: 81,
  885. lineStyle: {
  886. color: '#fff',
  887. },
  888. label: {
  889. formatter: '{b}',
  890. position: 'middle',
  891. color: '#fff',
  892. },
  893. },
  894. ],
  895. label: {
  896. distance: [20, 8],
  897. },
  898. },
  899. },
  900. ],
  901. }
  902. option.title.text = '人工成本利润率'
  903. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  904. option.legend.show = true
  905. option.tooltip = {
  906. trigger: 'axis',
  907. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  908. }
  909. option.grid.right = '15%'
  910. option.yAxis = [
  911. {
  912. splitLine: {
  913. show: false,
  914. },
  915. axisLine: {
  916. show: false,
  917. },
  918. axisLabel: {
  919. show: true,
  920. formatter: '{value} %',
  921. textStyle: {
  922. color: 'rgba(250,250,250,0.6)',
  923. },
  924. },
  925. },
  926. {
  927. splitLine: {
  928. show: false,
  929. },
  930. axisLine: {
  931. show: false,
  932. },
  933. axisLabel: {
  934. show: true,
  935. formatter: '{value} %',
  936. textStyle: {
  937. color: 'rgba(250,250,250,0.6)',
  938. },
  939. },
  940. }
  941. ]
  942. myChart.setOption(option)
  943. tools.loopShowTooltip(myChart, option, {
  944. nterval: 2000,
  945. loopSeries: true,
  946. });
  947. },
  948. // 右侧图表---------------------------------------------开始
  949. initChartR1 () {
  950. let myChart = echarts.init(this.$refs['echartR1'])
  951. let commonOptions = this.commonOption
  952. commonOptions.yAxis[0].splitNumber = 2
  953. let option = {
  954. ..._.cloneDeep(commonOptions),
  955. series: [
  956. {
  957. name: '招聘需求公告次数',
  958. type: 'bar',
  959. barWidth: 15,
  960. itemStyle: {
  961. normal: {
  962. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  963. {
  964. offset: 0,
  965. color: '#69c0ff',
  966. },
  967. {
  968. offset: 1,
  969. color: '#082550',
  970. },
  971. ]),
  972. },
  973. },
  974. data: dataR1[0],
  975. },
  976. {
  977. name: '招聘需求公告累计招聘人次',
  978. type: 'bar',
  979. barWidth: 15,
  980. itemStyle: {
  981. normal: {
  982. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  983. {
  984. offset: 0,
  985. color: '#43ede3',
  986. },
  987. {
  988. offset: 1,
  989. color: '#082550',
  990. },
  991. ]),
  992. },
  993. },
  994. data: dataR1[1],
  995. },
  996. ],
  997. }
  998. option.title.text = '各三级企业招聘需求公告人次情况'
  999. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1000. option.legend.show = true
  1001. option.yAxis.push({
  1002. splitLine: {
  1003. show: false,
  1004. },
  1005. axisLine: {
  1006. show: false,
  1007. },
  1008. })
  1009. myChart.setOption(option)
  1010. },
  1011. initChartR2 () {
  1012. let myChart = echarts.init(this.$refs['echartR2'])
  1013. let commonOptions = this.commonOption
  1014. commonOptions.yAxis[0].splitNumber = 2
  1015. let option = {
  1016. ..._.cloneDeep(commonOptions),
  1017. series: [
  1018. {
  1019. name: '录用结果公示次数',
  1020. type: 'bar',
  1021. barWidth: 15,
  1022. itemStyle: {
  1023. normal: {
  1024. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1025. {
  1026. offset: 0,
  1027. color: '#69c0ff',
  1028. },
  1029. {
  1030. offset: 1,
  1031. color: '#082550',
  1032. },
  1033. ]),
  1034. },
  1035. },
  1036. data: dataR2[0],
  1037. },
  1038. {
  1039. name: '录用结果公示累计公示人数',
  1040. type: 'bar',
  1041. yAxisIndex: 1,
  1042. barWidth: 15,
  1043. itemStyle: {
  1044. normal: {
  1045. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1046. {
  1047. offset: 0,
  1048. color: '#45DAD1',
  1049. },
  1050. {
  1051. offset: 1,
  1052. color: '#082550',
  1053. },
  1054. ]),
  1055. },
  1056. },
  1057. data: dataR2[1],
  1058. },
  1059. ],
  1060. }
  1061. option.title.text = '各三级企业录用结果公示人次'
  1062. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1063. option.legend.show = true
  1064. option.yAxis.push({
  1065. type: 'value',
  1066. axisLine: {
  1067. show: false,
  1068. },
  1069. splitLine: {
  1070. show: false,
  1071. },
  1072. axisLabel: {
  1073. show: true,
  1074. formatter: '{value}',
  1075. textStyle: {
  1076. color: 'rgba(250,250,250,0.6)',
  1077. },
  1078. },
  1079. })
  1080. myChart.setOption(option)
  1081. },
  1082. initChartR3 () {
  1083. let myChart = echarts.init(this.$refs['echartR3'])
  1084. let commonOptions = this.commonOption
  1085. commonOptions.yAxis[0].splitNumber = 2
  1086. let option = {
  1087. ..._.cloneDeep(commonOptions),
  1088. series: [
  1089. {
  1090. name: '2022年利润(万)',
  1091. type: 'bar',
  1092. barWidth: 15,
  1093. itemStyle: {
  1094. normal: {
  1095. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1096. {
  1097. offset: 0,
  1098. color: '#69c0ff',
  1099. },
  1100. {
  1101. offset: 1,
  1102. color: '#082550',
  1103. },
  1104. ]),
  1105. },
  1106. },
  1107. data: dataR3[0],
  1108. },
  1109. {
  1110. name: '2022年累计招聘数',
  1111. yAxisIndex: 1,
  1112. type: 'bar',
  1113. barWidth: 15,
  1114. itemStyle: {
  1115. normal: {
  1116. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1117. {
  1118. offset: 0,
  1119. color: '#45DAD1',
  1120. },
  1121. {
  1122. offset: 1,
  1123. color: '#082550',
  1124. },
  1125. ]),
  1126. },
  1127. },
  1128. data: dataR3[1],
  1129. },
  1130. ],
  1131. }
  1132. option.title.text = '各三级企业年利润与招聘情况分析'
  1133. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1134. option.legend.show = true
  1135. option.yAxis = [
  1136. {
  1137. max: function (val) {
  1138. if (Math.abs(val.max) > Math.abs(val.min)) {
  1139. return (Math.abs(val.max) * 1.2).toFixed(0)
  1140. } else {
  1141. return (Math.abs(val.min) * 1.2).toFixed(0)
  1142. }
  1143. },
  1144. min: function (val) {
  1145. if (Math.abs(val.max) > Math.abs(val.min)) {
  1146. return (-Math.abs(val.max) * 1.2).toFixed(0)
  1147. } else {
  1148. return (Math.abs(val.min) * 1.2).toFixed(0)
  1149. }
  1150. },
  1151. splitLine: {
  1152. show: false,
  1153. },
  1154. axisLine: {
  1155. show: false,
  1156. },
  1157. axisLabel: {
  1158. show: true,
  1159. formatter: '{value}',
  1160. textStyle: {
  1161. color: 'rgba(250,250,250,0.6)',
  1162. },
  1163. },
  1164. },
  1165. {
  1166. max: function (val) {
  1167. if (Math.abs(val.max) > Math.abs(val.min)) {
  1168. return (Math.abs(val.max) * 1.2).toFixed(0)
  1169. } else {
  1170. return (Math.abs(val.min) * 1.2).toFixed(0)
  1171. }
  1172. },
  1173. min: function (val) {
  1174. if (Math.abs(val.max) > Math.abs(val.min)) {
  1175. return (-Math.abs(val.max) * 1.2).toFixed(0)
  1176. } else {
  1177. return (Math.abs(val.min) * 1.2).toFixed(0)
  1178. }
  1179. },
  1180. splitLine: {
  1181. show: false,
  1182. },
  1183. axisLine: {
  1184. show: false,
  1185. },
  1186. axisLabel: {
  1187. show: true,
  1188. formatter: '{value}',
  1189. textStyle: {
  1190. color: 'rgba(250,250,250,0.6)',
  1191. },
  1192. },
  1193. }
  1194. ]
  1195. myChart.setOption(option)
  1196. },
  1197. initChartR4 () {
  1198. let myChart = echarts.init(this.$refs['echartR4'])
  1199. let commonOptions = this.commonOption
  1200. commonOptions.yAxis[0].splitNumber = 2
  1201. let option = {
  1202. ..._.cloneDeep(commonOptions),
  1203. series: [
  1204. {
  1205. name: '2022年退出人数',
  1206. type: 'bar',
  1207. barWidth: 15,
  1208. itemStyle: {
  1209. normal: {
  1210. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1211. {
  1212. offset: 0,
  1213. color: '#69c0ff',
  1214. },
  1215. {
  1216. offset: 1,
  1217. color: '#082550',
  1218. },
  1219. ]),
  1220. },
  1221. },
  1222. data: dataR4[0],
  1223. },
  1224. {
  1225. name: '2022年累计招聘人数',
  1226. type: 'bar',
  1227. barWidth: 15,
  1228. yAxisIndex: 1,
  1229. itemStyle: {
  1230. normal: {
  1231. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1232. {
  1233. offset: 0,
  1234. color: '#45DAD1',
  1235. },
  1236. {
  1237. offset: 1,
  1238. color: '#082550',
  1239. },
  1240. ]),
  1241. },
  1242. },
  1243. data: dataR4[1],
  1244. },
  1245. ],
  1246. }
  1247. option.title.text = '各三级企业"退二进一"完成情况'
  1248. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1249. option.legend.show = true
  1250. option.yAxis.push({
  1251. splitLine: {
  1252. show: false,
  1253. },
  1254. axisLine: {
  1255. show: false,
  1256. },
  1257. axisLabel: {
  1258. show: true,
  1259. formatter: '{value}',
  1260. textStyle: {
  1261. color: 'rgba(250,250,250,0.6)',
  1262. },
  1263. },
  1264. })
  1265. myChart.setOption(option)
  1266. },
  1267. initChartR5 () {
  1268. let myChart = echarts.init(this.$refs['echartR5'])
  1269. let option = {
  1270. ..._.cloneDeep(this.commonOption),
  1271. series: [
  1272. {
  1273. name: '去年同期在岗职工平均薪酬',
  1274. type: 'bar',
  1275. barWidth: 15,
  1276. itemStyle: {
  1277. normal: {
  1278. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1279. {
  1280. offset: 0,
  1281. color: '#69c0ff',
  1282. },
  1283. {
  1284. offset: 1,
  1285. color: '#082550',
  1286. },
  1287. ]),
  1288. },
  1289. },
  1290. data: dataR5[0],
  1291. },
  1292. {
  1293. name: '在岗职工平均薪酬',
  1294. type: 'bar',
  1295. barWidth: 15,
  1296. yAxisIndex: 1,
  1297. itemStyle: {
  1298. normal: {
  1299. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1300. {
  1301. offset: 0,
  1302. color: '#6682F5',
  1303. },
  1304. {
  1305. offset: 1,
  1306. color: '#082550',
  1307. },
  1308. ]),
  1309. },
  1310. },
  1311. data: dataR5[1],
  1312. }
  1313. ],
  1314. }
  1315. option.title.text = '各三级企业在岗职工平均薪酬'
  1316. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1317. option.legend.show = true
  1318. option.yAxis.push({
  1319. splitLine: {
  1320. show: false,
  1321. },
  1322. axisLine: {
  1323. show: false,
  1324. },
  1325. axisLabel: {
  1326. show: true,
  1327. formatter: '{value}',
  1328. textStyle: {
  1329. color: 'rgba(250,250,250,0.6)',
  1330. },
  1331. },
  1332. })
  1333. myChart.setOption(option)
  1334. },
  1335. initChartR6 () {
  1336. let myChart = echarts.init(this.$refs['echartR6'])
  1337. let option = {
  1338. ..._.cloneDeep(this.commonOption),
  1339. series: [
  1340. {
  1341. name: '2022年利润累计涨幅率',
  1342. type: 'line',
  1343. smooth: true, //平滑曲线显示
  1344. showAllSymbol: true, //显示所有图形。
  1345. symbol: 'circle', //标记的图形为实心圆
  1346. symbolSize: 8, //标记的大小
  1347. smooth: false,
  1348. itemStyle: {
  1349. //折线拐点标志的样式
  1350. color: '#B889EA',
  1351. borderColor: '#B889EA',
  1352. width: 2,
  1353. shadowColor: '#B889EA',
  1354. shadowBlur: 4,
  1355. },
  1356. lineStyle: {
  1357. color: '#B889EA',
  1358. width: 2,
  1359. },
  1360. data: dataR6[0],
  1361. },
  1362. {
  1363. name: '2022年薪酬累计涨幅率',
  1364. type: 'line',
  1365. barWidth: 15,
  1366. yAxisIndex: 1,
  1367. itemStyle: {
  1368. normal: {
  1369. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1370. {
  1371. offset: 0,
  1372. color: '#69C0FF',
  1373. },
  1374. {
  1375. offset: 1,
  1376. color: '#082550',
  1377. },
  1378. ]),
  1379. },
  1380. },
  1381. data: dataR6[1],
  1382. },
  1383. ],
  1384. }
  1385. option.title.text = '各三级企业月利润与月薪酬变动情况'
  1386. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1387. option.tooltip = {
  1388. trigger: 'axis',
  1389. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1390. }
  1391. option.yAxis = [
  1392. {
  1393. splitLine: {
  1394. show: false,
  1395. },
  1396. axisLine: {
  1397. show: false,
  1398. },
  1399. axisLabel: {
  1400. show: true,
  1401. formatter: '{value} %',
  1402. textStyle: {
  1403. color: 'rgba(250,250,250,0.6)',
  1404. },
  1405. },
  1406. },
  1407. {
  1408. splitLine: {
  1409. show: false,
  1410. },
  1411. axisLine: {
  1412. show: false,
  1413. },
  1414. axisLabel: {
  1415. show: true,
  1416. formatter: '{value} %',
  1417. textStyle: {
  1418. color: 'rgba(250,250,250,0.6)',
  1419. },
  1420. },
  1421. }
  1422. ]
  1423. myChart.setOption(option)
  1424. },
  1425. initChartR7 () {
  1426. let myChart = echarts.init(this.$refs['echartR7'])
  1427. let option = {
  1428. ..._.cloneDeep(this.commonOption),
  1429. series: [
  1430. {
  1431. name: '全员绩效考核完成率',
  1432. type: 'bar',
  1433. barWidth: 15,
  1434. itemStyle: {
  1435. normal: {
  1436. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1437. {
  1438. offset: 0,
  1439. color: '#B889EA',
  1440. },
  1441. {
  1442. offset: 1,
  1443. color: '#082550',
  1444. },
  1445. ]),
  1446. },
  1447. },
  1448. data: dataR7[0],
  1449. },
  1450. ],
  1451. }
  1452. option.title.text = '各三级企业全员绩效考核 '
  1453. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1454. option.yAxis.push({
  1455. splitLine: {
  1456. show: false,
  1457. },
  1458. axisLine: {
  1459. show: false,
  1460. },
  1461. })
  1462. myChart.setOption(option)
  1463. },
  1464. initChartR8 () {
  1465. let myChart = echarts.init(this.$refs['echartR8'])
  1466. let option = {
  1467. ..._.cloneDeep(this.commonOption),
  1468. series: [
  1469. {
  1470. name: '任期制契约化完成率',
  1471. type: 'bar',
  1472. barWidth: 15,
  1473. itemStyle: {
  1474. normal: {
  1475. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1476. {
  1477. offset: 0,
  1478. color: '#43ede3',
  1479. },
  1480. {
  1481. offset: 1,
  1482. color: '#082550',
  1483. },
  1484. ]),
  1485. },
  1486. },
  1487. data: dataR8[0],
  1488. },
  1489. ],
  1490. }
  1491. option.title.text = '各三级企业任期制契约化完成率'
  1492. option.yAxis.push({
  1493. splitLine: {
  1494. show: false,
  1495. },
  1496. axisLine: {
  1497. show: false,
  1498. },
  1499. })
  1500. myChart.setOption(option)
  1501. },
  1502. },
  1503. })