index3.js 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm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iOOrPVqX3LtesxqW/u7owW1ChBQzPQeJnq6rPWYRjSWZMY5wUnv0HD4dlPIFqXhc55dlEOQxpWJG+6JvBKX8vt4D/7VxgrVH/LCPr8pr7Vj5AGto7jhz9OAOKcKRVV774rlE0zUR+mHfB2/2+HaxrEStyguKlGpqWvvtq/3C4L7jb+7cLHmQn0iVV+1i6tqsa9TTbXesWssamhfHEechhyPq6fZFN589eqgnsPMlqerqaUbB9LgsLfTv6z348oTr6VrbVfXs8XcubXesur8S8Te3DO9coigxjCjuXOIMKDl3KNXwjHmL13qF/td7D+7c+kk6l+G94nX1iG3L7l1rZBqX9r1/4DnPdcTwHjGSQkgpgrhHnNW+6CG3PLivZ/+OLSJwyp+0R6yPNgBgjG48HtJEyBjZjd+3LpWbvPzEkb1P+3bBH9GNWznz8wvufMTJX+js2bd906fVjY/SmV/f3OMLX1n/52Zu6p/1du18slw4X6rNPazcDdm2xSsft/O/3/Penpc2RZx7inP305p7XBv8GhOm21f/zYZU4+R7jnZu/WH+/Kn+xj+ZNbl92Zof2QPndx3e/qsX/xATplqBM2ysUPdgjjLLIxFm8dCxNstb8uD3vmU1T763790D/zbj1o5/Kg9c2P7GCz9/DgEVCiDDeBgpPuVZ3tXBxzs1fej7q3JTp6/Lnz+zaf/zP9n1WUxNRwO/nHhqk6d4mD58Ps20eKg+cj6NqQRBOHI+HQ/XhyZJya7AJ5pPjwF+9Z0AS48LJpnIq34nAEAc2X4oP4udgDHA60Zn8TdiychmmMyu6/dbIgUBrGxfJEc8xo1n0Lg/+kPvuVwF/I97d2s4eL011mqWquP8ce0j1jesow3iR2toq3PTMXvdz2THdvjVr7YzNibpsD9cc6NztB/6f4ffQsan0xs3AAAAAElFTkSuQmCC'
  3. let app = new Vue({
  4. el: '#app',
  5. data() {
  6. return {
  7. showTip: false,
  8. tipNum: '',
  9. 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: 'end',
  783. padding: [20, 100, 10, 30],
  784. color: '#fff',
  785. },
  786. },
  787. {
  788. name: '央企平均水平',
  789. yAxis: 69.4,
  790. lineStyle: {
  791. color: '#fff',
  792. },
  793. label: {
  794. formatter: '{b}',
  795. position: 'end',
  796. padding: [-4, 150, 10, 30],
  797. color: '#fff',
  798. },
  799. },
  800. ],
  801. label: {
  802. distance: [20, 8],
  803. },
  804. },
  805. },
  806. {
  807. name: '全员劳动生产率同比变化',
  808. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  809. type: 'line',
  810. itemStyle: {
  811. normal: {
  812. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  813. {
  814. offset: 0,
  815. color: '#69c0ff',
  816. },
  817. {
  818. offset: 1,
  819. color: '#082550',
  820. },
  821. ]),
  822. },
  823. },
  824. data: dataC1[1],
  825. },
  826. ],
  827. }
  828. option.title.text = '各三级全员劳动生产率'
  829. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  830. option.legend.show = true
  831. option.grid.right = '15%'
  832. option.tooltip = {
  833. trigger: 'axis',
  834. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  835. }
  836. option.yAxis.push({
  837. type: 'value',
  838. axisLine: {
  839. show: false,
  840. },
  841. splitLine: {
  842. show: false,
  843. },
  844. axisLabel: {
  845. show: true,
  846. formatter: '{value} %',
  847. textStyle: {
  848. color: 'rgba(250,250,250,0.6)',
  849. },
  850. },
  851. })
  852. myChart.setOption(option)
  853. tools.loopShowTooltip(myChart, option, {
  854. nterval: 2000,
  855. loopSeries: true,
  856. });
  857. },
  858. initChartC2() {
  859. let myChart = echarts.init(this.$refs['echartC2'])
  860. let option = {
  861. ..._.cloneDeep(this.commonOption),
  862. color: ['#69c0ff'],
  863. series: [
  864. {
  865. name: '人工成本利润率同比变化',
  866. type: 'line',
  867. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  868. smooth: true, //平滑曲线显示
  869. showAllSymbol: true, //显示所有图形。
  870. symbol: 'circle', //标记的图形为实心圆
  871. symbolSize: 8, //标记的大小
  872. smooth: false,
  873. itemStyle: {
  874. //折线拐点标志的样式
  875. color: '#B889EA',
  876. borderColor: '#B889EA',
  877. width: 2,
  878. shadowColor: '#B889EA',
  879. shadowBlur: 4,
  880. },
  881. lineStyle: {
  882. color: '#B889EA',
  883. width: 2,
  884. },
  885. data: dataC2[0],
  886. },
  887. {
  888. name: '人工成本利润率',
  889. type: 'bar',
  890. barWidth: 15,
  891. itemStyle: {
  892. color: params => {
  893. if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
  894. return 'red'
  895. } else if (params.value < 0) {
  896. return 'yellow'
  897. } else {
  898. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  899. {
  900. offset: 0,
  901. color: '#69c0ff',
  902. },
  903. {
  904. offset: 1,
  905. color: '#082550',
  906. },
  907. ])
  908. }
  909. },
  910. },
  911. data: dataC2[1],
  912. markLine: {
  913. data: [
  914. {
  915. name: '省属企业平均水平',
  916. yAxis: 67.09,
  917. lineStyle: {
  918. color: '#fff',
  919. },
  920. label: {
  921. formatter: '{b}',
  922. position: 'end',
  923. padding: [24, 100, 10, 30],
  924. color: '#fff',
  925. },
  926. },
  927. {
  928. name: '央企平均水平',
  929. yAxis: 81,
  930. lineStyle: {
  931. color: '#fff',
  932. },
  933. label: {
  934. formatter: '{b}',
  935. position: 'end',
  936. padding: [-24, 200, 10, 30],
  937. color: '#fff',
  938. },
  939. },
  940. ],
  941. label: {
  942. distance: [20, 8],
  943. },
  944. },
  945. },
  946. ],
  947. }
  948. option.title.text = '各三级人工成本利润率'
  949. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  950. option.legend.show = true
  951. option.tooltip = {
  952. trigger: 'axis',
  953. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  954. }
  955. option.grid.right = '15%'
  956. option.yAxis = [
  957. {
  958. axisLine: {
  959. show: false,
  960. },
  961. splitLine: {
  962. show: true,
  963. lineStyle: {
  964. color: '#68b4dd66',
  965. type: 'dashed',
  966. },
  967. },
  968. axisLabel: {
  969. show: true,
  970. formatter: '{value} %',
  971. textStyle: {
  972. color: 'rgba(250,250,250,0.6)',
  973. },
  974. },
  975. },
  976. {
  977. splitLine: {
  978. show: false,
  979. },
  980. axisLine: {
  981. show: false,
  982. },
  983. axisLabel: {
  984. show: true,
  985. formatter: '{value} %',
  986. textStyle: {
  987. color: 'rgba(250,250,250,0.6)',
  988. },
  989. },
  990. }
  991. ]
  992. myChart.setOption(option)
  993. tools.loopShowTooltip(myChart, option, {
  994. nterval: 2000,
  995. loopSeries: true,
  996. });
  997. },
  998. // 右侧图表---------------------------------------------开始
  999. initChartR1() {
  1000. let myChart = echarts.init(this.$refs['echartR1'])
  1001. let commonOptions = this.commonOption
  1002. commonOptions.yAxis[0].splitNumber = 2
  1003. let option = {
  1004. ..._.cloneDeep(commonOptions),
  1005. series: [
  1006. {
  1007. name: '招聘需求公告次数',
  1008. type: 'bar',
  1009. barWidth: 15,
  1010. itemStyle: {
  1011. normal: {
  1012. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1013. {
  1014. offset: 0,
  1015. color: '#69c0ff',
  1016. },
  1017. {
  1018. offset: 1,
  1019. color: '#082550',
  1020. },
  1021. ]),
  1022. },
  1023. },
  1024. data: dataR1[0],
  1025. },
  1026. {
  1027. name: '招聘需求公告累计招聘人次',
  1028. type: 'bar',
  1029. barWidth: 15,
  1030. itemStyle: {
  1031. normal: {
  1032. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1033. {
  1034. offset: 0,
  1035. color: '#43ede3',
  1036. },
  1037. {
  1038. offset: 1,
  1039. color: '#082550',
  1040. },
  1041. ]),
  1042. },
  1043. },
  1044. data: dataR1[1],
  1045. },
  1046. ],
  1047. }
  1048. option.title.text = '各三级企业招聘需求公告人次情况'
  1049. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1050. option.legend.show = true
  1051. option.yAxis.push({
  1052. splitLine: {
  1053. show: false,
  1054. },
  1055. axisLine: {
  1056. show: false,
  1057. },
  1058. })
  1059. myChart.setOption(option)
  1060. },
  1061. initChartR2() {
  1062. let myChart = echarts.init(this.$refs['echartR2'])
  1063. let commonOptions = this.commonOption
  1064. commonOptions.yAxis[0].splitNumber = 2
  1065. let option = {
  1066. ..._.cloneDeep(commonOptions),
  1067. series: [
  1068. {
  1069. name: '录用结果公示次数',
  1070. type: 'bar',
  1071. barWidth: 15,
  1072. itemStyle: {
  1073. normal: {
  1074. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1075. {
  1076. offset: 0,
  1077. color: '#69c0ff',
  1078. },
  1079. {
  1080. offset: 1,
  1081. color: '#082550',
  1082. },
  1083. ]),
  1084. },
  1085. },
  1086. data: dataR2[0],
  1087. },
  1088. {
  1089. name: '录用结果公示累计公示人数',
  1090. type: 'bar',
  1091. barWidth: 15,
  1092. itemStyle: {
  1093. normal: {
  1094. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1095. {
  1096. offset: 0,
  1097. color: '#45DAD1',
  1098. },
  1099. {
  1100. offset: 1,
  1101. color: '#082550',
  1102. },
  1103. ]),
  1104. },
  1105. },
  1106. data: dataR2[1],
  1107. },
  1108. ],
  1109. }
  1110. option.title.text = '各三级企业录用结果公示人次'
  1111. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1112. option.legend.show = true
  1113. option.yAxis.push({
  1114. type: 'value',
  1115. axisLine: {
  1116. show: false,
  1117. },
  1118. splitLine: {
  1119. show: false,
  1120. },
  1121. })
  1122. myChart.setOption(option)
  1123. },
  1124. initChartR3() {
  1125. let myChart = echarts.init(this.$refs['echartR3'])
  1126. let commonOptions = this.commonOption
  1127. commonOptions.yAxis[0].splitNumber = 2
  1128. let option = {
  1129. ..._.cloneDeep(commonOptions),
  1130. color: ['#45DAD1'],
  1131. series: [
  1132. {
  1133. name: '2022年利润(万)',
  1134. type: 'bar',
  1135. barWidth: 15,
  1136. itemStyle: {
  1137. normal: {
  1138. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1139. {
  1140. offset: 0,
  1141. color: '#69c0ff',
  1142. },
  1143. {
  1144. offset: 1,
  1145. color: '#082550',
  1146. },
  1147. ]),
  1148. },
  1149. },
  1150. data: dataR3[0],
  1151. },
  1152. {
  1153. name: '2022年累计招聘数',
  1154. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1155. type: 'bar',
  1156. barWidth: 15,
  1157. itemStyle: {
  1158. color: params => {
  1159. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1160. return 'red'
  1161. } else {
  1162. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1163. {
  1164. offset: 0,
  1165. color: '#45DAD1',
  1166. },
  1167. {
  1168. offset: 1,
  1169. color: '#082550',
  1170. },
  1171. ])
  1172. }
  1173. },
  1174. },
  1175. data: dataR3[1],
  1176. },
  1177. ],
  1178. }
  1179. option.title.text = '各三级企业年利润与招聘情况分析'
  1180. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1181. option.legend.show = true
  1182. option.yAxis[0].max = function (value) {
  1183. if (Math.abs(value.max) > Math.abs(value.min)) {
  1184. return (Math.abs(value.max) * 1.2).toFixed(2);
  1185. } else {
  1186. return (Math.abs(value.min) * 1.2).toFixed(2);
  1187. }
  1188. }
  1189. option.yAxis[0].min = function (value) {
  1190. if (Math.abs(value.max) > Math.abs(value.min)) {
  1191. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1192. } else {
  1193. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1194. }
  1195. }
  1196. option.yAxis.push({
  1197. splitLine: {
  1198. show: false,
  1199. },
  1200. axisLine: {
  1201. show: false,
  1202. },
  1203. axisLabel: {
  1204. show: true,
  1205. formatter: '{value}',
  1206. textStyle: {
  1207. color: 'rgba(250,250,250,0.6)',
  1208. },
  1209. },
  1210. max: function (value) {
  1211. if (Math.abs(value.max) > Math.abs(value.min)) {
  1212. return (Math.abs(value.max) * 1.2).toFixed(2);
  1213. } else {
  1214. return (Math.abs(value.min) * 1.2).toFixed(2);
  1215. }
  1216. },
  1217. min: function (value) {
  1218. if (Math.abs(value.max) > Math.abs(value.min)) {
  1219. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1220. } else {
  1221. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1222. }
  1223. }
  1224. })
  1225. // option.yAxis = [
  1226. // {
  1227. // max: function (val) {
  1228. // if (Math.abs(val.max) > Math.abs(val.min)) {
  1229. // return (Math.abs(val.max) * 1.2).toFixed(0)
  1230. // } else {
  1231. // return (Math.abs(val.min) * 1.2).toFixed(0)
  1232. // }
  1233. // },
  1234. // min: function (val) {
  1235. // if (Math.abs(val.max) > Math.abs(val.min)) {
  1236. // return (-Math.abs(val.max) * 1.2).toFixed(0)
  1237. // } else {
  1238. // return (Math.abs(val.min) * 1.2).toFixed(0)
  1239. // }
  1240. // },
  1241. // splitLine: {
  1242. // show: false,
  1243. // },
  1244. // axisLine: {
  1245. // show: false,
  1246. // },
  1247. // axisLabel: {
  1248. // show: true,
  1249. // formatter: '{value}',
  1250. // textStyle: {
  1251. // color: 'rgba(250,250,250,0.6)',
  1252. // },
  1253. // },
  1254. // }
  1255. // ]
  1256. myChart.setOption(option)
  1257. },
  1258. initChartR4() {
  1259. let myChart = echarts.init(this.$refs['echartR4'])
  1260. let commonOptions = this.commonOption
  1261. commonOptions.yAxis[0].splitNumber = 2
  1262. let option = {
  1263. ..._.cloneDeep(commonOptions),
  1264. series: [
  1265. {
  1266. name: '2022年退出人数',
  1267. type: 'bar',
  1268. barWidth: 15,
  1269. itemStyle: {
  1270. normal: {
  1271. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1272. {
  1273. offset: 0,
  1274. color: '#69c0ff',
  1275. },
  1276. {
  1277. offset: 1,
  1278. color: '#082550',
  1279. },
  1280. ]),
  1281. },
  1282. },
  1283. data: dataR4[0],
  1284. },
  1285. {
  1286. name: '2022年累计招聘人数',
  1287. type: 'bar',
  1288. barWidth: 15,
  1289. itemStyle: {
  1290. normal: {
  1291. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1292. {
  1293. offset: 0,
  1294. color: '#45DAD1',
  1295. },
  1296. {
  1297. offset: 1,
  1298. color: '#082550',
  1299. },
  1300. ]),
  1301. },
  1302. },
  1303. data: dataR4[1],
  1304. },
  1305. ],
  1306. }
  1307. option.title.text = '各三级企业"退二进一"完成情况'
  1308. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1309. option.legend.show = true
  1310. option.yAxis.push({
  1311. splitLine: {
  1312. show: false,
  1313. },
  1314. axisLine: {
  1315. show: false,
  1316. },
  1317. })
  1318. myChart.setOption(option)
  1319. },
  1320. initChartR5() {
  1321. let myChart = echarts.init(this.$refs['echartR5'])
  1322. let option = {
  1323. ..._.cloneDeep(this.commonOption),
  1324. series: [
  1325. {
  1326. name: '去年同期在岗职工平均薪酬',
  1327. type: 'bar',
  1328. barWidth: 15,
  1329. itemStyle: {
  1330. normal: {
  1331. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1332. {
  1333. offset: 0,
  1334. color: '#69c0ff',
  1335. },
  1336. {
  1337. offset: 1,
  1338. color: '#082550',
  1339. },
  1340. ]),
  1341. },
  1342. },
  1343. data: dataR5[0],
  1344. },
  1345. {
  1346. name: '在岗职工平均薪酬',
  1347. type: 'bar',
  1348. barWidth: 15,
  1349. itemStyle: {
  1350. normal: {
  1351. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1352. {
  1353. offset: 0,
  1354. color: '#6682F5',
  1355. },
  1356. {
  1357. offset: 1,
  1358. color: '#082550',
  1359. },
  1360. ]),
  1361. },
  1362. },
  1363. data: dataR5[1],
  1364. }
  1365. ],
  1366. }
  1367. option.title.text = '各三级企业在岗职工平均薪酬'
  1368. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1369. option.legend.show = true
  1370. option.yAxis.push({
  1371. splitLine: {
  1372. show: false,
  1373. },
  1374. axisLine: {
  1375. show: false,
  1376. },
  1377. })
  1378. myChart.setOption(option)
  1379. },
  1380. initChartR6() {
  1381. let myChart = echarts.init(this.$refs['echartR6'])
  1382. let option = {
  1383. ..._.cloneDeep(this.commonOption),
  1384. color: ['#69c0ff'],
  1385. series: [
  1386. {
  1387. name: '2022年利润累计涨幅率',
  1388. type: 'line',
  1389. smooth: true, //平滑曲线显示
  1390. showAllSymbol: true, //显示所有图形。
  1391. symbol: 'circle', //标记的图形为实心圆
  1392. symbolSize: 8, //标记的大小
  1393. smooth: false,
  1394. itemStyle: {
  1395. //折线拐点标志的样式
  1396. color: '#B889EA',
  1397. borderColor: '#B889EA',
  1398. width: 2,
  1399. shadowColor: '#B889EA',
  1400. shadowBlur: 4,
  1401. },
  1402. lineStyle: {
  1403. color: '#B889EA',
  1404. width: 2,
  1405. },
  1406. data: dataR6[0],
  1407. },
  1408. {
  1409. name: '2022年薪酬累计涨幅率',
  1410. type: 'line',
  1411. barWidth: 15,
  1412. yAxisIndex: 1,
  1413. showAllSymbol: true, //显示所有图形。
  1414. symbol: 'circle', //标记的图形为实心圆
  1415. symbolSize: 12, //标记的大小
  1416. smooth: false,
  1417. itemStyle: {
  1418. color: params => {
  1419. if (params.value > 0 && dataR6[0][params.dataIndex] < 0) {
  1420. return 'yellow'
  1421. } else {
  1422. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1423. {
  1424. offset: 0,
  1425. color: '#69c0ff',
  1426. },
  1427. {
  1428. offset: 1,
  1429. color: '#082550',
  1430. },
  1431. ])
  1432. }
  1433. },
  1434. },
  1435. data: dataR6[1],
  1436. },
  1437. ],
  1438. }
  1439. option.title.text = '各三级企业利润与薪酬变动情况'
  1440. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1441. option.tooltip = {
  1442. trigger: 'axis',
  1443. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1444. }
  1445. option.yAxis = [
  1446. {
  1447. max: function (value) {
  1448. if (Math.abs(value.max) > Math.abs(value.min)) {
  1449. return (Math.abs(value.max) * 1.2).toFixed(2);
  1450. } else {
  1451. return (Math.abs(value.min) * 1.2).toFixed(2);
  1452. }
  1453. },
  1454. min: function (value) {
  1455. if (Math.abs(value.max) > Math.abs(value.min)) {
  1456. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1457. } else {
  1458. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1459. }
  1460. },
  1461. splitLine: {
  1462. show: true,
  1463. lineStyle: {
  1464. color: '#68b4dd66',
  1465. type: 'dashed',
  1466. },
  1467. },
  1468. axisLine: {
  1469. show: false,
  1470. },
  1471. axisLabel: {
  1472. show: true,
  1473. formatter: '{value} %',
  1474. textStyle: {
  1475. color: 'rgba(250,250,250,0.6)',
  1476. },
  1477. },
  1478. },
  1479. {
  1480. max: function (value) {
  1481. if (Math.abs(value.max) > Math.abs(value.min)) {
  1482. return (Math.abs(value.max) * 1.2).toFixed(2);
  1483. } else {
  1484. return (Math.abs(value.min) * 1.2).toFixed(2);
  1485. }
  1486. },
  1487. min: 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. splitLine: {
  1495. show: false,
  1496. },
  1497. axisLine: {
  1498. show: false,
  1499. },
  1500. axisLabel: {
  1501. show: true,
  1502. formatter: '{value} %',
  1503. textStyle: {
  1504. color: 'rgba(250,250,250,0.6)',
  1505. },
  1506. },
  1507. }
  1508. ]
  1509. myChart.setOption(option)
  1510. },
  1511. initChartR7() {
  1512. let myChart = echarts.init(this.$refs['echartR7'])
  1513. let option = {
  1514. ..._.cloneDeep(this.commonOption),
  1515. series: [
  1516. {
  1517. name: '全员绩效考核完成率',
  1518. type: 'bar',
  1519. barWidth: 15,
  1520. itemStyle: {
  1521. normal: {
  1522. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1523. {
  1524. offset: 0,
  1525. color: '#B889EA',
  1526. },
  1527. {
  1528. offset: 1,
  1529. color: '#082550',
  1530. },
  1531. ]),
  1532. },
  1533. },
  1534. data: dataR7[0],
  1535. },
  1536. ],
  1537. }
  1538. option.title.text = '各三级企业全员绩效考核 '
  1539. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1540. option.tooltip = {
  1541. trigger: 'axis',
  1542. formatter: '{a0}:{c0}' + '%'
  1543. }
  1544. option.yAxis[0].axisLabel = {
  1545. show: true,
  1546. formatter: '{value} %',
  1547. textStyle: {
  1548. color: 'rgba(250,250,250,0.6)',
  1549. },
  1550. }
  1551. myChart.setOption(option)
  1552. },
  1553. initChartR8() {
  1554. let myChart = echarts.init(this.$refs['echartR8'])
  1555. let option = {
  1556. ..._.cloneDeep(this.commonOption),
  1557. series: [
  1558. {
  1559. name: '任期制契约化完成率',
  1560. type: 'bar',
  1561. barWidth: 15,
  1562. itemStyle: {
  1563. normal: {
  1564. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1565. {
  1566. offset: 0,
  1567. color: '#43ede3',
  1568. },
  1569. {
  1570. offset: 1,
  1571. color: '#082550',
  1572. },
  1573. ]),
  1574. },
  1575. },
  1576. data: dataR8[0],
  1577. },
  1578. ],
  1579. }
  1580. option.title.text = '各三级企业任期制契约化完成率'
  1581. option.tooltip = {
  1582. trigger: 'axis',
  1583. formatter: '{a0}:{c0}' + '%'
  1584. }
  1585. option.yAxis[0].axisLabel = {
  1586. show: true,
  1587. formatter: '{value} %',
  1588. textStyle: {
  1589. color: 'rgba(250,250,250,0.6)',
  1590. },
  1591. }
  1592. myChart.setOption(option)
  1593. },
  1594. },
  1595. })