index.js 90 KB

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