index2JNKG.js 73 KB

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