index.js 88 KB

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