index3.js 50 KB

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