index2.js 70 KB

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