index4.js 73 KB

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