index4SY.js 74 KB

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