index.js 52 KB

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