index4SY.js 72 KB

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