index2JNKG.js 75 KB

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