index4.js 60 KB

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