index2JNKG.js 73 KB

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