| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616 |
- <template>
- <div class="content">
- <div class="mainBox">
- <div class="slideBar">
- <div class="slideBar-left-top">
- <div class="slideBar-title">
- <img src="../../assets/fujian/dcgk.png"/>
- <span class="titleText">水利督查概况</span>
- <el-date-picker
- v-model="currentYear"
- type="year"
- :picker-options="pickerOptions"
- value-format="yyyy"
- format="yyyy"
- class="titlePicker"
- placeholder="选择年度">
- </el-date-picker>
- </div>
- <div class="slideBar-content">
- <ul class="summary-ul">
- <li>
- <p>年督查项</p>
- <p class="summary-content">
- <countTo class="fontNum-1" :startVal='0' :endVal='statiscsData.ALLOBJSIZE' :duration='2000'></countTo>
- </p>
- </li>
- <li>
- <p>督查组次</p>
- <p class="summary-content">
- <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.BISINSPALLGROUPSIZE' :duration='2000'></countTo>
- </p>
- </li>
- <li>
- <p>督查人次</p>
- <p class="summary-content">
- <countTo class="fontNum-3" :startVal='0' :endVal='statiscsData.PERNUMSIZE' :duration='2000'></countTo>
- </p>
- </li>
- <li>
- <p>督查市</p>
- <p class="summary-content">
- <countTo class="fontNum-4" :startVal='0' :endVal='statiscsData.OBJADCODESIZES' :duration='2000'></countTo>
- </p>
- </li>
- <li>
- <p>督查区/县</p>
- <p class="summary-content">
- <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.OBJADCODESIZEX' :duration='2000'></countTo>
- </p>
- </li>
- <!-- <li>
- <p>督查对象</p>
- <p class="summary-content">
- <countTo class="fontNum-6" :startVal='0' :endVal='statiscsData.OBJSIZE' :duration='2000'></countTo>
- </p>
- </li> -->
- <li @click="showMap(0)">
- <p>督查对象</p>
- <p class="summary-content">
- <countTo class="fontNum-6" :startVal='0' :endVal='statiscsData.OBJSIZE' :duration='2000'></countTo>
- <span class="fontNumPercent">
- <img src="../../assets/fujian/up.png" v-if="statiscsData.objRant>0"/>
- <img src="../../assets/fujian/down.png" v-if="statiscsData.objRant<0"/>
- </span>
- </p>
- </li>
- <!-- <li>
- <p>发现问题</p>
- <p class="summary-content">
- <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.PBLMSIZE' :duration='2000'></countTo>
- </p>
- </li> -->
- <li @click="showMap(1)">
- <p>发现问题</p>
- <p class="summary-content">
- <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.PBLMSIZE' :duration='2000'></countTo>
- <span class="fontNumPercent">
- <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmAllRant>0"/>
- <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmAllRant<0"/>
- </span>
- </p>
- </li>
- <!-- <li>
- <p>整改问题</p>
- <p class="summary-content">
- <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.MENDSIZESYS' :duration='2000'></countTo>
- </p>
- </li> -->
- <li @click="showMap(2)">
- <p>整改问题</p>
- <p class="summary-content">
- <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.MENDSIZESYS' :duration='2000'></countTo>
- <span class="fontNumPercent">
- <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmRectRant>0"/>
- <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmRectRant<0"/>
- </span>
- </p>
- </li>
- <li>
- <p>问题销号</p>
- <p class="summary-content">
- <countTo class="fontNum-4" :startVal='0' :endVal='statiscsData.PBLMLOGSIZE' :duration='2000'></countTo>
- </p>
- </li>
- <!-- <li>-->
- <!-- <p>任务批次(个)</p>-->
- <!-- <p class="summary-content">-->
- <!-- <countTo class="fontNum-1" :startVal='0' :endVal='statiscsData.YEARBATHSIZE' :duration='2000'></countTo>-->
- <!-- </p>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <p>督查组数(个)</p>-->
- <!-- <p class="summary-content">-->
- <!-- <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.YEARGROUPSIZE' :duration='2000'></countTo>-->
- <!-- </p>-->
- <!-- </li>-->
- <!-- <li @click="showMap(0)">-->
- <!-- <p>督查对象(个)</p>-->
- <!-- <p class="summary-content">-->
- <!-- <countTo class="fontNum-3" :startVal='0' :endVal='statiscsData.OBJSIZE' :duration='2000'></countTo>-->
- <!-- <span class="fontNumPercent">-->
- <!-- <img src="../../assets/fujian/up.png" v-if="statiscsData.objRant>0"/>-->
- <!-- <img src="../../assets/fujian/down.png" v-if="statiscsData.objRant<0"/>-->
- <!--<!– <countTo :startVal='0' :endVal='Math.abs(statiscsData.objRant)' :duration='2000'></countTo>–>-->
- <!-- </span>-->
- <!-- </p>-->
- <!-- </li>-->
- <!-- <li @click="showMap(1)">-->
- <!-- <p>发现问题(个)</p>-->
- <!-- <p class="summary-content">-->
- <!-- <countTo class="fontNum-4" :startVal='0' :endVal='statiscsData.PBLMSIZE' :duration='2000'></countTo>-->
- <!-- <span class="fontNumPercent">-->
- <!-- <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmAllRant>0"/>-->
- <!-- <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmAllRant<0"/>-->
- <!--<!– <countTo :startVal='0' :endVal='Math.abs(statiscsData.pblmAllRant)' :duration='2000'></countTo>–>-->
- <!-- </span>-->
- <!-- </p>-->
- <!-- </li>-->
- <!-- <li @click="showMap(3)">-->
- <!-- <p>确认问题(个)</p>-->
- <!-- <p class="summary-content">-->
- <!-- <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.SUBMITPLBM' :duration='2000'></countTo>-->
- <!-- </p>-->
- <!-- </li>-->
- <!-- <li @click="showMap(2)">-->
- <!-- <p>整改问题(个)</p>-->
- <!-- <p class="summary-content">-->
- <!-- <countTo class="fontNum-6" :startVal='0' :endVal='statiscsData.MENDSIZESYS' :duration='2000'></countTo>-->
- <!-- <span class="fontNumPercent">-->
- <!-- <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmRectRant>0"/>-->
- <!-- <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmRectRant<0"/>-->
- <!--<!– <countTo :startVal='0' :endVal='Math.abs(statiscsData.pblmRectRant)' :duration='2000'></countTo>–>-->
- <!-- </span>-->
- <!-- </p>-->
- <!-- </li>-->
- </ul>
- </div>
- </div>
- <div class="slideBar-left-bottom">
- <div class="slideBar-title">
- <ul class="slideRightUl">
- <li :class="{'is-active':isActive==1}" @click="showTab(1)">类型</li>
- <li :class="{'is-active':isActive==2}" @click="showTab(2)">区域</li>
- <!-- <li :class="{'is-active':isActive==3}" @click="showTab(3)">流域</li>-->
- </ul>
- </div>
- <div class="slideBar-table">
- <el-table
- v-if="isActive==1"
- :data="groupTypeData"
- @row-click="showGroupType"
- style="width: 100%">
- <el-table-column
- prop=""
- align="center"
- label="选择"
- width="50">
- <template slot-scope="scope">
- <el-radio v-model="isRadio" :label="scope.row.id"> </el-radio>
- </template>
- </el-table-column>
- <el-table-column
- prop="objName"
- label="督查类别"
- show-overflow-tooltip
- align="center"
- min-width="100">
- </el-table-column>
- <el-table-column
- prop="groupSize1"
- label="督查组次"
- show-overflow-tooltip
- align="center"
- min-width="50">
- </el-table-column>
- <el-table-column
- prop="persSize1"
- label="督查人次"
- show-overflow-tooltip
- align="center"
- min-width="50">
- </el-table-column>
- <el-table-column
- prop="adCodeSizeS"
- label="督查市数"
- show-overflow-tooltip
- align="center"
- min-width="50">
- </el-table-column>
- <el-table-column
- prop="adCodeSizeX"
- label="督查县数"
- show-overflow-tooltip
- align="center"
- min-width="50">
- </el-table-column>
- <el-table-column
- prop="objSize"
- label="对象数"
- show-overflow-tooltip
- align="center"
- min-width="70">
- </el-table-column>
- <el-table-column
- prop="pblmSize"
- label="问题数"
- show-overflow-tooltip
- align="center"
- min-width="70">
- </el-table-column>
- <el-table-column
- prop="pblmLogSize"
- label="整改数"
- show-overflow-tooltip
- align="center"
- min-width="70">
- </el-table-column>
- <!-- <el-table-column-->
- <!-- prop="objSize"-->
- <!-- label="对象数"-->
- <!-- align="center"-->
- <!-- show-overflow-tooltip-->
- <!-- min-width="60">-->
- <!-- </el-table-column>-->
- <!-- <el-table-column-->
- <!-- prop="pblmSize"-->
- <!-- label="问题数"-->
- <!-- align="center"-->
- <!-- show-overflow-tooltip-->
- <!-- min-width="60">-->
- <!-- </el-table-column>-->
- <!-- <el-table-column-->
- <!-- prop="pblmLogSize"-->
- <!-- label="整改数"-->
- <!-- align="center"-->
- <!-- show-overflow-tooltip-->
- <!-- min-width="60">-->
- <!-- </el-table-column>-->
- </el-table>
- <el-table
- v-if="isActive==2"
- :data="groupAreaData"
- @row-click="showGroupArea"
- style="width: 100%">
- <el-table-column
- prop=""
- label="选择"
- align="center"
- width="50">
- <template slot-scope="scope">
- <el-radio v-model="isRadio1" :label="scope.row.id"> </el-radio>
- </template>
- </el-table-column>
- <el-table-column
- prop="adName"
- label="区划名称"
- show-overflow-tooltip
- align="center"
- min-width="60">
- </el-table-column>
- <el-table-column
- prop="objSize"
- label="对象数"
- show-overflow-tooltip
- align="center"
- min-width="60">
- </el-table-column>
- <el-table-column
- prop="pblmSize"
- label="问题数"
- show-overflow-tooltip
- align="center"
- min-width="60">
- </el-table-column>
- <el-table-column
- prop="mendSize"
- label="整改数"
- show-overflow-tooltip
- align="center"
- min-width="60">
- </el-table-column>
- </el-table>
- </div>
- <div class="slideBar-pie" id="chart5"></div>
- </div>
- </div>
- <div class="centerBar">
- <ul class="exampleBack">
- <li v-show="isCityL" @click="backProvince"><i class="el-icon-arrow-left"/>返 回</li>
- </ul>
- <ul class="example">
- <li @click="showMap(null)" v-show="mapIsActive==0 || mapIsActive==1 || mapIsActive==2 || mapIsActive==3"><i class="el-icon-s-grid"/>全部数据</li>
- <li>
- <em style="background: #fff024"/><span>对象数</span>
- </li>
- <li>
- <em style="background: #EB3B46"/><span>问题数</span>
- </li>
- <!-- <li>
- <em style="background: #A02A27"/><span>确认问题数</span>
- </li> -->
- <li>
- <em style="background: white"/><span>整改数</span>
- </li>
- </ul>
- <!-- <el-button v-if="isCity" type="primary" size="large" class="backBtn" plain icon="el-icon-arrow-left" @click="backProvince">返回至省级</el-button>-->
- <div class="item-content-center" id="chart4"></div>
- </div>
- <div class="slideBar">
- <div class="slideBar-right-top">
- <div class="slideBar-title">
- <ul class="slideRightUl">
- <li :class="{'is-active':isActive3==3}" @click="showTab3(3)">
- <!-- <el-badge v-if="badge3>0" :value="badge3" class="item">待办事项</el-badge>-->
- <span >待办事项</span>
- </li>
- <li :class="{'is-active':isActive3==4}" @click="showTab3(4)">
- <el-badge v-if="badge4>0" :value="badge4" class="item">通知公告</el-badge>
- <span v-else>通知公告</span>
- </li>
- <li :class="{'is-active':isActive3==2}" @click="showTab3(2)">
- <!-- <el-badge v-if="badge2>0" :value="badge2" class="item">问题清单库</el-badge>-->
- <span>问题清单库</span>
- </li>
- <li :class="{'is-active':isActive3==1}" @click="showTab3(1)">
- <el-badge v-if="badge1>0" :value="badge1" class="item">法律法规</el-badge>
- <span v-else>法律法规</span>
- </li>
- </ul>
- </div>
- <div class="slideBar-content">
- <ul class="officeNotice" v-if="isActive3==3" @click.stop="showTodo">
- <li>
- <div><img src="../../assets/fujian/db.png"/></div>
- <div>
- <span>待办</span>
- <span>{{todoCount}}</span>
- </div>
- </li>
- <!-- <li>-->
- <!-- <div><img src="../../assets/fujian/tz.png"/></div>-->
- <!-- <div>-->
- <!-- <span>通知</span>-->
- <!-- <span>999</span>-->
- <!-- </div>-->
- <!-- </li>-->
- </ul>
- <ul class="ul-notify">
- <li v-for="(item,index) in noticeList1" v-if="isActive3==1" @click="showDialog(item,1)" >
- <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>
- <span :title="item.title">{{item.title}}</span>
- <el-badge :is-dot="getCookie(1).indexOf(item.id)>-1" class="item"></el-badge>
- </li>
- <li v-for="(item,index) in noticeList2" v-if="isActive3==2" @click="showDialog(item,2)">
- <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>
- <span :title="item.title">{{item.title}}</span>
- <!-- <el-badge :is-dot="getCookie(2).indexOf(item.pblmId)>-1" class="item"></el-badge>-->
- </li>
- <!-- <li v-for="(item,index) in noticeList3" v-if="isActive3==3" @click="showDialog(item,3)">-->
- <!-- <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>-->
- <!-- <span :title="item.title">{{item.title}}</span>-->
- <!-- <el-badge :is-dot="getCookie(3).indexOf(item.id)>-1" class="item"></el-badge>-->
- <!-- </li>-->
- <li v-for="(item,index) in noticeList4" v-if="isActive3==4" @click="showDialog(item,4)">
- <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>
- <span :title="item.title">{{item.title}}</span>
- <el-badge :is-dot="getCookie(4).indexOf(item.id)>-1" class="item"></el-badge>
- </li>
- </ul>
- </div>
- </div>
- <div class="slideBar-right-center">
- <div class="slideBar-title">
- <ul class="slideRightUl">
- <li :class="{'is-active':isActive1==2}" @click="showTab1(2)">问题数</li>
- <li :class="{'is-active':isActive1==1}" @click="showTab1(1)">对象数</li>
- <li :class="{'is-active':isActive1==4}" @click="showTab1(4)">整改数</li>
- </ul>
- </div>
- <div class="slideBar-content" id="chartComPare"></div>
- </div>
- <div class="slideBar-right-bottom">
- <div class="slideBar-title">
- <img src="../../assets/fujian/zgph.png"/>
- <span class="titleText">整改排行</span>
- </div>
- <div class="slideBar-content rangeTable">
- <el-table
- :data="rangeData"
- style="width: 100%">
- <el-table-column
- prop="adName"
- label="区划名称"
- show-overflow-tooltip
- align="center"
- min-width="60">
- </el-table-column>
- <el-table-column
- prop="pblmSize"
- label="问题数"
- show-overflow-tooltip
- align="center"
- min-width="60">
- </el-table-column>
- <el-table-column
- prop="pblmLogSize"
- label="整改数"
- show-overflow-tooltip
- align="center"
- min-width="60">
- </el-table-column>
- <el-table-column
- prop="mendAccomplishRant"
- label="整改率(%)"
- show-overflow-tooltip
- align="center"
- min-width="100">
- <template slot-scope="scope">
- <span class="rangText">{{scope.row.mendAccomplishRant}}</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <messageDetail v-if="isShowMessageDetail" :data="messageData" @closeDialog="closeDialog"></messageDetail>
- <el-dialog
- class="custom_dialog"
- title="问题标准"
- width="60%"
- @close="dialogCloseDetail"
- append-to-body
- v-if="supervisionDetailsVisible"
- :visible.sync="supervisionDetailsVisible">
- <div style="width: 100%;height:600px;overflow-y: auto;overflow-x: hidden">
- <p class="DictTitle">{{pblmDict.inspObjName}}</p>
- <div v-for="(item,index) in pblmDict.children" class="pblmDictContent">
- <span class="level1Title">{{index+1}}、{{item.inspObjName}}</span>
- <div v-for="(item1,index1) in item.children">
- <span class="level2Title">{{index+1}}.{{index1+1}}、{{item1.inspObjName}}</span>
- <div v-for="(item2,index2) in item1.children">
- <span class="level3Title">{{index+1}}.{{index1+1}}.{{index2+1}}、{{item2.inspObjName}}</span>
- </div>
- </div>
- </div>
- </div>
- </el-dialog>
- <el-dialog
- class="custom_dialog"
- title="法律法规"
- width="70%"
- @close="dialogCloseDetailLaw"
- append-to-body
- v-if="viewLawListVisible"
- :visible.sync="viewLawListVisible">
- <viewLawList :lawName="lawName"></viewLawList>
- </el-dialog>
- <el-dialog
- class="custom_dialog"
- title="待办事项"
- width="70%"
- @close="dialogCloseDetailWork"
- append-to-body
- v-if="viewWorkListVisible"
- :visible.sync="viewWorkListVisible">
- <toDoTaskPage type="dc" :workName="workName"></toDoTaskPage>
- </el-dialog>
- </div>
- </div>
- </template>
- <script>
- import countTo from 'vue-count-to';
- import Viewer from 'viewerjs';
- import axios from 'axios' //引入axios
- import 'viewerjs/dist/viewer.css';
- import echarts from "echarts";
- import '@util/echarts-gl.min.js';
- import request from "@util/gw_ajax_request.js";
- import {getStatiscsData,getPblmPro,getGroupType,getGroupTypeSd,initPblmTypeList,initAreaObjTypeList,initCompareObjTypeList,initNoticeList} from "../../api/homeMainView.js";
- import obj from '../../assets/fujian/obj.png';
- import pblm from '../../assets/fujian/pblm.png';
- import mend from '../../assets/fujian/mend.png';
- import submit from '../../assets/fujian/submit.png';
- import messageDetail from "./messageDetail";
- export default {
- components: {
- countTo,
- messageDetail,
- problemDetail: resolve => {
- require(["./problemDetail.vue"], resolve);
- },
- viewLawList: resolve =>{
- require(["../Inspection/viewLawList.vue"], resolve);
- },
- toDoTaskPage: resolve =>{
- require(["../toDoTask/toDoTaskPage.vue"], resolve);
- }
- },
- props: [],
- data() {
- //这里存放数据
- return {
- pickerOptions: {
- disabledDate(time) {
- return time.getTime() > Date.now();
- }
- },
- currentYear:new Date().getFullYear().toString(),
- currentAdCode:"",
- currentAdName:"",
- isRadio:"",
- isRadio1:null,
- isActive:1,
- isActive1:2,
- isActive2:3,
- isActive3:3,
- badge1:0,
- badge2:0,
- badge3:0,
- badge4:0,
- dateStr:"",
- chart1:null,
- chart2:null,
- chart4:null,
- chart5:null,
- chartRang:null,
- chartComPare:null,
- chart5Title:"",
- mapIsActive:null,
- activeName:"first",
- isCity:false,
- groupTypeData:[],
- groupAreaData:[],
- chartMapData:{
- mapPercent:[],
- geoCoordMap:{},
- geoCoordMapList:[],
- geoCoordMap1:{},
- geoCoordMapList1:[],
- geoCoordMap2:{},
- geoCoordMapList2:[],
- geoCoordMap3:{},
- geoCoordMapList3:[],
- geoCoordMap4:{},
- geoCoordMapList4:[],
- },
- statiscsData:{
- BISINSPALLGROUPSIZE:0,
- BISINSPALLSIZE: 0,
- BISINSPALLSIZEMONTH: 0,
- HASOBJSIZE: 0,
- MENDSIZE: 0,
- MENDSIZESYS: 0,
- MENDSIZEMONTH: 0,
- OBJSIZE: 0,
- OBJSIZEREPEAT: 0,
- OBJTYPESIZE: 0,
- OBJTYPESIZEMONTH: 0,
- PBLMLOGSIZE: 0,
- PBLMLOGSIZEMONTH: 0,
- PBLMSIZE: 0,
- PBLMSIZEMONTH: 0,
- PERSIZE: 0,
- PERSIZEALL: 0,
- YEARBATHSIZE:0,
- YEARGROUPSIZE:0,
- SUBMITPLBM:0,
- objRant:0,
- pblmAllRant:0,
- pblmRectRant:0,
- OBJADCODESIZEX:0,
- OBJADCODESIZES:0,
- ALLOBJSIZE:0,
- PERNUMSIZE:0
- },
- chartPblmLevelData:{
- info:0,
- warn:0,
- fatal:0,
- error:0,
- count:0
- },
- pblmTypeObj:{
- list:[],
- count:0
- },
- AreaObjTypeObj:{
- xAxis:[],
- list:[]
- },
- rangeData:[],
- compareListObj:{
- xAxis:[],
- list:[]
- },
- noticeList1:[],
- noticeList2:[],
- noticeList3:[],
- noticeList4:[],
- todoCount:0,
- isShowMessageDetail:false,
- messageData:null,
- supervisionDetailsVisible:false,
- pblmDict:[],
- problemId:"",
- viewLawListVisible:false,
- lawName:"",
- viewWorkListVisible:false,
- workName:"",
- provTitle:""
- }
- },
- //监听属性 类似于data概念
- computed: {
- organNm() {
- return localStorage.getItem('currentOrgNm') ? localStorage.getItem('currentOrgNm') : ''
- },
- organCode() {
- return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
- },
- currentOrgId() {
- return localStorage.getItem('currentOrgId') ? localStorage.getItem('currentOrgId') : ''
- },
- isCityL(){
- return this.currentAdCode.replace(/00/g,"").length==4?true:false
- }
- },
- //监控data中的数据变化
- watch: {
- currentYear(n,o){
- if(n){
- if(n < new Date().getFullYear().toString()){
- this.dateStr = n +"年12月31日"
- }else{
- this.dateStr = (this.formatDate(new Date().getTime()))
- }
- this.initStatiscsData();
- this.initGroupType();
- this.initMulData();
- [1,2,3,4].forEach((item)=>{
- this.initNoticeData(item);
- })
- }
- }
- },
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {
- this.dateStr = (this.formatDate(new Date().getTime()));
- this.currentAdCode = this.organCode;
- this.currentAdName = this.organNm;
- },
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {
- this.$nextTick(()=>{
- this.initStatiscsData();
- this.initGroupType();
- this.initMulData();
- this.initCompareObjTypeData();
- [1,2,3,4].forEach((item)=>{
- this.initNoticeData(item);
- })
- var _self = this;
- window.onresize = function() {
- _self.resizeCharts();
- }
- })
- },
- //方法集合
- methods: {
- showTodo(){
- this.$router.push({path: '/toDoTask/dc',query:{source:"home"}});
- },
- dialogCloseDetailWork(){
- this.viewWorkListVisible = false;
- this.workName = "";
- },
- dialogCloseDetailLaw(){
- this.lawName = "";
- this.viewLawListVisible = false;
- },
- dialogCloseDetail(){
- this.supervisionDetailsVisible = false;
- this.problemId = "";
- },
- closeDialog(){
- this.isShowMessageDetail = false;
- this.messageData = null;
- },
- showDialog(item,args){
- var arr = [];
- var arr1 = [];
- if(args==1){
- this.viewLawListVisible = true;
- this.lawName = item.lawKeyword;
- arr = this.getCookie(args).filter(item1 => item1 != item.id)
- arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.id))
- this.badge1 = arr.length;
- this.setCookie(args,arr.join(","));
- this.setReadCookie(args,arr1.join(","));
- }
- if(args==2){
- this.supervisionDetailsVisible = true;
- this.pblmDict = item;
- // this.problemId = item.pblmId;
- // arr = this.getCookie(args).filter(item1 => item1 != item.pblmId);
- // arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.pblmId))
- // this.badge2 = arr.length;
- // this.setCookie(args,arr.join(","));
- // this.setReadCookie(args,arr1.join(","));
- }
- if(args==3){
- this.workName = item.procInstName;
- this.viewWorkListVisible = true;
- arr = this.getCookie(args).filter(item1 => item1 != item.procInstId);
- arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.procInstId))
- this.badge3 = arr.length;
- this.setCookie(args,arr.join(","));
- this.setReadCookie(args,arr1.join(","));
- }
- if(args==4){
- this.isShowMessageDetail = true;
- this.messageData = item;
- arr = this.getCookie(args).filter(item1 => item1 != item.id);
- arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.id))
- this.badge4 = arr.length;
- this.setCookie(args,arr.join(","));
- this.setReadCookie(args,arr1.join(","));
- }
- },
- resizeCharts(){
- // this.chart1.resize();
- // this.chart2.resize();
- this.chart4.resize();
- this.chart5.resize();
- // this.chartRang.resize();
- this.chartComPare.resize();
- },
- backProvince(){
- this.isCity = false;
- this.currentAdCode = this.organCode;
- this.currentAdName = this.organNm;
- this.$nextTick(()=>{
- this.initStatiscsData();
- this.initGroupType();
- this.initMulData();
- this.initCompareObjTypeData();
- [1,2,3,4].forEach((item)=>{
- this.initNoticeData(item);
- })
- })
- },
- showMap(args){
- this.mapIsActive = args;
- this.initMulData();
- },
- showGroupType(row, column, event){
- if (event.target.tagName === 'INPUT') {
- return;
- }
- this.isRadio= row.id;
- this.initPblmTypeData(row.objType);
- },
- showGroupArea(row, column, event){
- if (event.target.tagName === 'INPUT') {
- return;
- }
- this.isRadio1= row.id;
- this.initAreaObjTypeData(row.adCode,row.adName);
- },
- showTab(args){
- this.isActive = args;
- },
- showTab1(args){
- this.isActive1 = args;
- this.initCompareObjTypeData();
- },
- // showTab2(args){
- // this.isActive2 = args;
- // if(args==1){
- // this.initRangChart1()
- // }
- // if(args==2){
- // this.initRangChart2()
- // }
- // if(args==3){
- // this.initRangChart3()
- // }
- //
- // },
- showTab3(args){
- this.isActive3 = args;
- },
- formatDate(date){
- if(date){
- var date = new Date(date);
- return date.getFullYear()+'年'+((date.getMonth()+1)>9?(date.getMonth()+1):'0'+(date.getMonth()+1))+'月'+(date.getDate()>9?date.getDate():'0'+date.getDate()+'日');
- }
- return '';
- },
- //统计数
- initStatiscsData(){
- var _self = this;
- _self.statiscsData = {
- BISINSPALLGROUPSIZE:0,
- BISINSPALLSIZE: 0,
- BISINSPALLSIZEMONTH: 0,
- HASOBJSIZE: 0,
- MENDSIZE: 0,
- MENDSIZESYS: 0,
- MENDSIZEMONTH: 0,
- OBJSIZE: 0,
- OBJSIZEREPEAT: 0,
- OBJTYPESIZE: 0,
- OBJTYPESIZEMONTH: 0,
- PBLMLOGSIZE: 0,
- PBLMLOGSIZEMONTH: 0,
- PBLMSIZE: 0,
- PBLMSIZEMONTH: 0,
- PERSIZE: 0,
- PERSIZEALL: 0,
- YEARBATHSIZE:0,
- YEARGROUPSIZE:0,
- SUBMITPLBM:0,
- objRant:0,
- pblmAllRant:0,
- pblmRectRant:0,
- OBJADCODESIZEX:0,
- OBJADCODESIZES:0,
- ALLOBJSIZE:0,
- PERNUMSIZE:0
- }
- getStatiscsData("7","",this.currentAdCode,this.currentYear).then((res) => {
- if(res.data!=null){
- _self.statiscsData.BISINSPALLGROUPSIZE = parseInt(res.data.BISINSPALLGROUPSIZE==null?0:res.data.BISINSPALLGROUPSIZE);
- _self.statiscsData.BISINSPALLSIZE = parseInt(res.data.BISINSPALLSIZE==null?0:res.data.BISINSPALLSIZE);
- _self.statiscsData.BISINSPALLSIZEMONTH = parseInt(res.data.BISINSPALLSIZEMONTH==null?0:res.data.BISINSPALLSIZEMONTH);
- _self.statiscsData.HASOBJSIZE = parseInt(res.data.HASOBJSIZE==null?0:res.data.HASOBJSIZE);
- _self.statiscsData.MENDSIZE = parseInt(res.data.MENDSIZE==null?0:res.data.MENDSIZE);
- _self.statiscsData.MENDSIZESYS = parseInt(res.data.MENDSIZESYS==null?0:res.data.MENDSIZESYS);
- _self.statiscsData.MENDSIZEMONTH = parseInt(res.data.MENDSIZEMONTH==null?0:res.data.MENDSIZEMONTH);
- _self.statiscsData.OBJSIZE = parseInt(res.data.OBJSIZE==null?0:res.data.OBJSIZE);
- _self.statiscsData.OBJSIZEREPEAT = parseInt(res.data.OBJSIZEREPEAT==null?0:res.data.OBJSIZEREPEAT);
- _self.statiscsData.OBJTYPESIZE = parseInt(res.data.OBJTYPESIZE==null?0:res.data.OBJTYPESIZE);
- _self.statiscsData.OBJTYPESIZEMONTH = parseInt(res.data.OBJTYPESIZEMONTH==null?0:res.data.OBJTYPESIZEMONTH);
- _self.statiscsData.PBLMLOGSIZE = parseInt(res.data.PBLMLOGSIZE==null?0:res.data.PBLMLOGSIZE);
- _self.statiscsData.PBLMLOGSIZEMONTH = parseInt(res.data.PBLMLOGSIZEMONTH==null?0:res.data.PBLMLOGSIZEMONTH);
- _self.statiscsData.PBLMSIZE = parseInt(res.data.PBLMSIZE==null?0:res.data.PBLMSIZE);
- _self.statiscsData.PBLMSIZEMONTH = parseInt(res.data.PBLMSIZEMONTH==null?0:res.data.PBLMSIZEMONTH);
- _self.statiscsData.PERSIZE = parseInt(res.data.PERSIZE==null?0:res.data.PERSIZE);
- _self.statiscsData.PERSIZEALL = parseInt(res.data.PERSIZEALL==null?0:res.data.PERSIZEALL);
- _self.statiscsData.YEARBATHSIZE = parseInt(res.data.YEARBATHSIZE==null?0:res.data.YEARBATHSIZE);
- _self.statiscsData.YEARGROUPSIZE = parseInt(res.data.YEARGROUPSIZE==null?0:res.data.YEARGROUPSIZE);
- _self.statiscsData.SUBMITPLBM = parseInt(res.data.SUBMITPLBM==null?0:res.data.SUBMITPLBM);
- _self.statiscsData.objRant = parseFloat(res.data.objRant?res.data.objRant.replace("%",""):0);
- _self.statiscsData.pblmAllRant = parseFloat(res.data.pblmAllRant?res.data.pblmAllRant.replace("%",""):0);
- _self.statiscsData.pblmRectRant = parseFloat(res.data.pblmRectRant?res.data.pblmRectRant.replace("%",""):0);
- _self.statiscsData.OBJADCODESIZEX = parseInt(res.data.OBJADCODESIZEX==null?0:res.data.OBJADCODESIZEX);
- _self.statiscsData.OBJADCODESIZES = parseInt(res.data.OBJADCODESIZES==null?0:res.data.OBJADCODESIZES);
- _self.statiscsData.ALLOBJSIZE = parseInt(res.data.ALLOBJSIZE==null?0:res.data.ALLOBJSIZE);
- _self.statiscsData.PERNUMSIZE = parseInt(res.data.PERNUMSIZE==null?0:res.data.PERNUMSIZE);
- }
- });
- },
- //按类型分组
- initGroupType(){
- this.groupTypeData = [];
- var _self = this;
- getGroupTypeSd({timeType:"7",year:this.currentYear,adCode:this.currentAdCode}).then((res) => {
- if(res.data!=null && res.data.length>0){
- _self.groupTypeData = res.data;
- _self.groupTypeData.forEach((item,index)=>{
- item.id = index+1
- })
- }
- // this.initChart1()
- });
- },
- //行政区划相关数据
- initMulData(){
- this.chartPblmLevelData.info = 0;
- this.chartPblmLevelData.warn = 0;
- this.chartPblmLevelData.fatal = 0;
- this.chartPblmLevelData.error = 0;
- this.chartMapData.geoCoordMap = [];
- this.chartMapData.geoCoordMapList = [];
- this.chartMapData.geoCoordMap1 = [];
- this.chartMapData.geoCoordMapList1 = [];
- this.chartMapData.geoCoordMap2 = [];
- this.chartMapData.geoCoordMapList2 = [];
- this.chartMapData.geoCoordMap3 = [];
- this.chartMapData.geoCoordMapList3 = [];
- this.chartMapData.geoCoordMap4 = [];
- this.chartMapData.geoCoordMapList4 = [];
- this.groupAreaData = [];
- this.rangeData = [];
- this.provTitle = "";
- var list = [];
- var list1 = [];
- var maxNum=0;
- var _self = this;
- getPblmPro({timeType:"7",year:this.currentYear,adCode:this.currentAdCode}).then((res) => {
- if(res.data!=null && res.data.length>0){
- for(var i = 0;i<res.data.length;i++){
- if(res.data[i].adName!="合计"){
- if(res.data[i].adName=="平潭综合试验区"){
- res.data[i].adName = "平潭区"
- }
- list.push(res.data[i]);
- _self.groupAreaData.push(res.data[i]);
- _self.groupAreaData.forEach((item,index)=>{
- item.id = index+1;
- })
- if(res.data[i].adName=="省本级"){
- this.provTitle = `[省本级:对象数:${res.data[i].objSize},问题数:${res.data[i].pblmSize},提交问题数:${res.data[i].submitPlbm},整改数:${res.data[i].mendSize}]`
- }
- var str = "";
- if(_self.mapIsActive==0){
- str = res.data[i].objSize;
- }
- if(_self.mapIsActive==1){
- str = res.data[i].pblmSize;
- }
- if(_self.mapIsActive==2){
- str = res.data[i].mendSize
- }
- if(_self.mapIsActive==3){
- str = res.data[i].submitPlbm
- }
- if(!_self.mapIsActive && _self.mapIsActive!=0){
- str = res.data[i].objSize+","+res.data[i].pblmSize+","+res.data[i].submitPlbm+","+res.data[i].mendSize
- }
- if(res.data[i].adName!="省本级") {
- _self.chartMapData.geoCoordMapList.push({
- name: res.data[i].adName,
- value:str,
- adCode:res.data[i].adCode
- });
- if(!_self.mapIsActive && _self.mapIsActive!=0){
- _self.chartMapData.geoCoordMap[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd)-(_self.isCity?0.06:0.06):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap1[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd)-(_self.isCity?0.1:0.2):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap2[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd)-(_self.isCity?0.05:0.1):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- // _self.chartMapData.geoCoordMap3[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap3[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd)-(_self.isCity?0.025:0.05):res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap4[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd)+(_self.isCity?0.005:0.005):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- }else{
- _self.chartMapData.geoCoordMap[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap1[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap2[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap3[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- _self.chartMapData.geoCoordMap4[res.data[i].adName] = [res.data[i].lgtd?parseFloat(res.data[i].lgtd):res.data[i].lgtd, res.data[i].lttd?parseFloat(res.data[i].lttd):res.data[i].lttd, res.data[i].adCode];
- }
- _self.chartMapData.geoCoordMapList1.push({
- name: res.data[i].adName,
- value: res.data[i].objSize
- });
- _self.chartMapData.geoCoordMapList2.push({
- name: res.data[i].adName,
- value: res.data[i].pblmSize
- });
- _self.chartMapData.geoCoordMapList3.push({
- name: res.data[i].adName,
- value: res.data[i].submitPlbm
- });
- _self.chartMapData.geoCoordMapList4.push({
- name: res.data[i].adName,
- value: res.data[i].mendSize,
- });
- list1.push(res.data[i].objSize);
- list1.push(res.data[i].pblmSize);
- list1.push(res.data[i].submitPlbm);
- list1.push(res.data[i].mendSize);
- maxNum = Math.max(...list1)
- }
- }else{
- _self.chartPblmLevelData.info = res.data[i].infoPlbm;
- _self.chartPblmLevelData.warn = res.data[i].warmPlbm;
- _self.chartPblmLevelData.fatal = res.data[i].errorPlbm;
- _self.chartPblmLevelData.error = res.data[i].errorsPlbm;
- _self.chartPblmLevelData.count = parseInt(res.data[i].infoPlbm)+parseInt(res.data[i].warmPlbm)+parseInt(res.data[i].errorPlbm)+parseInt(res.data[i].errorsPlbm)
- }
- }
- list = list.sort(this.compare('mendAccomplishRant'));
- list.forEach((item)=>{
- _self.rangeData.push(item);
- })
- }
- // this.initChart1();
- // this.initChart2();
- this.initChart4(maxNum);
- this.initChart5();
- // this.initRangChart3();
- });
- },
- compare(property){
- return function(a,b){
- var value1 = a[property];
- var value2 = b[property];
- return value2 - value1;
- }
- },
- //问题类别数据
- initPblmTypeData(objType){
- this.pblmTypeObj.list = [];
- this.pblmTypeObj.count = 0;
- var _self = this;
- initPblmTypeList({timeType:"7",year:this.currentYear,adCode:this.currentAdCode,objType:objType}).then((res) => {
- if(res.data!=null && res.data.length>0){
- for(var i = 0;i<res.data.length;i++){
- _self.pblmTypeObj.list.push(
- {
- typeName: res.data[i].NAME,
- name: res.data[i].PBLMNAME,
- ptype: res.data[i].PTYPE,
- value: res.data[i].VALUE,
- }
- );
- _self.pblmTypeObj.count+=parseInt(res.data[i].VALUE);
- }
- }
- this.initChart5_1();
- });
- },
- //问题类别数据
- initAreaObjTypeData(adCode,adName){
- this.AreaObjTypeObj.xAxis = [];
- this.AreaObjTypeObj.list = [];
- var _self = this;
- initAreaObjTypeList({timeType:"7",year:this.currentYear,adCode:adCode}).then((res) => {
- if(res.data){
- _self.AreaObjTypeObj.xAxis = res.data.xAxis;
- for(let k in res.data){
- if(k != "yTypeCode" && k != "xAxis"){
- _self.AreaObjTypeObj.list.push({
- name:k,
- value:res.data[k]
- });
- }
- }
- }
- this.initChart5_2(adName);
- });
- },
- initCompareObjTypeData(){
- this.compareListObj.xAxis = [];
- this.compareListObj.list = [];
- var _self = this;
- initCompareObjTypeList({adCode:this.currentAdCode,compareType:this.isActive1}).then((res) => {
- if(res.data){
- this.compareListObj.xAxis = res.data.xAxis;
- this.compareListObj.list = res.data.yAxis;
- if(this.isActive1==1){
- this.initCompare1();
- }
- if(this.isActive1==2){
- this.initCompare2();
- }
- if(this.isActive1==4){
- this.initCompare3();
- }
- }
- });
- },
- initNoticeData(args){
- this.noticeList1 = [];
- this.noticeList2 = [];
- this.todoCount = 0;
- this.noticeList4 = [];
- var ids = [];
- var _self = this;
- initNoticeList({topType:args,topNum:5,timeType:'7',year:this.currentYear,adCode:this.currentAdCode,objType:''}).then((res) => {
- if(res.data && res.data.length>0){
- res.data.forEach((item)=>{
- if(args==1){
- ids.push(item.id);
- item.title = item.lawKeyword;
- }
- if(args==2){
- // ids.push(item.pblmId);
- item.title = item.inspObjName;
- }
- // if(args==3){
- // ids.push(item.procInstId);
- // item.title = item.procInstName;
- // }
- if(args==4){
- ids.push(item.id);
- }
- })
- if(args==3){
- _self.todoCount = res.data.todoCount;
- }
- if(args==4){
- _self.noticeList4 = res.data;
- }
- if(args==2){
- _self.noticeList2 = res.data;
- }
- if(args==1){
- _self.noticeList1 = res.data;
- }
- if(args!=3 && args!=2){
- var list = _self.getArr(this.getReadCookie(args),ids);
- _self.setCookie(args,list.join(","));
- }
- if(args==1){
- _self.badge1 = _self.getCookie(args).length;
- }
- // if(args==2){
- // _self.badge2 = _self.getCookie(args).length;
- // }
- // if(args==3){
- // _self.badge3 = _self.getCookie(args).length;
- // }
- if(args==4){
- _self.badge4 = _self.getCookie(args).length;
- }
- }
- });
- },
- getArr(arr,arr1){
- var newArr = [];
- if(arr.length==0){
- return arr1;
- }
- if(arr1.length==0){
- return [];
- }
- arr1.forEach((item)=>{
- if(arr.indexOf(item)<0){
- newArr.push(item);
- }
- })
- return newArr;
- },
- getReadCookie(isActive){
- var str = document.cookie;
- //将值切割成数组
- var arr = str.split(";");
- var valueStr="";
- //遍历数组
- for(var i=0;i<arr.length;i++){
- var value = arr[i].split("=");
- if(isActive==1 && value[0].trim() == 'noticeLId_1'){
- valueStr = value[1];
- }
- if(isActive==2 && value[0].trim() == 'noticeLId_2'){
- valueStr = value[1];
- }
- if(isActive==3 && value[0].trim() == 'noticeLId_3'){
- valueStr = value[1];
- }
- if(isActive==4 && value[0].trim() == 'noticeLId_4'){
- valueStr = value[1];
- }
- }
- return valueStr?valueStr.split(","):[]
- },
- getCookie(isActive){
- var str = document.cookie;
- //将值切割成数组
- var arr = str.split(";");
- var valueStr="";
- //遍历数组
- for(var i=0;i<arr.length;i++){
- var value = arr[i].split("=");
- if(isActive==1 && value[0].trim() == 'noticeId_1'){
- valueStr = value[1];
- }
- if(isActive==2 && value[0].trim() == 'noticeId_2'){
- valueStr = value[1];
- }
- if(isActive==3 && value[0].trim() == 'noticeId_3'){
- valueStr = value[1];
- }
- if(isActive==4 && value[0].trim() == 'noticeId_4'){
- valueStr = value[1];
- }
- }
- return valueStr?valueStr.split(","):[]
- },
- setCookie(isActive,str){
- var expires = new Date();
- expires.setTime(expires.getTime()+1000*24*60*60*1000);
- if(isActive==1){
- document.cookie = "noticeId_1="+str+";expires="+expires.toGMTString();
- }
- if(isActive==2){
- document.cookie = "noticeId_2="+str+";expires="+expires.toGMTString();
- }
- if(isActive==3){
- document.cookie = "noticeId_3="+str+";expires="+expires.toGMTString();
- }
- if(isActive==4){
- document.cookie = "noticeId_4="+str+";expires="+expires.toGMTString();
- }
- },
- setReadCookie(isActive,str){
- var expires = new Date();
- expires.setTime(expires.getTime()+1000*24*60*60*1000);
- if(isActive==1){
- document.cookie = "noticeLId_1="+str+";expires="+expires.toGMTString();
- }
- if(isActive==2){
- document.cookie = "noticeLId_2="+str+";expires="+expires.toGMTString();
- }
- if(isActive==3){
- document.cookie = "noticeLId_3="+str+";expires="+expires.toGMTString();
- }
- if(isActive==4){
- document.cookie = "noticeLId_4="+str+";expires="+expires.toGMTString();
- }
- },
- toVal(val){
- if(val!=null && val!=""){
- return val.toFixed(2)
- }
- return 0;
- },
- // initChart1(){
- // var target = document.getElementById('chart1');
- // var box = document.getElementsByClassName('item-center')[0];
- // target.style.width = box.clientWidth - 20 + 'px';
- // target.style.height = box.clientHeight - 50 + 'px';
- // this.chart1 = echarts.init(document.getElementById('chart1'));
- // var option = {
- // tooltip: {
- // trigger: 'axis',
- // },
- // grid: {
- // top: '3%',
- // left: '3%',
- // right: '3%',
- // bottom: '1%',
- // containLabel: true
- // },
- // xAxis: [{
- // type: 'category',
- // data: this.groupTypeData.xAxis,
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // },
- // formatter: function(val) {
- // if(val){
- // return val.length>5? val.substring(0,5):val;
- // }
- // }
- // }
- // }],
- // yAxis: [{
- // name:"数量(个)",
- // type:'value',
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // }
- // }
- // }],
- // series: [{
- // name: "对象数",
- // type: 'bar',
- // data: this.groupTypeData.objSize,
- // barWidth: '5px',
- // itemStyle: {
- // normal: {
- // show: true,
- // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
- // offset: 0,
- // color: '#00C6FF'
- // }, {
- // offset: 1,
- // color: '#0072FF'
- // }]),
- // barBorderRadius: [30,30,0,0],
- // borderWidth: 0,
- // }
- // }
- // },
- // {
- // name: "问题数",
- // type: 'bar',
- // data: this.groupTypeData.pblmSize,
- // barWidth: '5px',
- // itemStyle: {
- // normal: {
- // show: true,
- // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- // offset: 0,
- // color: '#FFFF00'
- // }, {
- // offset: 1,
- // color: '#00E6FF'
- // }]),
- // barBorderRadius: [30,30,0,0],
- // borderWidth: 0
- // }
- // }
- // },
- // {
- // name: "整改数",
- // type: 'bar',
- // data: this.groupTypeData.mendSize,
- // barWidth: '5px',
- // itemStyle: {
- // normal: {
- // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- // offset: 0,
- // color: 'rgba(102,159,239,1)'
- // }, {
- // offset: 1,
- // color: 'rgba(170,202,246,1)'
- // }], false),
- // barBorderRadius: [30,30,0,0],
- // borderWidth: 0
- // }
- // }
- // }]
- // };
- // this.chart1.clear();
- // this.chart1.setOption(option);
- // var _self = this;
- // this.chart1.off('click');
- // this.chart1.on('click', function (param) {
- // _self.initPblmTypeData(param.data.objType);
- // });
- // },
- // initChart2(){
- // var target = document.getElementById('chart2');
- // var box = document.getElementsByClassName('item-center')[0];
- // target.style.width = box.clientWidth - 20 + 'px';
- // target.style.height = box.clientHeight - 50 + 'px';
- // this.chart2 = echarts.init(document.getElementById('chart2'));
- // var option = {
- // tooltip: {
- // trigger: 'axis',
- // },
- // grid: {
- // top: '3%',
- // left: '3%',
- // right: '3%',
- // bottom: '1%',
- // containLabel: true
- // },
- // xAxis: [{
- // type: 'category',
- // data: this.groupAreaData.xAxis,
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // },
- // formatter: function(val) {
- // if(val){
- // return val.length>5? val.substring(0,5):val;
- // }
- // }
- // }
- // }],
- // yAxis: [{
- // name:"数量(个)",
- // type:'value',
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // }
- // }
- // }],
- // series: [{
- // name: "对象数",
- // type: 'bar',
- // data: this.groupAreaData.objSize,
- // barWidth: '5px',
- // itemStyle: {
- // normal: {
- // show: true,
- // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
- // offset: 0,
- // color: '#00C6FF'
- // }, {
- // offset: 1,
- // color: '#0072FF'
- // }]),
- // barBorderRadius: [30,30,0,0],
- // borderWidth: 0
- // }
- // }
- // },
- // {
- // name: "问题数",
- // type: 'bar',
- // data: this.groupAreaData.pblmSize,
- // barWidth: '5px',
- // itemStyle: {
- // normal: {
- // show: true,
- // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- // offset: 0,
- // color: '#FFFF00'
- // }, {
- // offset: 1,
- // color: '#00E6FF'
- // }]),
- // barBorderRadius: [30,30,0,0],
- // borderWidth: 0
- // }
- // }
- // },
- // {
- // name: "整改数",
- // type: 'bar',
- // data: this.groupAreaData.mendSize,
- // barWidth: '5px',
- // itemStyle: {
- // normal: {
- // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- // offset: 0,
- // color: 'rgba(102,159,239,1)'
- // }, {
- // offset: 1,
- // color: 'rgba(170,202,246,1)'
- // }], false),
- // barBorderRadius: [30,30,0,0],
- // borderWidth: 0
- // }
- // }
- // }]
- // };
- // this.chart2.clear();
- // this.chart2.setOption(option);
- // this.chart2.off('click');
- // var _self = this;
- // this.chart2.on('click', function (param) {
- // _self.initAreaObjTypeData(param.data.adCode,param.data.adName);
- // });
- // },
- initAddVcdFeatures(){
- let geoJsonName = this.currentAdCode.substr(0, 6) + "DATA.json";
- return axios.get('/src/assets/addvGeoData/' + geoJsonName);
- },
- async initChart4(maxNum) {
- var _self = this;
- // 动态计算柱形图的高度(定一个max)
- function lineMaxHeight() {
- if(_self.isCity){
- return 0.2 / maxNum;
- }else{
- return 0.6 / maxNum;
- }
- }
- // 柱状体的主干
- function lineData(index) {
- return _self.chartMapData['geoCoordMapList'+index].map((item) => {
- return {
- coords: [
- _self.chartMapData['geoCoordMap'+index][item.name],
- [
- _self.chartMapData['geoCoordMap'+index][item.name][0],
- _self.chartMapData['geoCoordMap'+index][item.name][1] + item.value * lineMaxHeight(),
- ],
- ],
- };
- });
- }
- // 柱状体的顶部
- function scatterData(index) {
- return _self.chartMapData['geoCoordMapList'+index].map((item) => {
- return [
- _self.chartMapData['geoCoordMap'+index][item.name][0],
- _self.chartMapData['geoCoordMap'+index][item.name][1] + item.value * lineMaxHeight(),
- ];
- });
- }
- // 柱状体的底部
- function scatterData2(index) {
- return _self.chartMapData['geoCoordMapList'+index].map((item) => {
- return {
- name: item.name,
- value: _self.chartMapData['geoCoordMap'+index][item.name],
- };
- });
- }
- var convertData = function () {
- var res = [];
- for (var i = 0; i < _self.chartMapData.geoCoordMapList.length; i++) {
- var geoCoord = _self.chartMapData.geoCoordMap[_self.chartMapData.geoCoordMapList[i].name];
- if (geoCoord) {
- res.push({
- name: _self.chartMapData.geoCoordMapList[i].name,
- value: geoCoord.concat(_self.chartMapData.geoCoordMapList[i].value),
- datas: _self.chartMapData.geoCoordMapList[i].value,
- adCode:_self.chartMapData.geoCoordMapList[i].adCode,
- });
- }
- }
- return res;
- };
- this.chart4 = echarts.init(document.getElementById('chart4'));
- var jsonFeatures = await this.initAddVcdFeatures();
- echarts.registerMap(this.currentAdName, jsonFeatures.data);
- var title = "";
- var option = {
- title:{
- text:this.currentAdName+title+this.provTitle,
- x:'center',
- y:'top',
- top:5
- },
- geo: [
- {
- map: this.currentAdName,
- aspectScale: 1,
- zoom: 0.55,
- layoutCenter: ['50%', '50%'],
- layoutSize: '180%',
- show: true,
- roam: false,
- label: {
- emphasis: {
- show: false
- }
- },
- itemStyle: {
- normal: {
- borderColor: 'rgba(192,245,249,.8)',
- borderWidth: 3,
- shadowColor: '#37dfff',
- shadowOffsetY: 0,
- shadowBlur: 10,
- areaColor: 'rgba(29,85,139,0.3)',
- },
- },
- emphasis: {
- areaColor: 'rgba(29,85,139,0.3)',
- }
- }, {
- map: this.currentAdName,
- aspectScale: 1,
- zoom: 0.55,
- layoutCenter: ['50%', '50%'],
- layoutSize: '180%',
- show: true,
- roam: false,
- label: {
- emphasis: {
- show: false
- }
- },
- itemStyle: {
- normal: {
- borderColor: 'rgba(192,245,249,.8)',
- borderWidth: 3,
- shadowColor: '#2C99F6',
- shadowOffsetY: 0,
- shadowBlur: 120,
- areaColor: 'rgba(29,85,139,0.3)',
- },
- },
- emphasis: {
- areaColor: 'rgba(29,85,139,0.3)',
- }
- },
- //重影
- {
- type: 'map',
- map: this.currentAdName,
- zlevel: -1,
- aspectScale: 1,
- zoom: 0.55,
- layoutCenter: ['50%', '50.7%'],
- layoutSize: '180%',
- roam: false,
- silent: true,
- itemStyle: {
- normal: {
- borderColor: 'rgba(29,85,139,0.3)',
- shadowColor: 'rgba(29,85,139,0.3)',
- shadowOffsetY: 5,
- shadowBlur: 15,
- areaColor: 'rgba(29,85,139,0.3)'
- }
- }
- },
- {
- type: 'map',
- map: this.currentAdName,
- zlevel: -2,
- aspectScale: 1,
- zoom: 0.55,
- layoutCenter: ['50%', '51.4%'],
- layoutSize: '180%',
- roam: false,
- silent: true,
- itemStyle: {
- normal: {
- borderColor: 'rgba(29,85,139,0.3)',
- shadowColor: 'rgba(29,85,139,0.3)',
- shadowOffsetY: 5,
- shadowBlur: 15,
- areaColor: 'rgba(29,85,139,0.3)'
- }
- }
- },
- {
- type: 'map',
- map: this.currentAdName,
- zlevel: -3,
- aspectScale: 1,
- zoom: 0.55,
- layoutCenter: ['50%', '52.1%'],
- layoutSize: '180%',
- roam: false,
- silent: true,
- itemStyle: {
- normal: {
- borderColor: 'rgba(29,85,139,0.3)',
- shadowColor: 'rgba(29,85,139,0.3)',
- shadowOffsetY: 15,
- shadowBlur: 8,
- areaColor: 'rgba(29,85,139,0.3)'
- }
- }
- }
- ],
- series: [
- {
- name: this.currentAdName,
- type: 'map',
- map: this.currentAdName, // 自定义扩展图表类型
- aspectScale: 1,
- zoom: 0.55, //缩放
- showLegendSymbol: false,
- label: {
- normal: {
- show: false,
- },
- emphasis: {
- show: false,
- }
- },
- itemStyle: {
- normal: {
- areaColor: {
- type: 'linear-gradient',
- x: 0,
- y: 300,
- x2: 0,
- y2: 0,
- colorStops: [{
- offset: 0,
- color: '#40a2ff' // 0% 处的颜色
- }, {
- offset: 1,
- color: '#85c4ff' // 50% 处的颜色
- }],
- global: true // 缺省为 false
- },
- borderColor: 'rgb(175,255,247)',
- borderWidth: 1,
- },
- emphasis: {
- areaColor: {
- type: 'linear-gradient',
- x: 0,
- y: 300,
- x2: 0,
- y2: 0,
- colorStops: [{
- offset: 0,
- color: '#53cfff' // 0% 处的颜色
- }, {
- offset: 1,
- color: '#53cfff' // 50% 处的颜色
- }],
- global: true // 缺省为 false
- },
- }
- },
- layoutCenter: ['50%', '50%'],
- layoutSize: '180%',
- markPoint: {
- symbol: 'none'
- },
- data: convertData(),
- },
- // {
- // type: 'scatter',
- // coordinateSystem: 'geo',
- // geoIndex: 1,
- // label: {
- // normal: {
- // show: true,
- // formatter: function (params) {
- // var name = params.name;
- // var value = params.data.datas;
- // var text = "";
- // if(_self.mapIsActive==0){
- // text = `{obj|${value}}`;
- // }
- // if(_self.mapIsActive==1){
- // text = `{pblm|${value}}`;
- // }
- // if(_self.mapIsActive==2){
- // text = `{mend|${value}}`;
- // }
- // if(_self.mapIsActive==3){
- // text = `{submit|${value}}`;
- // }
- // if(!_self.mapIsActive && _self.mapIsActive!=0){
- // text = `{obj|${value.split(",")[0]}}{pblm|/${value.split(",")[1]}}{submit|/${value.split(",")[2]}}{mend|/${value.split(",")[3]}}`;
- // }
- //
- // return text;
- // },
- // rich: {
- // obj: {
- // color: '#ff09ef',
- // fontSize: 15,
- // fontWeight:'bold',
- // align: 'center',
- // fontFamily:'italic'
- // },
- // pblm: {
- // color: '#f2a224',
- // fontSize: 15,
- // fontWeight:'bold',
- // fontFamily:'italic',
- // align: 'center'
- // },
- // mend:{
- // color: '#1781ff',
- // fontSize: 15,
- // fontWeight:'bold',
- // align: 'center',
- // fontFamily:'italic'
- // },
- // submit:{
- // color: '#ff145c',
- // fontSize: 15,
- // fontWeight:'bold',
- // fontFamily:'italic',
- // align: 'center'
- // }
- // },
- // },
- // emphasis: {
- // show: true,
- // },
- // },
- // itemStyle: {
- // color: 'transparent',
- // },
- //
- // symbolOffset: [0,40],
- // z: 999,
- // data: convertData(),
- // },
- {
- type: "scatter",
- coordinateSystem: "geo",
- geoIndex: 1,
- label: {
- normal: {
- show: true,
- formatter: function (params) {
- var name = params.name;
- var value = params.data.datas;
- var text = `{fline|${name}}\n`;
- if(_self.mapIsActive==0){
- text += `{obj|${value}}`;
- }
- if(_self.mapIsActive==1){
- text += `{pblm|${value}}`;
- }
- if(_self.mapIsActive==2){
- text += `{mend|${value}}`;
- }
- if(_self.mapIsActive==3){
- text += `{submit|${value}}`;
- }
- if(!_self.mapIsActive && _self.mapIsActive!=0){
- // text += `{obj|${value.split(",")[0]}}{pblm|/${value.split(",")[1]}}{submit|/${value.split(",")[2]}}{mend|/${value.split(",")[3]}}`;
- text += `{obj|${value.split(",")[0]}}{pblm|/${value.split(",")[1]}}{mend|/${value.split(",")[3]}}`;
- }
- return text;
- },
- color: "#fff",
- rich: {
- fline: {
- color: "#fff",
- fontSize: 15,
- fontWeight:'bold',
- align: 'center',
- padding:[2,0]
- },
- tline: {
- color: "#ABF8FF",
- align: 'center',
- fontSize: 15,
- padding:[2,0]
- },
- obj: {
- color: '#fff024',
- fontSize: 16,
- fontWeight:'bold',
- align: 'center',
- fontFamily:'italic',
- padding:[3,0]
- },
- pblm: {
- color: '#EB3B46',
- fontSize: 16,
- fontWeight:'bold',
- fontFamily:'italic',
- align: 'center',
- padding:[3,0]
- },
- mend:{
- color: '#fff',
- fontSize: 16,
- fontWeight:'bold',
- align: 'center',
- fontFamily:'italic',
- padding:[3,0]
- },
- submit:{
- color: '#A02A27',
- fontSize: 16,
- fontWeight:'bold',
- fontFamily:'italic',
- align: 'center',
- padding:[3,0]
- }
- },
- },
- emphasis: {
- show: true,
- },
- },
- itemStyle: {
- color: "none",
- },
- symbolOffset: [0, 28],
- z: 999,
- data: convertData(),
- }
- ],
- };
- if(this.mapIsActive==0 || (!this.mapIsActive && this.mapIsActive!=0)){
- option.series.push({
- type: "lines",
- zlevel: 5,
- effect: {
- show: false,
- period: 5, // 箭头指向速度,值越小速度越快
- trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
- },
- lineStyle: {
- width: 3, // 尾迹线条宽度
- color: "#fff024",
- opacity: 1, // 尾迹线条透明度
- curveness: 0, // 尾迹线条曲直度
- },
- label: {
- show: false,
- position: "end",
- formatter: "245",
- },
- silent: true,
- animation:true,
- animationDuration:2000,
- data: lineData(1),
- },
- // 柱状体的顶部
- {
- type: "scatter",
- coordinateSystem: "geo",
- geoIndex: 0,
- zlevel: 5,
- symbol: "circle",
- symbolSize: [3, 2],
- itemStyle: {
- color: "#fff024",
- opacity: 1,
- },
- silent: true,
- data: scatterData(1),
- },
- // 柱状体的底部
- {
- type: "scatter",
- coordinateSystem: "geo",
- geoIndex: 0,
- zlevel: 4,
- label: {
- // 这儿是处理的
- formatter: "{b}",
- position: "bottom",
- color: "#fff",
- fontSize: 12,
- distance: 20,
- show: false,
- },
- symbol: "circle",
- symbolSize: [8, 3],
- itemStyle: {
- // color: '#F7AF21',
- color: "#fff024",
- opacity: 1,
- },
- silent: true,
- data: scatterData2(1),
- })
- }
- if(this.mapIsActive==1 || (!this.mapIsActive && this.mapIsActive!=0)){
- option.series.push({
- type: "lines",
- zlevel: 5,
- effect: {
- show: false,
- period: 5, // 箭头指向速度,值越小速度越快
- trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
- },
- lineStyle: {
- width: 3, // 尾迹线条宽度
- color: "#EB3B46",
- opacity: 1, // 尾迹线条透明度
- curveness: 0, // 尾迹线条曲直度
- },
- label: {
- show: false,
- position: "end",
- formatter: "245",
- },
- animation:true,
- animationDuration:2000,
- silent: true,
- data: lineData(2),
- },
- // 柱状体的顶部
- {
- type: "scatter",
- coordinateSystem: "geo",
- geoIndex: 0,
- zlevel: 5,
- symbol: "circle",
- symbolSize: [3, 2],
- itemStyle: {
- color: "#EB3B46",
- opacity: 1,
- },
- silent: true,
- data: scatterData(2),
- },
- // 柱状体的底部
- {
- type: "scatter",
- coordinateSystem: "geo",
- geoIndex: 0,
- zlevel: 4,
- label: {
- // 这儿是处理的
- formatter: "{b}",
- position: "bottom",
- color: "#fff",
- fontSize: 12,
- distance: 20,
- show: false,
- },
- symbol: "circle",
- symbolSize: [8, 3],
- itemStyle: {
- // color: '#F7AF21',
- color: "#EB3B46",
- opacity: 1,
- },
- silent: true,
- data: scatterData2(2),
- })
- }
- // if(this.mapIsActive==3 || (!this.mapIsActive && this.mapIsActive!=0)){
- // option.series.push({
- // type: "lines",
- // zlevel: 5,
- // effect: {
- // show: false,
- // period: 5, // 箭头指向速度,值越小速度越快
- // trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
- // },
- // lineStyle: {
- // width: 3, // 尾迹线条宽度
- // color: "#A02A27",
- // opacity: 1, // 尾迹线条透明度
- // curveness: 0, // 尾迹线条曲直度
- // },
- // label: {
- // show: false,
- // position: "end",
- // formatter: "245",
- // },
- // animation:true,
- // animationDuration:2000,
- // silent: true,
- // data: lineData(3),
- // },
- // // 柱状体的顶部
- // {
- // type: "scatter",
- // coordinateSystem: "geo",
- // geoIndex: 0,
- // zlevel: 5,
- // symbol: "circle",
- // symbolSize: [3, 2],
- // itemStyle: {
- // color: "#A02A27",
- // opacity: 1,
- // },
- // silent: true,
- // data: scatterData(3),
- // },
- // // 柱状体的底部
- // {
- // type: "scatter",
- // coordinateSystem: "geo",
- // geoIndex: 0,
- // zlevel: 4,
- // label: {
- // // 这儿是处理的
- // formatter: "{b}",
- // position: "bottom",
- // color: "#fff",
- // fontSize: 12,
- // distance: 20,
- // show: false,
- // },
- // symbol: "circle",
- // symbolSize: [8, 3],
- // itemStyle: {
- // // color: '#F7AF21',
- // color: "#A02A27",
- // opacity: 1,
- // },
- // silent: true,
- // data: scatterData2(3),
- // })
- // }
- if(this.mapIsActive==2 || (!this.mapIsActive && this.mapIsActive!=0)){
- option.series.push({
- type: "lines",
- zlevel: 5,
- effect: {
- show: false,
- period: 5, // 箭头指向速度,值越小速度越快
- trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
- },
- lineStyle: {
- width: 3, // 尾迹线条宽度
- color: "#F5F6F2",
- opacity: 1, // 尾迹线条透明度
- curveness: 0, // 尾迹线条曲直度
- },
- label: {
- show: 0,
- position: "end",
- formatter: "245",
- },
- animation:true,
- animationDuration:2000,
- silent: true,
- data: lineData(4),
- },
- // 柱状体的顶部
- {
- type: "scatter",
- coordinateSystem: "geo",
- geoIndex: 0,
- zlevel: 5,
- symbol: "circle",
- symbolSize: [3, 2],
- itemStyle: {
- color: "#F5F6F2",
- opacity: 1,
- },
- silent: true,
- data: scatterData(4),
- },
- // 柱状体的底部
- {
- type: "scatter",
- coordinateSystem: "geo",
- geoIndex: 0,
- zlevel: 4,
- label: {
- // 这儿是处理的
- formatter: "{b}",
- position: "bottom",
- color: "#fff",
- fontSize: 12,
- distance: 20,
- show: false,
- },
- symbol: "circle",
- symbolSize: [8, 3],
- itemStyle: {
- // color: '#F7AF21',
- color: "#F5F6F2",
- opacity: 1,
- },
- silent: true,
- data: scatterData2(4),
- })
- }
- this.chart4.clear();
- this.chart4.setOption(option);
- var _self = this;
- this.chart4.on('click', function (params) {
- if(_self.currentAdCode.replace(/00/g,"").length==2){
- _self.isCity = true;
- if(params.data){
- _self.currentAdCode = params.data.adCode;
- _self.currentAdName = params.data.name;
- }else{
- _self.chartMapData.geoCoordMapList.forEach((item)=>{
- if(item.name == params.name){
- _self.currentAdCode = item.adCode;
- _self.currentAdName = item.name;
- }
- })
- }
- _self.$nextTick(()=>{
- _self.initStatiscsData();
- _self.initGroupType();
- _self.initMulData();
- _self.initCompareObjTypeData();
- [1,2,3,4].forEach((item)=>{
- _self.initNoticeData(item);
- })
- })
- }
- });
- },
- // initChart5(){
- // this.chart5Title = "问题严重程度统计"
- // this.chart5 = echarts.init(document.getElementById('chart5'));
- // var option = {
- // color: ['#1B84F0', '#FCC00A', '#FE8831', '#FF4258'],
- // tooltip : {
- // trigger: 'item',
- // formatter: "{a} <br/>{b} : {c} ({d}%)"
- // },
- // legend:{
- // orient:'vertical',
- // icon: 'circle', //图例形状
- // top:'25%',
- // bottom:'25%',
- // right:'5%',
- // y:'center',
- // textStyle: { //图例文字的样式
- // color: '#909399',
- // fontSize: 12
- // },
- // },
- // series : [
- // {
- // name:'问题严重程度',
- // type:'pie',
- // center: ['45%', '50%'],
- // radius: ['0%', '75%'],
- // labelLine:{
- // normal:{
- // length:5
- // }
- // },
- // label: {
- // normal: {
- // show:false,
- // formatter: function(params) {
- // return params.name+" ("+params.value+"个)"
- // },
- // }
- // },
- // data:[
- // {value:this.chartPblmLevelData.info, name:'一般',level:0},
- // {value:this.chartPblmLevelData.warn, name:'较重',level:1},
- // {value:this.chartPblmLevelData.fatal, name:'严重',level:2},
- // {value:this.chartPblmLevelData.error, name:'特重',level:3}
- // ]
- // }
- // ]
- // };
- // this.chart5.clear();
- // this.chart5.setOption(option);
- // },
- initChart5(){
- this.chart5Title = "问题严重程度统计"
- this.chart5 = echarts.init(document.getElementById('chart5'));
- var option = {
- title: [
- {
- text: '严重程度',
- textStyle:{
- fontSize:14,
- color:"#666",
- fontWeight:'normal'
- },
- textAlign:"center",
- x: '48%',
- y: '43%',
- },
- {
- subtext: this.chartPblmLevelData.count + '个',
- subtextStyle: {
- fontSize: 14,
- color: '#666',
- fontWeight:'bold'
- },
- textAlign:"center",
- x: '48%',
- y: '46%',
- }],
- color: ['#1B84F0', '#FCC00A', '#FE8831', '#FF4258'],
- tooltip : {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series : [
- {
- name:'问题严重程度',
- type:'pie',
- center: ['50%', '50%'],
- radius: ['45%', '70%'],
- labelLine:{
- normal:{
- length:5
- }
- },
- label: {
- normal: {
- formatter: function(params) {
- return params.name+" ("+params.value+"个)"
- },
- }
- },
- data:[
- {value:this.chartPblmLevelData.info, name:'一般',level:0},
- {value:this.chartPblmLevelData.warn, name:'较重',level:1},
- {value:this.chartPblmLevelData.fatal, name:'严重',level:2},
- {value:this.chartPblmLevelData.error, name:'特重',level:3}
- ]
- }
- ]
- };
- this.chart5.clear();
- this.chart5.setOption(option);
- },
- initChart5_1(){
- this.chart5Title = "问题类别统计"+(this.pblmTypeObj.list.length>0?"("+this.pblmTypeObj.list[0].typeName+")":"")
- this.chart5 = echarts.init(document.getElementById('chart5'));
- var option = {
- color: [
- "#4150d8",
- "#28bf7e",
- "#ed7c2f",
- "#f2a93b",
- "#f9cf36",
- "#4a5bdc",
- "#4cd698",
- "#f4914e",
- "#fcb75b",
- "#ffe180",
- "#b6c2ff",
- "#96edc1"
- ],
- title: [
- {
- text: this.chart5Title,
- textStyle:{
- fontSize:14,
- color:"#666",
- fontWeight:'bold'
- },
- textAlign:"center",
- x: '50%',
- y: 'top',
- },
- {
- subtext: this.pblmTypeObj.count + '个',
- subtextStyle: {
- fontSize: 14,
- color: '#666',
- fontWeight:'bold'
- },
- textAlign:"center",
- x: '48%',
- y: '45%',
- }],
- tooltip : {
- trigger: 'item',
- formatter: "{b} : {c}个"
- },
- grid: {
- top: '12%',
- left: '3%',
- right: '3%',
- bottom: '10%',
- containLabel: true
- },
- series: [
- {
- name:'标题',
- type:'pie',
- center: ['50%', '50%'],
- radius: ['45%', '70%'],
- clockwise: false, //饼图的扇区是否是顺时针排布
- avoidLabelOverlap: false,
- label: {
- normal: {
- show: true,
- position: 'outter',
- formatter:function (parms){
- return parms.data.name+":"+parms.data.value + '个';
- }
- }
- },
- labelLine: {
- show:false,
- normal: {
- length:8,
- length2:5,
- smooth:false,
- }
- },
- data:this.pblmTypeObj.list
- }
- ]
- };
- this.chart5.clear();
- this.chart5.setOption(option);
- },
- // initChart5_1(){
- // this.chart5Title = "问题类别统计"+(this.pblmTypeObj.list.length>0?"("+this.pblmTypeObj.list[0].typeName+")":"")
- // this.chart5 = echarts.init(document.getElementById('chart5'));
- // var option = {
- // color: [
- // "#4150d8",
- // "#28bf7e",
- // "#ed7c2f",
- // "#f2a93b",
- // "#f9cf36",
- // "#4a5bdc",
- // "#4cd698",
- // "#f4914e",
- // "#fcb75b",
- // "#ffe180",
- // "#b6c2ff",
- // "#96edc1"
- // ],
- // // title: [
- // // {
- // // text: '全部',
- // // subtext: this.pblmTypeObj.count + '个',
- // // textStyle:{
- // // fontSize:14,
- // // color:"#666",
- // // fontWeight:'normal'
- // // },
- // // subtextStyle: {
- // // fontSize: 14,
- // // color: '#666',
- // // fontWeight:'bold'
- // // },
- // // textAlign:"center",
- // // x: '48%',
- // // y: '45%',
- // // }],
- // legend:{
- // type: 'scroll',
- // orient:'vertical',
- // icon: 'circle', //图例形状
- // top:'25%',
- // bottom:'25%',
- // right:'2%',
- // y:'center',
- // textStyle: { //图例文字的样式
- // color: '#77797e',
- // fontSize: 12
- // },
- // pageButtonPosition:'start',
- // pageIconColor: '#77797e', //翻页下一页的三角按钮颜色
- // pageIconInactiveColor: '#77797e', //翻页(即翻页到头时)
- // pageIconSize: 10, //翻页按钮大小
- // pageFormatter: '',//隐藏翻页的数字
- // pageButtonItemGap: -6,//翻页按钮的两个之间的间距
- // formatter: function (name) {
- // return name.length > 10 ? name.substr(0, 10) + '...' : name
- // },
- // },
- // tooltip : {
- // trigger: 'item',
- // formatter: "{b} : {c}个"
- // },
- // series: [
- // {
- // name:'标题',
- // type:'pie',
- // center: ['25%', '50%'],
- // radius: ['0%', '70%'],
- // clockwise: false, //饼图的扇区是否是顺时针排布
- // avoidLabelOverlap: false,
- // label: {
- // normal: {
- // show: false,
- // position: 'outter',
- // formatter:function (parms){
- // return parms.data.name+":"+parms.data.value + '个';
- // }
- // }
- // },
- // labelLine: {
- // show:false,
- // normal: {
- // length:8,
- // length2:5,
- // smooth:false,
- // }
- // },
- // data:this.pblmTypeObj.list
- // }
- // ]
- // };
- // this.chart5.clear();
- // this.chart5.setOption(option);
- // },
- initChart5_2(adName){
- this.chart5Title = "督查类别统计问题数"+(adName?"("+adName+")":"");
- this.chart5 = echarts.init(document.getElementById('chart5'));
- var option = {
- color: [
- "#4150d8",
- "#28bf7e",
- "#ed7c2f",
- "#f2a93b",
- "#f9cf36",
- "#4a5bdc",
- "#4cd698",
- "#f4914e",
- "#fcb75b",
- "#ffe180",
- "#b6c2ff",
- "#96edc1"
- ],
- title: [
- {
- text: this.chart5Title,
- textStyle:{
- fontSize:14,
- color:"#666",
- fontWeight:'bold'
- },
- textAlign:"center",
- x: '50%',
- y: 'top',
- }
- ],
- tooltip: {
- trigger: 'axis',
- },
- grid: {
- top: '15%',
- left: '3%',
- right: '3%',
- bottom: '6%',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- data: this.AreaObjTypeObj.xAxis,
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- rotate:40,
- textStyle:{
- color:"#a4a4a4"
- },
- formatter: function(val) {
- if(val){
- return val.length>5? val.substring(0,5):val;
- }
- }
- }
- }],
- yAxis: [{
- name:"数量(个)",
- type:'value',
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- rotate:40,
- textStyle:{
- color:"#a4a4a4"
- }
- }
- }],
- series: []
- };
- this.AreaObjTypeObj.list.forEach((item,index)=>{
- var color = this.AreaObjTypeObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
- var obj = {
- name: item.name,
- type: 'bar',
- stack:"all",
- data: item.value,
- barWidth: '8px',
- itemStyle: {
- normal: {
- show: true,
- barBorderRadius:color,
- borderWidth: 0
- }
- }
- }
- option.series.push(obj);
- })
- this.chart5.clear();
- this.chart5.setOption(option);
- },
- // initRangChart1(){
- // this.chartRang = echarts.init(document.getElementById('chartRang'));
- // var option = {
- // tooltip: {
- // trigger: 'axis',
- // },
- // grid: {
- // top: '15%',
- // left: '3%',
- // right: '3%',
- // bottom: '3%',
- // containLabel: true
- // },
- // xAxis: [{
- // type: 'category',
- // data: this.rangeListObj.xAxis1,
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // },
- // formatter: function(val) {
- // if(val){
- // return val.length>5? val.substring(0,5):val;
- // }
- // }
- // }
- // }],
- // yAxis: [{
- // name:"问题数(个)",
- // type:'value',
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // }
- // }
- // }],
- // series: [{
- // name: "问题数",
- // type: 'bar',
- // data: this.rangeListObj.list1,
- // barWidth: '20px',
- // itemStyle: {
- // normal: {
- // show: true,
- // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
- // offset: 0,
- // color: '#31d3ff'
- // }, {
- // offset: 1,
- // color: '#33b1ff'
- // }]),
- // barBorderRadius: [30, 30, 0, 0],
- // borderWidth: 0,
- // }
- // }
- // }]
- // };
- // this.chartRang.clear();
- // this.chartRang.setOption(option);
- // },
- // initRangChart2(){
- // this.chartRang = echarts.init(document.getElementById('chartRang'));
- // var option = {
- // tooltip: {
- // trigger: 'axis',
- // },
- // grid: {
- // top: '15%',
- // left: '3%',
- // right: '3%',
- // bottom: '3%',
- // containLabel: true
- // },
- // xAxis: [{
- // type: 'category',
- // data: this.rangeListObj.xAxis2,
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // },
- // formatter: function(val) {
- // if(val){
- // return val.length>5? val.substring(0,5):val;
- // }
- // }
- // }
- // }],
- // yAxis: [{
- // name:"整改数(个)",
- // type:'value',
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // }
- // }
- // }],
- // series: [{
- // name: "整改数",
- // type: 'bar',
- // data: this.rangeListObj.list2,
- // barWidth: '20px',
- // itemStyle: {
- // normal: {
- // show: true,
- // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
- // offset: 0,
- // color: '#31d3ff'
- // }, {
- // offset: 1,
- // color: '#33b1ff'
- // }]),
- // barBorderRadius: [30, 30, 0, 0],
- // borderWidth: 0,
- // }
- // }
- // }]
- // };
- // this.chartRang.clear();
- // this.chartRang.setOption(option);
- // },
- // initRangChart3(){
- // this.chartRang = echarts.init(document.getElementById('chartRang'));
- // var option = {
- // tooltip: {
- // trigger: 'axis',
- // },
- // grid: {
- // top: '15%',
- // left: '3%',
- // right: '3%',
- // bottom: '3%',
- // containLabel: true
- // },
- // xAxis: [{
- // type: 'category',
- // data: this.rangeListObj.xAxis3,
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // },
- // formatter: function(val) {
- // if(val){
- // return val.length>5? val.substring(0,5):val;
- // }
- // }
- // }
- // }],
- // yAxis: [{
- // name:"整改率(%)",
- // type:'value',
- // axisLine:{
- // lineStyle:{
- // color:"#a4a4a4"
- // }
- // },
- // axisLabel:{
- // rotate:40,
- // textStyle:{
- // color:"#a4a4a4"
- // }
- // }
- // }],
- // series: [{
- // name: "整改率",
- // type: 'bar',
- // data: this.rangeListObj.list3,
- // barWidth: '20px',
- // itemStyle: {
- // normal: {
- // show: true,
- // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
- // offset: 0,
- // color: '#31d3ff'
- // }, {
- // offset: 1,
- // color: '#33b1ff'
- // }]),
- // barBorderRadius: [30, 30, 0, 0],
- // borderWidth: 0,
- // }
- // }
- // }]
- // };
- // this.chartRang.clear();
- // this.chartRang.setOption(option);
- // },
- initCompare1(){
- this.chartComPare = echarts.init(document.getElementById('chartComPare'));
- var option = {
- color: [
- "#2ca1ff",
- "#0adbfa",
- "#febe13",
- "#65e5dd",
- "#7b2cff",
- "#fd5151",
- "#f071ff",
- "#85f67a"
- ],
- tooltip: {
- trigger: 'axis',
- },
- // legend:{
- // top:'5%',
- // bottom:'3%',
- // pageIconColor: '#909399', //翻页下一页的三角按钮颜色
- // pageIconInactiveColor: '#909399', //翻页(即
- // pageIconSize: 14, //翻页按钮大小
- // type: 'scroll',
- // icon: "circle",
- // itemWidth: 10, // 设置宽度
- // itemHeight: 10, // 设置高度
- // itemGap: 10, // 设置间距,
- // x:'center', //可设定图例在左、右、居中
- // y:'top',
- // textStyle: { //图例文字的样式
- // color: '#909399',
- // fontSize: 12
- // },
- // },
- grid: {
- top: '15%',
- left: '10%',
- right: '0%',
- bottom: '10%',
- },
- xAxis: [{
- type: 'category',
- data: this.compareListObj.xAxis,
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- textStyle:{
- color:"#a4a4a4"
- },
- formatter: function(val) {
- if(val){
- return val.length>5? val.substring(0,5):val;
- }
- }
- }
- }],
- yAxis: [{
- name:"对象数(个)",
- type:'value',
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- rotate:40,
- textStyle:{
- color:"#a4a4a4"
- }
- }
- }],
- series: []
- };
- this.compareListObj.list.forEach((item,index)=>{
- // var color = this.compareListObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
- var obj = {
- name: item.typeName,
- type: 'bar',
- stack:"all",
- data: item.typeValue,
- barWidth: '20px',
- itemStyle: {
- normal: {
- show: true,
- // barBorderRadius: color,
- borderWidth: 0
- }
- }
- }
- option.series.push(obj);
- })
- this.chartComPare.clear();
- this.chartComPare.setOption(option);
- },
- initCompare2(){
- this.chartComPare = echarts.init(document.getElementById('chartComPare'));
- var option = {
- color: [
- "#2ca1ff",
- "#0adbfa",
- "#febe13",
- "#65e5dd",
- "#7b2cff",
- "#fd5151",
- "#f071ff",
- "#85f67a"
- ],
- tooltip: {
- trigger: 'axis',
- },
- // legend:{
- // top:'5%',
- // bottom:'3%',
- // pageIconColor: '#909399', //翻页下一页的三角按钮颜色
- // pageIconInactiveColor: '#909399', //翻页(即
- // pageIconSize: 14, //翻页按钮大小
- // type: 'scroll',
- // icon: "circle",
- // itemWidth: 10, // 设置宽度
- // itemHeight: 10, // 设置高度
- // itemGap: 10, // 设置间距,
- // x:'center', //可设定图例在左、右、居中
- // y:'top',
- // textStyle: { //图例文字的样式
- // color: '#909399',
- // fontSize: 12
- // },
- // },
- grid: {
- top: '15%',
- left: '3%',
- right: '0%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- data: this.compareListObj.xAxis,
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- textStyle:{
- color:"#a4a4a4"
- },
- formatter: function(val) {
- if(val){
- return val.length>5? val.substring(0,5):val;
- }
- }
- }
- }],
- yAxis: [{
- name:"问题数(个)",
- type:'value',
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- rotate:40,
- textStyle:{
- color:"#a4a4a4"
- }
- }
- }],
- series: []
- };
- this.compareListObj.list.forEach((item,index)=>{
- // var color = this.compareListObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
- var obj = {
- name: item.typeName,
- type: 'bar',
- stack:"all",
- data: item.typeValue,
- barWidth: '20px',
- itemStyle: {
- normal: {
- show: true,
- // barBorderRadius: color,
- borderWidth: 0
- }
- }
- }
- option.series.push(obj);
- })
- this.chartComPare.clear();
- this.chartComPare.setOption(option);
- },
- initCompare3(){
- this.chartComPare = echarts.init(document.getElementById('chartComPare'));
- var option = {
- color: [
- "#2ca1ff",
- "#0adbfa",
- "#febe13",
- "#65e5dd",
- "#7b2cff",
- "#fd5151",
- "#f071ff",
- "#85f67a"
- ],
- tooltip: {
- trigger: 'axis',
- },
- // legend:{
- // top:'5%',
- // bottom:'3%',
- // pageIconColor: '#909399', //翻页下一页的三角按钮颜色
- // pageIconInactiveColor: '#909399', //翻页(即
- // pageIconSize: 14, //翻页按钮大小
- // type: 'scroll',
- // icon: "circle",
- // itemWidth: 10, // 设置宽度
- // itemHeight: 10, // 设置高度
- // itemGap: 10, // 设置间距,
- // x:'center', //可设定图例在左、右、居中
- // y:'top',
- // textStyle: { //图例文字的样式
- // color: '#909399',
- // fontSize: 12
- // },
- // },
- grid: {
- top: '15%',
- left: '3%',
- right: '0%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- data: this.compareListObj.xAxis,
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- textStyle:{
- color:"#a4a4a4"
- },
- formatter: function(val) {
- if(val){
- return val.length>5? val.substring(0,5):val;
- }
- }
- }
- }],
- yAxis: [{
- name:"整改数(个)",
- type:'value',
- axisLine:{
- lineStyle:{
- color:"#a4a4a4"
- }
- },
- axisLabel:{
- rotate:40,
- textStyle:{
- color:"#a4a4a4"
- }
- }
- }],
- series: []
- };
- this.compareListObj.list.forEach((item,index)=>{
- // var color = this.compareListObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
- var obj = {
- name: item.typeName,
- type: 'bar',
- stack:"all",
- data: item.typeValue,
- barWidth: '20px',
- itemStyle: {
- normal: {
- show: true,
- // barBorderRadius: color,
- borderWidth: 0
- }
- }
- }
- option.series.push(obj);
- })
- this.chartComPare.clear();
- this.chartComPare.setOption(option);
- },
- },
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style scoped>
- .content{
- width: 100%;
- height:100%;
- background: #F8F8F8;
- position: relative;
- }
- .mainBox{
- position: absolute;
- z-index: 300;
- top:20px;
- left:14px;
- width: calc(100% - 28px);
- height:calc(100% - 40px);
- margin: 0;
- padding: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .slideBar{
- width: 440px;
- max-width: 440px;
- height:100%;
- }
- .centerBar{
- width: calc(100% - 880px);
- height:100%;
- position: relative;
- background:#F0FAFF;
- }
- .slideBar-left-top{
- width: 100%;
- height:25%;
- background: #FFFFFF;
- box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
- border-radius: 8px;
- }
- .slideBar-left-bottom{
- width: 100%;
- height:calc(75% - 10px);
- margin-top: 10px;
- background: #FFFFFF;
- box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
- border-radius: 8px;
- }
- .slideBar-right-top{
- width: 100%;
- height:20%;
- background: #FFFFFF;
- box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
- border-radius: 8px;
- }
- .slideBar-right-center{
- width: 100%;
- height:calc(37% - 10px);
- background: #FFFFFF;
- box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
- border-radius: 8px;
- margin-top: 10px;
- }
- .slideBar-right-bottom{
- width: 100%;
- height:calc(43% - 10px);
- background: #FFFFFF;
- box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
- border-radius: 8px;
- margin-top: 10px;
- }
- .slideBar-title{
- width: calc(100% - 39px);
- height:39px;
- margin: 0 auto;
- border-bottom: 1px solid #DDDDDD;
- display: flex;
- align-items: center;
- position: relative;
- }
- .slideBar-title img{
- width: 18px;
- height:18px;
- margin-right: 10px;
- }
- .slideBar-title span.titleText{
- font-size: 18px;
- font-family: 黑体;
- font-weight: bold;
- color: #222222;
- }
- .titlePicker{
- width: 110px;
- position: absolute;
- z-index: 1001;
- top:5px;
- right:0px;
- box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
- }
- .slideRightUl{
- list-style: none;
- display: flex;
- align-items: center;
- height:100%;
- }
- .slideRightUl li:first-child{
- margin-left: 0px !important;
- }
- .slideRightUl li{
- height:calc(100% - 2px);
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 18px;
- font-family: 黑体;
- font-weight: bold;
- color: #777777;
- border-bottom: 2px solid transparent;
- cursor: pointer;
- margin-left: 18px;
- }
- .is-active{
- font-size: 18px;
- font-family: SourceHanSansCN-Medium, SourceHanSansCN;
- font-weight: 500;
- border-bottom: 2px solid #0896eb !important;
- color:#222222 !important;
- }
- .slideBar-content{
- width: calc(100% - 40px);
- margin: 0 auto;
- height:calc(100% - 40px);
- }
- .slideBar-table{
- width: calc(100% - 40px);
- margin-left: 20px;
- height:calc(55% - 20px);
- overflow: auto;
- }
- .slideBar-pie{
- width: calc(100% - 40px);
- margin-left: 20px;
- height:calc(45% - 20px);
- }
- .ul-notify{
- width: 100%;
- line-height: 30px;
- list-style: none;
- height: 100%;
- overflow-y: auto;
- }
- .ul-notify li{
- width: 100%;
- line-height: 30px;
- display: flex;
- align-items: center;
- font-size: 14px;
- color: #817c7c;
- border-bottom: 1px dashed #cdced9;
- cursor: pointer;
- }
- .ul-notify li:hover{
- color: #33b1ff;
- }
- .ul-notify li em{
- display: block;
- width: 4px;
- height:4px;
- border-radius: 30px;
- margin-right: 10px;
- }
- .ul-notify li span:first-child{
- display: flex;
- align-items: center;
- }
- .ul-notify li span:nth-child(2){
- width: calc(100% - 20px);
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap!important;
- }
- .el-table {
- margin-top: 5px;
- }
- .el-table /deep/ th{
- background: #E1F0FF !important;
- color: #507896!important;
- }
- .el-table /deep/ th{
- box-shadow: none !important;
- }
- .el-table /deep/ tr{
- box-shadow: none !important;
- }
- .rangText{
- font-size: 16px;
- font-family: SourceHanSansCN-Medium, SourceHanSansCN;
- font-weight: 500;
- color: #0078FF;
- }
- .rangeTable{
- overflow: auto;
- }
- #chart4{
- width: 100%;
- height:100%;
- }
- .backBtn{
- position: absolute;
- z-index: 1002;
- top:10px;
- right:10px;
- }
- .summary-ul{
- list-style: none;
- width: 100%;
- height:100%;
- }
- .summary-ul li{
- float: left;
- width: calc(33.33% - 10px);
- margin-left: 5px;
- margin-right: 5px;
- height: calc(33.33% - 5px);
- margin-top: 5px;
- background: #FFFFFF;
- box-shadow: 0px 1px 5px 0px rgba(100,180,255,0.5);
- border-radius: 5px;
- cursor: pointer;
- }
- .summary-ul li p{
- width: 100%;
- height: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 14px;
- font-family: SourceHanSansCN-Medium, SourceHanSansCN;
- font-weight: bold;
- color: #666666;
- }
- .fontNum-1{
- color:#00B4FF;
- }
- .fontNum-2{
- color:#738CFF;
- }
- .fontNum-3{
- color: #FF9141;
- }
- .fontNum-4{
- color: #00C3A5;
- }
- .fontNum-5{
- color:#FF6E96;
- }
- .fontNum-6{
- color:#FF6ECD;
- }
- .fontNumPercent{
- position: absolute;
- z-index:1200;
- right:10px;
- bottom:0px;
- font-size: 10px;
- }
- .fontNumPercent img{
- width: 18px;
- height:20px;
- }
- .summary-content{
- display: flex !important;
- justify-content: center !important;
- align-items: center !important;
- font-size: 20px !important;
- font-family: SourceHanSansCN-Bold, SourceHanSansCN;
- font-weight: bold !important;
- position: relative;
- }
- .officeNotice{
- list-style: none;
- width: 100%;
- height:calc(100% - 40px);
- margin-top: 20px;
- padding: 0;
- cursor: pointer;
- }
- .officeNotice li:first-child{
- padding: 10px;
- display: flex;
- float: left;
- justify-content: center;
- list-style: none;
- width: calc(100% - 40px);
- height: calc(100% - 20px);
- margin-left: 20px;
- /* padding: 0; */
- /*margin-right: 5px;*/
- background: url("../../assets/fujian/syx.png") no-repeat;
- background-size: 100% 100%;
- /* box-shadow: 0px 1px 5px 0px rgb(255 125 30 / 40%); */
- border: 1px solid #dddddd;
- }
- .officeNotice li:nth-child(2){
- padding: 10px;
- display: flex;
- float: left;
- list-style: none;
- width: calc(50% - 40px);
- height: calc(100% - 20px);
- margin: 0;
- /* padding: 0; */
- margin-left: 20px;
- background: url("../../assets/fujian/syx1.png") no-repeat;
- background-size: 100% 100%;
- /* box-shadow: 0px 1px 5px 0px rgb(255 125 30 / 40%); */
- border: 1px solid #dddddd;
- }
- .officeNotice li div:first-child{
- width: 30%;
- height:100%;
- }
- .officeNotice li div:nth-child(2){
- width: 30%;
- height:100%;
- }
- .officeNotice li div img{
- width: 65px;
- height:100%;
- }
- .officeNotice li div span:first-child{
- display: block;
- width: 100%;
- height:50%;
- text-align: center;
- font-size: 20px;
- font-family: SourceHanSansCN-Regular, SourceHanSansCN;
- font-weight: bold;
- color: #666666;
- }
- .officeNotice li div span:nth-child(2){
- display: block;
- width: 100%;
- height:50%;
- text-align: center;
- font-size: 20px;
- font-family: SourceHanSansCN-Medium, SourceHanSansCN;
- font-weight: 500;
- color: #4A4A4A;
- }
- .example{
- width: 120px;
- list-style: none;
- position: absolute;
- z-index:1005;
- right:10px;
- bottom:30px;
- background: #e2f1ff;
- box-shadow: 1px 1px 5px 0px rgb(156 158 167);
- border-radius: 3px;
- }
- .example li{
- display: flex;
- align-items: center;
- font-size: 14px;
- font-weight: bold;
- height: 40px;
- line-height: 40px;
- font-size: 12px;
- font-family: SourceHanSansCN-Regular, SourceHanSansCN;
- font-weight: bold;
- color: #4A4A4A;
- }
- .example li:first-child{
- border-bottom: 1px solid #DDDDDD;
- cursor: pointer;
- font-size: 14px;
- cursor: pointer;
- text-align: center;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .example li em{
- display: block;
- width: 20px;
- height:20px;
- margin-left: 15px;
- margin-right: 15px;
- }
- .example li:first-child:hover{
- color:#37AAFF !important;
- }
- /*.example li:nth-child(2){*/
- /* border-bottom: 1px solid #DDDDDD;*/
- /* cursor: pointer;*/
- /*}*/
- /*.example li:nth-child(2):hover{*/
- /* color:#37AAFF !important;*/
- /*}*/
- .example li img{
- width: 20px;
- height:20px;
- margin-right: 15px;
- margin-left: 15px;
- }
- .exampleBack{
- width: 120px;
- list-style: none;
- position: absolute;
- z-index:1005;
- right:10px;
- top:5px;
- background: #FFFFFF;
- box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.7);
- border-radius: 3px;
- cursor: pointer;
- }
- .exampleBack li{
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 15px;
- font-weight: bold;
- height: 40px;
- line-height: 40px;
- font-weight: bold;
- color: #4A4A4A;
- letter-spacing: 3px;
- }
- .exampleBack li:first-child{
- border-bottom: 1px solid #DDDDDD;
- cursor: pointer;
- }
- .exampleBack li:first-child:hover{
- color:#37AAFF !important;
- }
- .exampleBack li:nth-child(2):hover{
- color:#37AAFF !important;
- }
- .DictTitle{
- width: 100%;
- padding: 10px;
- font-weight: bold;
- font-size: 18px;
- text-align: center;
- }
- .pblmDictContent{
- border-radius: 4px;
- border: 1px solid #ebeef5;
- background-color: #fff;
- overflow: hidden;
- color: #303133;
- transition: .3s;
- box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
- margin-top: 20px;
- }
- .level1Title{
- display: block;
- line-height: 30px;
- width: 100%;
- padding: 10px;
- font-weight: bold;
- font-size: 16px;
- border-bottom: 1px solid #ebeef5;
- }
- .level2Title{
- display: block;
- width: 100%;
- line-height: 30px;
- padding: 10px;
- font-weight: bold;
- font-size: 16px;
- text-indent: 20px;
- border-bottom: 1px solid #ebeef5;
- }
- .level3Title{
- display: block;
- line-height: 30px;
- width: 100%;
- padding: 10px;
- font-weight: bold;
- font-size: 14px;
- text-indent: 60px;
- border-bottom: 1px solid #ebeef5;
- }
- ::-webkit-scrollbar {
- width: 8px;
- background: #F5F5F5;
- box-shadow: inset 0px 0px 5px 0px rgba(180,180,180,0.4);
- border-radius: 4px;
- }
- /* 滚动条上的滚动滑块 */
- ::-webkit-scrollbar-thumb {
- background: #C8DCE6;
- border-radius: 3px;
- }
- </style>
|