index.js 93 KB

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