index3MT.js 62 KB

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