index4SY.js 72 KB

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