index2.js 60 KB

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