index.js 62 KB

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