index.js 88 KB

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