index2JNKG.js 69 KB

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