index2.js 68 KB

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