index4SY.js 74 KB

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