index2.js 74 KB

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