index2.js 73 KB

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