index2.js 73 KB

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