index2.js 48 KB

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