index.js 52 KB

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