index5.js 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295
  1. let barImg =
  2. 'data:image/png;base64,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'
  3. let app = new Vue({
  4. el: '#app',
  5. data () {
  6. return {
  7. twinkle7: [],
  8. twinkle8: [],
  9. twinkleR6: [],
  10. showTip: false,
  11. showTip2: false,
  12. showTip3: false,
  13. showTip4: false,
  14. tipNum: '',
  15. tipData: tipData,
  16. time: '',
  17. year: '2022',
  18. config1: {
  19. number: [100],
  20. content: '{nt}个',
  21. },
  22. centerData: '',
  23. storageRecordConfig: {
  24. header: ['', '时间', '所属集团', '工作情况'],
  25. headerBGC: '#05507b33',
  26. oddRowBGC: '#69c0ff0f',
  27. waitTime: '50000',
  28. evenRowBGC: '',
  29. headerHeight: '40',
  30. columnWidth: [150, 150],
  31. rowNum: 4,
  32. align: ['right', 'center', 'center', 'center'],
  33. data: [],
  34. },
  35. storageRecordConfig2: {
  36. header: ['', '企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
  37. headerBGC: '#05507b33',
  38. oddRowBGC: '#05507b33',
  39. evenRowBGC: '',
  40. headerHeight: '40',
  41. columnWidth: [150, 150],
  42. rowNum: 4,
  43. align: ['center', 'center', 'center', 'center', 'center'],
  44. data: [],
  45. },
  46. companyList: companyList,
  47. commonOption: {
  48. title: {
  49. text: 'xxx',
  50. x: 'center',
  51. y: '3%',
  52. textStyle: {
  53. color: '#69C0FF',
  54. fontSize: 24,
  55. },
  56. },
  57. tooltip: {
  58. trigger: 'axis',
  59. textStyle: { fontSize: 18 },
  60. axisPointer: {
  61. type: 'cross',
  62. label: {
  63. fontSize: 18,
  64. },
  65. },
  66. },
  67. grid: {
  68. top: '22%',
  69. right: '5%',
  70. left: '8%',
  71. bottom: '20%',
  72. },
  73. legend: {
  74. data: '',
  75. top: '12%',
  76. right: '5%',
  77. textStyle: {
  78. color: 'rgba(250,250,250,0.6)',
  79. fontSize: 16,
  80. },
  81. },
  82. xAxis: {
  83. data: companyList.map(item => item.name),
  84. axisLine: {
  85. show: false, //隐藏X轴轴线
  86. lineStyle: {
  87. color: '#005094',
  88. width: 1,
  89. },
  90. },
  91. axisTick: {
  92. show: false, //隐藏X轴刻度
  93. },
  94. axisLabel: {
  95. show: true,
  96. rotate: 50,
  97. textStyle: {
  98. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  99. fontSize: 16,
  100. },
  101. },
  102. },
  103. yAxis: [
  104. {
  105. type: 'value',
  106. nameTextStyle: {
  107. color: '#ebf8ac',
  108. fontSize: 16,
  109. },
  110. splitLine: {
  111. show: true,
  112. lineStyle: {
  113. color: '#68b4dd66',
  114. type: 'dashed',
  115. },
  116. },
  117. axisLine: {
  118. show: false,
  119. },
  120. axisLabel: {
  121. show: true,
  122. textStyle: {
  123. color: 'rgba(250,250,250,0.6)',
  124. fontSize: 16,
  125. },
  126. },
  127. },
  128. ],
  129. },
  130. }
  131. },
  132. beforeMount () {
  133. dataL7[0].forEach((item, index) => {
  134. if (dataL7[1][index] < 0 && dataL7[0][index] > 0) {
  135. let obj = { value: [companyList[index].name, dataL7[0][index]], symbolSize: 15 }
  136. this.twinkle7.push(obj)
  137. }
  138. })
  139. // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  140. dataL8[0].forEach((item, index) => {
  141. if (dataL8[1][index] < 0 && dataL8[0][index] > 0) {
  142. let obj = { value: [companyList[index].name, dataL8[0][index]], symbolSize: 15 }
  143. this.twinkle8.push(obj)
  144. }
  145. })
  146. // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
  147. fjxdataL2[0].forEach((item, index) => {
  148. if (fjxdataL2[1][index] > 0 && fjxdataL2[0][index] < 0) {
  149. let obj = { value: [companyList[index].name, fjxdataL2[1][index]], symbolSize: 15 }
  150. this.twinkleR6.push(obj)
  151. }
  152. })
  153. console.log(this.twinkleR6)
  154. },
  155. mounted () {
  156. this.time = formatDate()
  157. this.timer = setInterval(() => {
  158. this.time = formatDate()
  159. }, 1000)
  160. this.centerData = data
  161. // 左侧图表
  162. this.initChartL1() // 左上
  163. // this.initChartL2()
  164. // this.initChartL3() //左中
  165. this.initChartL4()
  166. // this.initChartL5() //左下
  167. // this.initChartL6() // 左下
  168. // this.initChartL7() //左下
  169. this.initChartL8()
  170. // 中间图表
  171. this.initChartC1()
  172. this.initChartC2()
  173. // 右侧图表
  174. // this.initChartR1() //右上
  175. // this.initChartR2()
  176. // this.initChartR3()
  177. this.initChartR4()
  178. this.initChartR5()
  179. // this.initChartR6() // 右中
  180. this.initChartR7()
  181. // this.initChartR8() //右下
  182. },
  183. beforeDestroy () {
  184. if (this.timer) {
  185. clearInterval(this.timer)
  186. }
  187. },
  188. methods: {
  189. showTipClose () {
  190. this.showTip = false
  191. this.showTip2 = false
  192. },
  193. handleShowTip (index, type) {
  194. if (type == 'analysis') {
  195. this.tipData = tipData.analysis
  196. } else {
  197. this.tipData = tipData.focus
  198. }
  199. this.showTip2 = false
  200. this.showTip = true
  201. this.tipNum = index
  202. },
  203. handleShowTip2 (index) {
  204. this.showTip = false
  205. this.showTip2 = true
  206. this.tipNum = index
  207. },
  208. handleGoPage (url) {
  209. if (url.length) {
  210. window.location.href = url
  211. }
  212. },
  213. numFormat (value) {
  214. if (!value) return '0'
  215. var intPart = Number(value).toFixed(0) // 获取整数部分
  216. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  217. var floatPart = '.00' // 预定义小数部分
  218. var value2Array = value.toString().split('.')
  219. // =2表示数据有小数位
  220. if (value2Array.length === 2) {
  221. floatPart = value2Array[1].toString() // 拿到小数部分
  222. if (floatPart.length === 1) {
  223. // 补0
  224. return intPartFormat + '.' + floatPart + '0'
  225. } else {
  226. return intPartFormat + '.' + floatPart
  227. }
  228. } else {
  229. return intPartFormat
  230. }
  231. },
  232. initChartL1 () {
  233. let myChart = echarts.init(this.$refs['echartL1'])
  234. let option = {
  235. ..._.cloneDeep(this.commonOption),
  236. series: [
  237. {
  238. name: '总部机构数核定上限',
  239. type: 'line',
  240. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  241. smooth: true, //平滑曲线显示
  242. showAllSymbol: true, //显示所有图形。
  243. symbol: 'circle', //标记的图形为实心圆
  244. symbolSize: 8, //标记的大小
  245. smooth: false,
  246. itemStyle: {
  247. //折线拐点标志的样式
  248. color: '#fbe138',
  249. borderColor: '#fbe138',
  250. width: 2,
  251. shadowColor: '#fbe138',
  252. shadowBlur: 4,
  253. },
  254. lineStyle: {
  255. color: '#fbe138',
  256. width: 2,
  257. },
  258. data: dataL1[2],
  259. },
  260. {
  261. name: '六定改革前总部机构数',
  262. type: 'bar',
  263. barWidth: 15,
  264. itemStyle: {
  265. normal: {
  266. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  267. {
  268. offset: 0,
  269. color: '#43ede3',
  270. },
  271. {
  272. offset: 1,
  273. color: '#082550',
  274. },
  275. ]),
  276. },
  277. },
  278. data: dataL1[0],
  279. },
  280. {
  281. name: '当前各省属企业总部机构数',
  282. type: 'bar',
  283. barWidth: 15,
  284. itemStyle: {
  285. normal: {
  286. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  287. {
  288. offset: 0,
  289. color: '#69c0ff',
  290. },
  291. {
  292. offset: 1,
  293. color: '#082550',
  294. },
  295. ]),
  296. },
  297. },
  298. data: dataL1[1],
  299. },
  300. ],
  301. // tooltip: {
  302. // trigger: 'item',
  303. // position: 'top'
  304. // },
  305. }
  306. option.title.text = '各省属企业总部机构数'
  307. option.legend.data = ['六定改革前总部机构数', '当前各省属企业总部机构数', '总部机构数核定上限']
  308. option.yAxis.push({
  309. splitLine: {
  310. show: false,
  311. },
  312. axisLine: {
  313. show: false,
  314. },
  315. })
  316. myChart.setOption(option)
  317. },
  318. initChartL2 () {
  319. let myChart = echarts.init(this.$refs['echartL2'])
  320. let option = {
  321. ..._.cloneDeep(this.commonOption),
  322. color: ['#69c0ff'],
  323. series: [
  324. {
  325. name: '当前共享服务中心/事业部数',
  326. type: 'bar',
  327. barWidth: 15,
  328. label: {
  329. normal: {
  330. show: true,
  331. position: 'top',
  332. textStyle: {
  333. color: '#69c0ff',
  334. fontStyle: 'normal',
  335. textAlign: 'left',
  336. fontSize: 16,
  337. },
  338. formatter: function (data) {
  339. if (data.name == '华阳新材') {
  340. return data.value
  341. } else {
  342. return ''
  343. }
  344. }
  345. }
  346. },
  347. itemStyle: {
  348. color: params => {
  349. if (params.value > dataL2[1][params.dataIndex]) {
  350. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  351. {
  352. offset: 0,
  353. color: 'red',
  354. },
  355. {
  356. offset: 1,
  357. color: '#082550',
  358. },
  359. ])
  360. } else {
  361. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  362. {
  363. offset: 0,
  364. color: '#69c0ff',
  365. },
  366. {
  367. offset: 1,
  368. color: '#082550',
  369. },
  370. ])
  371. }
  372. },
  373. },
  374. data: dataL2[0],
  375. },
  376. {
  377. name: '共享服务中心/事业部核定上限',
  378. type: 'line',
  379. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  380. smooth: true, //平滑曲线显示
  381. showAllSymbol: true, //显示所有图形。
  382. symbol: 'circle', //标记的图形为实心圆
  383. symbolSize: 8, //标记的大小
  384. smooth: false,
  385. label: {
  386. normal: {
  387. show: true,
  388. position: 'top',
  389. textStyle: {
  390. color: '#fbe138',
  391. fontStyle: 'normal',
  392. textAlign: 'left',
  393. fontSize: 16,
  394. },
  395. formatter: function (data) {
  396. if (data.name == '华阳新材') {
  397. return data.value
  398. } else {
  399. return ''
  400. }
  401. }
  402. }
  403. },
  404. itemStyle: {
  405. //折线拐点标志的样式
  406. color: '#fbe138',
  407. borderColor: '#fbe138',
  408. width: 2,
  409. shadowColor: '#fbe138',
  410. shadowBlur: 4,
  411. },
  412. lineStyle: {
  413. color: '#fbe138',
  414. width: 2,
  415. },
  416. data: dataL2[1],
  417. },
  418. ],
  419. }
  420. option.title.text = '各省属企业共享服务中心/事业部数'
  421. option.legend.data = ['当前共享服务中心/事业部数', '共享服务中心/事业部核定上限']
  422. option.grid.right = '3%'
  423. option.grid.left = '3%'
  424. option.yAxis.push({
  425. splitLine: {
  426. show: false,
  427. },
  428. axisLine: {
  429. show: false,
  430. },
  431. })
  432. myChart.setOption(option)
  433. },
  434. initChartL3 () {
  435. let myChart = echarts.init(this.$refs['echartL3'])
  436. let option = {
  437. ..._.cloneDeep(this.commonOption),
  438. series: [
  439. {
  440. name: '当前管理人员数',
  441. type: 'bar',
  442. barWidth: 15,
  443. itemStyle: {
  444. normal: {
  445. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  446. {
  447. offset: 0,
  448. color: '#5e7ae9',
  449. },
  450. {
  451. offset: 1,
  452. color: '#082550',
  453. },
  454. ]),
  455. },
  456. },
  457. data: dataL3[0],
  458. },
  459. {
  460. name: '管理人员数占总人数比值',
  461. type: 'line',
  462. yAxisIndex: 1,
  463. smooth: true, //平滑曲线显示
  464. showAllSymbol: true, //显示所有图形。
  465. symbol: 'circle', //标记的图形为实心圆
  466. symbolSize: 8, //标记的大小
  467. smooth: false,
  468. itemStyle: {
  469. //折线拐点标志的样式
  470. color: '#fbe138',
  471. borderColor: '#fbe138',
  472. width: 2,
  473. shadowColor: '#fbe138',
  474. shadowBlur: 4,
  475. },
  476. lineStyle: {
  477. color: '#fbe138',
  478. width: 2,
  479. },
  480. markLine: {
  481. data: [
  482. {
  483. name: '管理人员数占总人数的合理比值线',
  484. yAxis: 15,
  485. lineStyle: {
  486. color: '#fff',
  487. },
  488. label: {
  489. formatter: '{b}',
  490. position: 'middle',
  491. color: '#fff',
  492. fontSize: 16,
  493. },
  494. },
  495. ],
  496. label: {
  497. distance: [20, 8],
  498. },
  499. },
  500. data: dataL3[1],
  501. },
  502. ],
  503. }
  504. option.title.text = '各省属企业管理人员数'
  505. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  506. option.yAxis[0] = {
  507. type: 'log',
  508. min: 1,
  509. logBase: 10,
  510. axisLine: {
  511. show: false,
  512. },
  513. splitLine: {
  514. show: true,
  515. lineStyle: {
  516. color: '#68b4dd66',
  517. type: 'dashed',
  518. },
  519. },
  520. axisLabel: {
  521. show: true,
  522. formatter: function (value) {
  523. return value === 1 ? 0 : value
  524. },
  525. textStyle: {
  526. color: 'rgba(250,250,250,0.6)',
  527. },
  528. },
  529. }
  530. option.yAxis.push({
  531. type: 'value',
  532. max: 15,
  533. axisLine: {
  534. show: false,
  535. },
  536. splitLine: {
  537. show: false,
  538. },
  539. axisLabel: {
  540. show: true,
  541. formatter: '{value} %',
  542. textStyle: {
  543. color: 'rgba(250,250,250,0.6)',
  544. },
  545. },
  546. })
  547. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  548. myChart.setOption(option)
  549. },
  550. initChartL4 () {
  551. let myChart = echarts.init(this.$refs['echartL4'])
  552. let option = {
  553. ..._.cloneDeep(this.commonOption),
  554. series: [
  555. {
  556. name: '六定改革前总部中层管理人数',
  557. type: 'bar',
  558. barWidth: 15,
  559. label: {
  560. normal: {
  561. show: true,
  562. position: 'top',
  563. textStyle: {
  564. color: '#69c0ff',
  565. fontStyle: 'normal',
  566. textAlign: 'left',
  567. fontSize: 16,
  568. },
  569. formatter: function (data) {
  570. if (data.name == '云时代') {
  571. return data.value
  572. } else {
  573. return ''
  574. }
  575. }
  576. }
  577. },
  578. itemStyle: {
  579. normal: {
  580. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  581. {
  582. offset: 0,
  583. color: '#69c0ff',
  584. },
  585. {
  586. offset: 1,
  587. color: '#082550',
  588. },
  589. ]),
  590. },
  591. },
  592. data: dataL4[0],
  593. },
  594. {
  595. name: '当前总部中层管理人数',
  596. type: 'bar',
  597. barWidth: 15,
  598. label: {
  599. normal: {
  600. show: true,
  601. position: 'top',
  602. textStyle: {
  603. color: '#6480f3',
  604. fontStyle: 'normal',
  605. textAlign: 'left',
  606. fontSize: 16,
  607. },
  608. formatter: function (data) {
  609. if (data.name == '云时代') {
  610. return data.value
  611. } else {
  612. return ''
  613. }
  614. }
  615. }
  616. },
  617. itemStyle: {
  618. normal: {
  619. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  620. {
  621. offset: 0,
  622. color: '#6480f3',
  623. },
  624. {
  625. offset: 1,
  626. color: '#082550',
  627. },
  628. ]),
  629. },
  630. },
  631. data: dataL4[1],
  632. },
  633. {
  634. name: '总部中层管理人数核定上限',
  635. type: 'line',
  636. yAxisIndex: 1,
  637. smooth: true, //平滑曲线显示
  638. showAllSymbol: true, //显示所有图形。
  639. symbol: 'circle', //标记的图形为实心圆
  640. symbolSize: 8, //标记的大小
  641. smooth: false,
  642. label: {
  643. normal: {
  644. show: true,
  645. position: 'top',
  646. textStyle: {
  647. color: '#fbe138',
  648. fontStyle: 'normal',
  649. textAlign: 'left',
  650. fontSize: 16,
  651. },
  652. formatter: function (data) {
  653. if (data.name == '云时代') {
  654. return data.value
  655. } else {
  656. return ''
  657. }
  658. }
  659. }
  660. },
  661. itemStyle: {
  662. //折线拐点标志的样式
  663. color: '#fbe138',
  664. borderColor: '#fbe138',
  665. width: 2,
  666. shadowColor: '#fbe138',
  667. shadowBlur: 4,
  668. },
  669. lineStyle: {
  670. color: '#fbe138',
  671. width: 2,
  672. },
  673. data: dataL4[2],
  674. },
  675. ],
  676. }
  677. option.title.text = '各省属企业总部中层管理人数'
  678. option.legend.data = ['六定改革前总部中层管理人数', '当前总部中层管理人数', '总部中层管理人数核定上限']
  679. option.grid.right = '3%'
  680. option.grid.left = '3%'
  681. option.legend.show = true
  682. option.yAxis.push({
  683. splitLine: {
  684. show: false,
  685. },
  686. axisLine: {
  687. show: false,
  688. },
  689. })
  690. myChart.setOption(option)
  691. },
  692. initChartL5 () {
  693. let myChart = echarts.init(this.$refs['echartL5'])
  694. let option = {
  695. ..._.cloneDeep(this.commonOption),
  696. series: [
  697. {
  698. name: '各省属企业总人数',
  699. type: 'bar',
  700. barWidth: 15,
  701. label: {
  702. normal: {
  703. show: true,
  704. position: 'top',
  705. lineHeight: '25',
  706. textStyle: {
  707. color: '#69c0ff',
  708. fontStyle: 'normal',
  709. textAlign: 'left',
  710. fontSize: 16,
  711. },
  712. formatter: function (data) {
  713. if (data.name == '华阳新材' || data.name == '华舰体育') {
  714. return data.value
  715. } else {
  716. return ''
  717. }
  718. }
  719. }
  720. },
  721. itemStyle: {
  722. normal: {
  723. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  724. {
  725. offset: 0,
  726. color: '#69c0ff',
  727. },
  728. {
  729. offset: 1,
  730. color: '#082550',
  731. },
  732. ]),
  733. },
  734. },
  735. data: dataL5[0],
  736. },
  737. {
  738. name: '人数变化率',
  739. type: 'line',
  740. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  741. smooth: true, //平滑曲线显示
  742. showAllSymbol: true, //显示所有图形。
  743. symbol: 'circle', //标记的图形为实心圆
  744. symbolSize: 8, //标记的大小
  745. smooth: false,
  746. label: {
  747. normal: {
  748. show: true,
  749. position: 'bottom',
  750. lineHeight: '25',
  751. textStyle: {
  752. color: '#b889ea',
  753. fontStyle: 'normal',
  754. textAlign: 'left',
  755. fontSize: 16,
  756. },
  757. formatter: function (data) {
  758. if (data.name == '华阳新材' || data.name == '华舰体育') {
  759. return data.value
  760. } else {
  761. return ''
  762. }
  763. }
  764. }
  765. },
  766. itemStyle: {
  767. //折线拐点标志的样式
  768. color: '#b889ea',
  769. borderColor: '#b889ea',
  770. width: 2,
  771. shadowColor: '#b889ea',
  772. shadowBlur: 4,
  773. },
  774. lineStyle: {
  775. color: '#b889ea',
  776. width: 2,
  777. },
  778. data: dataL5[1],
  779. },
  780. ],
  781. }
  782. option.title.text = '各省属企业总人数'
  783. option.legend.data = ['各省属企业总人数', '人数变化率']
  784. option.legend.show = true
  785. option.yAxis[0] = {
  786. type: 'value',
  787. // type: 'log',
  788. min: 1,
  789. // logBase: 10,
  790. axisLine: {
  791. show: false,
  792. },
  793. splitLine: {
  794. show: true,
  795. lineStyle: {
  796. color: '#68b4dd66',
  797. type: 'dashed',
  798. },
  799. },
  800. axisLabel: {
  801. show: true,
  802. formatter: function (value) {
  803. return value === 1 ? 0 : value
  804. },
  805. textStyle: {
  806. color: 'rgba(250,250,250,0.6)',
  807. },
  808. },
  809. }
  810. option.yAxis.push({
  811. type: 'value',
  812. axisLine: {
  813. show: false,
  814. },
  815. splitLine: {
  816. show: false,
  817. },
  818. axisLabel: {
  819. show: true,
  820. formatter: '{value} %',
  821. textStyle: {
  822. color: 'rgba(250,250,250,0.6)',
  823. },
  824. },
  825. })
  826. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  827. myChart.setOption(option)
  828. },
  829. initChartL6 () {
  830. let myChart = echarts.init(this.$refs['echartL6'])
  831. let option = {
  832. ..._.cloneDeep(this.commonOption),
  833. series: [
  834. {
  835. name: '总部员额数',
  836. type: 'bar',
  837. barWidth: 15,
  838. itemStyle: {
  839. normal: {
  840. barBorderRadius: [10, 10, 0, 0],
  841. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  842. {
  843. offset: 0,
  844. color: '#43ede3',
  845. },
  846. {
  847. offset: 1,
  848. color: '#082550',
  849. },
  850. ]),
  851. },
  852. },
  853. data: dataL6[0],
  854. },
  855. {
  856. name: '总部员额数核定上限',
  857. type: 'line',
  858. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  859. smooth: true, //平滑曲线显示
  860. showAllSymbol: true, //显示所有图形。
  861. symbol: 'circle', //标记的图形为实心圆
  862. symbolSize: 8, //标记的大小
  863. smooth: false,
  864. itemStyle: {
  865. //折线拐点标志的样式
  866. color: '#fbe138',
  867. borderColor: '#fbe138',
  868. width: 2,
  869. shadowColor: '#fbe138',
  870. shadowBlur: 4,
  871. },
  872. lineStyle: {
  873. color: '#fbe138',
  874. width: 2,
  875. },
  876. data: dataL6[1],
  877. },
  878. ],
  879. }
  880. option.title.text = '各省属企业总部员额数'
  881. option.legend.data = ['总部员额数', '总部员额数核定上限']
  882. option.legend.show = true
  883. option.yAxis.push({
  884. splitLine: {
  885. show: false,
  886. },
  887. axisLine: {
  888. show: false,
  889. },
  890. })
  891. myChart.setOption(option)
  892. },
  893. initChartL7 () {
  894. let myChart = echarts.init(this.$refs['echartL7'])
  895. let that = this
  896. let option = {
  897. ..._.cloneDeep(this.commonOption),
  898. color: ['#43ede3'],
  899. series: [
  900. {
  901. name: '人数变化',
  902. type: 'line',
  903. smooth: true, //平滑曲线显示
  904. showAllSymbol: true, //显示所有图形。
  905. symbol: 'circle', //标记的图形为实心圆
  906. symbolSize: 15, //标记的大小
  907. smooth: false,
  908. label: {
  909. normal: {
  910. show: true,
  911. position: 'bottom',
  912. lineHeight: '35',
  913. textStyle: {
  914. color: '#43ede3',
  915. fontStyle: 'normal',
  916. textAlign: 'left',
  917. fontSize: 16,
  918. },
  919. formatter: function (data) {
  920. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  921. return data.value
  922. } else {
  923. return ''
  924. }
  925. }
  926. }
  927. },
  928. itemStyle: {
  929. color: params => {
  930. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  931. return 'red'
  932. } else {
  933. return '#43ede3'
  934. }
  935. },
  936. },
  937. lineStyle: {
  938. color: '#43ede3',
  939. width: 2,
  940. },
  941. data: dataL7[0],
  942. },
  943. {
  944. name: '劳动生产率同比变化',
  945. type: 'line',
  946. yAxisIndex: 1,
  947. smooth: true, //平滑曲线显示
  948. showAllSymbol: true, //显示所有图形。
  949. symbol: 'circle', //标记的图形为实心圆
  950. symbolSize: 8, //标记的大小
  951. smooth: false,
  952. label: {
  953. normal: {
  954. show: true,
  955. position: 'top',
  956. lineHeight: '25',
  957. textStyle: {
  958. color: '#b889ea',
  959. fontStyle: 'normal',
  960. textAlign: 'left',
  961. fontSize: 16,
  962. },
  963. formatter: function (data) {
  964. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  965. return data.value
  966. } else {
  967. return ''
  968. }
  969. }
  970. }
  971. },
  972. itemStyle: {
  973. //折线拐点标志的样式
  974. color: '#b889ea',
  975. borderColor: '#b889ea',
  976. width: 2,
  977. shadowColor: '#b889ea',
  978. shadowBlur: 4,
  979. },
  980. data: dataL7[1],
  981. },
  982. {
  983. type: 'effectScatter',
  984. coordinateSystem: 'cartesian2d',
  985. showEffectOn: 'render',
  986. rippleEffect: {
  987. period: 10,
  988. scale: 4,
  989. brushType: 'stroke'
  990. },
  991. hoverAnimation: true,
  992. itemStyle: {
  993. color: 'red'
  994. },
  995. lineStyle: {
  996. color: '#43ede3',
  997. width: 2,
  998. },
  999. data: that.twinkle7,
  1000. },
  1001. ],
  1002. }
  1003. option.title.text = '人数变化和全员劳动生产率变化分析'
  1004. option.legend.data = ['人数变化', '劳动生产率同比变化']
  1005. option.legend.show = true
  1006. option.yAxis[0].axisLabel.formatter = '{value} %'
  1007. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1008. option.yAxis.push({
  1009. type: 'value',
  1010. axisLine: {
  1011. show: false,
  1012. },
  1013. splitLine: {
  1014. show: false,
  1015. },
  1016. axisLabel: {
  1017. show: true,
  1018. formatter: '{value} %',
  1019. textStyle: {
  1020. color: 'rgba(250,250,250,0.6)',
  1021. },
  1022. splitLine: {
  1023. show: false,
  1024. },
  1025. axisLabel: {
  1026. show: true,
  1027. formatter: '{value} %',
  1028. textStyle: {
  1029. color: 'rgba(250,250,250,0.6)',
  1030. },
  1031. },
  1032. },
  1033. })
  1034. myChart.setOption(option)
  1035. },
  1036. initChartL8 () {
  1037. let myChart = echarts.init(this.$refs['echartL8'])
  1038. let option = {
  1039. ..._.cloneDeep(this.commonOption),
  1040. color: ['#43ede3'],
  1041. series: [
  1042. {
  1043. name: '人数变化',
  1044. type: 'line',
  1045. smooth: true, //平滑曲线显示
  1046. showAllSymbol: true, //显示所有图形。
  1047. symbol: 'circle', //标记的图形为实心圆
  1048. symbolSize: 15, //标记的大小
  1049. smooth: false,
  1050. label: {
  1051. normal: {
  1052. show: true,
  1053. position: 'bottom',
  1054. lineHeight: '20',
  1055. textStyle: {
  1056. color: '#43ede3',
  1057. fontStyle: 'normal',
  1058. textAlign: 'left',
  1059. fontSize: 16,
  1060. },
  1061. formatter: function (data) {
  1062. if (data.name == '文旅集团' || data.name == '大地控股') {
  1063. return data.value
  1064. } else {
  1065. return ''
  1066. }
  1067. }
  1068. }
  1069. },
  1070. itemStyle: {
  1071. color: params => {
  1072. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1073. return 'red'
  1074. } else {
  1075. return '#43ede3'
  1076. }
  1077. },
  1078. },
  1079. lineStyle: {
  1080. color: '#43ede3',
  1081. width: 2,
  1082. },
  1083. data: dataL8[0],
  1084. },
  1085. {
  1086. name: '人工成本利润率同比变化',
  1087. type: 'line',
  1088. smooth: true, //平滑曲线显示
  1089. showAllSymbol: true, //显示所有图形。
  1090. symbol: 'circle', //标记的图形为实心圆
  1091. symbolSize: 15, //标记的大小
  1092. smooth: false,
  1093. label: {
  1094. normal: {
  1095. show: true,
  1096. position: 'top',
  1097. lineHeight: '30',
  1098. textStyle: {
  1099. color: '#b889ea',
  1100. fontStyle: 'normal',
  1101. textAlign: 'left',
  1102. fontSize: 16,
  1103. },
  1104. formatter: function (data) {
  1105. if (data.name == '文旅集团' || data.name == '大地控股') {
  1106. return data.value
  1107. } else {
  1108. return ''
  1109. }
  1110. }
  1111. }
  1112. },
  1113. itemStyle: {
  1114. //折线拐点标志的样式
  1115. color: '#b889ea',
  1116. borderColor: '#b889ea',
  1117. width: 2,
  1118. shadowColor: '#b889ea',
  1119. shadowBlur: 4,
  1120. },
  1121. lineStyle: {
  1122. color: '#b889ea',
  1123. width: 2,
  1124. },
  1125. data: dataL8[1],
  1126. },
  1127. {
  1128. type: 'effectScatter',
  1129. coordinateSystem: 'cartesian2d',
  1130. showEffectOn: 'render',
  1131. rippleEffect: {
  1132. period: 10,
  1133. scale: 4,
  1134. brushType: 'stroke'
  1135. },
  1136. hoverAnimation: true,
  1137. itemStyle: {
  1138. color: 'red'
  1139. },
  1140. lineStyle: {
  1141. color: '#43ede3',
  1142. width: 2,
  1143. },
  1144. data: this.twinkle8,
  1145. },
  1146. // {
  1147. // type: 'effectScatter',
  1148. // coordinateSystem: 'cartesian2d',
  1149. // showEffectOn: 'render',
  1150. // rippleEffect: {
  1151. // period: 10,
  1152. // scale: 4,
  1153. // brushType: 'stroke'
  1154. // },
  1155. // hoverAnimation: true,
  1156. // itemStyle: {
  1157. // color: 'red'
  1158. // },
  1159. // lineStyle: {
  1160. // color: '#43ede3',
  1161. // width: 2,
  1162. // },
  1163. // data: that.twinkle,
  1164. // },
  1165. ],
  1166. // tooltip: {
  1167. // trigger: 'axis',
  1168. // formatter(params){
  1169. // console.log(params)
  1170. // return params[0]
  1171. // }
  1172. // }
  1173. }
  1174. option.title.text = '人数变化和人工成本利润率变化分析'
  1175. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1176. option.grid.right = '3%'
  1177. option.grid.left = '3%'
  1178. option.legend.show = true
  1179. option.yAxis[0].axisLabel.formatter = '{value} %'
  1180. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1181. myChart.setOption(option)
  1182. },
  1183. // 中间图表---------------------------------------------开始
  1184. initChartC1 () {
  1185. let myChart = echarts.init(this.$refs['echartC1'])
  1186. let option = {
  1187. ..._.cloneDeep(this.commonOption),
  1188. color: ['#69c0ff'],
  1189. series: [
  1190. {
  1191. name: '全员劳动生产率(万/人)',
  1192. type: 'bar',
  1193. barWidth: 15,
  1194. label: {
  1195. normal: {
  1196. show: true,
  1197. position: 'top',
  1198. textStyle: {
  1199. color: '#69c0ff',
  1200. fontStyle: 'normal',
  1201. textAlign: 'left',
  1202. fontSize: 16,
  1203. },
  1204. formatter: function (data) {
  1205. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1206. return data.value
  1207. } else {
  1208. return ''
  1209. }
  1210. }
  1211. }
  1212. },
  1213. itemStyle: {
  1214. color: params => {
  1215. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  1216. return 'red'
  1217. } else if (params.value < 0) {
  1218. return 'yellow'
  1219. } else {
  1220. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1221. {
  1222. offset: 0,
  1223. color: '#69c0ff',
  1224. },
  1225. {
  1226. offset: 1,
  1227. color: '#082550',
  1228. },
  1229. ])
  1230. }
  1231. },
  1232. },
  1233. // markPoint:{
  1234. // symbolSize: 1,
  1235. // symbolOffset: [0, '50%'],
  1236. // label:{
  1237. // show: true,
  1238. // fontSize:18,
  1239. // color: '#fff',
  1240. // backgroundColor: 'rgba(38,48,59,0.6)',
  1241. // borderColor: '#aaa',
  1242. // borderWidth: 1,
  1243. // borderRadius: 4,
  1244. // padding: [4, 10],
  1245. // lineHeight: 26,
  1246. // position: 'top',
  1247. // distance: 20,
  1248. // // formatter: data =>{
  1249. // // console.log('11',data)
  1250. // // },
  1251. // formatter: [
  1252. // '{a|这段文本采用样式a}',
  1253. // '这段用默认样式{x|这段用样式x}'
  1254. // ].join('\n'),
  1255. // rich: {
  1256. // a: {
  1257. // color: 'yellow',
  1258. // lineHeight: 10
  1259. // },
  1260. // b: {
  1261. // // backgroundColor: {
  1262. // // image: './images/alert.png'
  1263. // // },
  1264. // height: 40
  1265. // },
  1266. // x: {
  1267. // fontSize: 18,
  1268. // borderColor: '#449933',
  1269. // borderRadius: 4
  1270. // },
  1271. // }
  1272. // },
  1273. // // itemStyle: {
  1274. // // color: 'rgba(38,48,59,0.6)'
  1275. // // },
  1276. // data:[{value:'117.48', xAxis: '国际能源', yAxis: 127 },{value:'138.83', xAxis: '汾酒集团', yAxis: 148 }]
  1277. // },
  1278. markLine: {
  1279. data: [
  1280. {
  1281. name: '省属企业平均水平',
  1282. yAxis: 50.13,
  1283. lineStyle: {
  1284. color: '#fff',
  1285. },
  1286. label: {
  1287. formatter: '{b}',
  1288. position: 'end',
  1289. padding: [20, 100, 10, 10],
  1290. fontSize: 16,
  1291. color: '#fff',
  1292. },
  1293. },
  1294. // {
  1295. // name: '',
  1296. // yAxis: 0,
  1297. // lineStyle: {
  1298. // color: '#fff',
  1299. // },
  1300. // label: {
  1301. // formatter: '{b}',
  1302. // position: 'end',
  1303. // fontSize: 16,
  1304. // color: '#fff',
  1305. // },
  1306. // },
  1307. {
  1308. name: '央企平均水平',
  1309. yAxis: 69.4,
  1310. lineStyle: {
  1311. color: '#fff',
  1312. },
  1313. label: {
  1314. formatter: '{b}',
  1315. position: 'end',
  1316. padding: [-4, 150, 10, 10],
  1317. color: '#fff',
  1318. fontSize: 16,
  1319. },
  1320. },
  1321. ],
  1322. label: {
  1323. distance: [50, 0],
  1324. },
  1325. },
  1326. data: c1[0],
  1327. },
  1328. {
  1329. name: '全员劳动生产率同比',
  1330. type: 'line',
  1331. yAxisIndex: 1,
  1332. smooth: true, //平滑曲线显示
  1333. showAllSymbol: true, //显示所有图形。
  1334. symbol: 'circle', //标记的图形为实心圆
  1335. symbolSize: 8, //标记的大小
  1336. smooth: false,
  1337. itemStyle: {
  1338. //折线拐点标志的样式
  1339. color: '#B889EA',
  1340. borderColor: '#B889EA',
  1341. width: 2,
  1342. shadowColor: '#B889EA',
  1343. shadowBlur: 4,
  1344. },
  1345. lineStyle: {
  1346. color: '#B889EA',
  1347. width: 2,
  1348. },
  1349. label: {
  1350. normal: {
  1351. show: true,
  1352. position: 'top',
  1353. textStyle: {
  1354. color: '#B889EA',
  1355. fontStyle: 'normal',
  1356. textAlign: 'left',
  1357. fontSize: 16,
  1358. },
  1359. formatter: function (data) {
  1360. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1361. return data.value + '%'
  1362. } else {
  1363. return ''
  1364. }
  1365. }
  1366. }
  1367. },
  1368. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  1369. data: c1[1],
  1370. },
  1371. ],
  1372. }
  1373. option.title.text = '各省属企业全员劳动生产率'
  1374. // option.legend.data = [ '全员劳动生产率(万/人)','全员劳动生产率同比']
  1375. option.legend.show = true
  1376. option.grid.right = '15%'
  1377. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1378. option.yAxis.push({
  1379. type: 'value',
  1380. axisLine: {
  1381. show: false,
  1382. },
  1383. splitLine: {
  1384. show: false,
  1385. },
  1386. axisLabel: {
  1387. show: true,
  1388. formatter: '{value} %',
  1389. textStyle: {
  1390. color: 'rgba(250,250,250,0.6)',
  1391. },
  1392. },
  1393. })
  1394. myChart.setOption(option)
  1395. // tools.loopShowTooltip(myChart, option, {
  1396. // nterval: 2000,
  1397. // loopSeries: true,
  1398. // })
  1399. },
  1400. initChartC2 () {
  1401. let myChart = echarts.init(this.$refs['echartC2'])
  1402. let option = {
  1403. ..._.cloneDeep(this.commonOption),
  1404. color: ['#69c0ff'],
  1405. series: [
  1406. {
  1407. name: '人工成本利润率',
  1408. type: 'bar',
  1409. barWidth: 15,
  1410. label: {
  1411. normal: {
  1412. show: true,
  1413. position: 'top',
  1414. textStyle: {
  1415. color: '#fff',
  1416. fontStyle: 'normal',
  1417. textAlign: 'left',
  1418. fontSize: 16,
  1419. },
  1420. formatter: function (data) {
  1421. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1422. return data.value
  1423. } else {
  1424. return ''
  1425. }
  1426. }
  1427. }
  1428. },
  1429. markLine: {
  1430. data: [
  1431. {
  1432. name: '省属企业平均水平',
  1433. yAxis: 67.09,
  1434. lineStyle: {
  1435. color: '#fff',
  1436. },
  1437. label: {
  1438. formatter: '{b}',
  1439. position: 'end',
  1440. padding: [24, 100, 10, 10],
  1441. fontSize: 16,
  1442. color: '#fff',
  1443. },
  1444. },
  1445. {
  1446. name: '央企平均水平',
  1447. yAxis: 81,
  1448. lineStyle: {
  1449. color: '#fff',
  1450. },
  1451. label: {
  1452. formatter: '{b}',
  1453. position: 'end',
  1454. padding: [-24, 200, 10, 10],
  1455. color: '#fff',
  1456. fontSize: 16,
  1457. },
  1458. },
  1459. ],
  1460. label: {
  1461. distance: [50, 0],
  1462. },
  1463. },
  1464. itemStyle: {
  1465. color: params => {
  1466. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1467. return 'red'
  1468. } else if (params.value < 0) {
  1469. return 'yellow'
  1470. } else {
  1471. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1472. {
  1473. offset: 0,
  1474. color: '#69c0ff',
  1475. },
  1476. {
  1477. offset: 1,
  1478. color: '#082550',
  1479. },
  1480. ])
  1481. }
  1482. },
  1483. },
  1484. data: c2[1],
  1485. },
  1486. {
  1487. name: '人工成本利润率同比',
  1488. type: 'line',
  1489. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1490. smooth: true, //平滑曲线显示
  1491. showAllSymbol: true, //显示所有图形。
  1492. symbol: 'circle', //标记的图形为实心圆
  1493. symbolSize: 8, //标记的大小
  1494. smooth: false,
  1495. label: {
  1496. normal: {
  1497. show: true,
  1498. position: 'top',
  1499. lineHeight: '30',
  1500. textStyle: {
  1501. color: '#b889ea',
  1502. fontStyle: 'normal',
  1503. textAlign: 'left',
  1504. fontSize: 16,
  1505. },
  1506. formatter: function (data) {
  1507. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1508. return data.value + '%'
  1509. } else {
  1510. return ''
  1511. }
  1512. }
  1513. }
  1514. },
  1515. itemStyle: {
  1516. //折线拐点标志的样式
  1517. color: '#B889EA',
  1518. borderColor: '#B889EA',
  1519. width: 2,
  1520. shadowColor: '#B889EA',
  1521. shadowBlur: 4,
  1522. },
  1523. lineStyle: {
  1524. color: '#B889EA',
  1525. width: 2,
  1526. },
  1527. data: c2[0],
  1528. },
  1529. ],
  1530. }
  1531. option.title.text = '各省属企业人工成本利润率'
  1532. option.legend.show = true
  1533. option.grid.right = '15%'
  1534. option.yAxis[0].axisLabel.formatter = '{value} %'
  1535. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1536. option.yAxis.push({
  1537. type: 'value',
  1538. axisLine: {
  1539. show: false,
  1540. },
  1541. splitLine: {
  1542. show: false,
  1543. },
  1544. axisLabel: {
  1545. show: true,
  1546. formatter: '{value} %',
  1547. textStyle: {
  1548. color: 'rgba(250,250,250,0.6)',
  1549. },
  1550. },
  1551. })
  1552. myChart.setOption(option)
  1553. // tools.loopShowTooltip(myChart, option, {
  1554. // nterval: 2000,
  1555. // loopSeries: true,
  1556. // })
  1557. },
  1558. // 右侧图表---------------------------------------------开始
  1559. initChartR1 () {
  1560. let myChart = echarts.init(this.$refs['echartR1'])
  1561. let commonOptions = this.commonOption
  1562. commonOptions.yAxis[0].splitNumber = 2
  1563. let dataTemp = []
  1564. let dataTemp2 = []
  1565. dataR1[0].forEach(item => {
  1566. dataTemp.push(item + 1)
  1567. })
  1568. dataR1[1].forEach(item => {
  1569. dataTemp2.push(item + 1)
  1570. })
  1571. let option = {
  1572. ..._.cloneDeep(commonOptions),
  1573. series: [
  1574. {
  1575. name: '招聘需求公告次数',
  1576. type: 'bar',
  1577. barWidth: 15,
  1578. itemStyle: {
  1579. normal: {
  1580. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1581. {
  1582. offset: 0,
  1583. color: '#69c0ff',
  1584. },
  1585. {
  1586. offset: 1,
  1587. color: '#082550',
  1588. },
  1589. ]),
  1590. },
  1591. },
  1592. data: dataTemp,
  1593. },
  1594. {
  1595. name: '招聘需求公告累计公开招聘人数',
  1596. type: 'bar',
  1597. barWidth: 15,
  1598. itemStyle: {
  1599. normal: {
  1600. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1601. {
  1602. offset: 0,
  1603. color: '#43ede3',
  1604. },
  1605. {
  1606. offset: 1,
  1607. color: '#082550',
  1608. },
  1609. ]),
  1610. },
  1611. },
  1612. data: dataTemp2,
  1613. },
  1614. ],
  1615. }
  1616. option.title.text = '各省属企业招聘需求公示人次'
  1617. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计公开招聘人数']
  1618. option.legend.show = true
  1619. option.tooltip.formatter = function (value) {
  1620. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1621. }
  1622. option.yAxis[0] = {
  1623. type: 'log',
  1624. min: 1,
  1625. logBase: 10,
  1626. axisLine: {
  1627. show: false,
  1628. },
  1629. splitLine: {
  1630. show: true,
  1631. lineStyle: {
  1632. color: '#68b4dd66',
  1633. type: 'dashed',
  1634. },
  1635. },
  1636. axisLabel: {
  1637. show: true,
  1638. formatter: function (value) {
  1639. return value === 1 ? 0 : value
  1640. },
  1641. textStyle: {
  1642. color: 'rgba(250,250,250,0.6)',
  1643. },
  1644. },
  1645. }
  1646. myChart.setOption(option)
  1647. },
  1648. initChartR2 () {
  1649. let myChart = echarts.init(this.$refs['echartR2'])
  1650. let commonOptions = this.commonOption
  1651. commonOptions.yAxis[0].splitNumber = 2
  1652. let dataTemp = []
  1653. let dataTemp2 = []
  1654. dataR2[0].forEach(item => {
  1655. dataTemp.push(item + 1)
  1656. })
  1657. dataR2[1].forEach(item => {
  1658. dataTemp2.push(item + 1)
  1659. })
  1660. let option = {
  1661. ..._.cloneDeep(commonOptions),
  1662. series: [
  1663. {
  1664. name: '录用结果公示次数',
  1665. type: 'bar',
  1666. barWidth: 15,
  1667. itemStyle: {
  1668. normal: {
  1669. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1670. {
  1671. offset: 0,
  1672. color: '#69c0ff',
  1673. },
  1674. {
  1675. offset: 1,
  1676. color: '#082550',
  1677. },
  1678. ]),
  1679. },
  1680. },
  1681. data: dataTemp,
  1682. },
  1683. {
  1684. name: '录用结果公示累计公示人数',
  1685. type: 'bar',
  1686. barWidth: 15,
  1687. itemStyle: {
  1688. normal: {
  1689. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1690. {
  1691. offset: 0,
  1692. color: '#45DAD1',
  1693. },
  1694. {
  1695. offset: 1,
  1696. color: '#082550',
  1697. },
  1698. ]),
  1699. },
  1700. },
  1701. data: dataTemp2,
  1702. },
  1703. ],
  1704. }
  1705. option.title.text = '各省属企业录用结果公示人次'
  1706. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1707. option.legend.show = true
  1708. option.tooltip.formatter = function (value) {
  1709. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1710. }
  1711. option.yAxis[0] = {
  1712. type: 'log',
  1713. min: 1,
  1714. logBase: 10,
  1715. axisLine: {
  1716. show: false,
  1717. },
  1718. splitLine: {
  1719. show: true,
  1720. lineStyle: {
  1721. color: '#68b4dd66',
  1722. type: 'dashed',
  1723. },
  1724. },
  1725. axisLabel: {
  1726. show: true,
  1727. formatter: function (value) {
  1728. return value === 1 ? 0 : value
  1729. },
  1730. textStyle: {
  1731. color: 'rgba(250,250,250,0.6)',
  1732. },
  1733. },
  1734. }
  1735. myChart.setOption(option)
  1736. },
  1737. initChartR3 () {
  1738. let myChart = echarts.init(this.$refs['echartR3'])
  1739. let commonOptions = this.commonOption
  1740. commonOptions.yAxis[0].splitNumber = 2
  1741. let option = {
  1742. ..._.cloneDeep(commonOptions),
  1743. color: ['#45DAD1'],
  1744. series: [
  1745. {
  1746. name: '年利润(万)',
  1747. type: 'bar',
  1748. barWidth: 15,
  1749. label: {
  1750. normal: {
  1751. show: true,
  1752. position: 'bottom',
  1753. textStyle: {
  1754. color: '#69c0ff',
  1755. fontStyle: 'normal',
  1756. textAlign: 'left',
  1757. fontSize: 14,
  1758. },
  1759. formatter: function (data) {
  1760. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1761. return data.value
  1762. } else {
  1763. return ''
  1764. }
  1765. }
  1766. }
  1767. },
  1768. itemStyle: {
  1769. normal: {
  1770. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1771. {
  1772. offset: 0,
  1773. color: '#69c0ff',
  1774. },
  1775. {
  1776. offset: 1,
  1777. color: '#082550',
  1778. },
  1779. ]),
  1780. },
  1781. },
  1782. data: dataR3[0],
  1783. },
  1784. {
  1785. name: '2022年累计招聘数',
  1786. type: 'bar',
  1787. barWidth: 15,
  1788. yAxisIndex: 1,
  1789. label: {
  1790. normal: {
  1791. show: true,
  1792. position: 'top',
  1793. textStyle: {
  1794. color: '#45DAD1',
  1795. fontStyle: 'normal',
  1796. textAlign: 'right',
  1797. fontSize: 14,
  1798. },
  1799. formatter: function (data) {
  1800. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1801. return data.value
  1802. } else {
  1803. return ''
  1804. }
  1805. }
  1806. }
  1807. },
  1808. itemStyle: {
  1809. color: params => {
  1810. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1811. return 'red'
  1812. } else {
  1813. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1814. {
  1815. offset: 0,
  1816. color: '#45DAD1',
  1817. },
  1818. {
  1819. offset: 1,
  1820. color: '#082550',
  1821. },
  1822. ])
  1823. }
  1824. },
  1825. },
  1826. // itemStyle: {
  1827. // normal: {
  1828. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1829. // {
  1830. // offset: 0,
  1831. // color: '#45DAD1',
  1832. // },
  1833. // {
  1834. // offset: 1,
  1835. // color: '#082550',
  1836. // },
  1837. // ]),
  1838. // },
  1839. // },
  1840. data: dataR3[1],
  1841. },
  1842. ],
  1843. }
  1844. option.title.text = '各省属企业年利润与当年累计招聘人数'
  1845. option.legend.data = ['年利润(万)', '2022年累计招聘数']
  1846. option.legend.show = true
  1847. option.yAxis[0] = {
  1848. max: function (value) {
  1849. if (Math.abs(value.max) > Math.abs(value.min)) {
  1850. return (Math.abs(value.max) * 1.2).toFixed(2)
  1851. } else {
  1852. return (Math.abs(value.min) * 1.2).toFixed(2)
  1853. }
  1854. },
  1855. min: function (value) {
  1856. if (Math.abs(value.max) > Math.abs(value.min)) {
  1857. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1858. } else {
  1859. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1860. }
  1861. },
  1862. type: 'value',
  1863. axisLine: {
  1864. show: false,
  1865. },
  1866. splitLine: {
  1867. show: true,
  1868. lineStyle: {
  1869. color: '#68b4dd66',
  1870. type: 'dashed',
  1871. },
  1872. },
  1873. axisLabel: {
  1874. show: true,
  1875. formatter: function (value) {
  1876. return value === 1 ? 0 : value
  1877. },
  1878. textStyle: {
  1879. color: 'rgba(250,250,250,0.6)',
  1880. },
  1881. },
  1882. }
  1883. option.yAxis.push({
  1884. splitLine: {
  1885. show: false,
  1886. },
  1887. axisLine: {
  1888. show: false,
  1889. },
  1890. axisLabel: {
  1891. show: true,
  1892. formatter: '{value}',
  1893. textStyle: {
  1894. color: 'rgba(250,250,250,0.6)',
  1895. },
  1896. },
  1897. max: function (value) {
  1898. if (Math.abs(value.max) > Math.abs(value.min)) {
  1899. return (Math.abs(value.max) * 1.2).toFixed(2)
  1900. } else {
  1901. return (Math.abs(value.min) * 1.2).toFixed(2)
  1902. }
  1903. },
  1904. min: function (value) {
  1905. if (Math.abs(value.max) > Math.abs(value.min)) {
  1906. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1907. } else {
  1908. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1909. }
  1910. },
  1911. })
  1912. myChart.setOption(option)
  1913. },
  1914. initChartR4 () {
  1915. let myChart = echarts.init(this.$refs['echartR4'])
  1916. let commonOptions = this.commonOption
  1917. commonOptions.yAxis[0].splitNumber = 2
  1918. let option = {
  1919. ..._.cloneDeep(commonOptions),
  1920. series: [
  1921. {
  1922. name: '2022年退出人数',
  1923. type: 'bar',
  1924. barWidth: 15,
  1925. itemStyle: {
  1926. normal: {
  1927. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1928. {
  1929. offset: 0,
  1930. color: '#69c0ff',
  1931. },
  1932. {
  1933. offset: 1,
  1934. color: '#082550',
  1935. },
  1936. ]),
  1937. },
  1938. },
  1939. data: dataR4[0],
  1940. },
  1941. {
  1942. name: '2022年累计招聘人数',
  1943. type: 'bar',
  1944. barWidth: 15,
  1945. itemStyle: {
  1946. normal: {
  1947. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1948. {
  1949. offset: 0,
  1950. color: '#45DAD1',
  1951. },
  1952. {
  1953. offset: 1,
  1954. color: '#082550',
  1955. },
  1956. ]),
  1957. },
  1958. },
  1959. data: dataR4[1],
  1960. },
  1961. ],
  1962. }
  1963. option.title.text = '各省属企业"退二进一"完成情况'
  1964. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1965. option.grid.right = '3%'
  1966. option.grid.left = '3%'
  1967. option.legend.show = true
  1968. option.yAxis[0] = {
  1969. //type: 'log',
  1970. //min: 1,
  1971. //logBase: 3,
  1972. axisLine: {
  1973. show: false,
  1974. },
  1975. splitLine: {
  1976. show: true,
  1977. lineStyle: {
  1978. color: '#68b4dd66',
  1979. type: 'dashed',
  1980. },
  1981. },
  1982. axisLabel: {
  1983. show: true,
  1984. formatter: function (value) {
  1985. return value === 1 ? 0 : value
  1986. },
  1987. textStyle: {
  1988. color: 'rgba(250,250,250,0.6)',
  1989. },
  1990. },
  1991. }
  1992. myChart.setOption(option)
  1993. },
  1994. initChartR5 () {
  1995. let myChart = echarts.init(this.$refs['echartR5'])
  1996. let option = {
  1997. ..._.cloneDeep(this.commonOption),
  1998. series: [
  1999. {
  2000. name: '去年同期在岗职工平均薪酬',
  2001. type: 'bar',
  2002. barWidth: 15,
  2003. markLine: {
  2004. data: [
  2005. {
  2006. name: '省属企业平均水平',
  2007. yAxis: 9333.33,
  2008. lineStyle: {
  2009. color: '#fff',
  2010. },
  2011. label: {
  2012. formatter: '{b}',
  2013. position: 'middle',
  2014. fontSize: 16,
  2015. color: '#fff',
  2016. },
  2017. }
  2018. ],
  2019. label: {
  2020. distance: [50, 0],
  2021. },
  2022. },
  2023. itemStyle: {
  2024. normal: {
  2025. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2026. {
  2027. offset: 0,
  2028. color: '#6682F5',
  2029. },
  2030. {
  2031. offset: 1,
  2032. color: '#082550',
  2033. },
  2034. ]),
  2035. },
  2036. },
  2037. data: fjxdataL1[0],
  2038. },
  2039. {
  2040. name: '在岗职工平均薪酬',
  2041. type: 'bar',
  2042. barWidth: 15,
  2043. itemStyle: {
  2044. normal: {
  2045. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2046. {
  2047. offset: 0,
  2048. color: '#69c0ff',
  2049. },
  2050. {
  2051. offset: 1,
  2052. color: '#082550',
  2053. },
  2054. ]),
  2055. },
  2056. },
  2057. data: fjxdataL1[1],
  2058. },
  2059. ],
  2060. }
  2061. option.title.text = '各省属企业在岗职工平均薪酬'
  2062. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  2063. option.grid.right = '3%'
  2064. option.grid.left = '3%'
  2065. option.legend.show = true
  2066. option.yAxis.push({
  2067. splitLine: {
  2068. show: false,
  2069. },
  2070. axisLine: {
  2071. show: false,
  2072. },
  2073. })
  2074. myChart.setOption(option)
  2075. },
  2076. initChartR6 () {
  2077. let myChart = echarts.init(this.$refs['echartR6'])
  2078. let option = {
  2079. ..._.cloneDeep(this.commonOption),
  2080. color: ['#69c0ff'],
  2081. series: [
  2082. {
  2083. name: '2022年利润累计涨幅率',
  2084. type: 'line',
  2085. smooth: true, //平滑曲线显示
  2086. showAllSymbol: true, //显示所有图形。
  2087. symbol: 'circle', //标记的图形为实心圆
  2088. symbolSize: 8, //标记的大小
  2089. smooth: false,
  2090. label: {
  2091. normal: {
  2092. show: true,
  2093. lineHeight: '20',
  2094. position: 'top',
  2095. textStyle: {
  2096. color: '#B889EA',
  2097. fontStyle: 'normal',
  2098. textAlign: 'left',
  2099. fontSize: 16,
  2100. },
  2101. formatter: function (data) {
  2102. if (data.name == '文旅集团') {
  2103. return data.value
  2104. } else {
  2105. return ''
  2106. }
  2107. }
  2108. }
  2109. },
  2110. itemStyle: {
  2111. //折线拐点标志的样式
  2112. color: '#B889EA',
  2113. borderColor: '#B889EA',
  2114. width: 2,
  2115. shadowColor: '#B889EA',
  2116. shadowBlur: 4,
  2117. },
  2118. lineStyle: {
  2119. color: '#B889EA',
  2120. width: 2,
  2121. },
  2122. data: fjxdataL2[0],
  2123. },
  2124. {
  2125. name: '2022年薪酬累计涨幅率',
  2126. type: 'line',
  2127. smooth: true, //平滑曲线显示
  2128. showAllSymbol: true, //显示所有图形。
  2129. symbol: 'circle', //标记的图形为实心圆
  2130. symbolSize: 12, //标记的大小
  2131. smooth: false,
  2132. label: {
  2133. normal: {
  2134. show: true,
  2135. position: 'top',
  2136. lineHeight: '35',
  2137. textStyle: {
  2138. color: '#69c0ff',
  2139. fontStyle: 'normal',
  2140. textAlign: 'left',
  2141. fontSize: 16,
  2142. },
  2143. formatter: function (data) {
  2144. if (data.name == '文旅集团') {
  2145. return data.value
  2146. } else {
  2147. return ''
  2148. }
  2149. }
  2150. }
  2151. },
  2152. itemStyle: {
  2153. color: params => {
  2154. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  2155. return 'yellow'
  2156. } else {
  2157. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2158. {
  2159. offset: 0,
  2160. color: '#69c0ff',
  2161. },
  2162. {
  2163. offset: 1,
  2164. color: '#082550',
  2165. },
  2166. ])
  2167. }
  2168. },
  2169. },
  2170. lineStyle: {
  2171. color: '#69C0FF',
  2172. width: 2,
  2173. },
  2174. data: fjxdataL2[1],
  2175. },
  2176. {
  2177. type: 'effectScatter',
  2178. coordinateSystem: 'cartesian2d',
  2179. showEffectOn: 'render',
  2180. rippleEffect: {
  2181. period: 10,
  2182. scale: 4,
  2183. brushType: 'stroke'
  2184. },
  2185. hoverAnimation: true,
  2186. itemStyle: {
  2187. color: 'yellow'
  2188. },
  2189. lineStyle: {
  2190. color: '#43ede3',
  2191. width: 2,
  2192. },
  2193. data: this.twinkleR6,
  2194. },
  2195. ],
  2196. }
  2197. option.title.text = '各省属企业利润与薪酬变动情况'
  2198. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  2199. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2200. option.yAxis[0].axisLabel.formatter = '{value} %'
  2201. myChart.setOption(option)
  2202. },
  2203. initChartR7 () {
  2204. let myChart = echarts.init(this.$refs['echartR7'])
  2205. let option = {
  2206. ..._.cloneDeep(this.commonOption),
  2207. series: [
  2208. {
  2209. name: '全员绩效考核完成率',
  2210. type: 'bar',
  2211. barWidth: 15,
  2212. itemStyle: {
  2213. normal: {
  2214. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2215. {
  2216. offset: 0,
  2217. color: '#B889EA',
  2218. },
  2219. {
  2220. offset: 1,
  2221. color: '#082550',
  2222. },
  2223. ]),
  2224. },
  2225. },
  2226. data: fjxdataL3[0],
  2227. },
  2228. ],
  2229. }
  2230. option.title.text = '各省属企业全员绩效考核'
  2231. option.grid.right = '3%'
  2232. option.grid.left = '3%'
  2233. option.legend.show = true
  2234. option.tooltip = {
  2235. trigger: 'axis',
  2236. formatter: '{a0}:{c0}' + '%'
  2237. },
  2238. option.yAxis[0].axisLabel = {
  2239. show: true,
  2240. formatter: '{value} %',
  2241. textStyle: {
  2242. color: 'rgba(250,250,250,0.6)',
  2243. },
  2244. }
  2245. myChart.setOption(option)
  2246. },
  2247. initChartR8 () {
  2248. let myChart = echarts.init(this.$refs['echartR8'])
  2249. let option = {
  2250. ..._.cloneDeep(this.commonOption),
  2251. series: [
  2252. {
  2253. name: '任期制契约化考核完成率',
  2254. type: 'bar',
  2255. barWidth: 15,
  2256. itemStyle: {
  2257. normal: {
  2258. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2259. {
  2260. offset: 0,
  2261. color: '#43ede3',
  2262. },
  2263. {
  2264. offset: 1,
  2265. color: '#082550',
  2266. },
  2267. ]),
  2268. },
  2269. },
  2270. data: fjxdataL4[0],
  2271. },
  2272. ],
  2273. }
  2274. option.title.text = '各省属企业任期制契约化管理'
  2275. option.legend.show = true
  2276. option.tooltip.formatter = '{a0}:{c0}' + '%'
  2277. option.yAxis[0].axisLabel.formatter = '{value} %'
  2278. myChart.setOption(option)
  2279. },
  2280. },
  2281. })