index.js 91 KB

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