index.js 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887
  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. // paymentShow:false, // 定薪酬弹窗
  8. echartC1: {
  9. national: 100,
  10. province: 200
  11. },
  12. echartC2: {
  13. national: 100,
  14. province: 200
  15. },
  16. app_token: '',
  17. twinkle7: [],
  18. twinkle8: [],
  19. twinkleR6: [],
  20. showTip: false,
  21. showTip2: false,
  22. showTip3: false,
  23. showTip4: false,
  24. titleShow: false,
  25. tipNum: '',
  26. tipData: tipData,
  27. titleData: titleData,
  28. time: '',
  29. year: '2022',
  30. config1: {
  31. number: [100],
  32. content: '{nt}个',
  33. },
  34. centerData: '',
  35. storageRecordConfig: {
  36. header: ['', '公司名称', '工作情况'],
  37. headerBGC: '#05507b33',
  38. oddRowBGC: '#69c0ff0f',
  39. // waitTime: '50000',
  40. evenRowBGC: '',
  41. headerHeight: '40',
  42. columnWidth: [150, 150],
  43. rowNum: 4,
  44. align: ['right', 'center', 'center', 'center'],
  45. data: [
  46. ['<span class="lightOut"><span class=" light green "></span></span>', ' 山西焦煤 ', ' “退二进一”完成情况表现优秀 '],
  47. ['<span class="lightOut"><span class=" light green "></span></span>', ' 山西焦煤 ', ' 总部机构压减成效明显 '],
  48. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 总部人员压减成效突出 '],
  49. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 中层管理人数改革成效显著 '],
  50. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 管理级次压缩成效明显 '],
  51. ['<span class="lightOut"><span class=" light red "></span></span>', ' 华阳新材 ', ' 六定未按要求下穿到全级次企业 '],
  52. ['<span class="lightOut"><span class=" light green "></span></span>', ' 潞安化工 ', ' 全员劳动生产率提高明显 '],
  53. ['<span class="lightOut"><span class=" light green "></span></span>', ' 建投集团 ', ' 深入开展中层管理人员竞聘上岗 '],
  54. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华舰体育 ', ' 集团人数增长速度较快 '],
  55. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华舰体育 ', ' 人员增速显著高于全员劳动生产率增速 '],
  56. ['<span class="lightOut"><span class=" light green "></span></span>', ' 国际能源 ', ' 全员劳动生产率增速显著高于人员增速 '],
  57. ['<span class="lightOut"><span class=" light green "></span></span>', ' 山西焦煤 ', ' 人工成本利润率增长且总人数下降 '],
  58. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 人工成本利润率增长且总人数下降 '],
  59. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华阳新材 ', ' 人工成本利润率增长且总人数下降 '],
  60. ['<span class="lightOut"><span class=" light green "></span></span>', ' 太重集团 ', ' 人工成本利润率增长且总人数下降 '],
  61. ['<span class="lightOut"><span class=" light green "></span></span>', ' 国际能源 ', ' 人工成本利润率增长且总人数下降 '],
  62. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华远陆港 ', ' 人工成本利润率增长且总人数下降 '],
  63. ['<span class="lightOut"><span class=" light green "></span></span>', ' 交控集团 ', ' 人工成本利润率增长且总人数下降 '],
  64. ['<span class="lightOut"><span class=" light green "></span></span>', ' 云时代 ', ' 人工成本利润率增长且总人数下降 '],
  65. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 人工成本利润率显著降低 '],
  66. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 航产集团 ', ' 人工成本利润率显著降低 '],
  67. ['<span class="lightOut"><span class=" light red "></span></span>', ' 大地控股 ', ' 中层管理人员任命不符合六定要求 '],
  68. ['<span class="lightOut"><span class=" light green "></span></span>', ' 交控集团 ', ' “退二进一”完成情况表现优秀 '],
  69. ['<span class="lightOut"><span class=" light green "></span></span>', ' 太重集团 ', ' 开展管理人员末等调整和不胜任退出 '],
  70. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 华舰体育 ', ' 六定相关文件未按要求备案 '],
  71. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 六定相关文件未按要求备案 '],
  72. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 水控集团 ', ' 六定相关文件未按要求备案 '],
  73. ],
  74. },
  75. storageRecordConfig2: {
  76. header: ['', '企业名称', '预警内容', '累计未获取数据日期'],
  77. headerBGC: '#05507b33',
  78. oddRowBGC: '#05507b33',
  79. evenRowBGC: '',
  80. headerHeight: '40',
  81. columnWidth: [150],
  82. rowNum: 4,
  83. align: ['center', 'center', 'center', 'center', 'center'],
  84. data: [
  85. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华新燃气 ', ' 本季度数据更新及时准确 ', ' - '],
  86. ['<span class="lightOut"><span class=" light green "></span></span>', ' 云时代 ', ' 本季度数据更新及时准确 ', ' '],
  87. ['<span class="lightOut"><span class=" light red "></span></span>', ' 大地控股 ', ' 六定长效机制情况未更新 ', ' 30 '],
  88. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 建设投资 ', ' 六定长效机制12月数据未获取 ', ' 15 '],
  89. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 交控集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  90. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 太重集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  91. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  92. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 水务集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  93. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 航产集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  94. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 华舰体育 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  95. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 六定长效机制情况数据更新错误 ', ' - '],
  96. ]
  97. },
  98. companyList: companyList,
  99. commonOption: {
  100. title: {
  101. text: 'xxx',
  102. x: 'center',
  103. y: '3%',
  104. textStyle: {
  105. color: '#69C0FF',
  106. fontSize: 24,
  107. },
  108. },
  109. tooltip: {
  110. trigger: 'axis',
  111. textStyle: { fontSize: 18 },
  112. axisPointer: {
  113. type: 'cross',
  114. label: {
  115. fontSize: 18,
  116. },
  117. },
  118. },
  119. grid: {
  120. top: '22%',
  121. right: '5%',
  122. left: '8%',
  123. bottom: '20%',
  124. },
  125. legend: {
  126. data: '',
  127. top: '12%',
  128. right: '5%',
  129. textStyle: {
  130. color: 'rgba(250,250,250,0.6)',
  131. fontSize: 16,
  132. },
  133. },
  134. xAxis: {
  135. data: companyList.map(item => item.name),
  136. axisLine: {
  137. show: false, //隐藏X轴轴线
  138. lineStyle: {
  139. color: '#005094',
  140. width: 1,
  141. },
  142. },
  143. axisTick: {
  144. show: false, //隐藏X轴刻度
  145. },
  146. axisLabel: {
  147. show: true,
  148. rotate: 50,
  149. textStyle: {
  150. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  151. fontSize: 16,
  152. },
  153. },
  154. },
  155. yAxis: [
  156. {
  157. type: 'value',
  158. nameTextStyle: {
  159. color: '#ebf8ac',
  160. fontSize: 16,
  161. },
  162. splitLine: {
  163. show: true,
  164. lineStyle: {
  165. color: '#68b4dd66',
  166. type: 'dashed',
  167. },
  168. },
  169. axisLine: {
  170. show: false,
  171. },
  172. axisLabel: {
  173. show: true,
  174. textStyle: {
  175. color: 'rgba(250,250,250,0.6)',
  176. fontSize: 16,
  177. },
  178. },
  179. },
  180. ],
  181. },
  182. }
  183. },
  184. beforeMount () {
  185. },
  186. mounted () {
  187. if (!sessionStorage.getItem('accounts', this.accounts)) {
  188. window.location.href = './login/login.html'
  189. return
  190. }
  191. this.getAppToken()
  192. this.time = formatDate()
  193. this.timer = setInterval(() => {
  194. this.time = formatDate()
  195. }, 1000)
  196. this.centerData = data
  197. // this.generateEcharts()
  198. },
  199. beforeDestroy () {
  200. if (this.timer) {
  201. clearInterval(this.timer)
  202. }
  203. },
  204. methods: {
  205. // 获取token
  206. getAppToken () {
  207. let value = {
  208. // dev环境
  209. // "appId": "cockpitScreen",
  210. // "appSecuret": "JSCdpsjgl@123456",
  211. // "tenantid": "gydev",
  212. // "accountId": "1614416231203341312",
  213. // "language": "zh_CN"
  214. // SIT环境
  215. // "appId": "CockpitScreen",
  216. // "appSecuret": "JSCdpsjgl@539126",
  217. // "tenantid": "test",
  218. // "accountId": "1484008912330950656",
  219. // "language": "zh_CN"
  220. // UAT环境
  221. "appId": "CockpitScreen",
  222. "appSecuret": "JSCdpsjgl@539126",
  223. "tenantid": "uatierp",
  224. "accountId": "1490670568960163840",
  225. "language": "zh_CN"
  226. }
  227. post('/ierp/api/getAppToken.do', value).then(res => {
  228. this.app_token = res.data.app_token
  229. this.getAccessToken()
  230. })
  231. },
  232. // 获取AccessToken
  233. getAccessToken () {
  234. let value = {
  235. // dev环境
  236. // "user": "jiashicangjiekou",
  237. // "apptoken": this.app_token,
  238. // "tenantid": "gydev",
  239. // "accountId": "1614416231203341312",
  240. // "usertype": "UserName"
  241. // SIT环境
  242. // "user": "jiashicangjiekou",
  243. // "apptoken": this.app_token,
  244. // "tenantid": "test",
  245. // "accountId": "1484008912330950656",
  246. // "usertype": "UserName"
  247. // UAT环境
  248. "user": "jiashicangjiekou",
  249. "apptoken": this.app_token,
  250. "tenantid": "uatierp",
  251. "accountId": "1490670568960163840",
  252. "usertype": "UserName"
  253. }
  254. post('/ierp/api/login.do', value).then(res => {
  255. this.access_token = res.data.access_token
  256. // Promise.all([this.getData(), this.getInstitutional()])
  257. // .then((arr) => {
  258. // // 生成图表
  259. // this.generateEcharts()
  260. // })
  261. // .catch((err) => console.log(err));
  262. this.getInstitutional()
  263. })
  264. },
  265. // 获取组织机构
  266. getInstitutional () {
  267. return new Promise((resolve, err) => {
  268. let value = {
  269. access_token: this.access_token,
  270. "Data": {
  271. "paramType": "ORG",
  272. "orgNumber": "100000"
  273. }
  274. }
  275. post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
  276. this.companyList = res.data.map(item => {
  277. return { name: item.orgName, id: item.orgNumber, orgLogoNum: item.orgLogoNum }
  278. })
  279. this.commonOption.xAxis.data = this.companyList.map(item => item.name)
  280. this.getData()
  281. resolve(1);
  282. })
  283. });
  284. },
  285. generateEcharts () {
  286. this.initChartL1()
  287. this.initChartL2()
  288. this.initChartL3()
  289. this.initChartL4()
  290. this.initChartL5()
  291. this.initChartL6()
  292. this.initChartL7()
  293. this.initChartL8()
  294. // 中间图表
  295. this.initChartC1()
  296. this.initChartC2()
  297. // 右侧图表
  298. this.initChartR1()
  299. this.initChartR2()
  300. this.initChartR3()
  301. this.initChartR4()
  302. this.initChartR5()
  303. this.initChartR6()
  304. this.initChartR7()
  305. this.initChartR8()
  306. },
  307. getData () {
  308. return new Promise((resolve, err) => {
  309. let value = {
  310. access_token: this.access_token,
  311. "Data": {
  312. "paramType": "DATA",
  313. "orgNumber": "100000"
  314. }
  315. }
  316. post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
  317. res.orgData = res.data[0]
  318. // 定机构
  319. // 弹窗
  320. // return
  321. // 左侧图表
  322. // tipData.focus[0] = res.orgData.area1.keyPoint
  323. tipData.analysis[0] = res.orgData.area1.intAnalysis.map(item => item.analysis)
  324. //各省属企业总部机构数
  325. dataL1[1] = []
  326. dataL1[0] = []
  327. dataL1[2] = []
  328. res.orgData.area1.card1.forEach(item => {
  329. dataL1[1].push(item['ZBPZ0032'])
  330. dataL1[0].push(item['ZBPZ0042'])
  331. dataL1[2].push(item['ZBPZ0043'])
  332. })
  333. // 各省属企业共享服务中心/事业部数
  334. dataL2[0] = []
  335. dataL2[1] = []
  336. dataL2[2] = []
  337. res.orgData.area1.card2.forEach(item => {
  338. dataL2[1].push(item['ZBPZ0045'])
  339. dataL2[0].push(item['ZBPZ0024'])
  340. dataL2[2].push(item['ZBPZ0044'])
  341. })
  342. // 定职数
  343. // 弹窗
  344. // tipData.focus[1] = res.orgData.area2.keyPoint
  345. tipData.analysis[1] = res.orgData.area2.intAnalysis.map(item => item.analysis)
  346. // 各省属企业管理人员数
  347. dataL3[0] = []
  348. dataL3[1] = []
  349. res.orgData.area2.card1.forEach(item => {
  350. dataL3[0].push(item['ZBPZ0031'])
  351. dataL3[1].push(item['ZBPZ0049'])
  352. })
  353. // 各省属企业总部中层管理人数
  354. dataL4[1] = []
  355. dataL4[0] = []
  356. dataL4[2] = []
  357. res.orgData.area2.card2.forEach(item => {
  358. dataL4[1].push(item['ZBPZ0046'])
  359. dataL4[0].push(item['ZBPZ0047'])
  360. dataL4[2].push(item['ZBPZ0048'])
  361. })
  362. // 定员额
  363. // 弹窗
  364. // tipData.focus[2] = res.orgData.area3.keyPoint
  365. tipData.analysis[2] = res.orgData.area3.intAnalysis.map(item => item.analysis)
  366. // 各省属企业总人数
  367. dataL5[0] = []
  368. dataL5[1] = []
  369. res.orgData.area3.card1.forEach(item => {
  370. dataL5[0].push(item['ZBPZ0006'])
  371. dataL5[1].push(item['ZBPZ0050'])
  372. })
  373. // 各省属企业总部员额数
  374. dataL6[0] = []
  375. dataL6[1] = []
  376. dataL6[2] = []
  377. res.orgData.area3.card2.forEach(item => {
  378. dataL6[0].push(item['ZBPZ0033'])
  379. dataL6[1].push(item['ZBPZ0053'])
  380. dataL6[2].push(item['ZBPZ0052'])
  381. })
  382. // 人数变化和全员劳动生产率变化分析
  383. dataL7[0] = []
  384. dataL7[1] = []
  385. res.orgData.area3.card3.forEach(item => {
  386. dataL7[0].push(item['ZBPZ0050'])
  387. dataL7[1].push(item['ZBPZ0039'])
  388. })
  389. // 人数变化和人工成本利润率变化分析
  390. dataL8[0] = []
  391. dataL8[1] = []
  392. res.orgData.area3.card4.forEach(item => {
  393. dataL8[0].push(item['ZBPZ0050'])
  394. dataL8[1].push(item['ZBPZ0041'])
  395. })
  396. // 中间
  397. // 架岗人
  398. this.centerData.info.value1 = res.orgData.area7.ZBPZ0037
  399. this.centerData.info.value2 = res.orgData.area7.ZBPZ0038
  400. this.centerData.info.value3 = res.orgData.area7.ZBPZ0006
  401. // 六定改革成效
  402. this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0067
  403. this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0068
  404. this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0069
  405. this.centerData.changeInfo[2].value1 = res.orgData.area8.ZBPZ0074
  406. this.centerData.changeInfo[2].value2 = res.orgData.area8.ZBPZ0075
  407. this.centerData.changeInfo[2].value3 = res.orgData.area8.ZBPZ0076
  408. this.centerData.changeInfo[1].value1 = res.orgData.area8.ZBPZ0071
  409. this.centerData.changeInfo[1].value2 = res.orgData.area8.ZBPZ0072
  410. this.centerData.changeInfo[1].value3 = res.orgData.area8.ZBPZ0073
  411. // 核心指标监测
  412. // 弹窗
  413. // tipData.focus[3] = res.orgData.area9.keyPoint
  414. tipData.analysis[3] = res.orgData.area9.intAnalysis.map(item => item.analysis)
  415. // 劳动生产各省属企业全员率
  416. c1[0] = []
  417. c1[1] = []
  418. res.orgData.area9.card1.forEach(item => {
  419. c1[0].push(item['ZBPZ0035'])
  420. c1[1].push(item['ZBPZ0039'])
  421. })
  422. // 各省属企业人工成本利润率
  423. c2[1] = []
  424. c2[0] = []
  425. res.orgData.area9.card2.forEach(item => {
  426. c2[1].push(item['ZBPZ0040'])
  427. c2[0].push(item['ZBPZ0041'])
  428. })
  429. this.echartC1.national = res.orgData.area9.card1[0].ZBPZ0097
  430. this.echartC1.province = res.orgData.area9.card1[0].ZBPZ0096
  431. this.echartC2.national = res.orgData.area9.card2[0].ZBPZ0099
  432. this.echartC2.province = res.orgData.area9.card2[0].ZBPZ0098
  433. // 分析预警中心
  434. // 工作台分析
  435. this.storageRecordConfig.data = []
  436. res.orgData.area10.card1.forEach(item => {
  437. 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])
  438. })
  439. this.storageRecordConfig = { ...this.storageRecordConfig }
  440. // 数据库预警
  441. this.storageRecordConfig2.data = []
  442. res.orgData.area10.card2.forEach(item => {
  443. this.storageRecordConfig2.data.push(['<span class="lightOut"><span class="light ' + (item.lightsup === '0' ? 'red' : item.lightsup === '1' ? 'yellow' : 'green') + '"></span></span>', item.enterprise, item.warning, item.date])
  444. })
  445. this.storageRecordConfig2 = { ...this.storageRecordConfig2 }
  446. // 左边
  447. // 定机制
  448. // 弹窗
  449. // tipData.focus[4] = res.orgData.area4.keyPoint
  450. tipData.analysis[4] = res.orgData.area4.intAnalysis.map(item => item.analysis)
  451. // 各省属企业招聘需求公示人次
  452. dataR1[0] = []
  453. dataR1[1] = []
  454. res.orgData.area4.card1.forEach(item => {
  455. dataR1[0].push(item['ZBPZ0057'])
  456. dataR1[1].push(item['ZBPZ0058'])
  457. })
  458. // 各省属企业录用结果公示人次
  459. dataR2[0] = []
  460. dataR2[1] = []
  461. res.orgData.area4.card2.forEach(item => {
  462. dataR2[0].push(item['ZBPZ0059'])
  463. dataR2[1].push(item['ZBPZ0060'])
  464. })
  465. // 各省属企业年利润与当年累计招聘人数
  466. dataR3[0] = []
  467. dataR3[1] = []
  468. res.orgData.area4.card3.forEach(item => {
  469. dataR3[0].push(item['ZBPZ0054'])
  470. dataR3[1].push(item['ZBPZ0055'])
  471. })
  472. // 各省属企业"退二进一"完成情况
  473. dataR4[0] = []
  474. dataR4[1] = []
  475. res.orgData.area4.card4.forEach(item => {
  476. dataR4[0].push(item['ZBPZ0056'])
  477. dataR4[1].push(item['ZBPZ0055'])
  478. })
  479. // 定薪酬
  480. // 弹窗
  481. // tipData.focus[5] = res.orgData.area5.keyPoint
  482. tipData.analysis[5] = res.orgData.area5.intAnalysis.map(item => item.analysis)
  483. // 各省属企业在岗职工平均薪酬
  484. fjxdataL1[0] = []
  485. fjxdataL1[1] = []
  486. res.orgData.area5.card1.forEach(item => {
  487. fjxdataL1[0].push(item['ZBPZ0063'])
  488. fjxdataL1[1].push(item['ZBPZ0064'])
  489. })
  490. // 各省属企业利润与薪酬变动情况
  491. fjxdataL2[0] = []
  492. fjxdataL2[1] = []
  493. res.orgData.area5.card2.forEach(item => {
  494. fjxdataL2[0].push(item['ZBPZ0061'])
  495. fjxdataL2[1].push(item['ZBPZ0062'])
  496. })
  497. // 定任期
  498. // 弹窗
  499. // tipData.focus[5] = res.orgData.area6.keyPoint
  500. tipData.analysis[5] = res.orgData.area6.intAnalysis.map(item => item.analysis)
  501. // 各省属企业全员绩效考核
  502. fjxdataL3[0] = []
  503. res.orgData.area6.card1.forEach(item => {
  504. fjxdataL3[0].push(item['ZBPZ0066'])
  505. })
  506. // 各省属企业全员绩效考核
  507. fjxdataL4[0] = []
  508. res.orgData.area6.card2.forEach(item => {
  509. fjxdataL4[0].push(item['ZBPZ0065'])
  510. })
  511. // 数据整理
  512. dataL7[0].forEach((item, index) => {
  513. if (dataL7[1][index] < 0 && dataL7[0][index] > 0) {
  514. let obj = { value: [this.companyList[index].name, dataL7[0][index]], symbolSize: 15 }
  515. this.twinkle7.push(obj)
  516. }
  517. })
  518. // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  519. dataL8[0].forEach((item, index) => {
  520. if (dataL8[1][index] < 0 && dataL8[0][index] > 0) {
  521. let obj = { value: [this.companyList[index].name, dataL8[0][index]], symbolSize: 15 }
  522. this.twinkle8.push(obj)
  523. }
  524. })
  525. // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
  526. fjxdataL2[0].forEach((item, index) => {
  527. if (fjxdataL2[1][index] > 0 && fjxdataL2[0][index] < 0) {
  528. let obj = { value: [this.companyList[index].name, fjxdataL2[1][index]], symbolSize: 15 }
  529. this.twinkleR6.push(obj)
  530. }
  531. })
  532. this.generateEcharts()
  533. resolve(1)
  534. })
  535. });
  536. },
  537. handleTitleShow () {
  538. this.titleShow = true
  539. this.showTip = false
  540. this.showTip2 = false
  541. // this.paymentShow = false
  542. },
  543. // handlepaymentShow () {
  544. // this.paymentShow = true
  545. // this.titleShow = false
  546. // this.showTip = false
  547. // this.showTip2 = false
  548. // },
  549. showTipClose () {
  550. // this.paymentShow = false
  551. this.showTip = false
  552. this.showTip2 = false
  553. this.titleShow = false
  554. },
  555. handleShowTip (index, type) {
  556. if (type == 'analysis') {
  557. this.tipData = tipData.analysis
  558. } else if (type == 'focus') {
  559. this.tipData = tipData.focus
  560. } else if (type == 'topThree') {
  561. this.tipData = tipData.topThree
  562. } else if (type == 'totlePeople') {
  563. this.tipData = tipData.totlePeople
  564. } else if (type == 'beforeReform') {
  565. this.tipData = tipData.beforeReform
  566. } else if (type == 'reformRegistered') {
  567. this.tipData = tipData.reformRegistered
  568. } else if (type == 'reforAveRemuneration') {
  569. this.tipData = tipData.reforAveRemuneration
  570. }
  571. this.showTip2 = false
  572. this.showTip = true
  573. this.titleShow = false
  574. this.tipNum = index
  575. },
  576. handleShowTip2 (index) {
  577. this.showTip = false
  578. this.showTip2 = true
  579. this.titleShow = false
  580. this.tipNum = index
  581. },
  582. handleGoPage (id, name) {
  583. if (name == '晋能控股') {
  584. window.location.href = './index2JNKG.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
  585. } else {
  586. window.location.href = './index2.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
  587. }
  588. },
  589. numFormat (value) {
  590. if (!value) return '0'
  591. // var intPart = Number(value).toFixed(0) // 获取整数部分
  592. var intPart = parseInt(value)// 获取整数部分
  593. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  594. var floatPart = '.00' // 预定义小数部分
  595. var value2Array = value.toString().split('.')
  596. // =2表示数据有小数位
  597. if (value2Array.length === 2) {
  598. floatPart = value2Array[1].toString() // 拿到小数部分
  599. if (floatPart.length === 1) {
  600. // 补0
  601. return intPartFormat + '.' + floatPart + '0'
  602. } else {
  603. return intPartFormat + '.' + floatPart
  604. }
  605. } else {
  606. return intPartFormat
  607. }
  608. },
  609. initChartL1 () {
  610. let myChart = echarts.init(this.$refs['echartL1'])
  611. let option = {
  612. ..._.cloneDeep(this.commonOption),
  613. color: [
  614. {
  615. x: 0,
  616. y: 0,
  617. x2: 0,
  618. y2: 1,
  619. colorStops: [{
  620. offset: 0,
  621. color: '#5e7ae9',
  622. },
  623. {
  624. offset: 1,
  625. color: '#082550',
  626. },],
  627. }
  628. ],
  629. series: [
  630. {
  631. name: '本部机构数核定上限',
  632. type: 'line',
  633. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  634. smooth: true, //平滑曲线显示
  635. showAllSymbol: true, //显示所有图形。
  636. symbol: 'circle', //标记的图形为实心圆
  637. symbolSize: 8, //标记的大小
  638. smooth: false,
  639. itemStyle: {
  640. //折线拐点标志的样式
  641. color: '#fbe138',
  642. borderColor: '#fbe138',
  643. width: 2,
  644. shadowColor: '#fbe138',
  645. shadowBlur: 4,
  646. },
  647. lineStyle: {
  648. color: '#fbe138',
  649. width: 2,
  650. },
  651. data: dataL1[2],
  652. },
  653. {
  654. name: '六定改革前本部机构数',
  655. type: 'bar',
  656. barWidth: 15,
  657. itemStyle: {
  658. normal: {
  659. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  660. {
  661. offset: 0,
  662. color: '#43ede3',
  663. },
  664. {
  665. offset: 1,
  666. color: '#082550',
  667. },
  668. ]),
  669. },
  670. },
  671. data: dataL1[0],
  672. },
  673. {
  674. name: '当前各省属企业本部机构数',
  675. type: 'bar',
  676. barWidth: 15,
  677. itemStyle: {
  678. normal: {
  679. color: params => {
  680. if (params.value > dataL1[2][params.dataIndex]) {
  681. return 'red'
  682. } else {
  683. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  684. {
  685. offset: 0,
  686. color: '#5e7ae9',
  687. },
  688. {
  689. offset: 1,
  690. color: '#082550',
  691. },
  692. ])
  693. }
  694. },
  695. },
  696. },
  697. data: dataL1[1],
  698. },
  699. ],
  700. // tooltip: {
  701. // trigger: 'item',
  702. // position: 'top'
  703. // },
  704. }
  705. option.title.text = '各省属企业本部机构数'
  706. option.legend.data = ['六定改革前本部机构数', '当前各省属企业本部机构数', '本部机构数核定上限']
  707. option.yAxis.push({
  708. splitLine: {
  709. show: false,
  710. },
  711. axisLine: {
  712. show: false,
  713. },
  714. })
  715. myChart.setOption(option)
  716. },
  717. initChartL2 () {
  718. let myChart = echarts.init(this.$refs['echartL2'])
  719. let option = {
  720. ..._.cloneDeep(this.commonOption),
  721. color: [
  722. {
  723. x: 0,
  724. y: 0,
  725. x2: 0,
  726. y2: 1,
  727. colorStops: [{
  728. offset: 0,
  729. color: '#69c0ff',
  730. },
  731. {
  732. offset: 1,
  733. color: '#082550',
  734. },],
  735. }
  736. ],
  737. series: [
  738. {
  739. name: '当前本部共享服务中心/事业部数',
  740. type: 'bar',
  741. barWidth: 15,
  742. label: {
  743. normal: {
  744. show: true,
  745. position: 'top',
  746. textStyle: {
  747. color: '#69c0ff',
  748. fontStyle: 'normal',
  749. textAlign: 'left',
  750. fontSize: 16,
  751. },
  752. formatter: function (data) {
  753. if (data.name == '华阳新材') {
  754. return data.value
  755. } else {
  756. return ''
  757. }
  758. }
  759. }
  760. },
  761. itemStyle: {
  762. color: params => {
  763. if (params.value > dataL2[1][params.dataIndex]) {
  764. return 'red'
  765. } else {
  766. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  767. {
  768. offset: 0,
  769. color: '#69c0ff',
  770. },
  771. {
  772. offset: 1,
  773. color: '#082550',
  774. },
  775. ])
  776. }
  777. },
  778. },
  779. data: dataL2[0],
  780. },
  781. {
  782. name: '六定改革前本部共享服务中心/事业部核定上限',
  783. type: 'bar',
  784. barWidth: 15,
  785. label: {
  786. normal: {
  787. show: true,
  788. position: 'top',
  789. textStyle: {
  790. color: '#69c0ff',
  791. fontStyle: 'normal',
  792. textAlign: 'left',
  793. fontSize: 16,
  794. },
  795. formatter: function (data) {
  796. if (data.name == '华阳新材') {
  797. return data.value
  798. } else {
  799. return ''
  800. }
  801. }
  802. }
  803. },
  804. itemStyle: {
  805. normal: {
  806. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  807. {
  808. offset: 0,
  809. color: '#5e7ae9',
  810. },
  811. {
  812. offset: 1,
  813. color: '#082550',
  814. },
  815. ]),
  816. },
  817. },
  818. data: dataL2[2],
  819. },
  820. {
  821. name: '本部共享服务中心/事业部核定上限',
  822. type: 'line',
  823. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  824. smooth: true, //平滑曲线显示
  825. showAllSymbol: true, //显示所有图形。
  826. symbol: 'circle', //标记的图形为实心圆
  827. symbolSize: 8, //标记的大小
  828. smooth: false,
  829. label: {
  830. normal: {
  831. show: true,
  832. position: 'top',
  833. textStyle: {
  834. color: '#fbe138',
  835. fontStyle: 'normal',
  836. textAlign: 'left',
  837. fontSize: 16,
  838. },
  839. formatter: function (data) {
  840. if (data.name == '华阳新材') {
  841. return data.value
  842. } else {
  843. return ''
  844. }
  845. }
  846. }
  847. },
  848. itemStyle: {
  849. //折线拐点标志的样式
  850. color: '#fbe138',
  851. borderColor: '#fbe138',
  852. width: 2,
  853. shadowColor: '#fbe138',
  854. shadowBlur: 4,
  855. },
  856. lineStyle: {
  857. color: '#fbe138',
  858. width: 2,
  859. },
  860. data: dataL2[1],
  861. },
  862. ],
  863. }
  864. option.title.text = '各省属企业本部共享服务中心/事业部数'
  865. option.legend.data = ['当前本部共享服务中心/事业部数', '本部共享服务中心/事业部核定上限', '六定改革前本部共享服务中心/事业部核定上限']
  866. option.yAxis.push({
  867. splitLine: {
  868. show: false,
  869. },
  870. axisLine: {
  871. show: false,
  872. },
  873. })
  874. myChart.setOption(option)
  875. },
  876. initChartL3 () {
  877. let myChart = echarts.init(this.$refs['echartL3'])
  878. let option = {
  879. ..._.cloneDeep(this.commonOption),
  880. series: [
  881. {
  882. name: '当前管理人员数',
  883. type: 'bar',
  884. barWidth: 15,
  885. itemStyle: {
  886. normal: {
  887. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  888. {
  889. offset: 0,
  890. color: '#5e7ae9',
  891. },
  892. {
  893. offset: 1,
  894. color: '#082550',
  895. },
  896. ]),
  897. },
  898. },
  899. data: dataL3[0],
  900. },
  901. {
  902. name: '管理人员数占总人数比值',
  903. type: 'line',
  904. yAxisIndex: 1,
  905. smooth: true, //平滑曲线显示
  906. showAllSymbol: true, //显示所有图形。
  907. symbol: 'circle', //标记的图形为实心圆
  908. symbolSize: 8, //标记的大小
  909. smooth: false,
  910. itemStyle: {
  911. //折线拐点标志的样式
  912. color: '#fbe138',
  913. borderColor: '#fbe138',
  914. width: 2,
  915. shadowColor: '#fbe138',
  916. shadowBlur: 4,
  917. },
  918. lineStyle: {
  919. color: '#fbe138',
  920. width: 2,
  921. },
  922. markLine: {
  923. data: [
  924. {
  925. name: '管理人员数占总人数的合理比值线',
  926. yAxis: 15,
  927. lineStyle: {
  928. color: '#fff',
  929. },
  930. label: {
  931. formatter: '{b}',
  932. position: 'middle',
  933. color: '#fff',
  934. fontSize: 16,
  935. },
  936. },
  937. ],
  938. label: {
  939. distance: [20, 8],
  940. },
  941. },
  942. data: dataL3[1],
  943. },
  944. ],
  945. }
  946. option.title.text = '各省属企业管理人员数'
  947. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  948. option.yAxis[0] = {
  949. type: 'log',
  950. min: 1,
  951. logBase: 10,
  952. axisLine: {
  953. show: false,
  954. },
  955. splitLine: {
  956. show: true,
  957. lineStyle: {
  958. color: '#68b4dd66',
  959. type: 'dashed',
  960. },
  961. },
  962. axisLabel: {
  963. show: true,
  964. formatter: function (value) {
  965. return value === 1 ? 0 : value
  966. },
  967. textStyle: {
  968. color: 'rgba(250,250,250,0.6)',
  969. },
  970. },
  971. }
  972. option.yAxis.push({
  973. type: 'value',
  974. max: 15,
  975. axisLine: {
  976. show: false,
  977. },
  978. splitLine: {
  979. show: false,
  980. },
  981. axisLabel: {
  982. show: true,
  983. formatter: '{value} %',
  984. textStyle: {
  985. color: 'rgba(250,250,250,0.6)',
  986. },
  987. },
  988. })
  989. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  990. myChart.setOption(option)
  991. },
  992. initChartL4 () {
  993. let myChart = echarts.init(this.$refs['echartL4'])
  994. let option = {
  995. ..._.cloneDeep(this.commonOption),
  996. color: [
  997. {
  998. x: 0,
  999. y: 0,
  1000. x2: 0,
  1001. y2: 1,
  1002. colorStops: [{
  1003. offset: 0,
  1004. color: '#6480f3',
  1005. },
  1006. {
  1007. offset: 1,
  1008. color: '#082550',
  1009. },],
  1010. }
  1011. ],
  1012. series: [
  1013. {
  1014. name: '六定改革前本部中层管理人数',
  1015. type: 'bar',
  1016. barWidth: 15,
  1017. label: {
  1018. normal: {
  1019. show: true,
  1020. position: 'top',
  1021. textStyle: {
  1022. color: '#69c0ff',
  1023. fontStyle: 'normal',
  1024. textAlign: 'left',
  1025. fontSize: 16,
  1026. },
  1027. formatter: function (data) {
  1028. if (data.name == '云时代') {
  1029. return data.value
  1030. } else {
  1031. return ''
  1032. }
  1033. }
  1034. }
  1035. },
  1036. itemStyle: {
  1037. normal: {
  1038. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1039. {
  1040. offset: 0,
  1041. color: '#69c0ff',
  1042. },
  1043. {
  1044. offset: 1,
  1045. color: '#082550',
  1046. },
  1047. ]),
  1048. },
  1049. },
  1050. data: dataL4[0],
  1051. },
  1052. {
  1053. name: '当前本部中层管理人数',
  1054. type: 'bar',
  1055. barWidth: 15,
  1056. label: {
  1057. normal: {
  1058. show: true,
  1059. position: 'top',
  1060. textStyle: {
  1061. color: '#6480f3',
  1062. fontStyle: 'normal',
  1063. textAlign: 'left',
  1064. fontSize: 16,
  1065. },
  1066. formatter: function (data) {
  1067. if (data.name == '云时代') {
  1068. return data.value
  1069. } else {
  1070. return ''
  1071. }
  1072. }
  1073. }
  1074. },
  1075. itemStyle: {
  1076. normal: {
  1077. color: params => {
  1078. if (params.value > dataL4[2][params.dataIndex] || params.value > dataL4[0][params.dataIndex]) {
  1079. return 'red'
  1080. } else {
  1081. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1082. {
  1083. offset: 0,
  1084. color: '#6480f3',
  1085. },
  1086. {
  1087. offset: 1,
  1088. color: '#082550',
  1089. },
  1090. ])
  1091. }
  1092. },
  1093. },
  1094. },
  1095. data: dataL4[1],
  1096. },
  1097. {
  1098. name: '本部中层管理人数核定上限',
  1099. type: 'line',
  1100. // yAxisIndex: 1,
  1101. smooth: true, //平滑曲线显示
  1102. showAllSymbol: true, //显示所有图形。
  1103. symbol: 'circle', //标记的图形为实心圆
  1104. symbolSize: 8, //标记的大小
  1105. smooth: false,
  1106. label: {
  1107. normal: {
  1108. show: true,
  1109. position: 'top',
  1110. textStyle: {
  1111. color: '#fbe138',
  1112. fontStyle: 'normal',
  1113. textAlign: 'left',
  1114. fontSize: 16,
  1115. },
  1116. formatter: function (data) {
  1117. if (data.name == '云时代') {
  1118. return data.value
  1119. } else {
  1120. return ''
  1121. }
  1122. }
  1123. }
  1124. },
  1125. itemStyle: {
  1126. //折线拐点标志的样式
  1127. color: '#fbe138',
  1128. borderColor: '#fbe138',
  1129. width: 2,
  1130. shadowColor: '#fbe138',
  1131. shadowBlur: 4,
  1132. },
  1133. lineStyle: {
  1134. color: '#fbe138',
  1135. width: 2,
  1136. },
  1137. data: dataL4[2],
  1138. },
  1139. ],
  1140. }
  1141. option.title.text = '各省属企业本部中层管理人数'
  1142. option.legend.data = ['六定改革前本部中层管理人数', '当前本部中层管理人数', '本部中层管理人数核定上限']
  1143. option.legend.show = true
  1144. // option.yAxis.push({
  1145. // splitLine: {
  1146. // show: false,
  1147. // },
  1148. // axisLine: {
  1149. // show: false,
  1150. // },
  1151. // })
  1152. myChart.setOption(option)
  1153. },
  1154. initChartL5 () {
  1155. let myChart = echarts.init(this.$refs['echartL5'])
  1156. let option = {
  1157. ..._.cloneDeep(this.commonOption),
  1158. color: [
  1159. {
  1160. x: 0,
  1161. y: 0,
  1162. x2: 0,
  1163. y2: 1,
  1164. colorStops: [{
  1165. offset: 0,
  1166. color: '#69c0ff',
  1167. },
  1168. {
  1169. offset: 1,
  1170. color: '#082550',
  1171. },],
  1172. }
  1173. ],
  1174. series: [
  1175. {
  1176. name: '各省属企业总人数',
  1177. type: 'bar',
  1178. barWidth: 15,
  1179. label: {
  1180. normal: {
  1181. show: true,
  1182. position: 'top',
  1183. lineHeight: '25',
  1184. textStyle: {
  1185. color: '#69c0ff',
  1186. fontStyle: 'normal',
  1187. textAlign: 'left',
  1188. fontSize: 16,
  1189. },
  1190. formatter: function (data) {
  1191. if (data.name == '华阳新材' || data.name == '华舰体育') {
  1192. return data.value
  1193. } else {
  1194. return ''
  1195. }
  1196. }
  1197. }
  1198. },
  1199. itemStyle: {
  1200. normal: {
  1201. color: params => {
  1202. if (params.dataIndex > 0 && Math.abs(params.value - dataL5[0][params.dataIndex - 1]) > params.value * 0.1) {
  1203. return 'yellow'
  1204. } else {
  1205. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1206. {
  1207. offset: 0,
  1208. color: '#69c0ff',
  1209. },
  1210. {
  1211. offset: 1,
  1212. color: '#082550',
  1213. },
  1214. ])
  1215. }
  1216. }
  1217. },
  1218. },
  1219. data: dataL5[0],
  1220. },
  1221. {
  1222. name: '总人数同比变化',
  1223. type: 'line',
  1224. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1225. smooth: true, //平滑曲线显示
  1226. showAllSymbol: true, //显示所有图形。
  1227. symbol: 'circle', //标记的图形为实心圆
  1228. symbolSize: 8, //标记的大小
  1229. smooth: false,
  1230. label: {
  1231. normal: {
  1232. show: true,
  1233. position: 'bottom',
  1234. lineHeight: '25',
  1235. textStyle: {
  1236. color: '#b889ea',
  1237. fontStyle: 'normal',
  1238. textAlign: 'left',
  1239. fontSize: 16,
  1240. },
  1241. formatter: function (data) {
  1242. if (data.name == '华阳新材' || data.name == '华舰体育') {
  1243. return data.value
  1244. } else {
  1245. return ''
  1246. }
  1247. }
  1248. }
  1249. },
  1250. itemStyle: {
  1251. //折线拐点标志的样式
  1252. color: '#b889ea',
  1253. borderColor: '#b889ea',
  1254. width: 2,
  1255. shadowColor: '#b889ea',
  1256. shadowBlur: 4,
  1257. },
  1258. lineStyle: {
  1259. color: '#b889ea',
  1260. width: 2,
  1261. },
  1262. data: dataL5[1],
  1263. },
  1264. ],
  1265. }
  1266. option.title.text = '各省属企业总人数'
  1267. option.legend.data = ['各省属企业总人数', '总人数同比变化']
  1268. option.legend.show = true
  1269. option.yAxis[0] = {
  1270. type: 'value',
  1271. // type: 'log',
  1272. min: 1,
  1273. // logBase: 10,
  1274. axisLine: {
  1275. show: false,
  1276. },
  1277. splitLine: {
  1278. show: true,
  1279. lineStyle: {
  1280. color: '#68b4dd66',
  1281. type: 'dashed',
  1282. },
  1283. },
  1284. axisLabel: {
  1285. show: true,
  1286. formatter: function (value) {
  1287. return value === 1 ? 0 : value
  1288. },
  1289. textStyle: {
  1290. color: 'rgba(250,250,250,0.6)',
  1291. },
  1292. },
  1293. }
  1294. option.yAxis.push({
  1295. type: 'value',
  1296. axisLine: {
  1297. show: false,
  1298. },
  1299. splitLine: {
  1300. show: false,
  1301. },
  1302. axisLabel: {
  1303. show: true,
  1304. formatter: '{value} %',
  1305. textStyle: {
  1306. color: 'rgba(250,250,250,0.6)',
  1307. },
  1308. },
  1309. })
  1310. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1311. myChart.setOption(option)
  1312. },
  1313. initChartL6 () {
  1314. let myChart = echarts.init(this.$refs['echartL6'])
  1315. let option = {
  1316. ..._.cloneDeep(this.commonOption),
  1317. color: [
  1318. {
  1319. x: 0,
  1320. y: 0,
  1321. x2: 0,
  1322. y2: 1,
  1323. colorStops: [{
  1324. offset: 0,
  1325. color: '#43ede3',
  1326. },
  1327. {
  1328. offset: 1,
  1329. color: '#082550',
  1330. },],
  1331. }
  1332. ],
  1333. series: [
  1334. {
  1335. name: '本部员额数',
  1336. type: 'bar',
  1337. barWidth: 15,
  1338. itemStyle: {
  1339. color: params => {
  1340. if (params.value > dataL6[1][params.dataIndex]) {
  1341. return 'red'
  1342. } else {
  1343. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1344. {
  1345. offset: 0,
  1346. color: '#43ede3',
  1347. },
  1348. {
  1349. offset: 1,
  1350. color: '#082550',
  1351. },
  1352. ])
  1353. }
  1354. },
  1355. },
  1356. data: dataL6[0],
  1357. },
  1358. {
  1359. name: '六定改革前本部员额数',
  1360. type: 'bar',
  1361. barWidth: 15,
  1362. itemStyle: {
  1363. normal: {
  1364. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1365. {
  1366. offset: 0,
  1367. color: '#5e7ae9',
  1368. },
  1369. {
  1370. offset: 1,
  1371. color: '#082550',
  1372. },
  1373. ]),
  1374. },
  1375. },
  1376. data: dataL6[2],
  1377. },
  1378. {
  1379. name: '本部员额数核定上限',
  1380. type: 'line',
  1381. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1382. smooth: true, //平滑曲线显示
  1383. showAllSymbol: true, //显示所有图形。
  1384. symbol: 'circle', //标记的图形为实心圆
  1385. symbolSize: 8, //标记的大小
  1386. smooth: false,
  1387. itemStyle: {
  1388. //折线拐点标志的样式
  1389. color: '#fbe138',
  1390. borderColor: '#fbe138',
  1391. width: 2,
  1392. shadowColor: '#fbe138',
  1393. shadowBlur: 4,
  1394. },
  1395. lineStyle: {
  1396. color: '#fbe138',
  1397. width: 2,
  1398. },
  1399. data: dataL6[1],
  1400. },
  1401. ],
  1402. }
  1403. option.title.text = '各省属企业本部员额数'
  1404. option.legend.data = ['本部员额数', '六定改革前本部员额数', '本部员额数核定上限']
  1405. option.legend.show = true
  1406. option.yAxis.push({
  1407. splitLine: {
  1408. show: false,
  1409. },
  1410. axisLine: {
  1411. show: false,
  1412. },
  1413. })
  1414. myChart.setOption(option)
  1415. },
  1416. initChartL7 () {
  1417. let myChart = echarts.init(this.$refs['echartL7'])
  1418. let that = this
  1419. let option = {
  1420. ..._.cloneDeep(this.commonOption),
  1421. color: ['#43ede3'],
  1422. series: [
  1423. {
  1424. name: '人数变化',
  1425. type: 'line',
  1426. smooth: true, //平滑曲线显示
  1427. showAllSymbol: true, //显示所有图形。
  1428. symbol: 'circle', //标记的图形为实心圆
  1429. symbolSize: 15, //标记的大小
  1430. smooth: false,
  1431. label: {
  1432. normal: {
  1433. show: true,
  1434. position: 'bottom',
  1435. lineHeight: '35',
  1436. textStyle: {
  1437. color: '#43ede3',
  1438. fontStyle: 'normal',
  1439. textAlign: 'left',
  1440. fontSize: 16,
  1441. },
  1442. formatter: function (data) {
  1443. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  1444. return data.value
  1445. } else {
  1446. return ''
  1447. }
  1448. }
  1449. }
  1450. },
  1451. itemStyle: {
  1452. color: params => {
  1453. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  1454. return 'red'
  1455. } else if (params.value < 0 && dataL7[1][params.dataIndex] > 0) {
  1456. return 'green'
  1457. }
  1458. else {
  1459. return '#43ede3'
  1460. }
  1461. },
  1462. },
  1463. lineStyle: {
  1464. color: '#43ede3',
  1465. width: 2,
  1466. },
  1467. data: dataL7[0],
  1468. },
  1469. {
  1470. name: '劳动生产率同比变化',
  1471. type: 'line',
  1472. yAxisIndex: 1,
  1473. smooth: true, //平滑曲线显示
  1474. showAllSymbol: true, //显示所有图形。
  1475. symbol: 'circle', //标记的图形为实心圆
  1476. symbolSize: 8, //标记的大小
  1477. smooth: false,
  1478. label: {
  1479. normal: {
  1480. show: true,
  1481. position: 'top',
  1482. lineHeight: '25',
  1483. textStyle: {
  1484. color: '#b889ea',
  1485. fontStyle: 'normal',
  1486. textAlign: 'left',
  1487. fontSize: 16,
  1488. },
  1489. formatter: function (data) {
  1490. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  1491. return data.value
  1492. } else {
  1493. return ''
  1494. }
  1495. }
  1496. }
  1497. },
  1498. itemStyle: {
  1499. //折线拐点标志的样式
  1500. color: '#b889ea',
  1501. borderColor: '#b889ea',
  1502. width: 2,
  1503. shadowColor: '#b889ea',
  1504. shadowBlur: 4,
  1505. },
  1506. data: dataL7[1],
  1507. },
  1508. {
  1509. type: 'effectScatter',
  1510. coordinateSystem: 'cartesian2d',
  1511. showEffectOn: 'render',
  1512. rippleEffect: {
  1513. period: 10,
  1514. scale: 4,
  1515. brushType: 'stroke'
  1516. },
  1517. hoverAnimation: true,
  1518. itemStyle: {
  1519. color: 'red'
  1520. },
  1521. lineStyle: {
  1522. color: '#43ede3',
  1523. width: 2,
  1524. },
  1525. data: that.twinkle7,
  1526. },
  1527. ],
  1528. }
  1529. option.title.text = '人数变化和全员劳动生产率变化分析'
  1530. option.legend.data = ['人数变化', '劳动生产率同比变化']
  1531. option.legend.show = true
  1532. option.yAxis[0].axisLabel.formatter = '{value} %'
  1533. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1534. option.yAxis.push({
  1535. type: 'value',
  1536. axisLine: {
  1537. show: false,
  1538. },
  1539. splitLine: {
  1540. show: false,
  1541. },
  1542. axisLabel: {
  1543. show: true,
  1544. formatter: '{value} %',
  1545. textStyle: {
  1546. color: 'rgba(250,250,250,0.6)',
  1547. },
  1548. splitLine: {
  1549. show: false,
  1550. },
  1551. axisLabel: {
  1552. show: true,
  1553. formatter: '{value} %',
  1554. textStyle: {
  1555. color: 'rgba(250,250,250,0.6)',
  1556. },
  1557. },
  1558. },
  1559. })
  1560. myChart.setOption(option)
  1561. },
  1562. initChartL8 () {
  1563. let myChart = echarts.init(this.$refs['echartL8'])
  1564. let option = {
  1565. ..._.cloneDeep(this.commonOption),
  1566. color: ['#43ede3'],
  1567. series: [
  1568. {
  1569. name: '人数变化',
  1570. type: 'line',
  1571. smooth: true, //平滑曲线显示
  1572. showAllSymbol: true, //显示所有图形。
  1573. symbol: 'circle', //标记的图形为实心圆
  1574. symbolSize: 15, //标记的大小
  1575. smooth: false,
  1576. label: {
  1577. normal: {
  1578. show: true,
  1579. position: 'bottom',
  1580. lineHeight: '20',
  1581. textStyle: {
  1582. color: '#43ede3',
  1583. fontStyle: 'normal',
  1584. textAlign: 'left',
  1585. fontSize: 16,
  1586. },
  1587. formatter: function (data) {
  1588. if (data.name == '文旅集团' || data.name == '大地控股') {
  1589. return data.value
  1590. } else {
  1591. return ''
  1592. }
  1593. }
  1594. }
  1595. },
  1596. itemStyle: {
  1597. color: params => {
  1598. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1599. return 'red'
  1600. } else if (params.value < 0 && dataL8[1][params.dataIndex] > 0) {
  1601. return 'green'
  1602. }
  1603. else {
  1604. return '#43ede3'
  1605. }
  1606. },
  1607. },
  1608. lineStyle: {
  1609. color: '#43ede3',
  1610. width: 2,
  1611. },
  1612. data: dataL8[0],
  1613. },
  1614. {
  1615. name: '人工成本利润率同比变化',
  1616. type: 'line',
  1617. smooth: true, //平滑曲线显示
  1618. showAllSymbol: true, //显示所有图形。
  1619. symbol: 'circle', //标记的图形为实心圆
  1620. symbolSize: 15, //标记的大小
  1621. smooth: false,
  1622. label: {
  1623. normal: {
  1624. show: true,
  1625. position: 'top',
  1626. lineHeight: '30',
  1627. textStyle: {
  1628. color: '#b889ea',
  1629. fontStyle: 'normal',
  1630. textAlign: 'left',
  1631. fontSize: 16,
  1632. },
  1633. formatter: function (data) {
  1634. if (data.name == '文旅集团' || data.name == '大地控股') {
  1635. return data.value
  1636. } else {
  1637. return ''
  1638. }
  1639. }
  1640. }
  1641. },
  1642. itemStyle: {
  1643. //折线拐点标志的样式
  1644. color: '#b889ea',
  1645. borderColor: '#b889ea',
  1646. width: 2,
  1647. shadowColor: '#b889ea',
  1648. shadowBlur: 4,
  1649. },
  1650. lineStyle: {
  1651. color: '#b889ea',
  1652. width: 2,
  1653. },
  1654. data: dataL8[1],
  1655. },
  1656. {
  1657. type: 'effectScatter',
  1658. coordinateSystem: 'cartesian2d',
  1659. showEffectOn: 'render',
  1660. rippleEffect: {
  1661. period: 10,
  1662. scale: 4,
  1663. brushType: 'stroke'
  1664. },
  1665. hoverAnimation: true,
  1666. itemStyle: {
  1667. color: 'red'
  1668. },
  1669. lineStyle: {
  1670. color: '#43ede3',
  1671. width: 2,
  1672. },
  1673. data: this.twinkle8,
  1674. },
  1675. // {
  1676. // type: 'effectScatter',
  1677. // coordinateSystem: 'cartesian2d',
  1678. // showEffectOn: 'render',
  1679. // rippleEffect: {
  1680. // period: 10,
  1681. // scale: 4,
  1682. // brushType: 'stroke'
  1683. // },
  1684. // hoverAnimation: true,
  1685. // itemStyle: {
  1686. // color: 'red'
  1687. // },
  1688. // lineStyle: {
  1689. // color: '#43ede3',
  1690. // width: 2,
  1691. // },
  1692. // data: that.twinkle,
  1693. // },
  1694. ],
  1695. // tooltip: {
  1696. // trigger: 'axis',
  1697. // formatter(params){
  1698. // console.log(params)
  1699. // return params[0]
  1700. // }
  1701. // }
  1702. }
  1703. option.title.text = '人数变化和人工成本利润率变化分析'
  1704. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1705. option.legend.show = true
  1706. option.yAxis[0].axisLabel.formatter = '{value} %'
  1707. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1708. myChart.setOption(option)
  1709. },
  1710. // 中间图表---------------------------------------------开始
  1711. initChartC1 () {
  1712. let myChart = echarts.init(this.$refs['echartC1'])
  1713. let option = {
  1714. ..._.cloneDeep(this.commonOption),
  1715. color: [
  1716. {
  1717. x: 0,
  1718. y: 0,
  1719. x2: 0,
  1720. y2: 1,
  1721. colorStops: [{
  1722. offset: 0,
  1723. color: '#69c0ff',
  1724. },
  1725. {
  1726. offset: 1,
  1727. color: '#082550',
  1728. },],
  1729. }
  1730. ],
  1731. series: [
  1732. {
  1733. name: '全员劳动生产率(万/人)',
  1734. type: 'bar',
  1735. barWidth: 15,
  1736. label: {
  1737. normal: {
  1738. show: true,
  1739. position: 'top',
  1740. textStyle: {
  1741. color: '#69c0ff',
  1742. fontStyle: 'normal',
  1743. textAlign: 'left',
  1744. fontSize: 16,
  1745. },
  1746. formatter: function (data) {
  1747. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1748. return data.value
  1749. } else {
  1750. return ''
  1751. }
  1752. }
  1753. }
  1754. },
  1755. itemStyle: {
  1756. color: params => {
  1757. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  1758. return 'red'
  1759. } else if (params.value > this.echartC1.province) {
  1760. return 'green'
  1761. } else {
  1762. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1763. {
  1764. offset: 0,
  1765. color: '#69c0ff',
  1766. },
  1767. {
  1768. offset: 1,
  1769. color: '#082550',
  1770. },
  1771. ])
  1772. }
  1773. },
  1774. },
  1775. markLine: {
  1776. data: [
  1777. {
  1778. name: '省属企业平均水平',
  1779. yAxis: this.echartC1.national,
  1780. lineStyle: {
  1781. color: '#fff',
  1782. },
  1783. label: {
  1784. formatter: '{b}',
  1785. position: 'middle',
  1786. padding: [20, 100, 10, 10],
  1787. fontSize: 16,
  1788. color: '#fff',
  1789. },
  1790. },
  1791. {
  1792. name: '央企平均水平',
  1793. yAxis: this.echartC1.province,
  1794. lineStyle: {
  1795. color: '#fff',
  1796. },
  1797. label: {
  1798. formatter: '{b}',
  1799. position: 'end',
  1800. padding: [-4, 150, 10, 10],
  1801. color: '#fff',
  1802. fontSize: 16,
  1803. },
  1804. },
  1805. ],
  1806. label: {
  1807. distance: [50, 0],
  1808. },
  1809. },
  1810. data: c1[0],
  1811. },
  1812. {
  1813. name: '全员劳动生产率同比',
  1814. type: 'line',
  1815. yAxisIndex: 1,
  1816. smooth: true, //平滑曲线显示
  1817. showAllSymbol: true, //显示所有图形。
  1818. symbol: 'circle', //标记的图形为实心圆
  1819. symbolSize: 8, //标记的大小
  1820. smooth: false,
  1821. itemStyle: {
  1822. //折线拐点标志的样式
  1823. color: '#B889EA',
  1824. borderColor: '#B889EA',
  1825. width: 2,
  1826. shadowColor: '#B889EA',
  1827. shadowBlur: 4,
  1828. },
  1829. lineStyle: {
  1830. color: '#B889EA',
  1831. width: 2,
  1832. },
  1833. label: {
  1834. normal: {
  1835. show: true,
  1836. position: 'top',
  1837. textStyle: {
  1838. color: '#B889EA',
  1839. fontStyle: 'normal',
  1840. textAlign: 'left',
  1841. fontSize: 16,
  1842. },
  1843. formatter: function (data) {
  1844. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1845. return data.value + '%'
  1846. } else {
  1847. return ''
  1848. }
  1849. }
  1850. }
  1851. },
  1852. data: c1[1],
  1853. },
  1854. ],
  1855. }
  1856. option.title.text = '各省属企业全员劳动生产率'
  1857. option.legend.show = true
  1858. option.grid.right = '15%'
  1859. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1860. option.yAxis.push({
  1861. type: 'value',
  1862. axisLine: {
  1863. show: false,
  1864. },
  1865. splitLine: {
  1866. show: false,
  1867. },
  1868. axisLabel: {
  1869. show: true,
  1870. formatter: '{value} %',
  1871. textStyle: {
  1872. color: 'rgba(250,250,250,0.6)',
  1873. },
  1874. },
  1875. })
  1876. myChart.setOption(option)
  1877. // tools.loopShowTooltip(myChart, option, {
  1878. // nterval: 2000,
  1879. // loopSeries: true,
  1880. // })
  1881. },
  1882. initChartC2 () {
  1883. let myChart = echarts.init(this.$refs['echartC2'])
  1884. let option = {
  1885. ..._.cloneDeep(this.commonOption),
  1886. color: [
  1887. {
  1888. x: 0,
  1889. y: 0,
  1890. x2: 0,
  1891. y2: 1,
  1892. colorStops: [{
  1893. offset: 0,
  1894. color: '#69c0ff',
  1895. },
  1896. {
  1897. offset: 1,
  1898. color: '#082550',
  1899. },],
  1900. }
  1901. ],
  1902. series: [
  1903. {
  1904. name: '人工成本利润率',
  1905. type: 'bar',
  1906. barWidth: 15,
  1907. label: {
  1908. normal: {
  1909. show: true,
  1910. position: 'top',
  1911. textStyle: {
  1912. color: '#fff',
  1913. fontStyle: 'normal',
  1914. textAlign: 'left',
  1915. fontSize: 16,
  1916. },
  1917. formatter: function (data) {
  1918. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1919. return data.value
  1920. } else {
  1921. return ''
  1922. }
  1923. }
  1924. }
  1925. },
  1926. markLine: {
  1927. data: [
  1928. {
  1929. name: '省属企业平均水平',
  1930. yAxis: this.echartC2.province,
  1931. lineStyle: {
  1932. color: '#fff',
  1933. },
  1934. label: {
  1935. formatter: '{b}',
  1936. position: 'end',
  1937. padding: [24, 100, 10, 10],
  1938. fontSize: 16,
  1939. color: '#fff',
  1940. },
  1941. },
  1942. {
  1943. name: '央企平均水平',
  1944. yAxis: this.echartC2.national,
  1945. lineStyle: {
  1946. color: '#fff',
  1947. },
  1948. label: {
  1949. formatter: '{b}',
  1950. position: 'middle',
  1951. padding: [-24, 200, 10, 10],
  1952. color: '#fff',
  1953. fontSize: 16,
  1954. },
  1955. },
  1956. ],
  1957. label: {
  1958. distance: [50, 0],
  1959. },
  1960. },
  1961. itemStyle: {
  1962. color: params => {
  1963. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1964. return 'red'
  1965. } else if (params.value > this.echartC2.province) {
  1966. return 'green'
  1967. } else {
  1968. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1969. {
  1970. offset: 0,
  1971. color: '#69c0ff',
  1972. },
  1973. {
  1974. offset: 1,
  1975. color: '#082550',
  1976. },
  1977. ])
  1978. }
  1979. },
  1980. },
  1981. data: c2[1],
  1982. },
  1983. {
  1984. name: '人工成本利润率同比',
  1985. type: 'line',
  1986. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1987. smooth: true, //平滑曲线显示
  1988. showAllSymbol: true, //显示所有图形。
  1989. symbol: 'circle', //标记的图形为实心圆
  1990. symbolSize: 8, //标记的大小
  1991. smooth: false,
  1992. label: {
  1993. normal: {
  1994. show: true,
  1995. position: 'top',
  1996. lineHeight: '30',
  1997. textStyle: {
  1998. color: '#b889ea',
  1999. fontStyle: 'normal',
  2000. textAlign: 'left',
  2001. fontSize: 16,
  2002. },
  2003. formatter: function (data) {
  2004. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  2005. return data.value + '%'
  2006. } else {
  2007. return ''
  2008. }
  2009. }
  2010. }
  2011. },
  2012. itemStyle: {
  2013. //折线拐点标志的样式
  2014. color: '#B889EA',
  2015. borderColor: '#B889EA',
  2016. width: 2,
  2017. shadowColor: '#B889EA',
  2018. shadowBlur: 4,
  2019. },
  2020. lineStyle: {
  2021. color: '#B889EA',
  2022. width: 2,
  2023. },
  2024. data: c2[0],
  2025. },
  2026. ],
  2027. }
  2028. option.title.text = '各省属企业人工成本利润率'
  2029. option.legend.show = true
  2030. option.grid.right = '15%'
  2031. option.yAxis[0].axisLabel.formatter = '{value} %'
  2032. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2033. option.yAxis.push({
  2034. type: 'value',
  2035. axisLine: {
  2036. show: false,
  2037. },
  2038. splitLine: {
  2039. show: false,
  2040. },
  2041. axisLabel: {
  2042. show: true,
  2043. formatter: '{value} %',
  2044. textStyle: {
  2045. color: 'rgba(250,250,250,0.6)',
  2046. },
  2047. },
  2048. })
  2049. myChart.setOption(option)
  2050. // tools.loopShowTooltip(myChart, option, {
  2051. // nterval: 2000,
  2052. // loopSeries: true,
  2053. // })
  2054. },
  2055. // 右侧图表---------------------------------------------开始
  2056. initChartR1 () {
  2057. let myChart = echarts.init(this.$refs['echartR1'])
  2058. let commonOptions = this.commonOption
  2059. commonOptions.yAxis[0].splitNumber = 2
  2060. let dataTemp = []
  2061. let dataTemp2 = []
  2062. dataR1[0].forEach(item => {
  2063. dataTemp.push(item + 1)
  2064. })
  2065. dataR1[1].forEach(item => {
  2066. dataTemp2.push(item + 1)
  2067. })
  2068. let option = {
  2069. ..._.cloneDeep(commonOptions),
  2070. series: [
  2071. {
  2072. name: '招聘需求公告次数',
  2073. type: 'bar',
  2074. barWidth: 15,
  2075. itemStyle: {
  2076. normal: {
  2077. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2078. {
  2079. offset: 0,
  2080. color: '#69c0ff',
  2081. },
  2082. {
  2083. offset: 1,
  2084. color: '#082550',
  2085. },
  2086. ]),
  2087. },
  2088. },
  2089. data: dataTemp,
  2090. },
  2091. {
  2092. name: '招聘需求公告累计招聘人次',
  2093. type: 'bar',
  2094. barWidth: 15,
  2095. itemStyle: {
  2096. normal: {
  2097. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2098. {
  2099. offset: 0,
  2100. color: '#43ede3',
  2101. },
  2102. {
  2103. offset: 1,
  2104. color: '#082550',
  2105. },
  2106. ]),
  2107. },
  2108. },
  2109. data: dataTemp2,
  2110. },
  2111. ],
  2112. }
  2113. option.title.text = '各省属企业招聘需求公示人次'
  2114. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  2115. option.legend.show = true
  2116. option.tooltip.formatter = function (value) {
  2117. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  2118. }
  2119. option.yAxis[0] = {
  2120. type: 'log',
  2121. min: 1,
  2122. logBase: 10,
  2123. axisLine: {
  2124. show: false,
  2125. },
  2126. splitLine: {
  2127. show: true,
  2128. lineStyle: {
  2129. color: '#68b4dd66',
  2130. type: 'dashed',
  2131. },
  2132. },
  2133. axisLabel: {
  2134. show: true,
  2135. formatter: function (value) {
  2136. return value === 1 ? 0 : value
  2137. },
  2138. textStyle: {
  2139. color: 'rgba(250,250,250,0.6)',
  2140. },
  2141. },
  2142. }
  2143. myChart.setOption(option)
  2144. },
  2145. initChartR2 () {
  2146. let myChart = echarts.init(this.$refs['echartR2'])
  2147. let commonOptions = this.commonOption
  2148. commonOptions.yAxis[0].splitNumber = 2
  2149. let dataTemp = []
  2150. let dataTemp2 = []
  2151. dataR2[0].forEach(item => {
  2152. dataTemp.push(item + 1)
  2153. })
  2154. dataR2[1].forEach(item => {
  2155. dataTemp2.push(item + 1)
  2156. })
  2157. let option = {
  2158. ..._.cloneDeep(commonOptions),
  2159. series: [
  2160. {
  2161. name: '录用结果公示次数',
  2162. type: 'bar',
  2163. barWidth: 15,
  2164. itemStyle: {
  2165. normal: {
  2166. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2167. {
  2168. offset: 0,
  2169. color: '#69c0ff',
  2170. },
  2171. {
  2172. offset: 1,
  2173. color: '#082550',
  2174. },
  2175. ]),
  2176. },
  2177. },
  2178. data: dataTemp,
  2179. },
  2180. {
  2181. name: '录用结果公示累计公示人数',
  2182. type: 'bar',
  2183. barWidth: 15,
  2184. itemStyle: {
  2185. normal: {
  2186. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2187. {
  2188. offset: 0,
  2189. color: '#45DAD1',
  2190. },
  2191. {
  2192. offset: 1,
  2193. color: '#082550',
  2194. },
  2195. ]),
  2196. },
  2197. },
  2198. data: dataTemp2,
  2199. },
  2200. ],
  2201. }
  2202. option.title.text = '各省属企业录用结果公示人次'
  2203. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  2204. option.legend.show = true
  2205. option.tooltip.formatter = function (value) {
  2206. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  2207. }
  2208. option.yAxis[0] = {
  2209. type: 'log',
  2210. min: 1,
  2211. logBase: 10,
  2212. axisLine: {
  2213. show: false,
  2214. },
  2215. splitLine: {
  2216. show: true,
  2217. lineStyle: {
  2218. color: '#68b4dd66',
  2219. type: 'dashed',
  2220. },
  2221. },
  2222. axisLabel: {
  2223. show: true,
  2224. formatter: function (value) {
  2225. return value === 1 ? 0 : value
  2226. },
  2227. textStyle: {
  2228. color: 'rgba(250,250,250,0.6)',
  2229. },
  2230. },
  2231. }
  2232. myChart.setOption(option)
  2233. },
  2234. initChartR3 () {
  2235. let myChart = echarts.init(this.$refs['echartR3'])
  2236. let commonOptions = this.commonOption
  2237. commonOptions.yAxis[0].splitNumber = 2
  2238. let option = {
  2239. ..._.cloneDeep(commonOptions),
  2240. color: [
  2241. {
  2242. x: 0,
  2243. y: 0,
  2244. x2: 0,
  2245. y2: 1,
  2246. colorStops: [{
  2247. offset: 0,
  2248. color: '#45DAD1',
  2249. },
  2250. {
  2251. offset: 1,
  2252. color: '#082550',
  2253. },],
  2254. }
  2255. ],
  2256. series: [
  2257. {
  2258. name: '2022年利润(万)',
  2259. type: 'bar',
  2260. barWidth: 15,
  2261. label: {
  2262. normal: {
  2263. show: true,
  2264. position: 'bottom',
  2265. textStyle: {
  2266. color: '#69c0ff',
  2267. fontStyle: 'normal',
  2268. textAlign: 'left',
  2269. fontSize: 14,
  2270. },
  2271. formatter: function (data) {
  2272. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  2273. return data.value
  2274. } else {
  2275. return ''
  2276. }
  2277. }
  2278. }
  2279. },
  2280. itemStyle: {
  2281. normal: {
  2282. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2283. {
  2284. offset: 0,
  2285. color: '#69c0ff',
  2286. },
  2287. {
  2288. offset: 1,
  2289. color: '#082550',
  2290. },
  2291. ]),
  2292. },
  2293. },
  2294. data: dataR3[0],
  2295. },
  2296. {
  2297. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  2298. type: 'bar',
  2299. barWidth: 15,
  2300. yAxisIndex: 1,
  2301. label: {
  2302. normal: {
  2303. show: true,
  2304. position: 'top',
  2305. textStyle: {
  2306. color: '#45DAD1',
  2307. fontStyle: 'normal',
  2308. textAlign: 'right',
  2309. fontSize: 14,
  2310. },
  2311. formatter: function (data) {
  2312. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  2313. return data.value
  2314. } else {
  2315. return ''
  2316. }
  2317. }
  2318. }
  2319. },
  2320. itemStyle: {
  2321. color: params => {
  2322. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  2323. return 'red'
  2324. } else {
  2325. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2326. {
  2327. offset: 0,
  2328. color: '#45DAD1',
  2329. },
  2330. {
  2331. offset: 1,
  2332. color: '#082550',
  2333. },
  2334. ])
  2335. }
  2336. },
  2337. },
  2338. // itemStyle: {
  2339. // normal: {
  2340. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2341. // {
  2342. // offset: 0,
  2343. // color: '#45DAD1',
  2344. // },
  2345. // {
  2346. // offset: 1,
  2347. // color: '#082550',
  2348. // },
  2349. // ]),
  2350. // },
  2351. // },
  2352. data: dataR3[1],
  2353. },
  2354. ],
  2355. }
  2356. option.title.text = '各省属企业年利润与当年累计招聘人数'
  2357. option.legend.data = ['2022年利润(万)', '2022年招聘人数和2023年当前累计招聘人数之和']
  2358. option.legend.show = true
  2359. option.yAxis[0] = {
  2360. max: function (value) {
  2361. if (Math.abs(value.max) > Math.abs(value.min)) {
  2362. return (Math.abs(value.max) * 1.2).toFixed(2)
  2363. } else {
  2364. return (Math.abs(value.min) * 1.2).toFixed(2)
  2365. }
  2366. },
  2367. min: function (value) {
  2368. if (Math.abs(value.max) > Math.abs(value.min)) {
  2369. return (-Math.abs(value.max) * 1.2).toFixed(2)
  2370. } else {
  2371. return (-Math.abs(value.min) * 1.2).toFixed(2)
  2372. }
  2373. },
  2374. type: 'value',
  2375. axisLine: {
  2376. show: false,
  2377. },
  2378. splitLine: {
  2379. show: true,
  2380. lineStyle: {
  2381. color: '#68b4dd66',
  2382. type: 'dashed',
  2383. },
  2384. },
  2385. axisLabel: {
  2386. show: true,
  2387. formatter: function (value) {
  2388. return value === 1 ? 0 : value
  2389. },
  2390. textStyle: {
  2391. color: 'rgba(250,250,250,0.6)',
  2392. },
  2393. },
  2394. }
  2395. option.yAxis.push({
  2396. splitLine: {
  2397. show: false,
  2398. },
  2399. axisLine: {
  2400. show: false,
  2401. },
  2402. axisLabel: {
  2403. show: true,
  2404. formatter: '{value}',
  2405. textStyle: {
  2406. color: 'rgba(250,250,250,0.6)',
  2407. },
  2408. },
  2409. max: function (value) {
  2410. if (Math.abs(value.max) > Math.abs(value.min)) {
  2411. return (Math.abs(value.max) * 1.2).toFixed(2)
  2412. } else {
  2413. return (Math.abs(value.min) * 1.2).toFixed(2)
  2414. }
  2415. },
  2416. min: function (value) {
  2417. if (Math.abs(value.max) > Math.abs(value.min)) {
  2418. return (-Math.abs(value.max) * 1.2).toFixed(2)
  2419. } else {
  2420. return (-Math.abs(value.min) * 1.2).toFixed(2)
  2421. }
  2422. },
  2423. })
  2424. myChart.setOption(option)
  2425. },
  2426. initChartR4 () {
  2427. let myChart = echarts.init(this.$refs['echartR4'])
  2428. let commonOptions = this.commonOption
  2429. commonOptions.yAxis[0].splitNumber = 2
  2430. let option = {
  2431. ..._.cloneDeep(commonOptions),
  2432. color: [
  2433. {
  2434. x: 0,
  2435. y: 0,
  2436. x2: 0,
  2437. y2: 1,
  2438. colorStops: [{
  2439. offset: 0,
  2440. color: '#6480f3',
  2441. },
  2442. {
  2443. offset: 1,
  2444. color: '#082550',
  2445. },],
  2446. }
  2447. ],
  2448. series: [
  2449. {
  2450. name: '2022年退出人数和2023年当前累计退出人数之和',
  2451. type: 'bar',
  2452. barWidth: 15,
  2453. itemStyle: {
  2454. normal: {
  2455. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2456. {
  2457. offset: 0,
  2458. color: '#69c0ff',
  2459. },
  2460. {
  2461. offset: 1,
  2462. color: '#082550',
  2463. },
  2464. ]),
  2465. },
  2466. },
  2467. data: dataR4[0],
  2468. },
  2469. {
  2470. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  2471. type: 'bar',
  2472. barWidth: 15,
  2473. itemStyle: {
  2474. normal: {
  2475. color: params => {
  2476. // if (params.value / dataR4[0][params.dataIndex] > 3) {
  2477. // return 'green'
  2478. // } else if (params.value / 2 < dataR4[0][params.dataIndex]) {
  2479. // return 'yellow'
  2480. // }
  2481. if (dataR4[0][params.dataIndex] / 2 < params.value) {
  2482. return 'red'
  2483. }
  2484. else {
  2485. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2486. {
  2487. offset: 0,
  2488. color: '#6480f3',
  2489. },
  2490. {
  2491. offset: 1,
  2492. color: '#082550',
  2493. },
  2494. ])
  2495. }
  2496. },
  2497. },
  2498. },
  2499. data: dataR4[1],
  2500. },
  2501. ],
  2502. }
  2503. option.title.text = '各省属企业"退二进一"完成情况'
  2504. option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
  2505. option.legend.show = true
  2506. option.yAxis[0] = {
  2507. //type: 'log',
  2508. //min: 1,
  2509. //logBase: 3,
  2510. axisLine: {
  2511. show: false,
  2512. },
  2513. splitLine: {
  2514. show: true,
  2515. lineStyle: {
  2516. color: '#68b4dd66',
  2517. type: 'dashed',
  2518. },
  2519. },
  2520. axisLabel: {
  2521. show: true,
  2522. formatter: function (value) {
  2523. return value === 1 ? 0 : value
  2524. },
  2525. textStyle: {
  2526. color: 'rgba(250,250,250,0.6)',
  2527. },
  2528. },
  2529. }
  2530. myChart.setOption(option)
  2531. },
  2532. initChartR5 () {
  2533. let myChart = echarts.init(this.$refs['echartR5'])
  2534. let option = {
  2535. ..._.cloneDeep(this.commonOption),
  2536. series: [
  2537. {
  2538. name: '去年同期在岗职工平均薪酬',
  2539. type: 'bar',
  2540. barWidth: 15,
  2541. markLine: {
  2542. data: [
  2543. {
  2544. name: '省属企业平均水平',
  2545. yAxis: 9333.33,
  2546. lineStyle: {
  2547. color: '#fff',
  2548. },
  2549. label: {
  2550. formatter: '{b}',
  2551. position: 'middle',
  2552. fontSize: 16,
  2553. color: '#fff',
  2554. },
  2555. }
  2556. ],
  2557. label: {
  2558. distance: [50, 0],
  2559. },
  2560. },
  2561. itemStyle: {
  2562. normal: {
  2563. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2564. {
  2565. offset: 0,
  2566. color: '#6682F5',
  2567. },
  2568. {
  2569. offset: 1,
  2570. color: '#082550',
  2571. },
  2572. ]),
  2573. },
  2574. },
  2575. data: fjxdataL1[0],
  2576. },
  2577. {
  2578. name: '在岗职工平均薪酬',
  2579. type: 'bar',
  2580. barWidth: 15,
  2581. itemStyle: {
  2582. normal: {
  2583. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2584. {
  2585. offset: 0,
  2586. color: '#69c0ff',
  2587. },
  2588. {
  2589. offset: 1,
  2590. color: '#082550',
  2591. },
  2592. ]),
  2593. },
  2594. },
  2595. data: fjxdataL1[1],
  2596. },
  2597. ],
  2598. }
  2599. option.title.text = '各省属企业在岗职工平均薪酬'
  2600. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  2601. option.legend.show = true
  2602. option.yAxis.push({
  2603. splitLine: {
  2604. show: false,
  2605. },
  2606. axisLine: {
  2607. show: false,
  2608. },
  2609. })
  2610. myChart.setOption(option)
  2611. },
  2612. initChartR6 () {
  2613. let myChart = echarts.init(this.$refs['echartR6'])
  2614. let option = {
  2615. ..._.cloneDeep(this.commonOption),
  2616. color: ['#69c0ff'],
  2617. series: [
  2618. {
  2619. name: '月利润总额同期变化率',
  2620. type: 'line',
  2621. smooth: true, //平滑曲线显示
  2622. showAllSymbol: true, //显示所有图形。
  2623. symbol: 'circle', //标记的图形为实心圆
  2624. symbolSize: 8, //标记的大小
  2625. smooth: false,
  2626. label: {
  2627. normal: {
  2628. show: true,
  2629. lineHeight: '20',
  2630. position: 'top',
  2631. textStyle: {
  2632. color: '#B889EA',
  2633. fontStyle: 'normal',
  2634. textAlign: 'left',
  2635. fontSize: 16,
  2636. },
  2637. formatter: function (data) {
  2638. if (data.name == '文旅集团') {
  2639. return data.value
  2640. } else {
  2641. return ''
  2642. }
  2643. }
  2644. }
  2645. },
  2646. itemStyle: {
  2647. //折线拐点标志的样式
  2648. color: '#B889EA',
  2649. borderColor: '#B889EA',
  2650. width: 2,
  2651. shadowColor: '#B889EA',
  2652. shadowBlur: 4,
  2653. },
  2654. lineStyle: {
  2655. color: '#B889EA',
  2656. width: 2,
  2657. },
  2658. data: fjxdataL2[0],
  2659. },
  2660. {
  2661. name: '月薪酬总额同期变化率',
  2662. type: 'line',
  2663. smooth: true, //平滑曲线显示
  2664. showAllSymbol: true, //显示所有图形。
  2665. symbol: 'circle', //标记的图形为实心圆
  2666. symbolSize: 12, //标记的大小
  2667. smooth: false,
  2668. label: {
  2669. normal: {
  2670. show: true,
  2671. position: 'top',
  2672. lineHeight: '35',
  2673. textStyle: {
  2674. color: '#69c0ff',
  2675. fontStyle: 'normal',
  2676. textAlign: 'left',
  2677. fontSize: 16,
  2678. },
  2679. formatter: function (data) {
  2680. if (data.name == '文旅集团') {
  2681. return data.value
  2682. } else {
  2683. return ''
  2684. }
  2685. }
  2686. }
  2687. },
  2688. itemStyle: {
  2689. color: params => {
  2690. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  2691. return 'yellow'
  2692. } else if (params.value < 0 && fjxdataL2[0][params.dataIndex] > 0) {
  2693. return 'green'
  2694. }
  2695. else {
  2696. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2697. {
  2698. offset: 0,
  2699. color: '#69c0ff',
  2700. },
  2701. {
  2702. offset: 1,
  2703. color: '#082550',
  2704. },
  2705. ])
  2706. }
  2707. },
  2708. },
  2709. lineStyle: {
  2710. color: '#69C0FF',
  2711. width: 2,
  2712. },
  2713. data: fjxdataL2[1],
  2714. },
  2715. {
  2716. type: 'effectScatter',
  2717. coordinateSystem: 'cartesian2d',
  2718. showEffectOn: 'render',
  2719. rippleEffect: {
  2720. period: 10,
  2721. scale: 4,
  2722. brushType: 'stroke'
  2723. },
  2724. hoverAnimation: true,
  2725. itemStyle: {
  2726. color: 'yellow'
  2727. },
  2728. lineStyle: {
  2729. color: '#43ede3',
  2730. width: 2,
  2731. },
  2732. data: this.twinkleR6,
  2733. },
  2734. ],
  2735. }
  2736. option.title.text = '各省属企业利润与薪酬变动情况'
  2737. option.legend.data = ['月利润总额同期变化率', '月薪酬总额同期变化率']
  2738. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2739. option.yAxis[0].axisLabel.formatter = '{value} %'
  2740. myChart.setOption(option)
  2741. },
  2742. initChartR7 () {
  2743. let myChart = echarts.init(this.$refs['echartR7'])
  2744. let option = {
  2745. ..._.cloneDeep(this.commonOption),
  2746. color: [
  2747. {
  2748. x: 0,
  2749. y: 0,
  2750. x2: 0,
  2751. y2: 1,
  2752. colorStops: [{
  2753. offset: 0,
  2754. color: '#B889EA',
  2755. },
  2756. {
  2757. offset: 1,
  2758. color: '#082550',
  2759. },],
  2760. }
  2761. ],
  2762. series: [
  2763. {
  2764. name: '全员绩效考核完成率',
  2765. type: 'bar',
  2766. barWidth: 15,
  2767. itemStyle: {
  2768. normal: {
  2769. color: params => {
  2770. if (params.value < 50) {
  2771. return 'yellow'
  2772. }
  2773. else {
  2774. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2775. {
  2776. offset: 0,
  2777. color: '#B889EA',
  2778. },
  2779. {
  2780. offset: 1,
  2781. color: '#082550',
  2782. },
  2783. ])
  2784. }
  2785. },
  2786. },
  2787. },
  2788. data: fjxdataL3[0],
  2789. },
  2790. ],
  2791. }
  2792. option.title.text = '各省属企业全员绩效考核'
  2793. option.legend.show = true
  2794. option.tooltip = {
  2795. trigger: 'axis',
  2796. formatter: '{a0}:{c0}' + '%'
  2797. },
  2798. option.yAxis[0].axisLabel = {
  2799. show: true,
  2800. formatter: '{value} %',
  2801. textStyle: {
  2802. color: 'rgba(250,250,250,0.6)',
  2803. },
  2804. }
  2805. myChart.setOption(option)
  2806. },
  2807. initChartR8 () {
  2808. let myChart = echarts.init(this.$refs['echartR8'])
  2809. let option = {
  2810. ..._.cloneDeep(this.commonOption),
  2811. color: [
  2812. {
  2813. x: 0,
  2814. y: 0,
  2815. x2: 0,
  2816. y2: 1,
  2817. colorStops: [{
  2818. offset: 0,
  2819. color: '#43ede3',
  2820. },
  2821. {
  2822. offset: 1,
  2823. color: '#082550',
  2824. },],
  2825. }
  2826. ],
  2827. series: [
  2828. {
  2829. name: '任期制契约化完成率',
  2830. type: 'bar',
  2831. barWidth: 15,
  2832. itemStyle: {
  2833. normal: {
  2834. color: params => {
  2835. if (params.value < 50) {
  2836. return 'yellow'
  2837. }
  2838. else {
  2839. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2840. {
  2841. offset: 0,
  2842. color: '#43ede3',
  2843. },
  2844. {
  2845. offset: 1,
  2846. color: '#082550',
  2847. },
  2848. ])
  2849. }
  2850. },
  2851. },
  2852. },
  2853. data: fjxdataL4[0],
  2854. },
  2855. ],
  2856. }
  2857. option.title.text = '各省属企业任期制契约化管理'
  2858. option.legend.show = true
  2859. option.tooltip.formatter = '{a0}:{c0}' + '%'
  2860. option.yAxis[0].axisLabel.formatter = '{value} %'
  2861. myChart.setOption(option)
  2862. },
  2863. },
  2864. })