index4SY.js 72 KB

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