index2JNKG.js 75 KB

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