index2.js 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099
  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. color: params => {
  561. if (params.value > 0 && dataL1[2][params.dataIndex]) {
  562. return 'red'
  563. } else {
  564. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  565. {
  566. offset: 0,
  567. color: '#69c0ff',
  568. },
  569. {
  570. offset: 1,
  571. color: '#082550',
  572. },
  573. ])
  574. }
  575. },
  576. },
  577. data: dataL1[1],
  578. },
  579. ],
  580. // tooltip: {
  581. // trigger: 'item',
  582. // position: 'top'
  583. // },
  584. }
  585. option.title.text = '本部机构数'
  586. option.legend.data = ['六定改革前各二级企业本部机构数', '当前各二级企业本部机构数', '六个二级企业本部机构数核定上限']
  587. option.yAxis.push({
  588. splitLine: {
  589. show: false,
  590. },
  591. axisLine: {
  592. show: false,
  593. },
  594. })
  595. myChart.setOption(option)
  596. },
  597. initChartL2 () {
  598. let myChart = echarts.init(this.$refs['echartL2'])
  599. let option = {
  600. ..._.cloneDeep(this.commonOption),
  601. series: [
  602. {
  603. name: '当前各二级企业所属架构数',
  604. type: 'bar',
  605. barWidth: 15,
  606. itemStyle: {
  607. normal: {
  608. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  609. {
  610. offset: 0,
  611. color: '#69c0ff',
  612. },
  613. {
  614. offset: 1,
  615. color: '#082550',
  616. },
  617. ]),
  618. },
  619. },
  620. data: dataL2[0]
  621. }
  622. ],
  623. }
  624. option.title.text = '各二级企业所属架构数'
  625. option.legend.data = ['当前各二级企业所属架构数']
  626. option.yAxis.push({
  627. splitLine: {
  628. show: false,
  629. },
  630. axisLine: {
  631. show: false,
  632. },
  633. })
  634. myChart.setOption(option)
  635. },
  636. initChartL3 () {
  637. let myChart = echarts.init(this.$refs['echartL3'])
  638. let option = {
  639. ..._.cloneDeep(this.commonOption),
  640. series: [
  641. {
  642. name: '当前本部中层管理人数',
  643. type: 'bar',
  644. barWidth: 15,
  645. itemStyle: {
  646. normal: {
  647. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  648. {
  649. offset: 0,
  650. color: '#5e7ae9',
  651. },
  652. {
  653. offset: 1,
  654. color: '#082550',
  655. },
  656. ]),
  657. },
  658. },
  659. data: dataL3[0],
  660. },
  661. ],
  662. }
  663. option.title.text = '各二级企业本部中层管理人数'
  664. option.legend.data = ['当前本部中层管理人数']
  665. option.yAxis.push({
  666. type: 'value',
  667. axisLine: {
  668. show: false,
  669. },
  670. splitLine: {
  671. show: false,
  672. },
  673. })
  674. myChart.setOption(option)
  675. },
  676. initChartL4 () {
  677. let myChart = echarts.init(this.$refs['echartL4'])
  678. let option = {
  679. ..._.cloneDeep(this.commonOption),
  680. series: [
  681. {
  682. name: '六定改革前各二级企业本部中层管理人数',
  683. type: 'bar',
  684. barWidth: 15,
  685. label: {
  686. normal: {
  687. show: true,
  688. position: 'top',
  689. textStyle: {
  690. color: '#69c0ff',
  691. fontStyle: 'normal',
  692. textAlign: 'left',
  693. fontSize: 16,
  694. },
  695. formatter: function (data) {
  696. if (data.name == '云时代') {
  697. return data.value
  698. } else {
  699. return ''
  700. }
  701. }
  702. }
  703. },
  704. itemStyle: {
  705. normal: {
  706. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  707. {
  708. offset: 0,
  709. color: '#69c0ff',
  710. },
  711. {
  712. offset: 1,
  713. color: '#082550',
  714. },
  715. ]),
  716. },
  717. },
  718. data: dataL4[0],
  719. },
  720. {
  721. name: '当前各二级企业本部中层管理人数',
  722. type: 'bar',
  723. barWidth: 15,
  724. label: {
  725. normal: {
  726. show: true,
  727. position: 'top',
  728. textStyle: {
  729. color: '#6480f3',
  730. fontStyle: 'normal',
  731. textAlign: 'left',
  732. fontSize: 16,
  733. },
  734. formatter: function (data) {
  735. if (data.name == '云时代') {
  736. return data.value
  737. } else {
  738. return ''
  739. }
  740. }
  741. }
  742. },
  743. itemStyle: {
  744. normal: {
  745. color: params => {
  746. if (params.value > 0 && dataL4[2][params.dataIndex] || params.value > 0 && dataL4[0][params.dataIndex]) {
  747. return 'red'
  748. } else {
  749. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  750. {
  751. offset: 0,
  752. color: '#6480f3',
  753. },
  754. {
  755. offset: 1,
  756. color: '#082550',
  757. },
  758. ])
  759. }
  760. },
  761. },
  762. },
  763. data: dataL4[1],
  764. },
  765. {
  766. name: '各二级企业本部中层管理人数核定上限',
  767. type: 'line',
  768. yAxisIndex: 1,
  769. smooth: true, //平滑曲线显示
  770. showAllSymbol: true, //显示所有图形。
  771. symbol: 'circle', //标记的图形为实心圆
  772. symbolSize: 8, //标记的大小
  773. smooth: false,
  774. label: {
  775. normal: {
  776. show: true,
  777. position: 'top',
  778. textStyle: {
  779. color: '#fbe138',
  780. fontStyle: 'normal',
  781. textAlign: 'left',
  782. fontSize: 16,
  783. },
  784. formatter: function (data) {
  785. if (data.name == '云时代') {
  786. return data.value
  787. } else {
  788. return ''
  789. }
  790. }
  791. }
  792. },
  793. itemStyle: {
  794. //折线拐点标志的样式
  795. color: '#fbe138',
  796. borderColor: '#fbe138',
  797. width: 2,
  798. shadowColor: '#fbe138',
  799. shadowBlur: 4,
  800. },
  801. lineStyle: {
  802. color: '#fbe138',
  803. width: 2,
  804. },
  805. data: dataL4[2],
  806. },
  807. ],
  808. }
  809. option.title.text = '各二级企业本部中层管理人数'
  810. option.legend.data = ['六定改革前各二级企业本部中层管理人数', '当前各二级企业本部中层管理人数', '各二级企业本部中层管理人数核定上限']
  811. option.legend.show = true
  812. option.yAxis.push({
  813. splitLine: {
  814. show: false,
  815. },
  816. axisLine: {
  817. show: false,
  818. },
  819. })
  820. myChart.setOption(option)
  821. },
  822. initChartL5 () {
  823. let myChart = echarts.init(this.$refs['echartL5'])
  824. let option = {
  825. ..._.cloneDeep(this.commonOption),
  826. series: [
  827. {
  828. name: '各二级企业总人数',
  829. type: 'bar',
  830. barWidth: 15,
  831. itemStyle: {
  832. normal: {
  833. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  834. {
  835. offset: 0,
  836. color: '#69c0ff',
  837. },
  838. {
  839. offset: 1,
  840. color: '#082550',
  841. },
  842. ]),
  843. },
  844. },
  845. data: dataL5[0],
  846. },
  847. {
  848. name: '去年同期人数变化率',
  849. type: 'line',
  850. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  851. smooth: true, //平滑曲线显示
  852. showAllSymbol: true, //显示所有图形。
  853. symbol: 'circle', //标记的图形为实心圆
  854. symbolSize: 8, //标记的大小
  855. smooth: false,
  856. itemStyle: {
  857. //折线拐点标志的样式
  858. color: '#b889ea',
  859. borderColor: '#b889ea',
  860. width: 2,
  861. shadowColor: '#b889ea',
  862. shadowBlur: 4,
  863. },
  864. lineStyle: {
  865. color: '#b889ea',
  866. width: 2,
  867. },
  868. data: dataL5[1],
  869. },
  870. ],
  871. }
  872. option.title.text = '各二级企业总人数'
  873. option.legend.data = ['各二级企业总人数', '去年同期人数变化率']
  874. option.legend.show = true
  875. option.tooltip = {
  876. trigger: 'axis',
  877. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  878. }
  879. option.yAxis.push({
  880. type: 'value',
  881. axisLine: {
  882. show: false,
  883. },
  884. splitLine: {
  885. show: false,
  886. },
  887. axisLabel: {
  888. show: true,
  889. formatter: '{value} %',
  890. textStyle: {
  891. color: 'rgba(250,250,250,0.6)',
  892. },
  893. },
  894. })
  895. myChart.setOption(option)
  896. },
  897. initChartL6 () {
  898. let myChart = echarts.init(this.$refs['echartL6'])
  899. let option = {
  900. ..._.cloneDeep(this.commonOption),
  901. series: [
  902. {
  903. name: '当前各二级企业本部员额数',
  904. type: 'bar',
  905. barWidth: 15,
  906. itemStyle: {
  907. normal: {
  908. barBorderRadius: [10, 10, 0, 0],
  909. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  910. {
  911. offset: 0,
  912. color: '#43ede3',
  913. },
  914. {
  915. offset: 1,
  916. color: '#082550',
  917. },
  918. ]),
  919. },
  920. },
  921. data: dataL6[0],
  922. },
  923. {
  924. name: '六定改革前各二级企业本部员额数',
  925. type: 'bar',
  926. barWidth: 15,
  927. itemStyle: {
  928. normal: {
  929. barBorderRadius: [10, 10, 0, 0],
  930. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  931. {
  932. offset: 0,
  933. color: '#43ede3',
  934. },
  935. {
  936. offset: 1,
  937. color: '#082550',
  938. },
  939. ]),
  940. },
  941. },
  942. data: dataL6[2],
  943. },
  944. {
  945. name: '各二级企业本部员额数核定上限值',
  946. type: 'line',
  947. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  948. smooth: true, //平滑曲线显示
  949. showAllSymbol: true, //显示所有图形。
  950. symbol: 'circle', //标记的图形为实心圆
  951. symbolSize: 8, //标记的大小
  952. smooth: false,
  953. itemStyle: {
  954. //折线拐点标志的样式
  955. color: '#fbe138',
  956. borderColor: '#fbe138',
  957. width: 2,
  958. shadowColor: '#fbe138',
  959. shadowBlur: 4,
  960. },
  961. lineStyle: {
  962. color: '#fbe138',
  963. width: 2,
  964. },
  965. data: dataL6[1],
  966. },
  967. ],
  968. }
  969. option.title.text = '各二级企业本部员额数'
  970. option.legend.data = ['当前各二级企业本部员额数', '六定改革前各二级企业本部员额数','各二级企业本部员额数核定上限值']
  971. option.legend.show = true
  972. option.yAxis.push({
  973. splitLine: {
  974. show: false,
  975. },
  976. axisLine: {
  977. show: false,
  978. },
  979. })
  980. myChart.setOption(option)
  981. },
  982. initChartL7 () {
  983. let myChart = echarts.init(this.$refs['echartL7'])
  984. let option = {
  985. ..._.cloneDeep(this.commonOption),
  986. color: ['#43ede3'],
  987. series: [
  988. {
  989. name: '人数变化',
  990. type: 'line',
  991. barWidth: 15,
  992. showAllSymbol: true, //显示所有图形。
  993. symbol: 'circle', //标记的图形为实心圆
  994. symbolSize: 15, //标记的大小
  995. smooth: false,
  996. itemStyle: {
  997. color: params => {
  998. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  999. return 'red'
  1000. } else {
  1001. return '#43ede3'
  1002. }
  1003. },
  1004. },
  1005. lineStyle: {
  1006. color: '#43ede3',
  1007. width: 2,
  1008. },
  1009. // markLine: {
  1010. // data: [{ type: 'average', name: 'Avg' }],
  1011. // },
  1012. data: dataL7[0],
  1013. },
  1014. {
  1015. name: '全员劳动生产率同比变化',
  1016. type: 'line',
  1017. barWidth: 15,
  1018. // yAxisIndex: 1,
  1019. showAllSymbol: true, //显示所有图形。
  1020. symbol: 'circle', //标记的图形为实心圆
  1021. symbolSize: 15, //标记的大小
  1022. itemStyle: {
  1023. //折线拐点标志的样式
  1024. color: '#b889ea',
  1025. borderColor: '#b889ea',
  1026. width: 2,
  1027. shadowColor: '#b889ea',
  1028. shadowBlur: 4,
  1029. },
  1030. // itemStyle: {
  1031. // normal: {
  1032. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1033. // {
  1034. // offset: 0,
  1035. // color: '#b889ea',
  1036. // },
  1037. // {
  1038. // offset: 1,
  1039. // color: '#b889ea',
  1040. // },
  1041. // ]),
  1042. // },
  1043. // },
  1044. data: dataL7[1],
  1045. },
  1046. {
  1047. type: 'effectScatter',
  1048. coordinateSystem: 'cartesian2d',
  1049. showEffectOn: 'render',
  1050. rippleEffect: {
  1051. period: 10,
  1052. scale: 4,
  1053. brushType: 'stroke'
  1054. },
  1055. hoverAnimation: true,
  1056. itemStyle: {
  1057. color: 'red'
  1058. },
  1059. lineStyle: {
  1060. color: '#43ede3',
  1061. width: 2,
  1062. },
  1063. data: this.twinkle7,
  1064. },
  1065. ],
  1066. }
  1067. option.title.text = '人数变化和全员劳动生产率变化率分析'
  1068. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  1069. option.legend.show = true
  1070. option.tooltip = {
  1071. trigger: 'axis',
  1072. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1073. }
  1074. option.yAxis = [
  1075. {
  1076. type: 'value',
  1077. axisLine: {
  1078. show: false,
  1079. },
  1080. splitLine: {
  1081. show: true,
  1082. lineStyle: {
  1083. color: '#68b4dd66',
  1084. type: 'dashed',
  1085. },
  1086. },
  1087. axisLabel: {
  1088. show: true,
  1089. formatter: '{value} %',
  1090. textStyle: {
  1091. color: 'rgba(250,250,250,0.6)',
  1092. },
  1093. },
  1094. },
  1095. {
  1096. type: 'value',
  1097. axisLine: {
  1098. show: false,
  1099. },
  1100. splitLine: {
  1101. show: false,
  1102. },
  1103. axisLabel: {
  1104. show: true,
  1105. formatter: '{value} %',
  1106. textStyle: {
  1107. color: 'rgba(250,250,250,0.6)',
  1108. },
  1109. },
  1110. }
  1111. ]
  1112. myChart.setOption(option)
  1113. },
  1114. initChartL8 () {
  1115. let myChart = echarts.init(this.$refs['echartL8'])
  1116. let option = {
  1117. ..._.cloneDeep(this.commonOption),
  1118. color: ['#43ede3'],
  1119. series: [
  1120. {
  1121. name: '人数变化',
  1122. type: 'line',
  1123. barWidth: 15,
  1124. showAllSymbol: true, //显示所有图形。
  1125. symbol: 'circle', //标记的图形为实心圆
  1126. symbolSize: 15, //标记的大小
  1127. smooth: false,
  1128. itemStyle: {
  1129. color: params => {
  1130. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1131. return 'red'
  1132. } else {
  1133. return '#43ede3'
  1134. }
  1135. },
  1136. },
  1137. lineStyle: {
  1138. color: '#43ede3',
  1139. width: 2,
  1140. },
  1141. // markLine: {
  1142. // data: [{ type: 'average', name: 'Avg' }],
  1143. // },
  1144. data: dataL8[0],
  1145. },
  1146. {
  1147. name: '人工成本利润率同比变化',
  1148. type: 'line',
  1149. barWidth: 15,
  1150. // yAxisIndex: 1,
  1151. showAllSymbol: true, //显示所有图形。
  1152. symbol: 'circle', //标记的图形为实心圆
  1153. symbolSize: 15, //标记的大小
  1154. smooth: false,
  1155. itemStyle: {
  1156. //折线拐点标志的样式
  1157. color: '#b889ea',
  1158. borderColor: '#b889ea',
  1159. width: 2,
  1160. shadowColor: '#b889ea',
  1161. shadowBlur: 4,
  1162. },
  1163. data: dataL8[1],
  1164. },
  1165. {
  1166. type: 'effectScatter',
  1167. coordinateSystem: 'cartesian2d',
  1168. showEffectOn: 'render',
  1169. rippleEffect: {
  1170. period: 10,
  1171. scale: 4,
  1172. brushType: 'stroke'
  1173. },
  1174. hoverAnimation: true,
  1175. itemStyle: {
  1176. color: 'red'
  1177. },
  1178. lineStyle: {
  1179. color: '#43ede3',
  1180. width: 2,
  1181. },
  1182. data: this.twinkle8,
  1183. },
  1184. ],
  1185. }
  1186. option.title.text = '人数变化和人工利润率变化分析'
  1187. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1188. option.legend.show = true
  1189. option.tooltip = {
  1190. trigger: 'axis',
  1191. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1192. }
  1193. option.yAxis = [
  1194. {
  1195. type: 'value',
  1196. axisLine: {
  1197. show: false,
  1198. },
  1199. splitLine: {
  1200. show: true,
  1201. lineStyle: {
  1202. color: '#68b4dd66',
  1203. type: 'dashed',
  1204. },
  1205. },
  1206. axisLabel: {
  1207. show: true,
  1208. formatter: '{value} %',
  1209. textStyle: {
  1210. color: 'rgba(250,250,250,0.6)',
  1211. },
  1212. },
  1213. },
  1214. {
  1215. type: 'value',
  1216. axisLine: {
  1217. show: false,
  1218. },
  1219. splitLine: {
  1220. show: false,
  1221. },
  1222. axisLabel: {
  1223. show: true,
  1224. formatter: '{value} %',
  1225. textStyle: {
  1226. color: 'rgba(250,250,250,0.6)',
  1227. },
  1228. },
  1229. }
  1230. ]
  1231. myChart.setOption(option)
  1232. },
  1233. // 中间图表---------------------------------------------开始
  1234. initChartC1 () {
  1235. let myChart = echarts.init(this.$refs['echartC1'])
  1236. let option = {
  1237. ..._.cloneDeep(this.commonOption),
  1238. color: ['#69c0ff'],
  1239. series: [
  1240. {
  1241. name: '全员劳动生产率(万/人)',
  1242. type: 'bar',
  1243. barWidth: 12,
  1244. smooth: true, //平滑曲线显示
  1245. showAllSymbol: true, //显示所有图形。
  1246. symbol: 'circle', //标记的图形为实心圆
  1247. symbolSize: 8, //标记的大小
  1248. smooth: false,
  1249. itemStyle: {
  1250. color: params => {
  1251. if (params.value < 0 && dataC1[1][params.dataIndex] < 0) {
  1252. return 'red'
  1253. } else if (params.value > this.echartC1.province) {
  1254. return 'green'
  1255. } else {
  1256. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1257. {
  1258. offset: 0,
  1259. color: '#69c0ff',
  1260. },
  1261. {
  1262. offset: 1,
  1263. color: '#082550',
  1264. },
  1265. ])
  1266. }
  1267. },
  1268. },
  1269. lineStyle: {
  1270. color: '#B889EA',
  1271. width: 2,
  1272. },
  1273. markLine: {
  1274. data: [
  1275. {
  1276. name: '省属企业平均水平',
  1277. yAxis: this.echartC1.national,
  1278. lineStyle: {
  1279. color: '#fff',
  1280. },
  1281. label: {
  1282. formatter: '{b}',
  1283. position: 'end',
  1284. padding: [20, 100, 10, 30],
  1285. color: '#fff',
  1286. },
  1287. },
  1288. {
  1289. name: '央企平均水平',
  1290. yAxis: this.echartC1.province,
  1291. lineStyle: {
  1292. color: '#fff',
  1293. },
  1294. label: {
  1295. formatter: '{b}',
  1296. position: 'end',
  1297. padding: [-4, 150, 10, 30],
  1298. color: '#fff',
  1299. },
  1300. },
  1301. ],
  1302. label: {
  1303. distance: [20, 8],
  1304. },
  1305. },
  1306. data: dataC1[0],
  1307. },
  1308. {
  1309. name: '全员劳动生产率同比变化',
  1310. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1311. type: 'line',
  1312. itemStyle: {
  1313. normal: {
  1314. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1315. {
  1316. offset: 0,
  1317. color: '#69c0ff',
  1318. },
  1319. {
  1320. offset: 1,
  1321. color: '#082550',
  1322. },
  1323. ]),
  1324. },
  1325. },
  1326. data: dataC1[1],
  1327. },
  1328. ],
  1329. }
  1330. option.title.text = '各二级企业全员劳动生产率'
  1331. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  1332. option.legend.show = true
  1333. option.grid.right = '15%'
  1334. option.tooltip = {
  1335. trigger: 'axis',
  1336. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1337. }
  1338. option.yAxis.push({
  1339. type: 'value',
  1340. axisLine: {
  1341. show: false,
  1342. },
  1343. splitLine: {
  1344. show: false,
  1345. },
  1346. axisLabel: {
  1347. show: true,
  1348. formatter: '{value} %',
  1349. textStyle: {
  1350. color: 'rgba(250,250,250,0.6)',
  1351. },
  1352. },
  1353. })
  1354. myChart.setOption(option)
  1355. tools.loopShowTooltip(myChart, option, {
  1356. nterval: 2000,
  1357. loopSeries: true,
  1358. });
  1359. },
  1360. initChartC2 () {
  1361. let myChart = echarts.init(this.$refs['echartC2'])
  1362. let option = {
  1363. ..._.cloneDeep(this.commonOption),
  1364. color: ['#69c0ff'],
  1365. series: [
  1366. {
  1367. name: '人工成本利润率同比变化',
  1368. type: 'line',
  1369. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1370. smooth: true, //平滑曲线显示
  1371. showAllSymbol: true, //显示所有图形。
  1372. symbol: 'circle', //标记的图形为实心圆
  1373. symbolSize: 8, //标记的大小
  1374. smooth: false,
  1375. itemStyle: {
  1376. //折线拐点标志的样式
  1377. color: '#B889EA',
  1378. borderColor: '#B889EA',
  1379. width: 2,
  1380. shadowColor: '#B889EA',
  1381. shadowBlur: 4,
  1382. },
  1383. lineStyle: {
  1384. color: '#B889EA',
  1385. width: 2,
  1386. },
  1387. data: dataC2[0],
  1388. },
  1389. {
  1390. name: '人工成本利润率',
  1391. type: 'bar',
  1392. barWidth: 15,
  1393. itemStyle: {
  1394. color: params => {
  1395. if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
  1396. return 'red'
  1397. } else if (params.value > this.echartC2.province) {
  1398. return 'green'
  1399. } else {
  1400. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1401. {
  1402. offset: 0,
  1403. color: '#69c0ff',
  1404. },
  1405. {
  1406. offset: 1,
  1407. color: '#082550',
  1408. },
  1409. ])
  1410. }
  1411. },
  1412. },
  1413. data: dataC2[1],
  1414. markLine: {
  1415. data: [
  1416. {
  1417. name: '省属企业平均水平',
  1418. yAxis: this.echartC2.province,
  1419. lineStyle: {
  1420. color: '#fff',
  1421. },
  1422. label: {
  1423. formatter: '{b}',
  1424. position: 'end',
  1425. padding: [24, 100, 10, 30],
  1426. color: '#fff',
  1427. },
  1428. },
  1429. {
  1430. name: '央企平均水平',
  1431. yAxis: this.echartC2.national,
  1432. lineStyle: {
  1433. color: '#fff',
  1434. },
  1435. label: {
  1436. formatter: '{b}',
  1437. position: 'end',
  1438. padding: [-24, 200, 10, 30],
  1439. color: '#fff',
  1440. },
  1441. },
  1442. ],
  1443. label: {
  1444. distance: [20, 8],
  1445. },
  1446. },
  1447. },
  1448. ],
  1449. }
  1450. option.title.text = '各二级企业人工成本利润率'
  1451. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  1452. option.legend.show = true
  1453. option.tooltip = {
  1454. trigger: 'axis',
  1455. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1456. }
  1457. option.grid.right = '15%'
  1458. option.yAxis = [
  1459. {
  1460. axisLine: {
  1461. show: false,
  1462. },
  1463. splitLine: {
  1464. show: true,
  1465. lineStyle: {
  1466. color: '#68b4dd66',
  1467. type: 'dashed',
  1468. },
  1469. },
  1470. axisLabel: {
  1471. show: true,
  1472. formatter: '{value} %',
  1473. textStyle: {
  1474. color: 'rgba(250,250,250,0.6)',
  1475. },
  1476. },
  1477. },
  1478. {
  1479. splitLine: {
  1480. show: false,
  1481. },
  1482. axisLine: {
  1483. show: false,
  1484. },
  1485. axisLabel: {
  1486. show: true,
  1487. formatter: '{value} %',
  1488. textStyle: {
  1489. color: 'rgba(250,250,250,0.6)',
  1490. },
  1491. },
  1492. }
  1493. ]
  1494. myChart.setOption(option)
  1495. tools.loopShowTooltip(myChart, option, {
  1496. nterval: 2000,
  1497. loopSeries: true,
  1498. });
  1499. },
  1500. // 右侧图表---------------------------------------------开始
  1501. initChartR1 () {
  1502. let myChart = echarts.init(this.$refs['echartR1'])
  1503. let commonOptions = this.commonOption
  1504. commonOptions.yAxis[0].splitNumber = 2
  1505. let option = {
  1506. ..._.cloneDeep(commonOptions),
  1507. series: [
  1508. {
  1509. name: '招聘需求公告次数',
  1510. type: 'bar',
  1511. barWidth: 15,
  1512. itemStyle: {
  1513. normal: {
  1514. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1515. {
  1516. offset: 0,
  1517. color: '#69c0ff',
  1518. },
  1519. {
  1520. offset: 1,
  1521. color: '#082550',
  1522. },
  1523. ]),
  1524. },
  1525. },
  1526. data: dataR1[0],
  1527. },
  1528. {
  1529. name: '招聘需求公告累计招聘人次',
  1530. type: 'bar',
  1531. barWidth: 15,
  1532. itemStyle: {
  1533. normal: {
  1534. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1535. {
  1536. offset: 0,
  1537. color: '#43ede3',
  1538. },
  1539. {
  1540. offset: 1,
  1541. color: '#082550',
  1542. },
  1543. ]),
  1544. },
  1545. },
  1546. data: dataR1[1],
  1547. },
  1548. ],
  1549. }
  1550. option.title.text = '各二级企业招聘需求公告人次情况'
  1551. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1552. option.legend.show = true
  1553. option.yAxis.push({
  1554. type: 'value',
  1555. splitLine: {
  1556. show: false,
  1557. },
  1558. axisLine: {
  1559. show: false,
  1560. },
  1561. })
  1562. myChart.setOption(option)
  1563. },
  1564. initChartR2 () {
  1565. let myChart = echarts.init(this.$refs['echartR2'])
  1566. let commonOptions = this.commonOption
  1567. commonOptions.yAxis[0].splitNumber = 2
  1568. let option = {
  1569. ..._.cloneDeep(commonOptions),
  1570. series: [
  1571. {
  1572. name: '录用结果公示次数',
  1573. type: 'bar',
  1574. barWidth: 15,
  1575. itemStyle: {
  1576. normal: {
  1577. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1578. {
  1579. offset: 0,
  1580. color: '#69c0ff',
  1581. },
  1582. {
  1583. offset: 1,
  1584. color: '#082550',
  1585. },
  1586. ]),
  1587. },
  1588. },
  1589. data: dataR2[0],
  1590. },
  1591. {
  1592. name: '录用结果公示累计公示人数',
  1593. type: 'bar',
  1594. barWidth: 15,
  1595. itemStyle: {
  1596. normal: {
  1597. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1598. {
  1599. offset: 0,
  1600. color: '#45DAD1',
  1601. },
  1602. {
  1603. offset: 1,
  1604. color: '#082550',
  1605. },
  1606. ]),
  1607. },
  1608. },
  1609. data: dataR2[1],
  1610. },
  1611. ],
  1612. }
  1613. option.title.text = '各二级企业录用结果公示人次'
  1614. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1615. option.legend.show = true
  1616. option.yAxis.push({
  1617. type: 'value',
  1618. splitLine: {
  1619. show: false,
  1620. },
  1621. axisLine: {
  1622. show: false,
  1623. },
  1624. })
  1625. myChart.setOption(option)
  1626. },
  1627. initChartR3 () {
  1628. let myChart = echarts.init(this.$refs['echartR3'])
  1629. let commonOptions = this.commonOption
  1630. commonOptions.yAxis[0].splitNumber = 2
  1631. let option = {
  1632. ..._.cloneDeep(commonOptions),
  1633. color: ['#45DAD1'],
  1634. series: [
  1635. {
  1636. name: '2022年利润(万)',
  1637. type: 'bar',
  1638. barWidth: 15,
  1639. itemStyle: {
  1640. normal: {
  1641. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1642. {
  1643. offset: 0,
  1644. color: '#69c0ff',
  1645. },
  1646. {
  1647. offset: 1,
  1648. color: '#082550',
  1649. },
  1650. ]),
  1651. },
  1652. },
  1653. data: dataR3[0],
  1654. },
  1655. {
  1656. name: '2022年累计招聘数',
  1657. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1658. type: 'bar',
  1659. barWidth: 15,
  1660. itemStyle: {
  1661. color: params => {
  1662. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1663. return 'red'
  1664. } else {
  1665. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1666. {
  1667. offset: 0,
  1668. color: '#45DAD1',
  1669. },
  1670. {
  1671. offset: 1,
  1672. color: '#082550',
  1673. },
  1674. ])
  1675. }
  1676. },
  1677. },
  1678. data: dataR3[1],
  1679. },
  1680. ],
  1681. }
  1682. option.title.text = '各二级企业年利润与招聘情况分析'
  1683. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1684. option.legend.show = true
  1685. option.yAxis.push({
  1686. type: 'value',
  1687. splitLine: {
  1688. show: false,
  1689. },
  1690. axisLine: {
  1691. show: false,
  1692. },
  1693. axisLabel: {
  1694. show: true,
  1695. formatter: '{value} ',
  1696. textStyle: {
  1697. color: 'rgba(250,250,250,0.6)',
  1698. },
  1699. },
  1700. })
  1701. myChart.setOption(option)
  1702. },
  1703. initChartR4 () {
  1704. let myChart = echarts.init(this.$refs['echartR4'])
  1705. let commonOptions = this.commonOption
  1706. commonOptions.yAxis[0].splitNumber = 2
  1707. let option = {
  1708. ..._.cloneDeep(commonOptions),
  1709. series: [
  1710. {
  1711. name: '2022年退出人数和2023年当前累计退出人数之和',
  1712. type: 'bar',
  1713. barWidth: 15,
  1714. itemStyle: {
  1715. normal: {
  1716. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1717. {
  1718. offset: 0,
  1719. color: '#69c0ff',
  1720. },
  1721. {
  1722. offset: 1,
  1723. color: '#082550',
  1724. },
  1725. ]),
  1726. },
  1727. },
  1728. data: dataR4[0],
  1729. },
  1730. {
  1731. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  1732. type: 'bar',
  1733. barWidth: 15,
  1734. itemStyle: {
  1735. normal: {
  1736. color: params => {
  1737. if (params.value / dataR4[0][params.dataIndex] > 3) {
  1738. return 'green'
  1739. } else if (params.value / 2 < dataR4[0][params.dataIndex]) {
  1740. return 'yellow'
  1741. }
  1742. else {
  1743. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1744. {
  1745. offset: 0,
  1746. color: '#6480f3',
  1747. },
  1748. {
  1749. offset: 1,
  1750. color: '#082550',
  1751. },
  1752. ])
  1753. }
  1754. },
  1755. },
  1756. },
  1757. data: dataR4[1],
  1758. },
  1759. ],
  1760. }
  1761. option.title.text = '各省属企业"退二进一"完成情况'
  1762. option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
  1763. option.legend.show = true
  1764. option.yAxis[0] = {
  1765. //type: 'log',
  1766. //min: 1,
  1767. //logBase: 3,
  1768. axisLine: {
  1769. show: false,
  1770. },
  1771. splitLine: {
  1772. show: true,
  1773. lineStyle: {
  1774. color: '#68b4dd66',
  1775. type: 'dashed',
  1776. },
  1777. },
  1778. axisLabel: {
  1779. show: true,
  1780. formatter: function (value) {
  1781. return value === 1 ? 0 : value
  1782. },
  1783. textStyle: {
  1784. color: 'rgba(250,250,250,0.6)',
  1785. },
  1786. },
  1787. }
  1788. myChart.setOption(option)
  1789. },
  1790. initChartR5 () {
  1791. let myChart = echarts.init(this.$refs['echartR5'])
  1792. let option = {
  1793. ..._.cloneDeep(this.commonOption),
  1794. series: [
  1795. {
  1796. name: '去年同期在岗职工平均薪酬',
  1797. type: 'bar',
  1798. barWidth: 15,
  1799. itemStyle: {
  1800. normal: {
  1801. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1802. {
  1803. offset: 0,
  1804. color: '#6682F5',
  1805. },
  1806. {
  1807. offset: 1,
  1808. color: '#082550',
  1809. },
  1810. ]),
  1811. },
  1812. },
  1813. data: dataR5[1],
  1814. },
  1815. {
  1816. name: '在岗职工平均薪酬',
  1817. type: 'bar',
  1818. barWidth: 15,
  1819. itemStyle: {
  1820. normal: {
  1821. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1822. {
  1823. offset: 0,
  1824. color: '#69c0ff',
  1825. },
  1826. {
  1827. offset: 1,
  1828. color: '#082550',
  1829. },
  1830. ]),
  1831. },
  1832. },
  1833. data: dataR5[0],
  1834. },
  1835. ],
  1836. }
  1837. option.title.text = '各二级企业在岗职工平均薪酬'
  1838. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1839. option.legend.show = true
  1840. option.yAxis.push({
  1841. type: 'value',
  1842. splitLine: {
  1843. show: false,
  1844. },
  1845. axisLine: {
  1846. show: false,
  1847. },
  1848. })
  1849. myChart.setOption(option)
  1850. },
  1851. initChartR6 () {
  1852. let myChart = echarts.init(this.$refs['echartR6'])
  1853. let option = {
  1854. ..._.cloneDeep(this.commonOption),
  1855. color: ['#69c0ff'],
  1856. series: [
  1857. {
  1858. name: '2022年利润累计涨幅率',
  1859. type: 'line',
  1860. smooth: true, //平滑曲线显示
  1861. showAllSymbol: true, //显示所有图形。
  1862. symbol: 'circle', //标记的图形为实心圆
  1863. symbolSize: 8, //标记的大小
  1864. smooth: false,
  1865. itemStyle: {
  1866. //折线拐点标志的样式
  1867. color: '#B889EA',
  1868. borderColor: '#B889EA',
  1869. width: 2,
  1870. shadowColor: '#B889EA',
  1871. shadowBlur: 4,
  1872. },
  1873. lineStyle: {
  1874. color: '#B889EA',
  1875. width: 2,
  1876. },
  1877. data: dataR6[0],
  1878. },
  1879. {
  1880. name: '2022年薪酬累计涨幅率',
  1881. type: 'line',
  1882. barWidth: 15,
  1883. yAxisIndex: 1,
  1884. itemStyle: {
  1885. color: params => {
  1886. if (params.value > 0 && dataR6[0][params.dataIndex] < 0) {
  1887. return 'yellow'
  1888. } else {
  1889. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1890. {
  1891. offset: 0,
  1892. color: '#69c0ff',
  1893. },
  1894. {
  1895. offset: 1,
  1896. color: '#082550',
  1897. },
  1898. ])
  1899. }
  1900. },
  1901. },
  1902. data: dataR6[1],
  1903. },
  1904. {
  1905. type: 'effectScatter',
  1906. coordinateSystem: 'cartesian2d',
  1907. showEffectOn: 'render',
  1908. rippleEffect: {
  1909. period: 10,
  1910. scale: 4,
  1911. brushType: 'stroke'
  1912. },
  1913. hoverAnimation: true,
  1914. itemStyle: {
  1915. color: 'red'
  1916. },
  1917. lineStyle: {
  1918. color: '#43ede3',
  1919. width: 2,
  1920. },
  1921. data: this.twinkleR6,
  1922. },
  1923. ],
  1924. }
  1925. option.title.text = '各二级企业利润与薪酬变动情况'
  1926. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1927. option.tooltip = {
  1928. trigger: 'axis',
  1929. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1930. }
  1931. option.yAxis = [
  1932. {
  1933. max: function (value) {
  1934. if (Math.abs(value.max) > Math.abs(value.min)) {
  1935. return (Math.abs(value.max) * 1.2).toFixed(2);
  1936. } else {
  1937. return (Math.abs(value.min) * 1.2).toFixed(2);
  1938. }
  1939. },
  1940. min: function (value) {
  1941. if (Math.abs(value.max) > Math.abs(value.min)) {
  1942. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1943. } else {
  1944. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1945. }
  1946. },
  1947. type: 'value',
  1948. axisLine: {
  1949. show: false,
  1950. },
  1951. splitLine: {
  1952. show: true,
  1953. lineStyle: {
  1954. color: '#68b4dd66',
  1955. type: 'dashed',
  1956. },
  1957. },
  1958. axisLabel: {
  1959. show: true,
  1960. formatter: '{value} %',
  1961. textStyle: {
  1962. color: 'rgba(250,250,250,0.6)',
  1963. },
  1964. },
  1965. },
  1966. {
  1967. max: function (value) {
  1968. if (Math.abs(value.max) > Math.abs(value.min)) {
  1969. return (Math.abs(value.max) * 1.2).toFixed(2);
  1970. } else {
  1971. return (Math.abs(value.min) * 1.2).toFixed(2);
  1972. }
  1973. },
  1974. min: function (value) {
  1975. if (Math.abs(value.max) > Math.abs(value.min)) {
  1976. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1977. } else {
  1978. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1979. }
  1980. },
  1981. type: 'value',
  1982. splitLine: {
  1983. show: false,
  1984. },
  1985. axisLine: {
  1986. show: false,
  1987. },
  1988. axisLabel: {
  1989. show: true,
  1990. formatter: '{value} %',
  1991. textStyle: {
  1992. color: 'rgba(250,250,250,0.6)',
  1993. },
  1994. },
  1995. }
  1996. ]
  1997. myChart.setOption(option)
  1998. },
  1999. initChartR7 () {
  2000. let myChart = echarts.init(this.$refs['echartR7'])
  2001. let option = {
  2002. ..._.cloneDeep(this.commonOption),
  2003. series: [
  2004. {
  2005. name: '全员绩效考核完成率',
  2006. type: 'bar',
  2007. barWidth: 15,
  2008. itemStyle: {
  2009. normal: {
  2010. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2011. {
  2012. offset: 0,
  2013. color: '#B889EA',
  2014. },
  2015. {
  2016. offset: 1,
  2017. color: '#082550',
  2018. },
  2019. ]),
  2020. },
  2021. },
  2022. data: dataR7[0],
  2023. },
  2024. ],
  2025. }
  2026. option.title.text = '各二级企业全员绩效考核'
  2027. // option.legend.data = ['劳动合同签约完成率', '目标值']
  2028. option.tooltip = {
  2029. trigger: 'axis',
  2030. formatter: '{a0}:{c0}' + '%'
  2031. },
  2032. option.yAxis[0].axisLabel = {
  2033. show: true,
  2034. formatter: '{value} %',
  2035. textStyle: {
  2036. color: 'rgba(250,250,250,0.6)',
  2037. },
  2038. }
  2039. myChart.setOption(option)
  2040. },
  2041. initChartR8 () {
  2042. let myChart = echarts.init(this.$refs['echartR8'])
  2043. let option = {
  2044. ..._.cloneDeep(this.commonOption),
  2045. series: [
  2046. {
  2047. name: '任期制考核完成率',
  2048. type: 'bar',
  2049. barWidth: 15,
  2050. itemStyle: {
  2051. normal: {
  2052. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2053. {
  2054. offset: 0,
  2055. color: '#43ede3',
  2056. },
  2057. {
  2058. offset: 1,
  2059. color: '#082550',
  2060. },
  2061. ]),
  2062. },
  2063. },
  2064. data: dataR8[0],
  2065. },
  2066. ],
  2067. }
  2068. option.title.text = '各二级企业任期制契约化完成率'
  2069. option.tooltip = {
  2070. trigger: 'axis',
  2071. formatter: '{a0}:{c0}' + '%'
  2072. },
  2073. option.yAxis[0].axisLabel = {
  2074. show: true,
  2075. formatter: '{value} %',
  2076. textStyle: {
  2077. color: 'rgba(250,250,250,0.6)',
  2078. },
  2079. }
  2080. myChart.setOption(option)
  2081. },
  2082. },
  2083. })