index.js 88 KB

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