123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439 |
- let barImg =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxbAwqPAyyCgJhonRKR5HkCXSkFIQIJReHmKqy6ytAHAWKKALEkMkNDMG3SAA6Kzc08gZGxOBq0MOAF+Akur6PAG9EILQJSJsIaISYIsRKEAyURJFGMIg0CKIIAggjAMMIhkIChBUiQjpEkyAUApQdBTRLADqogK6ratQr/4FrgI8FPTpwLbqmQyyc0ZTgWOEUBRLjyACUSoQjRumS9f94d+7G6evyH53ZtH/jz/4bBpxzrCT0AAdYSiRdjgiVtiyFwDHFUNSvlMuYGh8NenTgcooAJSEwEDVxpKkQ0chkmoowo4zSSEQUE4396YbHH043TbnvzNGDP50+b9EPiv0fb+168annpQgDSCDnAecIygA6QYg0xR0JQ+ApDhCOQNoVw3Q+Kvhw6LGB4wdMJzQFNV2JgERYY8RkRkR0hglkCGrGF1c/+qDVOGVl9/7tTwx+9OHFxhtvmty+5L4f2wO/33F4+zMvqSj0pIgCKPxAOIEHZRggwoQbhT7wBQfxA3sZfEypjOa91c+qGo4jHAMzqKWQwRTxqYpSBqVIR9S0EGM6xNi8ZcUD66zc1BU9Xbt/buc/LgJEAVAcZJpbsjctXPE9d+DCy//36sYtkZSOCgJfccfmXPkIuh4SOneVF4AgCscDPhy6+r7qEjUNM6AlEY6BlZEiFBpIT2cQoSlCdWvusq/fn8pN/fLJI3t/5dl5JwKYIIKgEiqCQAojkzM/f9udj7r5868d27dji+C+rQR3lV8uCR55CCoPSRgmEQ9AeFnjI1yl4kbVp7V+hWD2bJK4RJDFsYZTETGuAGZWFmKUJtSy5iz52loz27TsdHfX875jh5BQDSNMAYAQgCiSSvJI8FA309rM9kUPeYX+zp43dm4R3LYjqcoqsIsJOPLcJOJQeInGWVFWXOWEqLrJkL6vhE1uopo4YlkYJWpCi0lfMcWMFCEghWJgRDPY0LOti7+6xsg0L+072rWZ81AiTFNIIwwBTJNwRAAoILkKRaAkdzVNw59rX/SAn+//n95Du7ZJzy9GipcScAFcFHgu1lHgRHaQuEo24KM8mFH80/WpuZI8Yll4OrUaY2CgKYgMYlATMrMBIpjButkw546V9xsNzUvOvH9oq+AcQMbShFIDE8KYmbWmzV3Y9rsPDh0P3WJJChEIzr0oCMpE0+D0eQu/6eUv7j1+aPdW6TuFSEWlKHAKwuMOipSHdRDag3YADJ8nCejEkEyG5FEHXn34iowmsoBCV8wyMEQWwkYGajSDsd4wp+OedXpD87IzR9/6rRQBgkzPYspMhDRDT2esGfMWtxHKmAiDsK+765hfLtlKhZ7kgRMFfpFSpqa1L1wTR/x418ubpfQLUchLSnolGSkbBbbnRsRPZHI52kNuUgOurO3tGOTzJI4yaMpqukKGwtQkGrOopmcx0Rpv6vjaeiPTuKyv+81tkocEa0YDpCyDCU3p6YZsS9uXZhLKtFruFTzgZ3v/93RQKhSk4G4k/LIM/DwmTMYRD4uDr/V27XxJhn6BizCPwsAWkjs+Uh4YKIZJtHM5Abq7Y+ikQqyDXo5A+yWUQGuaZgJTl5Fp4DRLI4wzmKaa2pev2cDMhrtOHz2wmQeCIIM1YaJnscYsZmUz0+YsmIkppcOLBSk4P3f8SF9ol0uce2UZ+kXlBQOUaWLmvEVrg3L+1e7Xt70guTugpCzJclDG0PEc4PjAy3DQLDnonqSq9ckw6FjPsTQY0AxADGUxEwMtTfVU462rHv6WZjasPPFO54th4BOkGc2EsRzGWoZlcg0tc+bPxFSjcSxyKQ38RcdM8J9dp0HeCZOnRgouPzp+5JRfzOelDEsiCPIq9Pp1zZCz5i97MCwXdr27+7lngQjzvnBLyA4cDwgvscBEIpd1XRfpBRjMGMCgRLR0c1YTdmBg07IgS+Vu/+bffptZma/3HNr9jOfYGmGpZqIbTYjoOSPT0NzS+sVZiFIaRRHIpRj47t1toNliYMAOwZN7joFBJwAQQqAEl2d7D5/0i4VLSvh5GXqD3HMvGak0b7vjnkcCJ7/trS2//HUUuHmppI2h8O3BcgAyIgR9TRKAI4lEroRuuUCAq1Mrl9KFRClspTNL13//O1o6u6b79d8+5ZQGCGSpKdQwJlHNaGLpxsnT5i6ciwnRogiAhpQ2BFyTSAL+yjGQt8PEuaUU/OwHhz4IioMXufAGpOv2y9A7n840qZuXrn7MLRc2Hdj403+XdrlEsHLtvOuDlM/BuSliJHR7OwHFIh6CFrq57NF/XpttvvGxt1/Z+ETp0tkIadYUaqSmEmZMSuUm3TDjliXzISIsimQC/NiKSoSHHzH4U68cA4N2CBDGIBIiPP3e/ne8wqVzIvAucc89r0L7QsOUz6Fb73rgX0oXzv6s85l/3UaI7wxBZ7MSdHcnieZypGvQjqbF/iw4s9b8+NebTx7ufPbDt187R/T0JKIbUzE1phJdb25ddO+XWcrKSSnjvAf+/q5W0Do1MwK49sGHF8vgF3t6AIQYYExA4NulngM7XpW+f0ly77zw7QvCdy+2fenuGdO/0LF224++/SDGnuMUXB+YYQgq0LE81EjomjyGIn3DP7yz54Univ0fw/pIGw2TWmbesuQ2iGNpVCL93RVzQZM15HZDNzDohOCpPT1gwA6GIt33/oF33PyFKyKdmXQDnP+Vh35YujjeSIMFGIym6Q0/+I5mZr7x/t7Nv/Cc0miavhkTQmNN58yREomBn9zTA+IEV9P0uWNvHfOKAxcF9/prmjYzTaJ96erHw3Jxy+sbf/L0+DQdQ4/lHvf/3V8zM72q9+DuZ1zX1q9wj2yuuaV1wSxEKu7RaLIhbdeAB2y/zj2OnPTL+UsqrHMP0wpbF658JLQL29/6zdP/cR3uUS1Hx/DpW1Y+/Fe6lV1x8vDe5wMRavU+radzuRtb58/CVMOJT5sa+MuOmeDZrr5EEpd9+u1TXjFfUDIo1nxaY7qYfdvyDaFT2PXuruv26WpG7Mc0qe5Gz4gPMyt356n33tgiwrqMyIy0bqUzLXMWzMDkckaMJZNIQnB57vjbp0K7NJQRpe8Pahrls+Z1rPWd/KvdnRPKiOOrPVqX3LtesxqW/u7owW1ChBQzPQeJnq6rPWYRjSWZMY5wUnv0HD4dlPIFqXhc55dlEOQxpWJG+6JvBKX8vt4D/7VxgrVH/LCPr8pr7Vj5AGto7jhz9OAOKcKRVV774rlE0zUR+mHfB2/2+HaxrEStyguKlGpqWvvtq/3C4L7jb+7cLHmQn0iVV+1i6tqsa9TTbXesWssamhfHEechhyPq6fZFN589eqgnsPMlqerqaUbB9LgsLfTv6z348oTr6VrbVfXs8XcubXesur8S8Te3DO9coigxjCjuXOIMKDl3KNXwjHmL13qF/td7D+7c+kk6l+G94nX1iG3L7l1rZBqX9r1/4DnPdcTwHjGSQkgpgrhHnNW+6CG3PLivZ/+OLSJwyp+0R6yPNgBgjG48HtJEyBjZjd+3LpWbvPzEkb1P+3bBH9GNWznz8wvufMTJX+js2bd906fVjY/SmV/f3OMLX1n/52Zu6p/1du18slw4X6rNPazcDdm2xSsft/O/3/Penpc2RZx7inP305p7XBv8GhOm21f/zYZU4+R7jnZu/WH+/Kn+xj+ZNbl92Zof2QPndx3e/qsX/xATplqBM2ysUPdgjjLLIxFm8dCxNstb8uD3vmU1T763790D/zbj1o5/Kg9c2P7GCz9/DgEVCiDDeBgpPuVZ3tXBxzs1fej7q3JTp6/Lnz+zaf/zP9n1WUxNRwO/nHhqk6d4mD58Ps20eKg+cj6NqQRBOHI+HQ/XhyZJya7AJ5pPjwF+9Z0AS48LJpnIq34nAEAc2X4oP4udgDHA60Zn8TdiychmmMyu6/dbIgUBrGxfJEc8xo1n0Lg/+kPvuVwF/I97d2s4eL011mqWquP8ce0j1jesow3iR2toq3PTMXvdz2THdvjVr7YzNibpsD9cc6NztB/6f4ffQsan0xs3AAAAAElFTkSuQmCC'
- let app = new Vue({
- el: '#app',
- data () {
- return {
- start: 0,
- end: 9,
- touch: true,
- timeCommon: '',
- echartC1: {
- national: '',
- province: ''
- },
- echartC2: {
- national: '',
- province: ''
- },
- titleName: '',
- twinkle7: [],
- twinkle8: [],
- twinkleR6: [],
- showTip: false,
- tipNum: '',
- time: '',
- year: '2022',
- config1: {
- number: [100],
- content: '{nt}个',
- },
- centerData: '',
- storageRecordConfig: {
- header: ['', '公司名称', '工作情况'],
- headerBGC: '#05507b33',
- oddRowBGC: '#69c0ff0f',
- evenRowBGC: '',
- headerHeight: '50',
- rowNum: 4,
- align: ['center', 'center', 'center', 'center'],
- data: [],
- },
- storageRecordConfig2: {
- header: ['企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
- headerBGC: '#05507b33',
- oddRowBGC: '#05507b33',
- evenRowBGC: '',
- headerHeight: '50',
- rowNum: 4,
- align: ['center', 'center', 'center', 'center'],
- data: [],
- },
- companyList: companyList,
- commonOption: []
- }
- },
- beforeMount () {
- },
- mounted () {
- this.getUrlParams()
- this.time = formatDate()
- this.timer = setInterval(() => {
- this.time = formatDate()
- }, 1000)
- this.centerData = data
- },
- beforeDestroy () {
- clearInterval(this.timer);
- clearInterval(this.timeCommon);
- },
- methods: {
- change () {
- if (this.end < this.companyList.length) {
- this.start += 9
- this.end += 9
- } else {
- this.start = 0
- this.end = 9
- }
- },
- judgeCarousel () {
- let a = {
- title: {
- text: 'xxx',
- x: 'center',
- y: '3%',
- textStyle: {
- color: '#69C0FF',
- fontSize: 24,
- },
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow',
- },
- },
- grid: {
- top: '22%',
- right: '5%',
- left: '8%',
- bottom: '25%',
- },
- legend: {
- data: '',
- top: '12%',
- right: '5%',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- fontSize: 16,
- },
- },
- xAxis: {
- // data: companyList.map(item => item.name),
- data: '',
- axisLine: {
- show: true, //隐藏X轴轴线
- lineStyle: {
- color: '#005094',
- width: 1,
- },
- },
- axisTick: {
- show: false, //隐藏X轴刻度
- },
- axisLabel: {
- show: true,
- rotate: 15,
- textStyle: {
- color: 'rgba(255,255,255,0.6)', //X轴文字颜色
- fontSize: 16,
- },
- },
- },
- yAxis: [
- {
- type: 'value',
- nameTextStyle: {
- color: '#ebf8ac',
- fontSize: 16,
- },
- splitLine: {
- show: true,
- lineStyle: {
- color: '#68b4dd66',
- type: 'dashed',
- },
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- fontSize: 16,
- },
- },
- },
- ],
- }
- a.xAxis.data = this.companyList.map(item => item.name)
- if (this.companyList.length > 18) {
- a.dataZoom = [
- {
- // start: 9,//默认为@
- // end: 100,//黑认认为1@0
- type: "slider",
- show: false,
- // xAxisIndex: [0]
- handlesize: 0,//滑动条的 左右2个滑动条的大小
- startValue: 17,// 初始显示值
- endValue: 0,// 结束显示值
- height: 10,//组件高度
- left: "5%",
- right: "4%",//右边的距离
- bottom: "25%",//底边的距离
- borderColor: "#939",
- fillerColor: "#269cdb",
- borderRadius: 5,
- backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
- showDataShadow: false,//是否显示数据阴影
- showDetail: false,//即拖拽时候是否显示详细数值信息
- truerealtime: true,//是否实时更新
- filterMode: "filter"
- }, {
- type: 'inside',
- show: true,
- start: 1,
- end: 100
- }
- ]
- }
- this.commonOption = a
- },
- // 获取地址栏参数
- getUrlParams (id) {
- let url = window.location.href
- // 通过 ? 分割获取后面的参数字符串
- let urlStr = url.split('?')[1]
- // 创建空对象存储参数
- let obj = {};
- // 再通过 & 将每一个参数单独分割出来
- let paramsArr = urlStr.split('&')
- for (let i = 0, len = paramsArr.length; i < len; i++) {
- // 再通过 = 将每一个参数分割为 key:value 的形式
- let arr = paramsArr[i].split('=')
- obj[arr[0]] = arr[1];
- }
- this.access_token = obj.access_token
- this.orgNumber = obj.id
- this.titleName = decodeURIComponent(obj.name)
- // this.getData()
- this.getInstitutional()
- },
- // 获取组织机构
- getInstitutional () {
- return new Promise((resolve, err) => {
- let value = {
- access_token: this.access_token,
- "Data": {
- "paramType": "ORG",
- "orgNumber": this.orgNumber
- // "orgNumber": '1494979736584079360'
- }
- }
- post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
- this.companyList = res.data.map(item => {
- return { name: item.orgName, id: item.orgNumber }
- })
- this.getData()
- this.judgeCarousel()
- resolve(1);
- })
- });
- },
- generateEcharts () {
- // 左侧图表
- this.initChartL1()
- // this.initChartL2()
- this.initChartL3()
- // this.initChartL4()
- // this.initChartL5()
- this.initChartL6()
- // this.initChartL7()
- // this.initChartL8()
- // 中间图表
- this.initChartC1()
- this.initChartC2()
- // 右侧图表
- // this.initChartR1()
- // this.initChartR2()
- // this.initChartR3()
- this.initChartR4()
- this.initChartR5()
- // this.initChartR6()
- this.initChartR7()
- // this.initChartR8()
- },
- getData () {
- return new Promise((resolve, err) => {
- let value = {
- access_token: this.access_token,
- "Data": {
- "paramType": "DATA",
- "orgNumber": this.orgNumber
- }
- }
- post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
- res.orgData = res.data[0]
- // 定机构
- // 弹窗
- // return
- // 左侧图表
- tipData.analysis[0] = res.orgData.area1.intAnalysis.map(item => item.analysis)
- //各二级企业本部机构数
- dataL1[0] = []
- dataL1[1] = []
- dataL1[2] = []
- res.orgData.area1.card1.forEach(item => {
- dataL1[0].push(item['ZBPZ0088'])
- dataL1[1].push(item['ZBPZ0010'])
- dataL1[2].push(item['ZBPZ0089'])
- })
- // 各二级企业所属架构数
- dataL2[0] = []
- res.orgData.area1.card2.forEach(item => {
- dataL2[0].push(item['ZBPZ0024'])
- })
- // 定职数
- // 弹窗
- // 左侧图表
- tipData.analysis[2] = res.orgData.area2.intAnalysis.map(item => item.analysis)
- //各二级企业本部中层管理人数
- dataL3[0] = []
- res.orgData.area2.card1.forEach(item => {
- dataL3[0].push(item['ZBPZ0091'])
- })
- // 各二级企业管理人员数
- dataL4[1] = []
- dataL4[0] = []
- dataL4[2] = []
- res.orgData.area2.card1.forEach(item => {
- dataL4[1].push(item['ZBPZ0091'])
- dataL4[0].push(item['ZBPZ0093'])
- dataL4[2].push(item['ZBPZ0092'])
- })
- // 定员额
- // 弹窗
- tipData.analysis[1] = res.orgData.area3.intAnalysis.map(item => item.analysis)
- // 各二级企业总人数
- dataL5[0] = []
- dataL5[1] = []
- dataL5[2] = []
- res.orgData.area3.card1.forEach(item => {
- dataL5[0].push(item['ZBPZ0006'])
- dataL5[1].push(item['ZBPZ0050'])
- dataL5[2].push(item['ZBPZ0051'])
- })
- // 各二级企业本部员额数
- dataL6[0] = []
- dataL6[2] = []
- dataL6[1] = []
- res.orgData.area3.card2.forEach(item => {
- dataL6[0].push(item['ZBPZ0031'])
- dataL6[2].push(item['ZBPZ0094'])
- dataL6[1].push(item['ZBPZ0095'])
- })
- // 人数变化和全员劳动生产率变化率分析
- dataL7[0] = []
- dataL7[1] = []
- res.orgData.area3.card3.forEach(item => {
- dataL7[0].push(item['ZBPZ0050'])
- dataL7[1].push(item['ZBPZ0039'])
- })
- // 人数变化和人工利润率变化分析
- dataL8[0] = []
- dataL8[1] = []
- res.orgData.area3.card4.forEach(item => {
- dataL8[0].push(item['ZBPZ0050'])
- dataL8[1].push(item['ZBPZ0041'])
- })
- // 定机制
- // 弹窗
- tipData.analysis[6] = res.orgData.area4.intAnalysis.map(item => item.analysis)
- // 各二级企业招聘需求公告人次情况
- dataR1[0] = []
- dataR1[1] = []
- res.orgData.area4.card1.forEach(item => {
- dataR1[0].push(item['ZBPZ0057'])
- dataR1[1].push(item['ZBPZ0058'])
- })
- // 各二级企业录用结果公示人次
- dataR2[0] = []
- dataR2[1] = []
- res.orgData.area4.card2.forEach(item => {
- dataR2[0].push(item['ZBPZ0059'])
- dataR2[1].push(item['ZBPZ0060'])
- })
- // 各二级企业年利润与招聘情况分析
- dataR3[0] = []
- dataR3[1] = []
- res.orgData.area4.card3.forEach(item => {
- dataR3[0].push(item['ZBPZ0054'])
- dataR3[1].push(item['ZBPZ0055'])
- })
- // 各二级企业"退二进一"完成情况
- dataR4[0] = []
- dataR4[1] = []
- res.orgData.area4.card4.forEach(item => {
- dataR4[0].push(item['ZBPZ0056'])
- dataR4[1].push(item['ZBPZ0055'])
- })
- // 定薪酬
- // 弹窗
- tipData.analysis[5] = res.orgData.area5.intAnalysis.map(item => item.analysis)
- // 各二级企业在岗职工平均薪酬
- dataR5[0] = []
- dataR5[1] = []
- res.orgData.area5.card1.forEach(item => {
- dataR5[0].push(item['ZBPZ0063'])
- dataR5[1].push(item['ZBPZ0064'])
- })
- // 各二级企业利润与薪酬变动情况
- dataR6[0] = []
- dataR6[1] = []
- res.orgData.area5.card2.forEach(item => {
- dataR6[0].push(item['ZBPZ0061'])
- dataR6[1].push(item['ZBPZ0062'])
- })
- // 定任期
- // 弹窗
- tipData.analysis[6] = res.orgData.area6.intAnalysis.map(item => item.analysis)
- // 各二级企业全员绩效考核
- dataR7[0] = []
- res.orgData.area6.card1.forEach(item => {
- dataR7[0].push(item['ZBPZ0066'])
- })
- // 各二级企业任期制契约化考核完成率
- dataR8[0] = []
- res.orgData.area6.card2.forEach(item => {
- dataR8[0].push(item['ZBPZ0065'])
- })
- // 中间
- // 架岗人员
- this.centerData.info.value1 = res.orgData.area7.ZBPZ0037
- this.centerData.info.value2 = res.orgData.area7.ZBPZ0038
- this.centerData.info.value3 = res.orgData.area7.ZBPZ0006
- // 六定改革成效
- // this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0067
- // this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0068
- // this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0069
- this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0077
- this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0078
- this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0079
- this.centerData.changeInfo[2].value1 = res.orgData.area8.ZBPZ0074
- this.centerData.changeInfo[2].value2 = res.orgData.area8.ZBPZ0075
- this.centerData.changeInfo[2].value3 = res.orgData.area8.ZBPZ0076
- this.centerData.changeInfo[1].value1 = res.orgData.area8.ZBPZ0071
- this.centerData.changeInfo[1].value2 = res.orgData.area8.ZBPZ0072
- this.centerData.changeInfo[1].value3 = res.orgData.area8.ZBPZ0073
- // 核心指标监测
- // 弹窗
- tipData.analysis[3] = res.orgData.area9.intAnalysis.map(item => item.analysis)
- // 各二级企业全员劳动生产率
- dataC1[0] = []
- dataC1[1] = []
- res.orgData.area9.card1.forEach(item => {
- dataC1[0].push(item['ZBPZ0035'])
- dataC1[1].push(item['ZBPZ0039'])
- })
- // 各二级企业人工成本利润率
- dataC2[1] = []
- dataC2[0] = []
- res.orgData.area9.card2.forEach(item => {
- dataC2[1].push(item['ZBPZ0040'])
- dataC2[0].push(item['ZBPZ0041'])
- })
- this.echartC1.national = res.orgData.area9.card1[0].ZBPZ0097
- this.echartC1.province = res.orgData.area9.card1[0].ZBPZ0096
- this.echartC2.national = res.orgData.area9.card2[0].ZBPZ0099
- this.echartC2.province = res.orgData.area9.card2[0].ZBPZ0098
- // 分析预警中心
- // 工作台分析
- this.storageRecordConfig.data = []
- res.orgData.area10.card1.forEach(item => {
- 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])
- })
- this.storageRecordConfig = { ...this.storageRecordConfig }
- // 数据库预警
- // this.storageRecordConfig2.data = []
- // res.orgData.area10.card2.forEach(item => {
- // this.storageRecordConfig.data.push(['<span class="lightOut"><span class="light ' + (item.lightsup === '0' ? 'red' : item.lightsup === '1' ? 'yellow' : 'green') + '"></span></span>', item.warning, item.date])
- // })
- dataL7[0].forEach((item, index) => {
- if (dataL7[1][index] < 0 && dataL7[0][index] > 0) {
- let obj = { value: [this.companyList[index].name, dataL7[0][index]], symbolSize: 15 }
- this.twinkle7.push(obj)
- }
- })
- // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
- dataL8[0].forEach((item, index) => {
- if (dataL8[1][index] < 0 && dataL8[0][index] > 0) {
- let obj = { value: [this.companyList[index].name, dataL8[0][index]], symbolSize: 15 }
- this.twinkle8.push(obj)
- }
- })
- //params.value > 0 && dataR6[0][params.dataIndex] < 0
- // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
- dataR6[0].forEach((item, index) => {
- if (dataR6[1][index] > 0 && dataR6[0][index] < 0) {
- let obj = { value: [this.companyList[index].name, dataR6[1][index]], symbolSize: 15 }
- this.twinkleR6.push(obj)
- }
- })
- this.tipData = tipData.analysis
- this.generateEcharts()
- if (this.companyList.length > 18) {
- this.timeCommon = setInterval(() => {
- if (that.touch) {
- if (that.commonOption.dataZoom[0].startValue < that.companyList.length) {
- that.commonOption.dataZoom[0].endValue += 18
- that.commonOption.dataZoom[0].startValue += 18
- } else {
- that.commonOption.dataZoom[0].endValue = 0
- that.commonOption.dataZoom[0].startValue = 18
- }
- that.generateEcharts()
- }
- }, 15000)
- }
- resolve(1)
- })
- });
- },
- handleShowTip (index) {
- this.showTip = true
- this.tipNum = index
- },
- handleGoPage (id,name) {
- window.location.href = './index5.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
- // this.orgNumber = id
- // this.titleName = name
- // this.getInstitutional()
- },
- handleGoIndex () {
- window.location.href = './index.html'
- },
- handleGoBack () {
- window.history.go(-1)
- },
- numFormat (value) {
- if (!value) return '0'
- // var intPart = Number(value).toFixed(0) // 获取整数部分
- var intPart = parseInt(value)// 获取整数部分
- var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
- var floatPart = '.00' // 预定义小数部分
- var value2Array = value.toString().split('.')
- // =2表示数据有小数位
- if (value2Array.length === 2) {
- floatPart = value2Array[1].toString() // 拿到小数部分
- if (floatPart.length === 1) {
- // 补0
- return intPartFormat + '.' + floatPart + '0'
- } else {
- return intPartFormat + '.' + floatPart
- }
- } else {
- return intPartFormat
- }
- },
- initChartL1 () {
- let myChart = echarts.init(this.$refs['echartL1'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#5e7ae9',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '各企业本部机构数核定上限',
- type: 'line',
- // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- itemStyle: {
- //折线拐点标志的样式
- color: '#fbe138',
- borderColor: '#fbe138',
- width: 2,
- shadowColor: '#fbe138',
- shadowBlur: 4,
- },
- lineStyle: {
- color: '#fbe138',
- width: 2,
- },
- data: dataL1[2],
- },
- {
- name: '六定改革前各企业本部机构数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL1[0],
- },
- {
- name: '当前各企业本部机构数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: params => {
- if (params.value > dataL1[2][params.dataIndex]) {
- return 'yellow'
- } else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#5e7ae9',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- },
- data: dataL1[1],
- },
- ],
- // tooltip: {
- // trigger: 'item',
- // position: 'top'
- // },
- }
- option.title.text = '本部机构数'
- option.legend.data = ['六定改革前各企业本部机构数', '当前各企业本部机构数', '各企业本部机构数核定上限']
- option.yAxis.push({
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- })
- myChart.setOption(option)
- },
- initChartL2 () {
- let myChart = echarts.init(this.$refs['echartL2'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '当前各企业所属架构数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL2[0]
- }
- ],
- }
- option.title.text = '各企业所属架构数'
- option.legend.data = ['当前各企业所属架构数']
- option.yAxis.push({
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- })
- myChart.setOption(option)
- },
- initChartL3 () {
- let myChart = echarts.init(this.$refs['echartL3'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#6480f3',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '六定改革前各本部中层管理人数',
- type: 'bar',
- barWidth: 15,
- label: {
- normal: {
- show: true,
- position: 'top',
- textStyle: {
- color: '#69c0ff',
- fontStyle: 'normal',
- textAlign: 'left',
- fontSize: 16,
- },
- formatter: function (data) {
- if (data.name == '云时代') {
- return data.value
- } else {
- return ''
- }
- }
- }
- },
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#6480f3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL4[0],
- },
- {
- name: '当前各本部中层管理人数',
- type: 'bar',
- barWidth: 15,
- label: {
- normal: {
- show: true,
- position: 'top',
- textStyle: {
- color: '#6480f3',
- fontStyle: 'normal',
- textAlign: 'left',
- fontSize: 16,
- },
- formatter: function (data) {
- if (data.name == '云时代') {
- return data.value
- } else {
- return ''
- }
- }
- }
- },
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL4[1],
- },
- {
- name: '各本部中层管理人数核定上限',
- type: 'line',
- // yAxisIndex: 1,
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- label: {
- normal: {
- show: true,
- position: 'top',
- textStyle: {
- color: '#fbe138',
- fontStyle: 'normal',
- textAlign: 'left',
- fontSize: 16,
- },
- formatter: function (data) {
- if (data.name == '云时代') {
- return data.value
- } else {
- return ''
- }
- }
- }
- },
- itemStyle: {
- //折线拐点标志的样式
- color: '#fbe138',
- borderColor: '#fbe138',
- width: 2,
- shadowColor: '#fbe138',
- shadowBlur: 4,
- },
- lineStyle: {
- color: '#fbe138',
- width: 2,
- },
- data: dataL4[2],
- },
- ],
- }
- option.title.text = '各企业本部中层管理人数'
- option.legend.data = ['六定改革前各本部中层管理人数', '当前各本部中层管理人数', '各本部中层管理人数核定上限']
- option.yAxis.push({
- type: 'value',
- axisLine: {
- show: false,
- },
- splitLine: {
- show: false,
- },
- })
- myChart.setOption(option)
- },
- initChartL4 () {
- let myChart = echarts.init(this.$refs['echartL4'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#6480f3',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '六定改革前各本部中层管理人数',
- type: 'bar',
- barWidth: 15,
- label: {
- normal: {
- show: true,
- position: 'top',
- textStyle: {
- color: '#69c0ff',
- fontStyle: 'normal',
- textAlign: 'left',
- fontSize: 16,
- },
- formatter: function (data) {
- if (data.name == '云时代') {
- return data.value
- } else {
- return ''
- }
- }
- }
- },
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#6480f3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL4[0],
- },
- {
- name: '当前各本部中层管理人数',
- type: 'bar',
- barWidth: 15,
- label: {
- normal: {
- show: true,
- position: 'top',
- textStyle: {
- color: '#6480f3',
- fontStyle: 'normal',
- textAlign: 'left',
- fontSize: 16,
- },
- formatter: function (data) {
- if (data.name == '云时代') {
- return data.value
- } else {
- return ''
- }
- }
- }
- },
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL4[1],
- },
- {
- name: '各本部中层管理人数核定上限',
- type: 'line',
- // yAxisIndex: 1,
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- label: {
- normal: {
- show: true,
- position: 'top',
- textStyle: {
- color: '#fbe138',
- fontStyle: 'normal',
- textAlign: 'left',
- fontSize: 16,
- },
- formatter: function (data) {
- if (data.name == '云时代') {
- return data.value
- } else {
- return ''
- }
- }
- }
- },
- itemStyle: {
- //折线拐点标志的样式
- color: '#fbe138',
- borderColor: '#fbe138',
- width: 2,
- shadowColor: '#fbe138',
- shadowBlur: 4,
- },
- lineStyle: {
- color: '#fbe138',
- width: 2,
- },
- data: dataL4[2],
- },
- ],
- }
- option.title.text = '各企业本部中层管理人数'
- option.legend.data = ['六定改革前各本部中层管理人数', '当前各本部中层管理人数', '各本部中层管理人数核定上限']
- option.legend.show = true
- // option.yAxis.push({
- // splitLine: {
- // show: false,
- // },
- // axisLine: {
- // show: false,
- // },
- // })
- myChart.setOption(option)
- },
- initChartL5 () {
- let myChart = echarts.init(this.$refs['echartL5'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '各企业总人数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL5[0],
- },
- {
- name: '人数变化率',
- type: 'line',
- yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- itemStyle: {
- //折线拐点标志的样式
- color: '#b889ea',
- borderColor: '#b889ea',
- width: 2,
- shadowColor: '#b889ea',
- shadowBlur: 4,
- },
- lineStyle: {
- color: '#b889ea',
- width: 2,
- },
- data: dataL5[1],
- },
- ],
- }
- option.title.text = '各企业总人数'
- option.legend.data = ['各企业总人数', '人数变化率']
- option.legend.show = true
- option.tooltip = {
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
- }
- option.yAxis.push({
- type: 'value',
- axisLine: {
- show: false,
- },
- splitLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- })
- myChart.setOption(option)
- },
- initChartL6 () {
- let myChart = echarts.init(this.$refs['echartL6'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '各企业本部员额数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- color: params => {
- if (params.value > dataL6[1][params.dataIndex]) {
- return 'red'
- } else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- data: dataL6[0],
- },
- {
- name: '六定改革前各企业本部员额数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#5e7ae9',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataL6[2],
- },
- {
- name: '各企业本部员额数核定上限值',
- type: 'line',
- yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- itemStyle: {
- //折线拐点标志的样式
- color: '#fbe138',
- borderColor: '#fbe138',
- width: 2,
- shadowColor: '#fbe138',
- shadowBlur: 4,
- },
- lineStyle: {
- color: '#fbe138',
- width: 2,
- },
- data: dataL6[1],
- },
- ],
- }
- option.title.text = '各企业本部员额数'
- option.legend.data = ['各企业本部员额数', '六定改革前各企业本部员额数', '各企业本部员额数核定上限值']
- option.legend.show = true
- option.yAxis.push({
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- })
- myChart.setOption(option)
- },
- showTipClose () {
- console.log('点击了哦哦')
- // this.paymentShow = false
- this.showTip = false
- this.showTip2 = false
- this.titleShow = false
- },
- initChartL7 () {
- let myChart = echarts.init(this.$refs['echartL7'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: ['#43ede3'],
- series: [
- {
- name: '人数变化',
- type: 'line',
- barWidth: 15,
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 15, //标记的大小
- smooth: false,
- itemStyle: {
- color: params => {
- if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
- return 'red'
- } else {
- return '#43ede3'
- }
- },
- },
- // markLine: {
- // data: [{ type: 'average', name: 'Avg' }],
- // },
- data: dataL7[0],
- },
- {
- name: '全员劳动生产率同比变化',
- type: 'line',
- barWidth: 15,
- // yAxisIndex: 1,
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 15, //标记的大小
- smooth: false,
- itemStyle: {
- //折线拐点标志的样式
- color: '#b889ea',
- borderColor: '#b889ea',
- width: 2,
- shadowColor: '#b889ea',
- shadowBlur: 4,
- },
- data: dataL7[1],
- },
- {
- type: 'effectScatter',
- coordinateSystem: 'cartesian2d',
- showEffectOn: 'render',
- rippleEffect: {
- period: 10,
- scale: 4,
- brushType: 'stroke'
- },
- hoverAnimation: true,
- itemStyle: {
- color: 'red'
- },
- lineStyle: {
- color: '#43ede3',
- width: 2,
- },
- data: this.twinkle7,
- },
- ],
- }
- option.title.text = '人数变化和全员劳动生产率变化率分析'
- option.legend.data = ['人数变化', '全员劳动生产率同比变化']
- option.legend.show = true
- option.tooltip = {
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
- }
- option.yAxis = [
- {
- type: 'value',
- axisLine: {
- show: false,
- },
- splitLine: {
- show: true,
- lineStyle: {
- color: '#68b4dd66',
- type: 'dashed',
- },
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- },
- {
- type: 'value',
- axisLine: {
- show: false,
- },
- splitLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- }
- ]
- myChart.setOption(option)
- },
- initChartL8 () {
- let myChart = echarts.init(this.$refs['echartL8'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: ['#43ede3'],
- series: [
- {
- name: '人数变化',
- type: 'line',
- barWidth: 15,
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 15, //标记的大小
- smooth: false,
- itemStyle: {
- color: params => {
- if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
- return 'red'
- } else {
- return '#43ede3'
- }
- },
- },
- lineStyle: {
- color: '#43ede3',
- width: 2,
- },
- // markLine: {
- // data: [{ type: 'average', name: 'Avg' }],
- // },
- data: dataL8[0],
- },
- {
- name: '人工成本利润率同比变化',
- type: 'line',
- barWidth: 15,
- // yAxisIndex: 1,
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 15, //标记的大小
- smooth: false,
- itemStyle: {
- //折线拐点标志的样式
- color: '#b889ea',
- borderColor: '#b889ea',
- width: 2,
- shadowColor: '#b889ea',
- shadowBlur: 4,
- },
- data: dataL8[1],
- },
- {
- type: 'effectScatter',
- coordinateSystem: 'cartesian2d',
- showEffectOn: 'render',
- rippleEffect: {
- period: 10,
- scale: 4,
- brushType: 'stroke'
- },
- hoverAnimation: true,
- itemStyle: {
- color: 'red'
- },
- lineStyle: {
- color: '#43ede3',
- width: 2,
- },
- data: this.twinkle8,
- },
- ],
- }
- option.title.text = '人数变化和人工利润率变化分析'
- option.legend.data = ['人数变化', '人工成本利润率同比变化']
- option.legend.show = true
- option.tooltip = {
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
- }
- option.yAxis = [
- {
- type: 'value',
- axisLine: {
- show: false,
- },
- splitLine: {
- show: true,
- lineStyle: {
- color: '#68b4dd66',
- type: 'dashed',
- },
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- },
- {
- type: 'value',
- axisLine: {
- show: false,
- },
- splitLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- }
- ]
- myChart.setOption(option)
- },
- // 中间图表---------------------------------------------开始
- initChartC1 () {
- let myChart = echarts.init(this.$refs['echartC1'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '全员劳动生产率(万/人)',
- type: 'bar',
- barWidth: 12,
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- itemStyle: {
- color: params => {
- if (params.value < 0 && dataC1[1][params.dataIndex] < 0) {
- return 'red'
- } else if (params.value > this.echartC1.province) {
- return 'green'
- } else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- lineStyle: {
- color: '#B889EA',
- width: 2,
- },
- // data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
- data: dataC1[0],
- markLine: {
- data: [
- {
- name: '省属企业平均水平',
- yAxis: this.echartC1.national,
- lineStyle: {
- color: '#fff',
- },
- label: {
- formatter: '{b}',
- position: 'end',
- padding: [20, 100, 10, 30],
- color: '#fff',
- },
- },
- {
- name: '央企平均水平',
- yAxis: this.echartC1.province,
- lineStyle: {
- color: '#fff',
- },
- label: {
- formatter: '{b}',
- position: 'end',
- padding: [-4, 150, 10, 30],
- color: '#fff',
- },
- },
- ],
- label: {
- distance: [20, 8],
- },
- },
- },
- {
- name: '全员劳动生产率同比变化',
- yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
- type: 'line',
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataC1[1],
- },
- ],
- }
- option.title.text = '各全员劳动生产率'
- option.legend.data = ['全员劳动生产率(万/人)', '全员劳动生产率同比变化']
- option.legend.show = true
- option.grid.right = '15%'
- option.tooltip = {
- show:true,
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
- }
- option.yAxis.push({
- type: 'value',
- axisLine: {
- show: false,
- },
- splitLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- })
- myChart.setOption(option)
- // tools.loopShowTooltip(myChart, option, {
- // nterval: 2000,
- // loopSeries: true,
- // });
- },
- initChartC2 () {
- let myChart = echarts.init(this.$refs['echartC2'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '人工成本利润率同比变化',
- type: 'line',
- yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- itemStyle: {
- //折线拐点标志的样式
- color: '#B889EA',
- borderColor: '#B889EA',
- width: 2,
- shadowColor: '#B889EA',
- shadowBlur: 4,
- },
- lineStyle: {
- color: '#B889EA',
- width: 2,
- },
- data: dataC2[0],
- },
- {
- name: '人工成本利润率',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- color: params => {
- if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
- return 'red'
- } else if (params.value > this.echartC2.province) {
- return 'green'
- } else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- data: dataC2[1],
- markLine: {
- data: [
- {
- name: '省属企业平均水平',
- yAxis: this.echartC2.province,
- lineStyle: {
- color: '#fff',
- },
- label: {
- formatter: '{b}',
- position: 'end',
- padding: [24, 100, 10, 30],
- color: '#fff',
- },
- },
- {
- name: '央企平均水平',
- yAxis: this.echartC2.national,
- lineStyle: {
- color: '#fff',
- },
- label: {
- formatter: '{b}',
- position: 'end',
- padding: [-24, 200, 10, 30],
- color: '#fff',
- },
- },
- ],
- label: {
- distance: [20, 8],
- },
- },
- },
- ],
- }
- option.title.text = '各人工成本利润率'
- option.legend.data = ['人工成本利润率', '人工成本利润率同比变化']
- option.legend.show = true
- option.tooltip = {
- show:true,
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
- }
- option.grid.right = '15%'
- option.yAxis = [
- {
- splitLine: {
- show: true,
- lineStyle: {
- color: '#68b4dd66',
- type: 'dashed',
- },
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- },
- {
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- }
- ]
- myChart.setOption(option)
- // tools.loopShowTooltip(myChart, option, {
- // nterval: 2000,
- // loopSeries: true,
- // });
- },
- // 右侧图表---------------------------------------------开始
- initChartR1 () {
- let myChart = echarts.init(this.$refs['echartR1'])
- let commonOptions = this.commonOption
- commonOptions.yAxis[0].splitNumber = 2
- let option = {
- ..._.cloneDeep(commonOptions),
- series: [
- {
- name: '招聘需求公告次数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR1[0],
- },
- {
- name: '招聘需求公告累计公开招聘人数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR1[1],
- },
- ],
- }
- option.title.text = '各企业招聘需求公告人次情况'
- option.legend.data = ['招聘需求公告次数', '招聘需求公告累计公开招聘人数']
- option.legend.show = true
- option.yAxis.push({
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- })
- myChart.setOption(option)
- },
- initChartR2 () {
- let myChart = echarts.init(this.$refs['echartR2'])
- let commonOptions = this.commonOption
- commonOptions.yAxis[0].splitNumber = 2
- let option = {
- ..._.cloneDeep(commonOptions),
- series: [
- {
- name: '录用结果公示次数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR2[0],
- },
- {
- name: '录用结果公示累计公示人数',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#45DAD1',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR2[1],
- },
- ],
- }
- option.title.text = '各企业录用结果公示人次'
- option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
- option.legend.show = true
- option.yAxis.push({
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- })
- myChart.setOption(option)
- },
- initChartR3 () {
- let myChart = echarts.init(this.$refs['echartR3'])
- let commonOptions = this.commonOption
- commonOptions.yAxis[0].splitNumber = 2
- let option = {
- ..._.cloneDeep(commonOptions),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#45DAD1',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '年利润(万)',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR3[0],
- },
- {
- name: '2022年累计招聘数',
- type: 'bar',
- yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
- barWidth: 15,
- itemStyle: {
- color: params => {
- if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
- return 'red'
- } else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#45DAD1',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- data: dataR3[1],
- },
- ],
- }
- option.title.text = '各企业年利润与招聘情况分析'
- option.legend.data = ['年利润(万)', '2022年累计招聘数']
- option.legend.show = true
- option.yAxis[0].max = function (value) {
- if (Math.abs(value.max) > Math.abs(value.min)) {
- return (Math.abs(value.max) * 1.2).toFixed(2);
- } else {
- return (Math.abs(value.min) * 1.2).toFixed(2);
- }
- }
- option.yAxis[0].min = function (value) {
- if (Math.abs(value.max) > Math.abs(value.min)) {
- return (-Math.abs(value.max) * 1.2).toFixed(2);
- } else {
- return (-Math.abs(value.min) * 1.2).toFixed(2);
- }
- }
- option.yAxis.push({
- max: function (val) {
- if (Math.abs(val.max) > Math.abs(val.min)) {
- return (Math.abs(val.max) * 1.2).toFixed(0)
- } else {
- return (Math.abs(val.min) * 1.2).toFixed(0)
- }
- },
- min: function (val) {
- if (Math.abs(val.max) > Math.abs(val.min)) {
- return (-Math.abs(val.max) * 1.2).toFixed(0)
- } else {
- return (Math.abs(val.min) * 1.2).toFixed(0)
- }
- },
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value}',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- })
- myChart.setOption(option)
- },
- initChartR4 () {
- let myChart = echarts.init(this.$refs['echartR4'])
- let commonOptions = this.commonOption
- commonOptions.yAxis[0].splitNumber = 2
- let option = {
- ..._.cloneDeep(commonOptions),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#6480f3',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '2022年退出人数和2023年当前累计退出人数之和',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR4[0],
- },
- {
- name: '2022年招聘人数和2023年当前累计招聘人数之和',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: params => {
- if (dataR4[0][params.dataIndex] / 2 < params.value) {
- return 'red'
- }
- else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#6480f3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- },
- data: dataR4[1],
- },
- ],
- }
- option.title.text = '各企业"退二进一"完成情况'
- option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
- option.legend.show = true
- option.yAxis[0] = {
- //type: 'log',
- //min: 1,
- //logBase: 3,
- axisLine: {
- show: false,
- },
- splitLine: {
- show: true,
- lineStyle: {
- color: '#68b4dd66',
- type: 'dashed',
- },
- },
- axisLabel: {
- show: true,
- formatter: function (value) {
- return value === 1 ? 0 : value
- },
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- }
- myChart.setOption(option)
- },
- initChartR5 () {
- let myChart = echarts.init(this.$refs['echartR5'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- series: [
- {
- name: '在岗职工平均薪酬',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#6682F5',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR5[0],
- },
- {
- name: '去年同期在岗职工平均薪酬',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR5[1],
- }
- ],
- }
- option.title.text = '各企业在岗职工平均薪酬'
- option.legend.data = ['在岗职工平均薪酬', '去年同期在岗职工平均薪酬']
- option.legend.show = true
- option.yAxis.push({
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- })
- myChart.setOption(option)
- },
- initChartR6 () {
- let myChart = echarts.init(this.$refs['echartR6'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: ['#69c0ff'],
- series: [
- {
- name: '2022年利润累计涨幅率',
- type: 'line',
- smooth: true, //平滑曲线显示
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 8, //标记的大小
- smooth: false,
- itemStyle: {
- //折线拐点标志的样式
- color: '#B889EA',
- borderColor: '#B889EA',
- width: 2,
- shadowColor: '#B889EA',
- shadowBlur: 4,
- },
- lineStyle: {
- color: '#B889EA',
- width: 2,
- },
- data: dataR6[0],
- },
- {
- name: '2022年薪酬累计涨幅率',
- type: 'line',
- barWidth: 15,
- yAxisIndex: 1,
- showAllSymbol: true, //显示所有图形。
- symbol: 'circle', //标记的图形为实心圆
- symbolSize: 12, //标记的大小
- smooth: false,
- itemStyle: {
- color: params => {
- if (params.value > 0 && dataR6[0][params.dataIndex] < 0) {
- return 'yellow'
- } else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#69c0ff',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- lineStyle: {
- color: '#69C0FF',
- width: 2,
- },
- data: dataR6[1],
- },
- {
- yAxisIndex: 1,
- type: 'effectScatter',
- coordinateSystem: 'cartesian2d',
- showEffectOn: 'render',
- rippleEffect: {
- period: 10,
- scale: 4,
- brushType: 'stroke'
- },
- hoverAnimation: true,
- itemStyle: {
- color: 'yellow'
- },
- lineStyle: {
- color: '#43ede3',
- width: 2,
- },
- data: this.twinkleR6,
- },
- ],
- }
- option.title.text = '各企业利润与薪酬变动情况'
- option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
- option.tooltip = {
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
- }
- option.yAxis = [
- {
- max: function (value) {
- if (Math.abs(value.max) > Math.abs(value.min)) {
- return (Math.abs(value.max) * 1.2).toFixed(2);
- } else {
- return (Math.abs(value.min) * 1.2).toFixed(2);
- }
- },
- min: function (value) {
- if (Math.abs(value.max) > Math.abs(value.min)) {
- return (-Math.abs(value.max) * 1.2).toFixed(2);
- } else {
- return (-Math.abs(value.min) * 1.2).toFixed(2);
- }
- },
- splitLine: {
- show: true,
- lineStyle: {
- color: '#68b4dd66',
- type: 'dashed',
- },
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- },
- {
- max: function (value) {
- if (Math.abs(value.max) > Math.abs(value.min)) {
- return (Math.abs(value.max) * 1.2).toFixed(2);
- } else {
- return (Math.abs(value.min) * 1.2).toFixed(2);
- }
- },
- min: function (value) {
- if (Math.abs(value.max) > Math.abs(value.min)) {
- return (-Math.abs(value.max) * 1.2).toFixed(2);
- } else {
- return (-Math.abs(value.min) * 1.2).toFixed(2);
- }
- },
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- },
- }
- ]
- myChart.setOption(option)
- },
- initChartR7 () {
- let myChart = echarts.init(this.$refs['echartR7'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#B889EA',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '全员绩效考核完成率',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: params => {
- if (params.value < 50) {
- return 'yellow'
- }
- else {
- return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#B889EA',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ])
- }
- },
- },
- },
- data: dataR7[0],
- },
- ],
- }
- option.title.text = '各企业全员绩效考核'
- // option.legend.data = ['劳动合同签约完成率', '目标值']
- option.tooltip = {
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '%'
- }
- option.yAxis[0].axisLabel = {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- }
- myChart.setOption(option)
- },
- initChartR8 () {
- let myChart = echarts.init(this.$refs['echartR8'])
- let option = {
- ..._.cloneDeep(this.commonOption),
- color: [
- {
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },],
- }
- ],
- series: [
- {
- name: '任期制契约化考核完成率',
- type: 'bar',
- barWidth: 15,
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {
- offset: 0,
- color: '#43ede3',
- },
- {
- offset: 1,
- color: '#082550',
- },
- ]),
- },
- },
- data: dataR8[0],
- },
- ],
- }
- option.title.text = '各企业任期制契约化考核完成率'
- option.tooltip = {
- trigger: 'axis',
- formatter: '{a0}:{c0}' + '%'
- }
- option.yAxis[0].axisLabel = {
- show: true,
- formatter: '{value} %',
- textStyle: {
- color: 'rgba(250,250,250,0.6)',
- },
- }
- myChart.setOption(option)
- },
- },
- })
|