index4.js 46 KB

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