index.js 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskc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MyIy0bqUzLXMWzMDkckaMJZNIQnB57vjbp0K7NJQRpe8Pahrls+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. type: 'dashed',
  928. color: '#fff',
  929. },
  930. label: {
  931. formatter: '{b}',
  932. position: 'end',
  933. color: '#fff',
  934. fontSize: 16,
  935. },
  936. },
  937. ],
  938. label: {
  939. distance: [20, 8],
  940. },
  941. },
  942. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  943. data: c1[1],
  944. },
  945. ],
  946. }
  947. option.title.text = '当前各省属企业全员劳动生产率'
  948. option.legend.data = ['全员劳动生产率同比', '全员劳动生产率(万/人)']
  949. option.legend.show = true
  950. option.grid.right = '15%'
  951. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  952. option.yAxis.push({
  953. type: 'value',
  954. axisLine: {
  955. show: false,
  956. },
  957. splitLine: {
  958. show: false,
  959. },
  960. axisLabel: {
  961. show: true,
  962. formatter: '{value} %',
  963. textStyle: {
  964. color: 'rgba(250,250,250,0.6)',
  965. },
  966. },
  967. })
  968. // option.yAxis.push({
  969. // type: 'log',
  970. // min: -1,
  971. // logBase: 10,
  972. // axisLine: {
  973. // show: false,
  974. // },
  975. // splitLine: {
  976. // show: false,
  977. // },
  978. // axisLabel: {
  979. // show: true,
  980. // formatter: function(value) {
  981. // console.log(value,"value")
  982. // // return value === 1 ? 0 : value
  983. // },
  984. // textStyle: {
  985. // color: 'rgba(250,250,250,0.6)',
  986. // },
  987. // },
  988. // })
  989. myChart.setOption(option)
  990. tools.loopShowTooltip(myChart, option, {
  991. nterval: 2000,
  992. loopSeries: true,
  993. });
  994. },
  995. initChartC2 () {
  996. let myChart = echarts.init(this.$refs['echartC2'])
  997. let option = {
  998. ..._.cloneDeep(this.commonOption),
  999. color: ['#69c0ff'],
  1000. series: [
  1001. {
  1002. name: '人工成本利润率同比',
  1003. type: 'line',
  1004. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1005. smooth: true, //平滑曲线显示
  1006. showAllSymbol: true, //显示所有图形。
  1007. symbol: 'circle', //标记的图形为实心圆
  1008. symbolSize: 8, //标记的大小
  1009. smooth: false,
  1010. itemStyle: {
  1011. //折线拐点标志的样式
  1012. color: '#B889EA',
  1013. borderColor: '#B889EA',
  1014. width: 2,
  1015. shadowColor: '#B889EA',
  1016. shadowBlur: 4,
  1017. },
  1018. lineStyle: {
  1019. color: '#B889EA',
  1020. width: 2,
  1021. },
  1022. data: c2[0],
  1023. },
  1024. {
  1025. name: '人工成本利润率',
  1026. type: 'bar',
  1027. barWidth: 15,
  1028. markLine: {
  1029. data: [
  1030. {
  1031. name: '省属企业平均水平',
  1032. yAxis: 67.09,
  1033. lineStyle: {
  1034. color: '#fff',
  1035. },
  1036. label: {
  1037. formatter: '{b}',
  1038. position: 'end',
  1039. color: '#fff',
  1040. },
  1041. },
  1042. {
  1043. name: '央企平均水平',
  1044. yAxis: 81,
  1045. lineStyle: {
  1046. color: '#fff',
  1047. },
  1048. label: {
  1049. formatter: '{b}',
  1050. position: 'middle',
  1051. color: '#fff',
  1052. },
  1053. },
  1054. ],
  1055. label: {
  1056. distance: [20, 8],
  1057. },
  1058. },
  1059. itemStyle: {
  1060. color: params => {
  1061. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1062. return 'red'
  1063. } else if (params.value < 0) {
  1064. return 'yellow'
  1065. } else {
  1066. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1067. {
  1068. offset: 0,
  1069. color: '#69c0ff',
  1070. },
  1071. {
  1072. offset: 1,
  1073. color: '#082550',
  1074. },
  1075. ])
  1076. }
  1077. },
  1078. },
  1079. data: c2[1]
  1080. },
  1081. ],
  1082. }
  1083. option.title.text = '人工成本利润率'
  1084. option.legend.show = true
  1085. option.grid.right = '15%'
  1086. option.yAxis[0].axisLabel.formatter = '{value} %',
  1087. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1088. option.yAxis.push({
  1089. type: 'value',
  1090. axisLine: {
  1091. show: false,
  1092. },
  1093. splitLine: {
  1094. show: false,
  1095. },
  1096. axisLabel: {
  1097. show: true,
  1098. formatter: '{value} %',
  1099. textStyle: {
  1100. color: 'rgba(250,250,250,0.6)',
  1101. },
  1102. },
  1103. })
  1104. myChart.setOption(option)
  1105. tools.loopShowTooltip(myChart, option, {
  1106. nterval: 2000,
  1107. loopSeries: true,
  1108. });
  1109. },
  1110. // 右侧图表---------------------------------------------开始
  1111. initChartR1 () {
  1112. let myChart = echarts.init(this.$refs['echartR1'])
  1113. let commonOptions = this.commonOption
  1114. commonOptions.yAxis[0].splitNumber = 2
  1115. let dataTemp = []
  1116. let dataTemp2 = []
  1117. dataR1[0].forEach(item => {
  1118. dataTemp.push(item + 1);
  1119. });
  1120. dataR1[1].forEach(item => {
  1121. dataTemp2.push(item + 1);
  1122. });
  1123. let option = {
  1124. ..._.cloneDeep(commonOptions),
  1125. series: [
  1126. {
  1127. name: '招聘需求公告次数',
  1128. type: 'bar',
  1129. barWidth: 15,
  1130. itemStyle: {
  1131. normal: {
  1132. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1133. {
  1134. offset: 0,
  1135. color: '#69c0ff',
  1136. },
  1137. {
  1138. offset: 1,
  1139. color: '#082550',
  1140. },
  1141. ]),
  1142. },
  1143. },
  1144. data: dataTemp,
  1145. },
  1146. {
  1147. name: '招聘需求公告累计招聘人次',
  1148. type: 'bar',
  1149. barWidth: 15,
  1150. itemStyle: {
  1151. normal: {
  1152. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1153. {
  1154. offset: 0,
  1155. color: '#43ede3',
  1156. },
  1157. {
  1158. offset: 1,
  1159. color: '#082550',
  1160. },
  1161. ]),
  1162. },
  1163. },
  1164. data: dataTemp2,
  1165. },
  1166. ],
  1167. }
  1168. option.title.text = '当前各省属企业招聘需求公示人次'
  1169. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1170. option.legend.show = true
  1171. option.tooltip.formatter = function (value) {
  1172. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' +
  1173. 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>' +
  1263. value[1].axisValue + ':' + (value[1].value - 1)
  1264. }
  1265. option.yAxis[0] = {
  1266. type: 'log',
  1267. min: 1,
  1268. logBase: 10,
  1269. axisLine: {
  1270. show: false,
  1271. },
  1272. splitLine: {
  1273. show: true,
  1274. lineStyle: {
  1275. color: '#68b4dd66',
  1276. type: 'dashed',
  1277. },
  1278. },
  1279. axisLabel: {
  1280. show: true,
  1281. formatter: function (value) {
  1282. return value === 1 ? 0 : value
  1283. },
  1284. textStyle: {
  1285. color: 'rgba(250,250,250,0.6)',
  1286. },
  1287. },
  1288. }
  1289. myChart.setOption(option)
  1290. },
  1291. initChartR3 () {
  1292. let myChart = echarts.init(this.$refs['echartR3'])
  1293. let commonOptions = this.commonOption
  1294. commonOptions.yAxis[0].splitNumber = 2
  1295. let option = {
  1296. ..._.cloneDeep(commonOptions),
  1297. series: [
  1298. {
  1299. name: '2022年利润(万)',
  1300. type: 'bar',
  1301. barWidth: 15,
  1302. itemStyle: {
  1303. normal: {
  1304. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1305. {
  1306. offset: 0,
  1307. color: '#69c0ff',
  1308. },
  1309. {
  1310. offset: 1,
  1311. color: '#082550',
  1312. },
  1313. ]),
  1314. },
  1315. },
  1316. data: dataR3[0],
  1317. },
  1318. {
  1319. name: '2022年累计招聘数',
  1320. type: 'bar',
  1321. barWidth: 15,
  1322. itemStyle: {
  1323. normal: {
  1324. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1325. {
  1326. offset: 0,
  1327. color: '#45DAD1',
  1328. },
  1329. {
  1330. offset: 1,
  1331. color: '#082550',
  1332. },
  1333. ]),
  1334. },
  1335. },
  1336. data: dataR3[1],
  1337. },
  1338. ],
  1339. }
  1340. option.title.text = '各省属企业年利润与当年累计招聘人数'
  1341. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1342. option.legend.show = true
  1343. option.yAxis[0] = {
  1344. type: 'log',
  1345. min: 1,
  1346. logBase: 10,
  1347. axisLine: {
  1348. show: false,
  1349. },
  1350. splitLine: {
  1351. show: true,
  1352. lineStyle: {
  1353. color: '#68b4dd66',
  1354. type: 'dashed',
  1355. },
  1356. },
  1357. axisLabel: {
  1358. show: true,
  1359. formatter: function (value) {
  1360. return value === 1 ? 0 : value
  1361. },
  1362. textStyle: {
  1363. color: 'rgba(250,250,250,0.6)',
  1364. },
  1365. },
  1366. }
  1367. myChart.setOption(option)
  1368. },
  1369. initChartR4 () {
  1370. let myChart = echarts.init(this.$refs['echartR4'])
  1371. let commonOptions = this.commonOption
  1372. commonOptions.yAxis[0].splitNumber = 2
  1373. let option = {
  1374. ..._.cloneDeep(commonOptions),
  1375. series: [
  1376. {
  1377. name: '2022年退出人数',
  1378. type: 'bar',
  1379. barWidth: 15,
  1380. itemStyle: {
  1381. normal: {
  1382. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1383. {
  1384. offset: 0,
  1385. color: '#69c0ff',
  1386. },
  1387. {
  1388. offset: 1,
  1389. color: '#082550',
  1390. },
  1391. ]),
  1392. },
  1393. },
  1394. data: dataR4[0],
  1395. },
  1396. {
  1397. name: '2022年累计招聘人数',
  1398. type: 'bar',
  1399. barWidth: 15,
  1400. itemStyle: {
  1401. normal: {
  1402. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1403. {
  1404. offset: 0,
  1405. color: '#45DAD1',
  1406. },
  1407. {
  1408. offset: 1,
  1409. color: '#082550',
  1410. },
  1411. ]),
  1412. },
  1413. },
  1414. data: dataR4[1],
  1415. },
  1416. ],
  1417. }
  1418. option.title.text = '各省属企业"退二进一"完成情况'
  1419. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1420. option.legend.show = true
  1421. option.yAxis[0] = {
  1422. type: 'log',
  1423. min: 1,
  1424. logBase: 10,
  1425. axisLine: {
  1426. show: false,
  1427. },
  1428. splitLine: {
  1429. show: true,
  1430. lineStyle: {
  1431. color: '#68b4dd66',
  1432. type: 'dashed',
  1433. },
  1434. },
  1435. axisLabel: {
  1436. show: true,
  1437. formatter: function (value) {
  1438. return value === 1 ? 0 : value
  1439. },
  1440. textStyle: {
  1441. color: 'rgba(250,250,250,0.6)',
  1442. },
  1443. },
  1444. }
  1445. myChart.setOption(option)
  1446. },
  1447. initChartR5 () {
  1448. let myChart = echarts.init(this.$refs['echartR5'])
  1449. let option = {
  1450. ..._.cloneDeep(this.commonOption),
  1451. series: [
  1452. {
  1453. name: '去年同期在岗职工平均薪酬',
  1454. type: 'bar',
  1455. barWidth: 15,
  1456. itemStyle: {
  1457. normal: {
  1458. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1459. {
  1460. offset: 0,
  1461. color: '#6682F5',
  1462. },
  1463. {
  1464. offset: 1,
  1465. color: '#082550',
  1466. },
  1467. ]),
  1468. },
  1469. },
  1470. data: fjxdataL1[0],
  1471. },
  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: '#69c0ff',
  1482. },
  1483. {
  1484. offset: 1,
  1485. color: '#082550',
  1486. },
  1487. ]),
  1488. },
  1489. },
  1490. data: fjxdataL1[1],
  1491. },
  1492. ],
  1493. }
  1494. option.title.text = '各省属企业在岗职工平均薪酬'
  1495. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1496. option.legend.show = true
  1497. option.yAxis.push({
  1498. splitLine: {
  1499. show: false,
  1500. },
  1501. axisLine: {
  1502. show: false,
  1503. },
  1504. })
  1505. myChart.setOption(option)
  1506. },
  1507. initChartR6 () {
  1508. let myChart = echarts.init(this.$refs['echartR6'])
  1509. let option = {
  1510. ..._.cloneDeep(this.commonOption),
  1511. color: ['#69c0ff'],
  1512. series: [
  1513. {
  1514. name: '2022年利润累计涨幅率',
  1515. type: 'line',
  1516. smooth: true, //平滑曲线显示
  1517. showAllSymbol: true, //显示所有图形。
  1518. symbol: 'circle', //标记的图形为实心圆
  1519. symbolSize: 8, //标记的大小
  1520. smooth: false,
  1521. itemStyle: {
  1522. //折线拐点标志的样式
  1523. color: '#B889EA',
  1524. borderColor: '#B889EA',
  1525. width: 2,
  1526. shadowColor: '#B889EA',
  1527. shadowBlur: 4,
  1528. },
  1529. lineStyle: {
  1530. color: '#B889EA',
  1531. width: 2,
  1532. },
  1533. data: fjxdataL2[0],
  1534. },
  1535. {
  1536. name: '2022年薪酬累计涨幅率',
  1537. type: 'line',
  1538. smooth: true, //平滑曲线显示
  1539. showAllSymbol: true, //显示所有图形。
  1540. symbol: 'circle', //标记的图形为实心圆
  1541. symbolSize: 12, //标记的大小
  1542. smooth: false,
  1543. itemStyle: {
  1544. color: params => {
  1545. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  1546. return 'yellow'
  1547. } else {
  1548. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1549. {
  1550. offset: 0,
  1551. color: '#69c0ff',
  1552. },
  1553. {
  1554. offset: 1,
  1555. color: '#082550',
  1556. },
  1557. ])
  1558. }
  1559. },
  1560. },
  1561. lineStyle: {
  1562. color: '#69C0FF',
  1563. width: 2,
  1564. },
  1565. data: fjxdataL2[1],
  1566. },
  1567. ],
  1568. }
  1569. option.title.text = '各省属企业月利润与月薪酬变动情况'
  1570. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1571. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1572. option.yAxis[0].axisLabel.formatter = '{value} %',
  1573. myChart.setOption(option)
  1574. },
  1575. initChartR7 () {
  1576. let myChart = echarts.init(this.$refs['echartR7'])
  1577. let option = {
  1578. ..._.cloneDeep(this.commonOption),
  1579. series: [
  1580. {
  1581. name: '全员绩效考核完成率',
  1582. type: 'bar',
  1583. barWidth: 15,
  1584. itemStyle: {
  1585. normal: {
  1586. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1587. {
  1588. offset: 0,
  1589. color: '#B889EA',
  1590. },
  1591. {
  1592. offset: 1,
  1593. color: '#082550',
  1594. },
  1595. ]),
  1596. },
  1597. },
  1598. data: fjxdataL3[0],
  1599. },
  1600. ],
  1601. }
  1602. option.title.text = '各省属企业全员绩效考核'
  1603. option.legend.show = false
  1604. option.tooltip.formatter = '{a0}:{c0}' + '%'
  1605. option.yAxis[0].axisLabel.formatter = '{value} %',
  1606. myChart.setOption(option)
  1607. },
  1608. initChartR8 () {
  1609. let myChart = echarts.init(this.$refs['echartR8'])
  1610. let option = {
  1611. ..._.cloneDeep(this.commonOption),
  1612. series: [
  1613. {
  1614. name: '任期制考核完成率',
  1615. type: 'bar',
  1616. barWidth: 15,
  1617. itemStyle: {
  1618. normal: {
  1619. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1620. {
  1621. offset: 0,
  1622. color: '#43ede3',
  1623. },
  1624. {
  1625. offset: 1,
  1626. color: '#082550',
  1627. },
  1628. ]),
  1629. },
  1630. },
  1631. data: fjxdataL4[0],
  1632. },
  1633. ],
  1634. }
  1635. option.title.text = '各省属企业任期制契约化完成率'
  1636. option.legend.show = false
  1637. option.tooltip.formatter = '{a0}:{c0}' + '%'
  1638. option.yAxis[0].axisLabel.formatter = '{value} %',
  1639. myChart.setOption(option)
  1640. },
  1641. },
  1642. })