index3.js 76 KB

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