index3MT.js 76 KB

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