index2.js 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiK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2/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. series: [
  539. {
  540. name: '人数变化',
  541. type: 'line',
  542. barWidth: 15,
  543. itemStyle: {
  544. normal: {
  545. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  546. {
  547. offset: 0,
  548. color: '#43ede3',
  549. },
  550. {
  551. offset: 1,
  552. color: '#43ede3',
  553. },
  554. ]),
  555. },
  556. },
  557. // markLine: {
  558. // data: [{ type: 'average', name: 'Avg' }],
  559. // },
  560. data: dataL7[0],
  561. },
  562. {
  563. name: '全员劳动生产率同比变化',
  564. type: 'line',
  565. barWidth: 15,
  566. // yAxisIndex: 1,
  567. itemStyle: {
  568. normal: {
  569. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  570. {
  571. offset: 0,
  572. color: '#b889ea',
  573. },
  574. {
  575. offset: 1,
  576. color: '#b889ea',
  577. },
  578. ]),
  579. },
  580. },
  581. data: dataL7[1],
  582. },
  583. ],
  584. }
  585. option.title.text = '人数变化和全员劳动生产率变化率分析'
  586. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  587. option.legend.show = true
  588. option.tooltip = {
  589. trigger: 'axis',
  590. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  591. }
  592. option.yAxis = [
  593. {
  594. type: 'value',
  595. axisLine: {
  596. show: false,
  597. },
  598. splitLine: {
  599. show: true,
  600. lineStyle: {
  601. color: '#68b4dd66',
  602. type: 'dashed',
  603. },
  604. },
  605. axisLabel: {
  606. show: true,
  607. formatter: '{value} %',
  608. textStyle: {
  609. color: 'rgba(250,250,250,0.6)',
  610. },
  611. },
  612. },
  613. {
  614. type: 'value',
  615. axisLine: {
  616. show: false,
  617. },
  618. splitLine: {
  619. show: false,
  620. },
  621. axisLabel: {
  622. show: true,
  623. formatter: '{value} %',
  624. textStyle: {
  625. color: 'rgba(250,250,250,0.6)',
  626. },
  627. },
  628. }
  629. ]
  630. myChart.setOption(option)
  631. },
  632. initChartL8 () {
  633. let myChart = echarts.init(this.$refs['echartL8'])
  634. let option = {
  635. ..._.cloneDeep(this.commonOption),
  636. series: [
  637. {
  638. name: '人数变化',
  639. type: 'line',
  640. barWidth: 15,
  641. itemStyle: {
  642. normal: {
  643. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  644. {
  645. offset: 0,
  646. color: '#43ede3',
  647. },
  648. {
  649. offset: 1,
  650. color: '#43ede3',
  651. },
  652. ]),
  653. },
  654. },
  655. // markLine: {
  656. // data: [{ type: 'average', name: 'Avg' }],
  657. // },
  658. data: dataL8[0],
  659. },
  660. {
  661. name: '人工成本利润率同比变化',
  662. type: 'line',
  663. barWidth: 15,
  664. // yAxisIndex: 1,
  665. itemStyle: {
  666. normal: {
  667. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  668. {
  669. offset: 0,
  670. color: '#b889ea',
  671. },
  672. {
  673. offset: 1,
  674. color: '#b889ea',
  675. },
  676. ]),
  677. },
  678. },
  679. data: dataL8[1],
  680. },
  681. ],
  682. }
  683. option.title.text = '人数变化和人工利润率变化分析'
  684. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  685. option.legend.show = true
  686. option.tooltip = {
  687. trigger: 'axis',
  688. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  689. }
  690. option.yAxis = [
  691. {
  692. type: 'value',
  693. axisLine: {
  694. show: false,
  695. },
  696. splitLine: {
  697. show: true,
  698. lineStyle: {
  699. color: '#68b4dd66',
  700. type: 'dashed',
  701. },
  702. },
  703. axisLabel: {
  704. show: true,
  705. formatter: '{value} %',
  706. textStyle: {
  707. color: 'rgba(250,250,250,0.6)',
  708. },
  709. },
  710. },
  711. {
  712. type: 'value',
  713. axisLine: {
  714. show: false,
  715. },
  716. splitLine: {
  717. show: false,
  718. },
  719. axisLabel: {
  720. show: true,
  721. formatter: '{value} %',
  722. textStyle: {
  723. color: 'rgba(250,250,250,0.6)',
  724. },
  725. },
  726. }
  727. ]
  728. myChart.setOption(option)
  729. },
  730. // 中间图表---------------------------------------------开始
  731. initChartC1 () {
  732. let myChart = echarts.init(this.$refs['echartC1'])
  733. let option = {
  734. ..._.cloneDeep(this.commonOption),
  735. color: ['#69c0ff'],
  736. series: [
  737. {
  738. name: '全员劳动生产率(万/人)',
  739. type: 'bar',
  740. barWidth: 12,
  741. smooth: true, //平滑曲线显示
  742. showAllSymbol: true, //显示所有图形。
  743. symbol: 'circle', //标记的图形为实心圆
  744. symbolSize: 8, //标记的大小
  745. smooth: false,
  746. itemStyle: {
  747. color: params => {
  748. if (params.value < 0 && dataC1[1][params.dataIndex] < 0) {
  749. return 'red'
  750. } else if (params.value < 0) {
  751. return 'yellow'
  752. } else {
  753. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  754. {
  755. offset: 0,
  756. color: '#69c0ff',
  757. },
  758. {
  759. offset: 1,
  760. color: '#082550',
  761. },
  762. ])
  763. }
  764. },
  765. },
  766. lineStyle: {
  767. color: '#B889EA',
  768. width: 2,
  769. },
  770. data: dataC1[0],
  771. },
  772. {
  773. name: '全员劳动生产率同比变化',
  774. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  775. type: 'line',
  776. markLine: {
  777. data: [
  778. {
  779. name: '省属企业平均水平',
  780. yAxis: 50.13,
  781. lineStyle: {
  782. color: '#fff',
  783. },
  784. label: {
  785. formatter: '{b}',
  786. position: 'middle',
  787. color: '#fff',
  788. },
  789. },
  790. {
  791. name: '央企平均水平',
  792. yAxis: 69.4,
  793. lineStyle: {
  794. color: '#fff',
  795. },
  796. label: {
  797. formatter: '{b}',
  798. position: 'middle',
  799. color: '#fff',
  800. },
  801. },
  802. ],
  803. label: {
  804. distance: [20, 8],
  805. },
  806. },
  807. itemStyle: {
  808. normal: {
  809. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  810. {
  811. offset: 0,
  812. color: '#69c0ff',
  813. },
  814. {
  815. offset: 1,
  816. color: '#082550',
  817. },
  818. ]),
  819. },
  820. },
  821. data: dataC1[1],
  822. },
  823. ],
  824. }
  825. option.title.text = '各二级企业全员劳动生产率'
  826. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  827. option.legend.show = true
  828. option.tooltip = {
  829. trigger: 'axis',
  830. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  831. }
  832. option.yAxis.push({
  833. type: 'value',
  834. axisLine: {
  835. show: false,
  836. },
  837. splitLine: {
  838. show: false,
  839. },
  840. axisLabel: {
  841. show: true,
  842. formatter: '{value} %',
  843. textStyle: {
  844. color: 'rgba(250,250,250,0.6)',
  845. },
  846. },
  847. })
  848. myChart.setOption(option)
  849. tools.loopShowTooltip(myChart, option, {
  850. nterval: 2000,
  851. loopSeries: true,
  852. });
  853. },
  854. initChartC2 () {
  855. let myChart = echarts.init(this.$refs['echartC2'])
  856. let option = {
  857. ..._.cloneDeep(this.commonOption),
  858. color: ['#69c0ff'],
  859. series: [
  860. {
  861. name: '人工成本利润率同比变化',
  862. type: 'line',
  863. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  864. smooth: true, //平滑曲线显示
  865. showAllSymbol: true, //显示所有图形。
  866. symbol: 'circle', //标记的图形为实心圆
  867. symbolSize: 8, //标记的大小
  868. smooth: false,
  869. itemStyle: {
  870. //折线拐点标志的样式
  871. color: '#B889EA',
  872. borderColor: '#B889EA',
  873. width: 2,
  874. shadowColor: '#B889EA',
  875. shadowBlur: 4,
  876. },
  877. lineStyle: {
  878. color: '#B889EA',
  879. width: 2,
  880. },
  881. data: dataC2[0],
  882. },
  883. {
  884. name: '人工成本利润率',
  885. type: 'bar',
  886. barWidth: 15,
  887. itemStyle: {
  888. color: params => {
  889. if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
  890. return 'red'
  891. } else if (params.value < 0) {
  892. return 'yellow'
  893. } else {
  894. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  895. {
  896. offset: 0,
  897. color: '#69c0ff',
  898. },
  899. {
  900. offset: 1,
  901. color: '#082550',
  902. },
  903. ])
  904. }
  905. },
  906. },
  907. data: dataC2[1],
  908. markLine: {
  909. data: [
  910. {
  911. name: '省属企业平均水平',
  912. yAxis: 67.09,
  913. lineStyle: {
  914. color: '#fff',
  915. },
  916. label: {
  917. formatter: '{b}',
  918. position: 'end',
  919. color: '#fff',
  920. },
  921. },
  922. {
  923. name: '央企平均水平',
  924. yAxis: 81,
  925. lineStyle: {
  926. color: '#fff',
  927. },
  928. label: {
  929. formatter: '{b}',
  930. position: 'middle',
  931. color: '#fff',
  932. },
  933. },
  934. ],
  935. label: {
  936. distance: [20, 8],
  937. },
  938. },
  939. },
  940. ],
  941. }
  942. option.title.text = '各二级企业人工成本利润率'
  943. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  944. option.legend.show = true
  945. option.tooltip = {
  946. trigger: 'axis',
  947. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  948. }
  949. option.grid.right = '15%'
  950. option.yAxis = [
  951. {
  952. axisLine: {
  953. show: false,
  954. },
  955. splitLine: {
  956. show: true,
  957. lineStyle: {
  958. color: '#68b4dd66',
  959. type: 'dashed',
  960. },
  961. },
  962. axisLabel: {
  963. show: true,
  964. formatter: '{value} %',
  965. textStyle: {
  966. color: 'rgba(250,250,250,0.6)',
  967. },
  968. },
  969. },
  970. {
  971. splitLine: {
  972. show: false,
  973. },
  974. axisLine: {
  975. show: false,
  976. },
  977. axisLabel: {
  978. show: true,
  979. formatter: '{value} %',
  980. textStyle: {
  981. color: 'rgba(250,250,250,0.6)',
  982. },
  983. },
  984. }
  985. ]
  986. myChart.setOption(option)
  987. tools.loopShowTooltip(myChart, option, {
  988. nterval: 2000,
  989. loopSeries: true,
  990. });
  991. },
  992. // 右侧图表---------------------------------------------开始
  993. initChartR1 () {
  994. let myChart = echarts.init(this.$refs['echartR1'])
  995. let commonOptions = this.commonOption
  996. commonOptions.yAxis[0].splitNumber = 2
  997. let option = {
  998. ..._.cloneDeep(commonOptions),
  999. series: [
  1000. {
  1001. name: '招聘需求公告次数',
  1002. type: 'bar',
  1003. barWidth: 15,
  1004. itemStyle: {
  1005. normal: {
  1006. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1007. {
  1008. offset: 0,
  1009. color: '#69c0ff',
  1010. },
  1011. {
  1012. offset: 1,
  1013. color: '#082550',
  1014. },
  1015. ]),
  1016. },
  1017. },
  1018. data: dataR1[0],
  1019. },
  1020. {
  1021. name: '招聘需求公告累计招聘人次',
  1022. type: 'bar',
  1023. barWidth: 15,
  1024. itemStyle: {
  1025. normal: {
  1026. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1027. {
  1028. offset: 0,
  1029. color: '#43ede3',
  1030. },
  1031. {
  1032. offset: 1,
  1033. color: '#082550',
  1034. },
  1035. ]),
  1036. },
  1037. },
  1038. data: dataR1[1],
  1039. },
  1040. ],
  1041. }
  1042. option.title.text = '各二级企业招聘需求公告人次情况'
  1043. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1044. option.legend.show = true
  1045. option.yAxis.push({
  1046. type: 'value',
  1047. splitLine: {
  1048. show: false,
  1049. },
  1050. axisLine: {
  1051. show: false,
  1052. },
  1053. })
  1054. myChart.setOption(option)
  1055. },
  1056. initChartR2 () {
  1057. let myChart = echarts.init(this.$refs['echartR2'])
  1058. let commonOptions = this.commonOption
  1059. commonOptions.yAxis[0].splitNumber = 2
  1060. let option = {
  1061. ..._.cloneDeep(commonOptions),
  1062. series: [
  1063. {
  1064. name: '录用结果公示次数',
  1065. type: 'bar',
  1066. barWidth: 15,
  1067. itemStyle: {
  1068. normal: {
  1069. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1070. {
  1071. offset: 0,
  1072. color: '#69c0ff',
  1073. },
  1074. {
  1075. offset: 1,
  1076. color: '#082550',
  1077. },
  1078. ]),
  1079. },
  1080. },
  1081. data: dataR2[0],
  1082. },
  1083. {
  1084. name: '录用结果公示累计公示人数',
  1085. type: 'bar',
  1086. barWidth: 15,
  1087. itemStyle: {
  1088. normal: {
  1089. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1090. {
  1091. offset: 0,
  1092. color: '#45DAD1',
  1093. },
  1094. {
  1095. offset: 1,
  1096. color: '#082550',
  1097. },
  1098. ]),
  1099. },
  1100. },
  1101. data: dataR2[1],
  1102. },
  1103. ],
  1104. }
  1105. option.title.text = '各二级企业录用结果公示人次'
  1106. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1107. option.legend.show = true
  1108. option.yAxis.push({
  1109. type: 'value',
  1110. splitLine: {
  1111. show: false,
  1112. },
  1113. axisLine: {
  1114. show: false,
  1115. },
  1116. })
  1117. myChart.setOption(option)
  1118. },
  1119. initChartR3 () {
  1120. let myChart = echarts.init(this.$refs['echartR3'])
  1121. let commonOptions = this.commonOption
  1122. commonOptions.yAxis[0].splitNumber = 2
  1123. let option = {
  1124. ..._.cloneDeep(commonOptions),
  1125. series: [
  1126. {
  1127. name: '2022年利润(万)',
  1128. type: 'bar',
  1129. barWidth: 15,
  1130. itemStyle: {
  1131. normal: {
  1132. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1133. {
  1134. offset: 0,
  1135. color: '#69c0ff',
  1136. },
  1137. {
  1138. offset: 1,
  1139. color: '#082550',
  1140. },
  1141. ]),
  1142. },
  1143. },
  1144. data: dataR3[0],
  1145. },
  1146. {
  1147. name: '2022年累计招聘数',
  1148. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1149. type: 'bar',
  1150. barWidth: 15,
  1151. itemStyle: {
  1152. normal: {
  1153. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1154. {
  1155. offset: 0,
  1156. color: '#45DAD1',
  1157. },
  1158. {
  1159. offset: 1,
  1160. color: '#082550',
  1161. },
  1162. ]),
  1163. },
  1164. },
  1165. data: dataR3[1],
  1166. },
  1167. ],
  1168. }
  1169. option.title.text = '各二级企业年利润与招聘情况分析'
  1170. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1171. option.legend.show = true
  1172. option.yAxis.push({
  1173. type: 'value',
  1174. splitLine: {
  1175. show: false,
  1176. },
  1177. axisLine: {
  1178. show: false,
  1179. },
  1180. axisLabel: {
  1181. show: true,
  1182. formatter: '{value} %',
  1183. textStyle: {
  1184. color: 'rgba(250,250,250,0.6)',
  1185. },
  1186. },
  1187. })
  1188. myChart.setOption(option)
  1189. },
  1190. initChartR4 () {
  1191. let myChart = echarts.init(this.$refs['echartR4'])
  1192. let commonOptions = this.commonOption
  1193. commonOptions.yAxis[0].splitNumber = 2
  1194. let option = {
  1195. ..._.cloneDeep(commonOptions),
  1196. series: [
  1197. {
  1198. name: '2022年退出人数',
  1199. type: 'bar',
  1200. barWidth: 15,
  1201. itemStyle: {
  1202. normal: {
  1203. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1204. {
  1205. offset: 0,
  1206. color: '#69c0ff',
  1207. },
  1208. {
  1209. offset: 1,
  1210. color: '#082550',
  1211. },
  1212. ]),
  1213. },
  1214. },
  1215. data: dataR4[0],
  1216. },
  1217. {
  1218. name: '2022年累计招聘人数',
  1219. type: 'bar',
  1220. barWidth: 15,
  1221. itemStyle: {
  1222. normal: {
  1223. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1224. {
  1225. offset: 0,
  1226. color: '#45DAD1',
  1227. },
  1228. {
  1229. offset: 1,
  1230. color: '#082550',
  1231. },
  1232. ]),
  1233. },
  1234. },
  1235. data: dataR4[1],
  1236. },
  1237. ],
  1238. }
  1239. option.title.text = '各二级企业"退二进一"完成情况'
  1240. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1241. option.legend.show = true
  1242. option.yAxis.push({
  1243. type: 'value',
  1244. splitLine: {
  1245. show: false,
  1246. },
  1247. axisLine: {
  1248. show: false,
  1249. },
  1250. })
  1251. myChart.setOption(option)
  1252. },
  1253. initChartR5 () {
  1254. let myChart = echarts.init(this.$refs['echartR5'])
  1255. let option = {
  1256. ..._.cloneDeep(this.commonOption),
  1257. series: [
  1258. {
  1259. name: '去年同期在岗职工平均薪酬',
  1260. type: 'bar',
  1261. barWidth: 15,
  1262. itemStyle: {
  1263. normal: {
  1264. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1265. {
  1266. offset: 0,
  1267. color: '#6682F5',
  1268. },
  1269. {
  1270. offset: 1,
  1271. color: '#082550',
  1272. },
  1273. ]),
  1274. },
  1275. },
  1276. data: dataR5[1],
  1277. },
  1278. {
  1279. name: '在岗职工平均薪酬',
  1280. type: 'bar',
  1281. barWidth: 15,
  1282. itemStyle: {
  1283. normal: {
  1284. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1285. {
  1286. offset: 0,
  1287. color: '#69c0ff',
  1288. },
  1289. {
  1290. offset: 1,
  1291. color: '#082550',
  1292. },
  1293. ]),
  1294. },
  1295. },
  1296. data: dataR5[0],
  1297. },
  1298. ],
  1299. }
  1300. option.title.text = '各二级企业在岗职工平均薪酬'
  1301. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1302. option.legend.show = true
  1303. option.yAxis.push({
  1304. type: 'value',
  1305. splitLine: {
  1306. show: false,
  1307. },
  1308. axisLine: {
  1309. show: false,
  1310. },
  1311. })
  1312. myChart.setOption(option)
  1313. },
  1314. initChartR6 () {
  1315. let myChart = echarts.init(this.$refs['echartR6'])
  1316. let option = {
  1317. ..._.cloneDeep(this.commonOption),
  1318. series: [
  1319. {
  1320. name: '2022年利润累计涨幅率',
  1321. type: 'line',
  1322. smooth: true, //平滑曲线显示
  1323. showAllSymbol: true, //显示所有图形。
  1324. symbol: 'circle', //标记的图形为实心圆
  1325. symbolSize: 8, //标记的大小
  1326. smooth: false,
  1327. itemStyle: {
  1328. //折线拐点标志的样式
  1329. color: '#B889EA',
  1330. borderColor: '#B889EA',
  1331. width: 2,
  1332. shadowColor: '#B889EA',
  1333. shadowBlur: 4,
  1334. },
  1335. lineStyle: {
  1336. color: '#B889EA',
  1337. width: 2,
  1338. },
  1339. data: dataR6[0],
  1340. },
  1341. {
  1342. name: '2022年薪酬累计涨幅率',
  1343. type: 'line',
  1344. barWidth: 15,
  1345. yAxisIndex: 1,
  1346. itemStyle: {
  1347. normal: {
  1348. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1349. {
  1350. offset: 0,
  1351. color: '#69C0FF',
  1352. },
  1353. {
  1354. offset: 1,
  1355. color: '#082550',
  1356. },
  1357. ]),
  1358. },
  1359. },
  1360. data: dataR6[1],
  1361. },
  1362. ],
  1363. }
  1364. option.title.text = '各二级企业利润与薪酬变动情况'
  1365. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1366. option.tooltip = {
  1367. trigger: 'axis',
  1368. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1369. }
  1370. option.yAxis = [
  1371. {
  1372. type: 'value',
  1373. axisLine: {
  1374. show: false,
  1375. },
  1376. splitLine: {
  1377. show: true,
  1378. lineStyle: {
  1379. color: '#68b4dd66',
  1380. type: 'dashed',
  1381. },
  1382. },
  1383. axisLabel: {
  1384. show: true,
  1385. formatter: '{value} %',
  1386. textStyle: {
  1387. color: 'rgba(250,250,250,0.6)',
  1388. },
  1389. },
  1390. },
  1391. {
  1392. type: 'value',
  1393. splitLine: {
  1394. show: false,
  1395. },
  1396. axisLine: {
  1397. show: false,
  1398. },
  1399. axisLabel: {
  1400. show: true,
  1401. formatter: '{value} %',
  1402. textStyle: {
  1403. color: 'rgba(250,250,250,0.6)',
  1404. },
  1405. },
  1406. }
  1407. ]
  1408. myChart.setOption(option)
  1409. },
  1410. initChartR7 () {
  1411. let myChart = echarts.init(this.$refs['echartR7'])
  1412. let option = {
  1413. ..._.cloneDeep(this.commonOption),
  1414. series: [
  1415. {
  1416. name: '全员绩效考核完成率',
  1417. type: 'bar',
  1418. barWidth: 15,
  1419. itemStyle: {
  1420. normal: {
  1421. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1422. {
  1423. offset: 0,
  1424. color: '#B889EA',
  1425. },
  1426. {
  1427. offset: 1,
  1428. color: '#082550',
  1429. },
  1430. ]),
  1431. },
  1432. },
  1433. data: dataR7[0],
  1434. },
  1435. ],
  1436. }
  1437. option.title.text = '各二级企业全员绩效考核'
  1438. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1439. option.tooltip = {
  1440. trigger: 'axis',
  1441. formatter: '{a0}:{c0}' + '%'
  1442. },
  1443. option.yAxis[0].axisLabel = {
  1444. show: true,
  1445. formatter: '{value} %',
  1446. textStyle: {
  1447. color: 'rgba(250,250,250,0.6)',
  1448. },
  1449. }
  1450. myChart.setOption(option)
  1451. },
  1452. initChartR8 () {
  1453. let myChart = echarts.init(this.$refs['echartR8'])
  1454. let option = {
  1455. ..._.cloneDeep(this.commonOption),
  1456. series: [
  1457. {
  1458. name: '任期制考核完成率',
  1459. type: 'bar',
  1460. barWidth: 15,
  1461. itemStyle: {
  1462. normal: {
  1463. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1464. {
  1465. offset: 0,
  1466. color: '#43ede3',
  1467. },
  1468. {
  1469. offset: 1,
  1470. color: '#082550',
  1471. },
  1472. ]),
  1473. },
  1474. },
  1475. data: dataR8[0],
  1476. },
  1477. ],
  1478. }
  1479. option.title.text = '各二级企业任期制契约化完成率'
  1480. option.tooltip = {
  1481. trigger: 'axis',
  1482. formatter: '{a0}:{c0}' + '%'
  1483. },
  1484. option.yAxis[0].axisLabel = {
  1485. show: true,
  1486. formatter: '{value} %',
  1487. textStyle: {
  1488. color: 'rgba(250,250,250,0.6)',
  1489. },
  1490. }
  1491. myChart.setOption(option)
  1492. },
  1493. },
  1494. })