index2JNKG.js 72 KB

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