index.js 93 KB

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