index2.js 49 KB

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