index2.js 59 KB

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