index3.js 76 KB

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