index.js 88 KB

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