index2JNKG.js 73 KB

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