a7d4a817b409b31f02baaf6cf8a5c8c562df6333.svn-base 138 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616
  1. <template>
  2. <div class="content">
  3. <div class="mainBox">
  4. <div class="slideBar">
  5. <div class="slideBar-left-top">
  6. <div class="slideBar-title">
  7. <img src="../../assets/fujian/dcgk.png"/>
  8. <span class="titleText">水利督查概况</span>
  9. <el-date-picker
  10. v-model="currentYear"
  11. type="year"
  12. :picker-options="pickerOptions"
  13. value-format="yyyy"
  14. format="yyyy"
  15. class="titlePicker"
  16. placeholder="选择年度">
  17. </el-date-picker>
  18. </div>
  19. <div class="slideBar-content">
  20. <ul class="summary-ul">
  21. <li>
  22. <p>年督查项</p>
  23. <p class="summary-content">
  24. <countTo class="fontNum-1" :startVal='0' :endVal='statiscsData.ALLOBJSIZE' :duration='2000'></countTo>
  25. </p>
  26. </li>
  27. <li>
  28. <p>督查组次</p>
  29. <p class="summary-content">
  30. <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.BISINSPALLGROUPSIZE' :duration='2000'></countTo>
  31. </p>
  32. </li>
  33. <li>
  34. <p>督查人次</p>
  35. <p class="summary-content">
  36. <countTo class="fontNum-3" :startVal='0' :endVal='statiscsData.PERNUMSIZE' :duration='2000'></countTo>
  37. </p>
  38. </li>
  39. <li>
  40. <p>督查市</p>
  41. <p class="summary-content">
  42. <countTo class="fontNum-4" :startVal='0' :endVal='statiscsData.OBJADCODESIZES' :duration='2000'></countTo>
  43. </p>
  44. </li>
  45. <li>
  46. <p>督查区/县</p>
  47. <p class="summary-content">
  48. <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.OBJADCODESIZEX' :duration='2000'></countTo>
  49. </p>
  50. </li>
  51. <!-- <li>
  52. <p>督查对象</p>
  53. <p class="summary-content">
  54. <countTo class="fontNum-6" :startVal='0' :endVal='statiscsData.OBJSIZE' :duration='2000'></countTo>
  55. </p>
  56. </li> -->
  57. <li @click="showMap(0)">
  58. <p>督查对象</p>
  59. <p class="summary-content">
  60. <countTo class="fontNum-6" :startVal='0' :endVal='statiscsData.OBJSIZE' :duration='2000'></countTo>
  61. <span class="fontNumPercent">
  62. <img src="../../assets/fujian/up.png" v-if="statiscsData.objRant>0"/>
  63. <img src="../../assets/fujian/down.png" v-if="statiscsData.objRant<0"/>
  64. </span>
  65. </p>
  66. </li>
  67. <!-- <li>
  68. <p>发现问题</p>
  69. <p class="summary-content">
  70. <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.PBLMSIZE' :duration='2000'></countTo>
  71. </p>
  72. </li> -->
  73. <li @click="showMap(1)">
  74. <p>发现问题</p>
  75. <p class="summary-content">
  76. <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.PBLMSIZE' :duration='2000'></countTo>
  77. <span class="fontNumPercent">
  78. <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmAllRant>0"/>
  79. <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmAllRant<0"/>
  80. </span>
  81. </p>
  82. </li>
  83. <!-- <li>
  84. <p>整改问题</p>
  85. <p class="summary-content">
  86. <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.MENDSIZESYS' :duration='2000'></countTo>
  87. </p>
  88. </li> -->
  89. <li @click="showMap(2)">
  90. <p>整改问题</p>
  91. <p class="summary-content">
  92. <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.MENDSIZESYS' :duration='2000'></countTo>
  93. <span class="fontNumPercent">
  94. <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmRectRant>0"/>
  95. <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmRectRant<0"/>
  96. </span>
  97. </p>
  98. </li>
  99. <li>
  100. <p>问题销号</p>
  101. <p class="summary-content">
  102. <countTo class="fontNum-4" :startVal='0' :endVal='statiscsData.PBLMLOGSIZE' :duration='2000'></countTo>
  103. </p>
  104. </li>
  105. <!-- <li>-->
  106. <!-- <p>任务批次(个)</p>-->
  107. <!-- <p class="summary-content">-->
  108. <!-- <countTo class="fontNum-1" :startVal='0' :endVal='statiscsData.YEARBATHSIZE' :duration='2000'></countTo>-->
  109. <!-- </p>-->
  110. <!-- </li>-->
  111. <!-- <li>-->
  112. <!-- <p>督查组数(个)</p>-->
  113. <!-- <p class="summary-content">-->
  114. <!-- <countTo class="fontNum-2" :startVal='0' :endVal='statiscsData.YEARGROUPSIZE' :duration='2000'></countTo>-->
  115. <!-- </p>-->
  116. <!-- </li>-->
  117. <!-- <li @click="showMap(0)">-->
  118. <!-- <p>督查对象(个)</p>-->
  119. <!-- <p class="summary-content">-->
  120. <!-- <countTo class="fontNum-3" :startVal='0' :endVal='statiscsData.OBJSIZE' :duration='2000'></countTo>-->
  121. <!-- <span class="fontNumPercent">-->
  122. <!-- <img src="../../assets/fujian/up.png" v-if="statiscsData.objRant>0"/>-->
  123. <!-- <img src="../../assets/fujian/down.png" v-if="statiscsData.objRant<0"/>-->
  124. <!--&lt;!&ndash; <countTo :startVal='0' :endVal='Math.abs(statiscsData.objRant)' :duration='2000'></countTo>&ndash;&gt;-->
  125. <!-- </span>-->
  126. <!-- </p>-->
  127. <!-- </li>-->
  128. <!-- <li @click="showMap(1)">-->
  129. <!-- <p>发现问题(个)</p>-->
  130. <!-- <p class="summary-content">-->
  131. <!-- <countTo class="fontNum-4" :startVal='0' :endVal='statiscsData.PBLMSIZE' :duration='2000'></countTo>-->
  132. <!-- <span class="fontNumPercent">-->
  133. <!-- <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmAllRant>0"/>-->
  134. <!-- <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmAllRant<0"/>-->
  135. <!--&lt;!&ndash; <countTo :startVal='0' :endVal='Math.abs(statiscsData.pblmAllRant)' :duration='2000'></countTo>&ndash;&gt;-->
  136. <!-- </span>-->
  137. <!-- </p>-->
  138. <!-- </li>-->
  139. <!-- <li @click="showMap(3)">-->
  140. <!-- <p>确认问题(个)</p>-->
  141. <!-- <p class="summary-content">-->
  142. <!-- <countTo class="fontNum-5" :startVal='0' :endVal='statiscsData.SUBMITPLBM' :duration='2000'></countTo>-->
  143. <!-- </p>-->
  144. <!-- </li>-->
  145. <!-- <li @click="showMap(2)">-->
  146. <!-- <p>整改问题(个)</p>-->
  147. <!-- <p class="summary-content">-->
  148. <!-- <countTo class="fontNum-6" :startVal='0' :endVal='statiscsData.MENDSIZESYS' :duration='2000'></countTo>-->
  149. <!-- <span class="fontNumPercent">-->
  150. <!-- <img src="../../assets/fujian/up.png" v-if="statiscsData.pblmRectRant>0"/>-->
  151. <!-- <img src="../../assets/fujian/down.png" v-if="statiscsData.pblmRectRant<0"/>-->
  152. <!--&lt;!&ndash; <countTo :startVal='0' :endVal='Math.abs(statiscsData.pblmRectRant)' :duration='2000'></countTo>&ndash;&gt;-->
  153. <!-- </span>-->
  154. <!-- </p>-->
  155. <!-- </li>-->
  156. </ul>
  157. </div>
  158. </div>
  159. <div class="slideBar-left-bottom">
  160. <div class="slideBar-title">
  161. <ul class="slideRightUl">
  162. <li :class="{'is-active':isActive==1}" @click="showTab(1)">类型</li>
  163. <li :class="{'is-active':isActive==2}" @click="showTab(2)">区域</li>
  164. <!-- <li :class="{'is-active':isActive==3}" @click="showTab(3)">流域</li>-->
  165. </ul>
  166. </div>
  167. <div class="slideBar-table">
  168. <el-table
  169. v-if="isActive==1"
  170. :data="groupTypeData"
  171. @row-click="showGroupType"
  172. style="width: 100%">
  173. <el-table-column
  174. prop=""
  175. align="center"
  176. label="选择"
  177. width="50">
  178. <template slot-scope="scope">
  179. <el-radio v-model="isRadio" :label="scope.row.id">&nbsp;</el-radio>
  180. </template>
  181. </el-table-column>
  182. <el-table-column
  183. prop="objName"
  184. label="督查类别"
  185. show-overflow-tooltip
  186. align="center"
  187. min-width="100">
  188. </el-table-column>
  189. <el-table-column
  190. prop="groupSize1"
  191. label="督查组次"
  192. show-overflow-tooltip
  193. align="center"
  194. min-width="50">
  195. </el-table-column>
  196. <el-table-column
  197. prop="persSize1"
  198. label="督查人次"
  199. show-overflow-tooltip
  200. align="center"
  201. min-width="50">
  202. </el-table-column>
  203. <el-table-column
  204. prop="adCodeSizeS"
  205. label="督查市数"
  206. show-overflow-tooltip
  207. align="center"
  208. min-width="50">
  209. </el-table-column>
  210. <el-table-column
  211. prop="adCodeSizeX"
  212. label="督查县数"
  213. show-overflow-tooltip
  214. align="center"
  215. min-width="50">
  216. </el-table-column>
  217. <el-table-column
  218. prop="objSize"
  219. label="对象数"
  220. show-overflow-tooltip
  221. align="center"
  222. min-width="70">
  223. </el-table-column>
  224. <el-table-column
  225. prop="pblmSize"
  226. label="问题数"
  227. show-overflow-tooltip
  228. align="center"
  229. min-width="70">
  230. </el-table-column>
  231. <el-table-column
  232. prop="pblmLogSize"
  233. label="整改数"
  234. show-overflow-tooltip
  235. align="center"
  236. min-width="70">
  237. </el-table-column>
  238. <!-- <el-table-column-->
  239. <!-- prop="objSize"-->
  240. <!-- label="对象数"-->
  241. <!-- align="center"-->
  242. <!-- show-overflow-tooltip-->
  243. <!-- min-width="60">-->
  244. <!-- </el-table-column>-->
  245. <!-- <el-table-column-->
  246. <!-- prop="pblmSize"-->
  247. <!-- label="问题数"-->
  248. <!-- align="center"-->
  249. <!-- show-overflow-tooltip-->
  250. <!-- min-width="60">-->
  251. <!-- </el-table-column>-->
  252. <!-- <el-table-column-->
  253. <!-- prop="pblmLogSize"-->
  254. <!-- label="整改数"-->
  255. <!-- align="center"-->
  256. <!-- show-overflow-tooltip-->
  257. <!-- min-width="60">-->
  258. <!-- </el-table-column>-->
  259. </el-table>
  260. <el-table
  261. v-if="isActive==2"
  262. :data="groupAreaData"
  263. @row-click="showGroupArea"
  264. style="width: 100%">
  265. <el-table-column
  266. prop=""
  267. label="选择"
  268. align="center"
  269. width="50">
  270. <template slot-scope="scope">
  271. <el-radio v-model="isRadio1" :label="scope.row.id">&nbsp;</el-radio>
  272. </template>
  273. </el-table-column>
  274. <el-table-column
  275. prop="adName"
  276. label="区划名称"
  277. show-overflow-tooltip
  278. align="center"
  279. min-width="60">
  280. </el-table-column>
  281. <el-table-column
  282. prop="objSize"
  283. label="对象数"
  284. show-overflow-tooltip
  285. align="center"
  286. min-width="60">
  287. </el-table-column>
  288. <el-table-column
  289. prop="pblmSize"
  290. label="问题数"
  291. show-overflow-tooltip
  292. align="center"
  293. min-width="60">
  294. </el-table-column>
  295. <el-table-column
  296. prop="mendSize"
  297. label="整改数"
  298. show-overflow-tooltip
  299. align="center"
  300. min-width="60">
  301. </el-table-column>
  302. </el-table>
  303. </div>
  304. <div class="slideBar-pie" id="chart5"></div>
  305. </div>
  306. </div>
  307. <div class="centerBar">
  308. <ul class="exampleBack">
  309. <li v-show="isCityL" @click="backProvince"><i class="el-icon-arrow-left"/>返 回</li>
  310. </ul>
  311. <ul class="example">
  312. <li @click="showMap(null)" v-show="mapIsActive==0 || mapIsActive==1 || mapIsActive==2 || mapIsActive==3"><i class="el-icon-s-grid"/>全部数据</li>
  313. <li>
  314. <em style="background: #fff024"/><span>对象数</span>
  315. </li>
  316. <li>
  317. <em style="background: #EB3B46"/><span>问题数</span>
  318. </li>
  319. <!-- <li>
  320. <em style="background: #A02A27"/><span>确认问题数</span>
  321. </li> -->
  322. <li>
  323. <em style="background: white"/><span>整改数</span>
  324. </li>
  325. </ul>
  326. <!-- <el-button v-if="isCity" type="primary" size="large" class="backBtn" plain icon="el-icon-arrow-left" @click="backProvince">返回至省级</el-button>-->
  327. <div class="item-content-center" id="chart4"></div>
  328. </div>
  329. <div class="slideBar">
  330. <div class="slideBar-right-top">
  331. <div class="slideBar-title">
  332. <ul class="slideRightUl">
  333. <li :class="{'is-active':isActive3==3}" @click="showTab3(3)">
  334. <!-- <el-badge v-if="badge3>0" :value="badge3" class="item">待办事项</el-badge>-->
  335. <span >待办事项</span>
  336. </li>
  337. <li :class="{'is-active':isActive3==4}" @click="showTab3(4)">
  338. <el-badge v-if="badge4>0" :value="badge4" class="item">通知公告</el-badge>
  339. <span v-else>通知公告</span>
  340. </li>
  341. <li :class="{'is-active':isActive3==2}" @click="showTab3(2)">
  342. <!-- <el-badge v-if="badge2>0" :value="badge2" class="item">问题清单库</el-badge>-->
  343. <span>问题清单库</span>
  344. </li>
  345. <li :class="{'is-active':isActive3==1}" @click="showTab3(1)">
  346. <el-badge v-if="badge1>0" :value="badge1" class="item">法律法规</el-badge>
  347. <span v-else>法律法规</span>
  348. </li>
  349. </ul>
  350. </div>
  351. <div class="slideBar-content">
  352. <ul class="officeNotice" v-if="isActive3==3" @click.stop="showTodo">
  353. <li>
  354. <div><img src="../../assets/fujian/db.png"/></div>
  355. <div>
  356. <span>待办</span>
  357. <span>{{todoCount}}</span>
  358. </div>
  359. </li>
  360. <!-- <li>-->
  361. <!-- <div><img src="../../assets/fujian/tz.png"/></div>-->
  362. <!-- <div>-->
  363. <!-- <span>通知</span>-->
  364. <!-- <span>999</span>-->
  365. <!-- </div>-->
  366. <!-- </li>-->
  367. </ul>
  368. <ul class="ul-notify">
  369. <li v-for="(item,index) in noticeList1" v-if="isActive3==1" @click="showDialog(item,1)" >
  370. <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>
  371. <span :title="item.title">{{item.title}}</span>
  372. <el-badge :is-dot="getCookie(1).indexOf(item.id)>-1" class="item"></el-badge>
  373. </li>
  374. <li v-for="(item,index) in noticeList2" v-if="isActive3==2" @click="showDialog(item,2)">
  375. <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>
  376. <span :title="item.title">{{item.title}}</span>
  377. <!-- <el-badge :is-dot="getCookie(2).indexOf(item.pblmId)>-1" class="item"></el-badge>-->
  378. </li>
  379. <!-- <li v-for="(item,index) in noticeList3" v-if="isActive3==3" @click="showDialog(item,3)">-->
  380. <!-- <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>-->
  381. <!-- <span :title="item.title">{{item.title}}</span>-->
  382. <!-- <el-badge :is-dot="getCookie(3).indexOf(item.id)>-1" class="item"></el-badge>-->
  383. <!-- </li>-->
  384. <li v-for="(item,index) in noticeList4" v-if="isActive3==4" @click="showDialog(item,4)">
  385. <span style="color:#ffac3d;"><em style="background:#ffac3d; "/></span>
  386. <span :title="item.title">{{item.title}}</span>
  387. <el-badge :is-dot="getCookie(4).indexOf(item.id)>-1" class="item"></el-badge>
  388. </li>
  389. </ul>
  390. </div>
  391. </div>
  392. <div class="slideBar-right-center">
  393. <div class="slideBar-title">
  394. <ul class="slideRightUl">
  395. <li :class="{'is-active':isActive1==2}" @click="showTab1(2)">问题数</li>
  396. <li :class="{'is-active':isActive1==1}" @click="showTab1(1)">对象数</li>
  397. <li :class="{'is-active':isActive1==4}" @click="showTab1(4)">整改数</li>
  398. </ul>
  399. </div>
  400. <div class="slideBar-content" id="chartComPare"></div>
  401. </div>
  402. <div class="slideBar-right-bottom">
  403. <div class="slideBar-title">
  404. <img src="../../assets/fujian/zgph.png"/>
  405. <span class="titleText">整改排行</span>
  406. </div>
  407. <div class="slideBar-content rangeTable">
  408. <el-table
  409. :data="rangeData"
  410. style="width: 100%">
  411. <el-table-column
  412. prop="adName"
  413. label="区划名称"
  414. show-overflow-tooltip
  415. align="center"
  416. min-width="60">
  417. </el-table-column>
  418. <el-table-column
  419. prop="pblmSize"
  420. label="问题数"
  421. show-overflow-tooltip
  422. align="center"
  423. min-width="60">
  424. </el-table-column>
  425. <el-table-column
  426. prop="pblmLogSize"
  427. label="整改数"
  428. show-overflow-tooltip
  429. align="center"
  430. min-width="60">
  431. </el-table-column>
  432. <el-table-column
  433. prop="mendAccomplishRant"
  434. label="整改率(%)"
  435. show-overflow-tooltip
  436. align="center"
  437. min-width="100">
  438. <template slot-scope="scope">
  439. <span class="rangText">{{scope.row.mendAccomplishRant}}</span>
  440. </template>
  441. </el-table-column>
  442. </el-table>
  443. </div>
  444. </div>
  445. </div>
  446. <messageDetail v-if="isShowMessageDetail" :data="messageData" @closeDialog="closeDialog"></messageDetail>
  447. <el-dialog
  448. class="custom_dialog"
  449. title="问题标准"
  450. width="60%"
  451. @close="dialogCloseDetail"
  452. append-to-body
  453. v-if="supervisionDetailsVisible"
  454. :visible.sync="supervisionDetailsVisible">
  455. <div style="width: 100%;height:600px;overflow-y: auto;overflow-x: hidden">
  456. <p class="DictTitle">{{pblmDict.inspObjName}}</p>
  457. <div v-for="(item,index) in pblmDict.children" class="pblmDictContent">
  458. <span class="level1Title">{{index+1}}、{{item.inspObjName}}</span>
  459. <div v-for="(item1,index1) in item.children">
  460. <span class="level2Title">{{index+1}}.{{index1+1}}、{{item1.inspObjName}}</span>
  461. <div v-for="(item2,index2) in item1.children">
  462. <span class="level3Title">{{index+1}}.{{index1+1}}.{{index2+1}}、{{item2.inspObjName}}</span>
  463. </div>
  464. </div>
  465. </div>
  466. </div>
  467. </el-dialog>
  468. <el-dialog
  469. class="custom_dialog"
  470. title="法律法规"
  471. width="70%"
  472. @close="dialogCloseDetailLaw"
  473. append-to-body
  474. v-if="viewLawListVisible"
  475. :visible.sync="viewLawListVisible">
  476. <viewLawList :lawName="lawName"></viewLawList>
  477. </el-dialog>
  478. <el-dialog
  479. class="custom_dialog"
  480. title="待办事项"
  481. width="70%"
  482. @close="dialogCloseDetailWork"
  483. append-to-body
  484. v-if="viewWorkListVisible"
  485. :visible.sync="viewWorkListVisible">
  486. <toDoTaskPage type="dc" :workName="workName"></toDoTaskPage>
  487. </el-dialog>
  488. </div>
  489. </div>
  490. </template>
  491. <script>
  492. import countTo from 'vue-count-to';
  493. import Viewer from 'viewerjs';
  494. import axios from 'axios' //引入axios
  495. import 'viewerjs/dist/viewer.css';
  496. import echarts from "echarts";
  497. import '@util/echarts-gl.min.js';
  498. import request from "@util/gw_ajax_request.js";
  499. import {getStatiscsData,getPblmPro,getGroupType,getGroupTypeSd,initPblmTypeList,initAreaObjTypeList,initCompareObjTypeList,initNoticeList} from "../../api/homeMainView.js";
  500. import obj from '../../assets/fujian/obj.png';
  501. import pblm from '../../assets/fujian/pblm.png';
  502. import mend from '../../assets/fujian/mend.png';
  503. import submit from '../../assets/fujian/submit.png';
  504. import messageDetail from "./messageDetail";
  505. export default {
  506. components: {
  507. countTo,
  508. messageDetail,
  509. problemDetail: resolve => {
  510. require(["./problemDetail.vue"], resolve);
  511. },
  512. viewLawList: resolve =>{
  513. require(["../Inspection/viewLawList.vue"], resolve);
  514. },
  515. toDoTaskPage: resolve =>{
  516. require(["../toDoTask/toDoTaskPage.vue"], resolve);
  517. }
  518. },
  519. props: [],
  520. data() {
  521. //这里存放数据
  522. return {
  523. pickerOptions: {
  524. disabledDate(time) {
  525. return time.getTime() > Date.now();
  526. }
  527. },
  528. currentYear:new Date().getFullYear().toString(),
  529. currentAdCode:"",
  530. currentAdName:"",
  531. isRadio:"",
  532. isRadio1:null,
  533. isActive:1,
  534. isActive1:2,
  535. isActive2:3,
  536. isActive3:3,
  537. badge1:0,
  538. badge2:0,
  539. badge3:0,
  540. badge4:0,
  541. dateStr:"",
  542. chart1:null,
  543. chart2:null,
  544. chart4:null,
  545. chart5:null,
  546. chartRang:null,
  547. chartComPare:null,
  548. chart5Title:"",
  549. mapIsActive:null,
  550. activeName:"first",
  551. isCity:false,
  552. groupTypeData:[],
  553. groupAreaData:[],
  554. chartMapData:{
  555. mapPercent:[],
  556. geoCoordMap:{},
  557. geoCoordMapList:[],
  558. geoCoordMap1:{},
  559. geoCoordMapList1:[],
  560. geoCoordMap2:{},
  561. geoCoordMapList2:[],
  562. geoCoordMap3:{},
  563. geoCoordMapList3:[],
  564. geoCoordMap4:{},
  565. geoCoordMapList4:[],
  566. },
  567. statiscsData:{
  568. BISINSPALLGROUPSIZE:0,
  569. BISINSPALLSIZE: 0,
  570. BISINSPALLSIZEMONTH: 0,
  571. HASOBJSIZE: 0,
  572. MENDSIZE: 0,
  573. MENDSIZESYS: 0,
  574. MENDSIZEMONTH: 0,
  575. OBJSIZE: 0,
  576. OBJSIZEREPEAT: 0,
  577. OBJTYPESIZE: 0,
  578. OBJTYPESIZEMONTH: 0,
  579. PBLMLOGSIZE: 0,
  580. PBLMLOGSIZEMONTH: 0,
  581. PBLMSIZE: 0,
  582. PBLMSIZEMONTH: 0,
  583. PERSIZE: 0,
  584. PERSIZEALL: 0,
  585. YEARBATHSIZE:0,
  586. YEARGROUPSIZE:0,
  587. SUBMITPLBM:0,
  588. objRant:0,
  589. pblmAllRant:0,
  590. pblmRectRant:0,
  591. OBJADCODESIZEX:0,
  592. OBJADCODESIZES:0,
  593. ALLOBJSIZE:0,
  594. PERNUMSIZE:0
  595. },
  596. chartPblmLevelData:{
  597. info:0,
  598. warn:0,
  599. fatal:0,
  600. error:0,
  601. count:0
  602. },
  603. pblmTypeObj:{
  604. list:[],
  605. count:0
  606. },
  607. AreaObjTypeObj:{
  608. xAxis:[],
  609. list:[]
  610. },
  611. rangeData:[],
  612. compareListObj:{
  613. xAxis:[],
  614. list:[]
  615. },
  616. noticeList1:[],
  617. noticeList2:[],
  618. noticeList3:[],
  619. noticeList4:[],
  620. todoCount:0,
  621. isShowMessageDetail:false,
  622. messageData:null,
  623. supervisionDetailsVisible:false,
  624. pblmDict:[],
  625. problemId:"",
  626. viewLawListVisible:false,
  627. lawName:"",
  628. viewWorkListVisible:false,
  629. workName:"",
  630. provTitle:""
  631. }
  632. },
  633. //监听属性 类似于data概念
  634. computed: {
  635. organNm() {
  636. return localStorage.getItem('currentOrgNm') ? localStorage.getItem('currentOrgNm') : ''
  637. },
  638. organCode() {
  639. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  640. },
  641. currentOrgId() {
  642. return localStorage.getItem('currentOrgId') ? localStorage.getItem('currentOrgId') : ''
  643. },
  644. isCityL(){
  645. return this.currentAdCode.replace(/00/g,"").length==4?true:false
  646. }
  647. },
  648. //监控data中的数据变化
  649. watch: {
  650. currentYear(n,o){
  651. if(n){
  652. if(n < new Date().getFullYear().toString()){
  653. this.dateStr = n +"年12月31日"
  654. }else{
  655. this.dateStr = (this.formatDate(new Date().getTime()))
  656. }
  657. this.initStatiscsData();
  658. this.initGroupType();
  659. this.initMulData();
  660. [1,2,3,4].forEach((item)=>{
  661. this.initNoticeData(item);
  662. })
  663. }
  664. }
  665. },
  666. //生命周期 - 创建完成(可以访问当前this实例)
  667. created() {
  668. this.dateStr = (this.formatDate(new Date().getTime()));
  669. this.currentAdCode = this.organCode;
  670. this.currentAdName = this.organNm;
  671. },
  672. //生命周期 - 挂载完成(可以访问DOM元素)
  673. mounted() {
  674. this.$nextTick(()=>{
  675. this.initStatiscsData();
  676. this.initGroupType();
  677. this.initMulData();
  678. this.initCompareObjTypeData();
  679. [1,2,3,4].forEach((item)=>{
  680. this.initNoticeData(item);
  681. })
  682. var _self = this;
  683. window.onresize = function() {
  684. _self.resizeCharts();
  685. }
  686. })
  687. },
  688. //方法集合
  689. methods: {
  690. showTodo(){
  691. this.$router.push({path: '/toDoTask/dc',query:{source:"home"}});
  692. },
  693. dialogCloseDetailWork(){
  694. this.viewWorkListVisible = false;
  695. this.workName = "";
  696. },
  697. dialogCloseDetailLaw(){
  698. this.lawName = "";
  699. this.viewLawListVisible = false;
  700. },
  701. dialogCloseDetail(){
  702. this.supervisionDetailsVisible = false;
  703. this.problemId = "";
  704. },
  705. closeDialog(){
  706. this.isShowMessageDetail = false;
  707. this.messageData = null;
  708. },
  709. showDialog(item,args){
  710. var arr = [];
  711. var arr1 = [];
  712. if(args==1){
  713. this.viewLawListVisible = true;
  714. this.lawName = item.lawKeyword;
  715. arr = this.getCookie(args).filter(item1 => item1 != item.id)
  716. arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.id))
  717. this.badge1 = arr.length;
  718. this.setCookie(args,arr.join(","));
  719. this.setReadCookie(args,arr1.join(","));
  720. }
  721. if(args==2){
  722. this.supervisionDetailsVisible = true;
  723. this.pblmDict = item;
  724. // this.problemId = item.pblmId;
  725. // arr = this.getCookie(args).filter(item1 => item1 != item.pblmId);
  726. // arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.pblmId))
  727. // this.badge2 = arr.length;
  728. // this.setCookie(args,arr.join(","));
  729. // this.setReadCookie(args,arr1.join(","));
  730. }
  731. if(args==3){
  732. this.workName = item.procInstName;
  733. this.viewWorkListVisible = true;
  734. arr = this.getCookie(args).filter(item1 => item1 != item.procInstId);
  735. arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.procInstId))
  736. this.badge3 = arr.length;
  737. this.setCookie(args,arr.join(","));
  738. this.setReadCookie(args,arr1.join(","));
  739. }
  740. if(args==4){
  741. this.isShowMessageDetail = true;
  742. this.messageData = item;
  743. arr = this.getCookie(args).filter(item1 => item1 != item.id);
  744. arr1 = this.getReadCookie(args).concat(this.getCookie(args).filter(item1 => item1 == item.id))
  745. this.badge4 = arr.length;
  746. this.setCookie(args,arr.join(","));
  747. this.setReadCookie(args,arr1.join(","));
  748. }
  749. },
  750. resizeCharts(){
  751. // this.chart1.resize();
  752. // this.chart2.resize();
  753. this.chart4.resize();
  754. this.chart5.resize();
  755. // this.chartRang.resize();
  756. this.chartComPare.resize();
  757. },
  758. backProvince(){
  759. this.isCity = false;
  760. this.currentAdCode = this.organCode;
  761. this.currentAdName = this.organNm;
  762. this.$nextTick(()=>{
  763. this.initStatiscsData();
  764. this.initGroupType();
  765. this.initMulData();
  766. this.initCompareObjTypeData();
  767. [1,2,3,4].forEach((item)=>{
  768. this.initNoticeData(item);
  769. })
  770. })
  771. },
  772. showMap(args){
  773. this.mapIsActive = args;
  774. this.initMulData();
  775. },
  776. showGroupType(row, column, event){
  777. if (event.target.tagName === 'INPUT') {
  778. return;
  779. }
  780. this.isRadio= row.id;
  781. this.initPblmTypeData(row.objType);
  782. },
  783. showGroupArea(row, column, event){
  784. if (event.target.tagName === 'INPUT') {
  785. return;
  786. }
  787. this.isRadio1= row.id;
  788. this.initAreaObjTypeData(row.adCode,row.adName);
  789. },
  790. showTab(args){
  791. this.isActive = args;
  792. },
  793. showTab1(args){
  794. this.isActive1 = args;
  795. this.initCompareObjTypeData();
  796. },
  797. // showTab2(args){
  798. // this.isActive2 = args;
  799. // if(args==1){
  800. // this.initRangChart1()
  801. // }
  802. // if(args==2){
  803. // this.initRangChart2()
  804. // }
  805. // if(args==3){
  806. // this.initRangChart3()
  807. // }
  808. //
  809. // },
  810. showTab3(args){
  811. this.isActive3 = args;
  812. },
  813. formatDate(date){
  814. if(date){
  815. var date = new Date(date);
  816. return date.getFullYear()+'年'+((date.getMonth()+1)>9?(date.getMonth()+1):'0'+(date.getMonth()+1))+'月'+(date.getDate()>9?date.getDate():'0'+date.getDate()+'日');
  817. }
  818. return '';
  819. },
  820. //统计数
  821. initStatiscsData(){
  822. var _self = this;
  823. _self.statiscsData = {
  824. BISINSPALLGROUPSIZE:0,
  825. BISINSPALLSIZE: 0,
  826. BISINSPALLSIZEMONTH: 0,
  827. HASOBJSIZE: 0,
  828. MENDSIZE: 0,
  829. MENDSIZESYS: 0,
  830. MENDSIZEMONTH: 0,
  831. OBJSIZE: 0,
  832. OBJSIZEREPEAT: 0,
  833. OBJTYPESIZE: 0,
  834. OBJTYPESIZEMONTH: 0,
  835. PBLMLOGSIZE: 0,
  836. PBLMLOGSIZEMONTH: 0,
  837. PBLMSIZE: 0,
  838. PBLMSIZEMONTH: 0,
  839. PERSIZE: 0,
  840. PERSIZEALL: 0,
  841. YEARBATHSIZE:0,
  842. YEARGROUPSIZE:0,
  843. SUBMITPLBM:0,
  844. objRant:0,
  845. pblmAllRant:0,
  846. pblmRectRant:0,
  847. OBJADCODESIZEX:0,
  848. OBJADCODESIZES:0,
  849. ALLOBJSIZE:0,
  850. PERNUMSIZE:0
  851. }
  852. getStatiscsData("7","",this.currentAdCode,this.currentYear).then((res) => {
  853. if(res.data!=null){
  854. _self.statiscsData.BISINSPALLGROUPSIZE = parseInt(res.data.BISINSPALLGROUPSIZE==null?0:res.data.BISINSPALLGROUPSIZE);
  855. _self.statiscsData.BISINSPALLSIZE = parseInt(res.data.BISINSPALLSIZE==null?0:res.data.BISINSPALLSIZE);
  856. _self.statiscsData.BISINSPALLSIZEMONTH = parseInt(res.data.BISINSPALLSIZEMONTH==null?0:res.data.BISINSPALLSIZEMONTH);
  857. _self.statiscsData.HASOBJSIZE = parseInt(res.data.HASOBJSIZE==null?0:res.data.HASOBJSIZE);
  858. _self.statiscsData.MENDSIZE = parseInt(res.data.MENDSIZE==null?0:res.data.MENDSIZE);
  859. _self.statiscsData.MENDSIZESYS = parseInt(res.data.MENDSIZESYS==null?0:res.data.MENDSIZESYS);
  860. _self.statiscsData.MENDSIZEMONTH = parseInt(res.data.MENDSIZEMONTH==null?0:res.data.MENDSIZEMONTH);
  861. _self.statiscsData.OBJSIZE = parseInt(res.data.OBJSIZE==null?0:res.data.OBJSIZE);
  862. _self.statiscsData.OBJSIZEREPEAT = parseInt(res.data.OBJSIZEREPEAT==null?0:res.data.OBJSIZEREPEAT);
  863. _self.statiscsData.OBJTYPESIZE = parseInt(res.data.OBJTYPESIZE==null?0:res.data.OBJTYPESIZE);
  864. _self.statiscsData.OBJTYPESIZEMONTH = parseInt(res.data.OBJTYPESIZEMONTH==null?0:res.data.OBJTYPESIZEMONTH);
  865. _self.statiscsData.PBLMLOGSIZE = parseInt(res.data.PBLMLOGSIZE==null?0:res.data.PBLMLOGSIZE);
  866. _self.statiscsData.PBLMLOGSIZEMONTH = parseInt(res.data.PBLMLOGSIZEMONTH==null?0:res.data.PBLMLOGSIZEMONTH);
  867. _self.statiscsData.PBLMSIZE = parseInt(res.data.PBLMSIZE==null?0:res.data.PBLMSIZE);
  868. _self.statiscsData.PBLMSIZEMONTH = parseInt(res.data.PBLMSIZEMONTH==null?0:res.data.PBLMSIZEMONTH);
  869. _self.statiscsData.PERSIZE = parseInt(res.data.PERSIZE==null?0:res.data.PERSIZE);
  870. _self.statiscsData.PERSIZEALL = parseInt(res.data.PERSIZEALL==null?0:res.data.PERSIZEALL);
  871. _self.statiscsData.YEARBATHSIZE = parseInt(res.data.YEARBATHSIZE==null?0:res.data.YEARBATHSIZE);
  872. _self.statiscsData.YEARGROUPSIZE = parseInt(res.data.YEARGROUPSIZE==null?0:res.data.YEARGROUPSIZE);
  873. _self.statiscsData.SUBMITPLBM = parseInt(res.data.SUBMITPLBM==null?0:res.data.SUBMITPLBM);
  874. _self.statiscsData.objRant = parseFloat(res.data.objRant?res.data.objRant.replace("%",""):0);
  875. _self.statiscsData.pblmAllRant = parseFloat(res.data.pblmAllRant?res.data.pblmAllRant.replace("%",""):0);
  876. _self.statiscsData.pblmRectRant = parseFloat(res.data.pblmRectRant?res.data.pblmRectRant.replace("%",""):0);
  877. _self.statiscsData.OBJADCODESIZEX = parseInt(res.data.OBJADCODESIZEX==null?0:res.data.OBJADCODESIZEX);
  878. _self.statiscsData.OBJADCODESIZES = parseInt(res.data.OBJADCODESIZES==null?0:res.data.OBJADCODESIZES);
  879. _self.statiscsData.ALLOBJSIZE = parseInt(res.data.ALLOBJSIZE==null?0:res.data.ALLOBJSIZE);
  880. _self.statiscsData.PERNUMSIZE = parseInt(res.data.PERNUMSIZE==null?0:res.data.PERNUMSIZE);
  881. }
  882. });
  883. },
  884. //按类型分组
  885. initGroupType(){
  886. this.groupTypeData = [];
  887. var _self = this;
  888. getGroupTypeSd({timeType:"7",year:this.currentYear,adCode:this.currentAdCode}).then((res) => {
  889. if(res.data!=null && res.data.length>0){
  890. _self.groupTypeData = res.data;
  891. _self.groupTypeData.forEach((item,index)=>{
  892. item.id = index+1
  893. })
  894. }
  895. // this.initChart1()
  896. });
  897. },
  898. //行政区划相关数据
  899. initMulData(){
  900. this.chartPblmLevelData.info = 0;
  901. this.chartPblmLevelData.warn = 0;
  902. this.chartPblmLevelData.fatal = 0;
  903. this.chartPblmLevelData.error = 0;
  904. this.chartMapData.geoCoordMap = [];
  905. this.chartMapData.geoCoordMapList = [];
  906. this.chartMapData.geoCoordMap1 = [];
  907. this.chartMapData.geoCoordMapList1 = [];
  908. this.chartMapData.geoCoordMap2 = [];
  909. this.chartMapData.geoCoordMapList2 = [];
  910. this.chartMapData.geoCoordMap3 = [];
  911. this.chartMapData.geoCoordMapList3 = [];
  912. this.chartMapData.geoCoordMap4 = [];
  913. this.chartMapData.geoCoordMapList4 = [];
  914. this.groupAreaData = [];
  915. this.rangeData = [];
  916. this.provTitle = "";
  917. var list = [];
  918. var list1 = [];
  919. var maxNum=0;
  920. var _self = this;
  921. getPblmPro({timeType:"7",year:this.currentYear,adCode:this.currentAdCode}).then((res) => {
  922. if(res.data!=null && res.data.length>0){
  923. for(var i = 0;i<res.data.length;i++){
  924. if(res.data[i].adName!="合计"){
  925. if(res.data[i].adName=="平潭综合试验区"){
  926. res.data[i].adName = "平潭区"
  927. }
  928. list.push(res.data[i]);
  929. _self.groupAreaData.push(res.data[i]);
  930. _self.groupAreaData.forEach((item,index)=>{
  931. item.id = index+1;
  932. })
  933. if(res.data[i].adName=="省本级"){
  934. this.provTitle = `[省本级:对象数:${res.data[i].objSize},问题数:${res.data[i].pblmSize},提交问题数:${res.data[i].submitPlbm},整改数:${res.data[i].mendSize}]`
  935. }
  936. var str = "";
  937. if(_self.mapIsActive==0){
  938. str = res.data[i].objSize;
  939. }
  940. if(_self.mapIsActive==1){
  941. str = res.data[i].pblmSize;
  942. }
  943. if(_self.mapIsActive==2){
  944. str = res.data[i].mendSize
  945. }
  946. if(_self.mapIsActive==3){
  947. str = res.data[i].submitPlbm
  948. }
  949. if(!_self.mapIsActive && _self.mapIsActive!=0){
  950. str = res.data[i].objSize+","+res.data[i].pblmSize+","+res.data[i].submitPlbm+","+res.data[i].mendSize
  951. }
  952. if(res.data[i].adName!="省本级") {
  953. _self.chartMapData.geoCoordMapList.push({
  954. name: res.data[i].adName,
  955. value:str,
  956. adCode:res.data[i].adCode
  957. });
  958. if(!_self.mapIsActive && _self.mapIsActive!=0){
  959. _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];
  960. _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];
  961. _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];
  962. // _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];
  963. _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];
  964. _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];
  965. }else{
  966. _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];
  967. _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];
  968. _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];
  969. _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];
  970. _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];
  971. _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];
  972. }
  973. _self.chartMapData.geoCoordMapList1.push({
  974. name: res.data[i].adName,
  975. value: res.data[i].objSize
  976. });
  977. _self.chartMapData.geoCoordMapList2.push({
  978. name: res.data[i].adName,
  979. value: res.data[i].pblmSize
  980. });
  981. _self.chartMapData.geoCoordMapList3.push({
  982. name: res.data[i].adName,
  983. value: res.data[i].submitPlbm
  984. });
  985. _self.chartMapData.geoCoordMapList4.push({
  986. name: res.data[i].adName,
  987. value: res.data[i].mendSize,
  988. });
  989. list1.push(res.data[i].objSize);
  990. list1.push(res.data[i].pblmSize);
  991. list1.push(res.data[i].submitPlbm);
  992. list1.push(res.data[i].mendSize);
  993. maxNum = Math.max(...list1)
  994. }
  995. }else{
  996. _self.chartPblmLevelData.info = res.data[i].infoPlbm;
  997. _self.chartPblmLevelData.warn = res.data[i].warmPlbm;
  998. _self.chartPblmLevelData.fatal = res.data[i].errorPlbm;
  999. _self.chartPblmLevelData.error = res.data[i].errorsPlbm;
  1000. _self.chartPblmLevelData.count = parseInt(res.data[i].infoPlbm)+parseInt(res.data[i].warmPlbm)+parseInt(res.data[i].errorPlbm)+parseInt(res.data[i].errorsPlbm)
  1001. }
  1002. }
  1003. list = list.sort(this.compare('mendAccomplishRant'));
  1004. list.forEach((item)=>{
  1005. _self.rangeData.push(item);
  1006. })
  1007. }
  1008. // this.initChart1();
  1009. // this.initChart2();
  1010. this.initChart4(maxNum);
  1011. this.initChart5();
  1012. // this.initRangChart3();
  1013. });
  1014. },
  1015. compare(property){
  1016. return function(a,b){
  1017. var value1 = a[property];
  1018. var value2 = b[property];
  1019. return value2 - value1;
  1020. }
  1021. },
  1022. //问题类别数据
  1023. initPblmTypeData(objType){
  1024. this.pblmTypeObj.list = [];
  1025. this.pblmTypeObj.count = 0;
  1026. var _self = this;
  1027. initPblmTypeList({timeType:"7",year:this.currentYear,adCode:this.currentAdCode,objType:objType}).then((res) => {
  1028. if(res.data!=null && res.data.length>0){
  1029. for(var i = 0;i<res.data.length;i++){
  1030. _self.pblmTypeObj.list.push(
  1031. {
  1032. typeName: res.data[i].NAME,
  1033. name: res.data[i].PBLMNAME,
  1034. ptype: res.data[i].PTYPE,
  1035. value: res.data[i].VALUE,
  1036. }
  1037. );
  1038. _self.pblmTypeObj.count+=parseInt(res.data[i].VALUE);
  1039. }
  1040. }
  1041. this.initChart5_1();
  1042. });
  1043. },
  1044. //问题类别数据
  1045. initAreaObjTypeData(adCode,adName){
  1046. this.AreaObjTypeObj.xAxis = [];
  1047. this.AreaObjTypeObj.list = [];
  1048. var _self = this;
  1049. initAreaObjTypeList({timeType:"7",year:this.currentYear,adCode:adCode}).then((res) => {
  1050. if(res.data){
  1051. _self.AreaObjTypeObj.xAxis = res.data.xAxis;
  1052. for(let k in res.data){
  1053. if(k != "yTypeCode" && k != "xAxis"){
  1054. _self.AreaObjTypeObj.list.push({
  1055. name:k,
  1056. value:res.data[k]
  1057. });
  1058. }
  1059. }
  1060. }
  1061. this.initChart5_2(adName);
  1062. });
  1063. },
  1064. initCompareObjTypeData(){
  1065. this.compareListObj.xAxis = [];
  1066. this.compareListObj.list = [];
  1067. var _self = this;
  1068. initCompareObjTypeList({adCode:this.currentAdCode,compareType:this.isActive1}).then((res) => {
  1069. if(res.data){
  1070. this.compareListObj.xAxis = res.data.xAxis;
  1071. this.compareListObj.list = res.data.yAxis;
  1072. if(this.isActive1==1){
  1073. this.initCompare1();
  1074. }
  1075. if(this.isActive1==2){
  1076. this.initCompare2();
  1077. }
  1078. if(this.isActive1==4){
  1079. this.initCompare3();
  1080. }
  1081. }
  1082. });
  1083. },
  1084. initNoticeData(args){
  1085. this.noticeList1 = [];
  1086. this.noticeList2 = [];
  1087. this.todoCount = 0;
  1088. this.noticeList4 = [];
  1089. var ids = [];
  1090. var _self = this;
  1091. initNoticeList({topType:args,topNum:5,timeType:'7',year:this.currentYear,adCode:this.currentAdCode,objType:''}).then((res) => {
  1092. if(res.data && res.data.length>0){
  1093. res.data.forEach((item)=>{
  1094. if(args==1){
  1095. ids.push(item.id);
  1096. item.title = item.lawKeyword;
  1097. }
  1098. if(args==2){
  1099. // ids.push(item.pblmId);
  1100. item.title = item.inspObjName;
  1101. }
  1102. // if(args==3){
  1103. // ids.push(item.procInstId);
  1104. // item.title = item.procInstName;
  1105. // }
  1106. if(args==4){
  1107. ids.push(item.id);
  1108. }
  1109. })
  1110. if(args==3){
  1111. _self.todoCount = res.data.todoCount;
  1112. }
  1113. if(args==4){
  1114. _self.noticeList4 = res.data;
  1115. }
  1116. if(args==2){
  1117. _self.noticeList2 = res.data;
  1118. }
  1119. if(args==1){
  1120. _self.noticeList1 = res.data;
  1121. }
  1122. if(args!=3 && args!=2){
  1123. var list = _self.getArr(this.getReadCookie(args),ids);
  1124. _self.setCookie(args,list.join(","));
  1125. }
  1126. if(args==1){
  1127. _self.badge1 = _self.getCookie(args).length;
  1128. }
  1129. // if(args==2){
  1130. // _self.badge2 = _self.getCookie(args).length;
  1131. // }
  1132. // if(args==3){
  1133. // _self.badge3 = _self.getCookie(args).length;
  1134. // }
  1135. if(args==4){
  1136. _self.badge4 = _self.getCookie(args).length;
  1137. }
  1138. }
  1139. });
  1140. },
  1141. getArr(arr,arr1){
  1142. var newArr = [];
  1143. if(arr.length==0){
  1144. return arr1;
  1145. }
  1146. if(arr1.length==0){
  1147. return [];
  1148. }
  1149. arr1.forEach((item)=>{
  1150. if(arr.indexOf(item)<0){
  1151. newArr.push(item);
  1152. }
  1153. })
  1154. return newArr;
  1155. },
  1156. getReadCookie(isActive){
  1157. var str = document.cookie;
  1158. //将值切割成数组
  1159. var arr = str.split(";");
  1160. var valueStr="";
  1161. //遍历数组
  1162. for(var i=0;i<arr.length;i++){
  1163. var value = arr[i].split("=");
  1164. if(isActive==1 && value[0].trim() == 'noticeLId_1'){
  1165. valueStr = value[1];
  1166. }
  1167. if(isActive==2 && value[0].trim() == 'noticeLId_2'){
  1168. valueStr = value[1];
  1169. }
  1170. if(isActive==3 && value[0].trim() == 'noticeLId_3'){
  1171. valueStr = value[1];
  1172. }
  1173. if(isActive==4 && value[0].trim() == 'noticeLId_4'){
  1174. valueStr = value[1];
  1175. }
  1176. }
  1177. return valueStr?valueStr.split(","):[]
  1178. },
  1179. getCookie(isActive){
  1180. var str = document.cookie;
  1181. //将值切割成数组
  1182. var arr = str.split(";");
  1183. var valueStr="";
  1184. //遍历数组
  1185. for(var i=0;i<arr.length;i++){
  1186. var value = arr[i].split("=");
  1187. if(isActive==1 && value[0].trim() == 'noticeId_1'){
  1188. valueStr = value[1];
  1189. }
  1190. if(isActive==2 && value[0].trim() == 'noticeId_2'){
  1191. valueStr = value[1];
  1192. }
  1193. if(isActive==3 && value[0].trim() == 'noticeId_3'){
  1194. valueStr = value[1];
  1195. }
  1196. if(isActive==4 && value[0].trim() == 'noticeId_4'){
  1197. valueStr = value[1];
  1198. }
  1199. }
  1200. return valueStr?valueStr.split(","):[]
  1201. },
  1202. setCookie(isActive,str){
  1203. var expires = new Date();
  1204. expires.setTime(expires.getTime()+1000*24*60*60*1000);
  1205. if(isActive==1){
  1206. document.cookie = "noticeId_1="+str+";expires="+expires.toGMTString();
  1207. }
  1208. if(isActive==2){
  1209. document.cookie = "noticeId_2="+str+";expires="+expires.toGMTString();
  1210. }
  1211. if(isActive==3){
  1212. document.cookie = "noticeId_3="+str+";expires="+expires.toGMTString();
  1213. }
  1214. if(isActive==4){
  1215. document.cookie = "noticeId_4="+str+";expires="+expires.toGMTString();
  1216. }
  1217. },
  1218. setReadCookie(isActive,str){
  1219. var expires = new Date();
  1220. expires.setTime(expires.getTime()+1000*24*60*60*1000);
  1221. if(isActive==1){
  1222. document.cookie = "noticeLId_1="+str+";expires="+expires.toGMTString();
  1223. }
  1224. if(isActive==2){
  1225. document.cookie = "noticeLId_2="+str+";expires="+expires.toGMTString();
  1226. }
  1227. if(isActive==3){
  1228. document.cookie = "noticeLId_3="+str+";expires="+expires.toGMTString();
  1229. }
  1230. if(isActive==4){
  1231. document.cookie = "noticeLId_4="+str+";expires="+expires.toGMTString();
  1232. }
  1233. },
  1234. toVal(val){
  1235. if(val!=null && val!=""){
  1236. return val.toFixed(2)
  1237. }
  1238. return 0;
  1239. },
  1240. // initChart1(){
  1241. // var target = document.getElementById('chart1');
  1242. // var box = document.getElementsByClassName('item-center')[0];
  1243. // target.style.width = box.clientWidth - 20 + 'px';
  1244. // target.style.height = box.clientHeight - 50 + 'px';
  1245. // this.chart1 = echarts.init(document.getElementById('chart1'));
  1246. // var option = {
  1247. // tooltip: {
  1248. // trigger: 'axis',
  1249. // },
  1250. // grid: {
  1251. // top: '3%',
  1252. // left: '3%',
  1253. // right: '3%',
  1254. // bottom: '1%',
  1255. // containLabel: true
  1256. // },
  1257. // xAxis: [{
  1258. // type: 'category',
  1259. // data: this.groupTypeData.xAxis,
  1260. // axisLine:{
  1261. // lineStyle:{
  1262. // color:"#a4a4a4"
  1263. // }
  1264. // },
  1265. // axisLabel:{
  1266. // rotate:40,
  1267. // textStyle:{
  1268. // color:"#a4a4a4"
  1269. // },
  1270. // formatter: function(val) {
  1271. // if(val){
  1272. // return val.length>5? val.substring(0,5):val;
  1273. // }
  1274. // }
  1275. // }
  1276. // }],
  1277. // yAxis: [{
  1278. // name:"数量(个)",
  1279. // type:'value',
  1280. // axisLine:{
  1281. // lineStyle:{
  1282. // color:"#a4a4a4"
  1283. // }
  1284. // },
  1285. // axisLabel:{
  1286. // rotate:40,
  1287. // textStyle:{
  1288. // color:"#a4a4a4"
  1289. // }
  1290. // }
  1291. // }],
  1292. // series: [{
  1293. // name: "对象数",
  1294. // type: 'bar',
  1295. // data: this.groupTypeData.objSize,
  1296. // barWidth: '5px',
  1297. // itemStyle: {
  1298. // normal: {
  1299. // show: true,
  1300. // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
  1301. // offset: 0,
  1302. // color: '#00C6FF'
  1303. // }, {
  1304. // offset: 1,
  1305. // color: '#0072FF'
  1306. // }]),
  1307. // barBorderRadius: [30,30,0,0],
  1308. // borderWidth: 0,
  1309. // }
  1310. // }
  1311. // },
  1312. // {
  1313. // name: "问题数",
  1314. // type: 'bar',
  1315. // data: this.groupTypeData.pblmSize,
  1316. // barWidth: '5px',
  1317. // itemStyle: {
  1318. // normal: {
  1319. // show: true,
  1320. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1321. // offset: 0,
  1322. // color: '#FFFF00'
  1323. // }, {
  1324. // offset: 1,
  1325. // color: '#00E6FF'
  1326. // }]),
  1327. // barBorderRadius: [30,30,0,0],
  1328. // borderWidth: 0
  1329. // }
  1330. // }
  1331. // },
  1332. // {
  1333. // name: "整改数",
  1334. // type: 'bar',
  1335. // data: this.groupTypeData.mendSize,
  1336. // barWidth: '5px',
  1337. // itemStyle: {
  1338. // normal: {
  1339. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1340. // offset: 0,
  1341. // color: 'rgba(102,159,239,1)'
  1342. // }, {
  1343. // offset: 1,
  1344. // color: 'rgba(170,202,246,1)'
  1345. // }], false),
  1346. // barBorderRadius: [30,30,0,0],
  1347. // borderWidth: 0
  1348. // }
  1349. // }
  1350. // }]
  1351. // };
  1352. // this.chart1.clear();
  1353. // this.chart1.setOption(option);
  1354. // var _self = this;
  1355. // this.chart1.off('click');
  1356. // this.chart1.on('click', function (param) {
  1357. // _self.initPblmTypeData(param.data.objType);
  1358. // });
  1359. // },
  1360. // initChart2(){
  1361. // var target = document.getElementById('chart2');
  1362. // var box = document.getElementsByClassName('item-center')[0];
  1363. // target.style.width = box.clientWidth - 20 + 'px';
  1364. // target.style.height = box.clientHeight - 50 + 'px';
  1365. // this.chart2 = echarts.init(document.getElementById('chart2'));
  1366. // var option = {
  1367. // tooltip: {
  1368. // trigger: 'axis',
  1369. // },
  1370. // grid: {
  1371. // top: '3%',
  1372. // left: '3%',
  1373. // right: '3%',
  1374. // bottom: '1%',
  1375. // containLabel: true
  1376. // },
  1377. // xAxis: [{
  1378. // type: 'category',
  1379. // data: this.groupAreaData.xAxis,
  1380. // axisLine:{
  1381. // lineStyle:{
  1382. // color:"#a4a4a4"
  1383. // }
  1384. // },
  1385. // axisLabel:{
  1386. // rotate:40,
  1387. // textStyle:{
  1388. // color:"#a4a4a4"
  1389. // },
  1390. // formatter: function(val) {
  1391. // if(val){
  1392. // return val.length>5? val.substring(0,5):val;
  1393. // }
  1394. // }
  1395. // }
  1396. // }],
  1397. // yAxis: [{
  1398. // name:"数量(个)",
  1399. // type:'value',
  1400. // axisLine:{
  1401. // lineStyle:{
  1402. // color:"#a4a4a4"
  1403. // }
  1404. // },
  1405. // axisLabel:{
  1406. // rotate:40,
  1407. // textStyle:{
  1408. // color:"#a4a4a4"
  1409. // }
  1410. // }
  1411. // }],
  1412. // series: [{
  1413. // name: "对象数",
  1414. // type: 'bar',
  1415. // data: this.groupAreaData.objSize,
  1416. // barWidth: '5px',
  1417. // itemStyle: {
  1418. // normal: {
  1419. // show: true,
  1420. // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
  1421. // offset: 0,
  1422. // color: '#00C6FF'
  1423. // }, {
  1424. // offset: 1,
  1425. // color: '#0072FF'
  1426. // }]),
  1427. // barBorderRadius: [30,30,0,0],
  1428. // borderWidth: 0
  1429. // }
  1430. // }
  1431. // },
  1432. // {
  1433. // name: "问题数",
  1434. // type: 'bar',
  1435. // data: this.groupAreaData.pblmSize,
  1436. // barWidth: '5px',
  1437. // itemStyle: {
  1438. // normal: {
  1439. // show: true,
  1440. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1441. // offset: 0,
  1442. // color: '#FFFF00'
  1443. // }, {
  1444. // offset: 1,
  1445. // color: '#00E6FF'
  1446. // }]),
  1447. // barBorderRadius: [30,30,0,0],
  1448. // borderWidth: 0
  1449. // }
  1450. // }
  1451. // },
  1452. // {
  1453. // name: "整改数",
  1454. // type: 'bar',
  1455. // data: this.groupAreaData.mendSize,
  1456. // barWidth: '5px',
  1457. // itemStyle: {
  1458. // normal: {
  1459. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1460. // offset: 0,
  1461. // color: 'rgba(102,159,239,1)'
  1462. // }, {
  1463. // offset: 1,
  1464. // color: 'rgba(170,202,246,1)'
  1465. // }], false),
  1466. // barBorderRadius: [30,30,0,0],
  1467. // borderWidth: 0
  1468. // }
  1469. // }
  1470. // }]
  1471. // };
  1472. // this.chart2.clear();
  1473. // this.chart2.setOption(option);
  1474. // this.chart2.off('click');
  1475. // var _self = this;
  1476. // this.chart2.on('click', function (param) {
  1477. // _self.initAreaObjTypeData(param.data.adCode,param.data.adName);
  1478. // });
  1479. // },
  1480. initAddVcdFeatures(){
  1481. let geoJsonName = this.currentAdCode.substr(0, 6) + "DATA.json";
  1482. return axios.get('/src/assets/addvGeoData/' + geoJsonName);
  1483. },
  1484. async initChart4(maxNum) {
  1485. var _self = this;
  1486. // 动态计算柱形图的高度(定一个max)
  1487. function lineMaxHeight() {
  1488. if(_self.isCity){
  1489. return 0.2 / maxNum;
  1490. }else{
  1491. return 0.6 / maxNum;
  1492. }
  1493. }
  1494. // 柱状体的主干
  1495. function lineData(index) {
  1496. return _self.chartMapData['geoCoordMapList'+index].map((item) => {
  1497. return {
  1498. coords: [
  1499. _self.chartMapData['geoCoordMap'+index][item.name],
  1500. [
  1501. _self.chartMapData['geoCoordMap'+index][item.name][0],
  1502. _self.chartMapData['geoCoordMap'+index][item.name][1] + item.value * lineMaxHeight(),
  1503. ],
  1504. ],
  1505. };
  1506. });
  1507. }
  1508. // 柱状体的顶部
  1509. function scatterData(index) {
  1510. return _self.chartMapData['geoCoordMapList'+index].map((item) => {
  1511. return [
  1512. _self.chartMapData['geoCoordMap'+index][item.name][0],
  1513. _self.chartMapData['geoCoordMap'+index][item.name][1] + item.value * lineMaxHeight(),
  1514. ];
  1515. });
  1516. }
  1517. // 柱状体的底部
  1518. function scatterData2(index) {
  1519. return _self.chartMapData['geoCoordMapList'+index].map((item) => {
  1520. return {
  1521. name: item.name,
  1522. value: _self.chartMapData['geoCoordMap'+index][item.name],
  1523. };
  1524. });
  1525. }
  1526. var convertData = function () {
  1527. var res = [];
  1528. for (var i = 0; i < _self.chartMapData.geoCoordMapList.length; i++) {
  1529. var geoCoord = _self.chartMapData.geoCoordMap[_self.chartMapData.geoCoordMapList[i].name];
  1530. if (geoCoord) {
  1531. res.push({
  1532. name: _self.chartMapData.geoCoordMapList[i].name,
  1533. value: geoCoord.concat(_self.chartMapData.geoCoordMapList[i].value),
  1534. datas: _self.chartMapData.geoCoordMapList[i].value,
  1535. adCode:_self.chartMapData.geoCoordMapList[i].adCode,
  1536. });
  1537. }
  1538. }
  1539. return res;
  1540. };
  1541. this.chart4 = echarts.init(document.getElementById('chart4'));
  1542. var jsonFeatures = await this.initAddVcdFeatures();
  1543. echarts.registerMap(this.currentAdName, jsonFeatures.data);
  1544. var title = "";
  1545. var option = {
  1546. title:{
  1547. text:this.currentAdName+title+this.provTitle,
  1548. x:'center',
  1549. y:'top',
  1550. top:5
  1551. },
  1552. geo: [
  1553. {
  1554. map: this.currentAdName,
  1555. aspectScale: 1,
  1556. zoom: 0.55,
  1557. layoutCenter: ['50%', '50%'],
  1558. layoutSize: '180%',
  1559. show: true,
  1560. roam: false,
  1561. label: {
  1562. emphasis: {
  1563. show: false
  1564. }
  1565. },
  1566. itemStyle: {
  1567. normal: {
  1568. borderColor: 'rgba(192,245,249,.8)',
  1569. borderWidth: 3,
  1570. shadowColor: '#37dfff',
  1571. shadowOffsetY: 0,
  1572. shadowBlur: 10,
  1573. areaColor: 'rgba(29,85,139,0.3)',
  1574. },
  1575. },
  1576. emphasis: {
  1577. areaColor: 'rgba(29,85,139,0.3)',
  1578. }
  1579. }, {
  1580. map: this.currentAdName,
  1581. aspectScale: 1,
  1582. zoom: 0.55,
  1583. layoutCenter: ['50%', '50%'],
  1584. layoutSize: '180%',
  1585. show: true,
  1586. roam: false,
  1587. label: {
  1588. emphasis: {
  1589. show: false
  1590. }
  1591. },
  1592. itemStyle: {
  1593. normal: {
  1594. borderColor: 'rgba(192,245,249,.8)',
  1595. borderWidth: 3,
  1596. shadowColor: '#2C99F6',
  1597. shadowOffsetY: 0,
  1598. shadowBlur: 120,
  1599. areaColor: 'rgba(29,85,139,0.3)',
  1600. },
  1601. },
  1602. emphasis: {
  1603. areaColor: 'rgba(29,85,139,0.3)',
  1604. }
  1605. },
  1606. //重影
  1607. {
  1608. type: 'map',
  1609. map: this.currentAdName,
  1610. zlevel: -1,
  1611. aspectScale: 1,
  1612. zoom: 0.55,
  1613. layoutCenter: ['50%', '50.7%'],
  1614. layoutSize: '180%',
  1615. roam: false,
  1616. silent: true,
  1617. itemStyle: {
  1618. normal: {
  1619. borderColor: 'rgba(29,85,139,0.3)',
  1620. shadowColor: 'rgba(29,85,139,0.3)',
  1621. shadowOffsetY: 5,
  1622. shadowBlur: 15,
  1623. areaColor: 'rgba(29,85,139,0.3)'
  1624. }
  1625. }
  1626. },
  1627. {
  1628. type: 'map',
  1629. map: this.currentAdName,
  1630. zlevel: -2,
  1631. aspectScale: 1,
  1632. zoom: 0.55,
  1633. layoutCenter: ['50%', '51.4%'],
  1634. layoutSize: '180%',
  1635. roam: false,
  1636. silent: true,
  1637. itemStyle: {
  1638. normal: {
  1639. borderColor: 'rgba(29,85,139,0.3)',
  1640. shadowColor: 'rgba(29,85,139,0.3)',
  1641. shadowOffsetY: 5,
  1642. shadowBlur: 15,
  1643. areaColor: 'rgba(29,85,139,0.3)'
  1644. }
  1645. }
  1646. },
  1647. {
  1648. type: 'map',
  1649. map: this.currentAdName,
  1650. zlevel: -3,
  1651. aspectScale: 1,
  1652. zoom: 0.55,
  1653. layoutCenter: ['50%', '52.1%'],
  1654. layoutSize: '180%',
  1655. roam: false,
  1656. silent: true,
  1657. itemStyle: {
  1658. normal: {
  1659. borderColor: 'rgba(29,85,139,0.3)',
  1660. shadowColor: 'rgba(29,85,139,0.3)',
  1661. shadowOffsetY: 15,
  1662. shadowBlur: 8,
  1663. areaColor: 'rgba(29,85,139,0.3)'
  1664. }
  1665. }
  1666. }
  1667. ],
  1668. series: [
  1669. {
  1670. name: this.currentAdName,
  1671. type: 'map',
  1672. map: this.currentAdName, // 自定义扩展图表类型
  1673. aspectScale: 1,
  1674. zoom: 0.55, //缩放
  1675. showLegendSymbol: false,
  1676. label: {
  1677. normal: {
  1678. show: false,
  1679. },
  1680. emphasis: {
  1681. show: false,
  1682. }
  1683. },
  1684. itemStyle: {
  1685. normal: {
  1686. areaColor: {
  1687. type: 'linear-gradient',
  1688. x: 0,
  1689. y: 300,
  1690. x2: 0,
  1691. y2: 0,
  1692. colorStops: [{
  1693. offset: 0,
  1694. color: '#40a2ff' // 0% 处的颜色
  1695. }, {
  1696. offset: 1,
  1697. color: '#85c4ff' // 50% 处的颜色
  1698. }],
  1699. global: true // 缺省为 false
  1700. },
  1701. borderColor: 'rgb(175,255,247)',
  1702. borderWidth: 1,
  1703. },
  1704. emphasis: {
  1705. areaColor: {
  1706. type: 'linear-gradient',
  1707. x: 0,
  1708. y: 300,
  1709. x2: 0,
  1710. y2: 0,
  1711. colorStops: [{
  1712. offset: 0,
  1713. color: '#53cfff' // 0% 处的颜色
  1714. }, {
  1715. offset: 1,
  1716. color: '#53cfff' // 50% 处的颜色
  1717. }],
  1718. global: true // 缺省为 false
  1719. },
  1720. }
  1721. },
  1722. layoutCenter: ['50%', '50%'],
  1723. layoutSize: '180%',
  1724. markPoint: {
  1725. symbol: 'none'
  1726. },
  1727. data: convertData(),
  1728. },
  1729. // {
  1730. // type: 'scatter',
  1731. // coordinateSystem: 'geo',
  1732. // geoIndex: 1,
  1733. // label: {
  1734. // normal: {
  1735. // show: true,
  1736. // formatter: function (params) {
  1737. // var name = params.name;
  1738. // var value = params.data.datas;
  1739. // var text = "";
  1740. // if(_self.mapIsActive==0){
  1741. // text = `{obj|${value}}`;
  1742. // }
  1743. // if(_self.mapIsActive==1){
  1744. // text = `{pblm|${value}}`;
  1745. // }
  1746. // if(_self.mapIsActive==2){
  1747. // text = `{mend|${value}}`;
  1748. // }
  1749. // if(_self.mapIsActive==3){
  1750. // text = `{submit|${value}}`;
  1751. // }
  1752. // if(!_self.mapIsActive && _self.mapIsActive!=0){
  1753. // text = `{obj|${value.split(",")[0]}}{pblm|/${value.split(",")[1]}}{submit|/${value.split(",")[2]}}{mend|/${value.split(",")[3]}}`;
  1754. // }
  1755. //
  1756. // return text;
  1757. // },
  1758. // rich: {
  1759. // obj: {
  1760. // color: '#ff09ef',
  1761. // fontSize: 15,
  1762. // fontWeight:'bold',
  1763. // align: 'center',
  1764. // fontFamily:'italic'
  1765. // },
  1766. // pblm: {
  1767. // color: '#f2a224',
  1768. // fontSize: 15,
  1769. // fontWeight:'bold',
  1770. // fontFamily:'italic',
  1771. // align: 'center'
  1772. // },
  1773. // mend:{
  1774. // color: '#1781ff',
  1775. // fontSize: 15,
  1776. // fontWeight:'bold',
  1777. // align: 'center',
  1778. // fontFamily:'italic'
  1779. // },
  1780. // submit:{
  1781. // color: '#ff145c',
  1782. // fontSize: 15,
  1783. // fontWeight:'bold',
  1784. // fontFamily:'italic',
  1785. // align: 'center'
  1786. // }
  1787. // },
  1788. // },
  1789. // emphasis: {
  1790. // show: true,
  1791. // },
  1792. // },
  1793. // itemStyle: {
  1794. // color: 'transparent',
  1795. // },
  1796. //
  1797. // symbolOffset: [0,40],
  1798. // z: 999,
  1799. // data: convertData(),
  1800. // },
  1801. {
  1802. type: "scatter",
  1803. coordinateSystem: "geo",
  1804. geoIndex: 1,
  1805. label: {
  1806. normal: {
  1807. show: true,
  1808. formatter: function (params) {
  1809. var name = params.name;
  1810. var value = params.data.datas;
  1811. var text = `{fline|${name}}\n`;
  1812. if(_self.mapIsActive==0){
  1813. text += `{obj|${value}}`;
  1814. }
  1815. if(_self.mapIsActive==1){
  1816. text += `{pblm|${value}}`;
  1817. }
  1818. if(_self.mapIsActive==2){
  1819. text += `{mend|${value}}`;
  1820. }
  1821. if(_self.mapIsActive==3){
  1822. text += `{submit|${value}}`;
  1823. }
  1824. if(!_self.mapIsActive && _self.mapIsActive!=0){
  1825. // text += `{obj|${value.split(",")[0]}}{pblm|/${value.split(",")[1]}}{submit|/${value.split(",")[2]}}{mend|/${value.split(",")[3]}}`;
  1826. text += `{obj|${value.split(",")[0]}}{pblm|/${value.split(",")[1]}}{mend|/${value.split(",")[3]}}`;
  1827. }
  1828. return text;
  1829. },
  1830. color: "#fff",
  1831. rich: {
  1832. fline: {
  1833. color: "#fff",
  1834. fontSize: 15,
  1835. fontWeight:'bold',
  1836. align: 'center',
  1837. padding:[2,0]
  1838. },
  1839. tline: {
  1840. color: "#ABF8FF",
  1841. align: 'center',
  1842. fontSize: 15,
  1843. padding:[2,0]
  1844. },
  1845. obj: {
  1846. color: '#fff024',
  1847. fontSize: 16,
  1848. fontWeight:'bold',
  1849. align: 'center',
  1850. fontFamily:'italic',
  1851. padding:[3,0]
  1852. },
  1853. pblm: {
  1854. color: '#EB3B46',
  1855. fontSize: 16,
  1856. fontWeight:'bold',
  1857. fontFamily:'italic',
  1858. align: 'center',
  1859. padding:[3,0]
  1860. },
  1861. mend:{
  1862. color: '#fff',
  1863. fontSize: 16,
  1864. fontWeight:'bold',
  1865. align: 'center',
  1866. fontFamily:'italic',
  1867. padding:[3,0]
  1868. },
  1869. submit:{
  1870. color: '#A02A27',
  1871. fontSize: 16,
  1872. fontWeight:'bold',
  1873. fontFamily:'italic',
  1874. align: 'center',
  1875. padding:[3,0]
  1876. }
  1877. },
  1878. },
  1879. emphasis: {
  1880. show: true,
  1881. },
  1882. },
  1883. itemStyle: {
  1884. color: "none",
  1885. },
  1886. symbolOffset: [0, 28],
  1887. z: 999,
  1888. data: convertData(),
  1889. }
  1890. ],
  1891. };
  1892. if(this.mapIsActive==0 || (!this.mapIsActive && this.mapIsActive!=0)){
  1893. option.series.push({
  1894. type: "lines",
  1895. zlevel: 5,
  1896. effect: {
  1897. show: false,
  1898. period: 5, // 箭头指向速度,值越小速度越快
  1899. trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
  1900. },
  1901. lineStyle: {
  1902. width: 3, // 尾迹线条宽度
  1903. color: "#fff024",
  1904. opacity: 1, // 尾迹线条透明度
  1905. curveness: 0, // 尾迹线条曲直度
  1906. },
  1907. label: {
  1908. show: false,
  1909. position: "end",
  1910. formatter: "245",
  1911. },
  1912. silent: true,
  1913. animation:true,
  1914. animationDuration:2000,
  1915. data: lineData(1),
  1916. },
  1917. // 柱状体的顶部
  1918. {
  1919. type: "scatter",
  1920. coordinateSystem: "geo",
  1921. geoIndex: 0,
  1922. zlevel: 5,
  1923. symbol: "circle",
  1924. symbolSize: [3, 2],
  1925. itemStyle: {
  1926. color: "#fff024",
  1927. opacity: 1,
  1928. },
  1929. silent: true,
  1930. data: scatterData(1),
  1931. },
  1932. // 柱状体的底部
  1933. {
  1934. type: "scatter",
  1935. coordinateSystem: "geo",
  1936. geoIndex: 0,
  1937. zlevel: 4,
  1938. label: {
  1939. // 这儿是处理的
  1940. formatter: "{b}",
  1941. position: "bottom",
  1942. color: "#fff",
  1943. fontSize: 12,
  1944. distance: 20,
  1945. show: false,
  1946. },
  1947. symbol: "circle",
  1948. symbolSize: [8, 3],
  1949. itemStyle: {
  1950. // color: '#F7AF21',
  1951. color: "#fff024",
  1952. opacity: 1,
  1953. },
  1954. silent: true,
  1955. data: scatterData2(1),
  1956. })
  1957. }
  1958. if(this.mapIsActive==1 || (!this.mapIsActive && this.mapIsActive!=0)){
  1959. option.series.push({
  1960. type: "lines",
  1961. zlevel: 5,
  1962. effect: {
  1963. show: false,
  1964. period: 5, // 箭头指向速度,值越小速度越快
  1965. trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
  1966. },
  1967. lineStyle: {
  1968. width: 3, // 尾迹线条宽度
  1969. color: "#EB3B46",
  1970. opacity: 1, // 尾迹线条透明度
  1971. curveness: 0, // 尾迹线条曲直度
  1972. },
  1973. label: {
  1974. show: false,
  1975. position: "end",
  1976. formatter: "245",
  1977. },
  1978. animation:true,
  1979. animationDuration:2000,
  1980. silent: true,
  1981. data: lineData(2),
  1982. },
  1983. // 柱状体的顶部
  1984. {
  1985. type: "scatter",
  1986. coordinateSystem: "geo",
  1987. geoIndex: 0,
  1988. zlevel: 5,
  1989. symbol: "circle",
  1990. symbolSize: [3, 2],
  1991. itemStyle: {
  1992. color: "#EB3B46",
  1993. opacity: 1,
  1994. },
  1995. silent: true,
  1996. data: scatterData(2),
  1997. },
  1998. // 柱状体的底部
  1999. {
  2000. type: "scatter",
  2001. coordinateSystem: "geo",
  2002. geoIndex: 0,
  2003. zlevel: 4,
  2004. label: {
  2005. // 这儿是处理的
  2006. formatter: "{b}",
  2007. position: "bottom",
  2008. color: "#fff",
  2009. fontSize: 12,
  2010. distance: 20,
  2011. show: false,
  2012. },
  2013. symbol: "circle",
  2014. symbolSize: [8, 3],
  2015. itemStyle: {
  2016. // color: '#F7AF21',
  2017. color: "#EB3B46",
  2018. opacity: 1,
  2019. },
  2020. silent: true,
  2021. data: scatterData2(2),
  2022. })
  2023. }
  2024. // if(this.mapIsActive==3 || (!this.mapIsActive && this.mapIsActive!=0)){
  2025. // option.series.push({
  2026. // type: "lines",
  2027. // zlevel: 5,
  2028. // effect: {
  2029. // show: false,
  2030. // period: 5, // 箭头指向速度,值越小速度越快
  2031. // trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
  2032. // },
  2033. // lineStyle: {
  2034. // width: 3, // 尾迹线条宽度
  2035. // color: "#A02A27",
  2036. // opacity: 1, // 尾迹线条透明度
  2037. // curveness: 0, // 尾迹线条曲直度
  2038. // },
  2039. // label: {
  2040. // show: false,
  2041. // position: "end",
  2042. // formatter: "245",
  2043. // },
  2044. // animation:true,
  2045. // animationDuration:2000,
  2046. // silent: true,
  2047. // data: lineData(3),
  2048. // },
  2049. // // 柱状体的顶部
  2050. // {
  2051. // type: "scatter",
  2052. // coordinateSystem: "geo",
  2053. // geoIndex: 0,
  2054. // zlevel: 5,
  2055. // symbol: "circle",
  2056. // symbolSize: [3, 2],
  2057. // itemStyle: {
  2058. // color: "#A02A27",
  2059. // opacity: 1,
  2060. // },
  2061. // silent: true,
  2062. // data: scatterData(3),
  2063. // },
  2064. // // 柱状体的底部
  2065. // {
  2066. // type: "scatter",
  2067. // coordinateSystem: "geo",
  2068. // geoIndex: 0,
  2069. // zlevel: 4,
  2070. // label: {
  2071. // // 这儿是处理的
  2072. // formatter: "{b}",
  2073. // position: "bottom",
  2074. // color: "#fff",
  2075. // fontSize: 12,
  2076. // distance: 20,
  2077. // show: false,
  2078. // },
  2079. // symbol: "circle",
  2080. // symbolSize: [8, 3],
  2081. // itemStyle: {
  2082. // // color: '#F7AF21',
  2083. // color: "#A02A27",
  2084. // opacity: 1,
  2085. // },
  2086. // silent: true,
  2087. // data: scatterData2(3),
  2088. // })
  2089. // }
  2090. if(this.mapIsActive==2 || (!this.mapIsActive && this.mapIsActive!=0)){
  2091. option.series.push({
  2092. type: "lines",
  2093. zlevel: 5,
  2094. effect: {
  2095. show: false,
  2096. period: 5, // 箭头指向速度,值越小速度越快
  2097. trailLength: 0.4, // 特效尾迹长度[0,1]值越大,尾迹越长重
  2098. },
  2099. lineStyle: {
  2100. width: 3, // 尾迹线条宽度
  2101. color: "#F5F6F2",
  2102. opacity: 1, // 尾迹线条透明度
  2103. curveness: 0, // 尾迹线条曲直度
  2104. },
  2105. label: {
  2106. show: 0,
  2107. position: "end",
  2108. formatter: "245",
  2109. },
  2110. animation:true,
  2111. animationDuration:2000,
  2112. silent: true,
  2113. data: lineData(4),
  2114. },
  2115. // 柱状体的顶部
  2116. {
  2117. type: "scatter",
  2118. coordinateSystem: "geo",
  2119. geoIndex: 0,
  2120. zlevel: 5,
  2121. symbol: "circle",
  2122. symbolSize: [3, 2],
  2123. itemStyle: {
  2124. color: "#F5F6F2",
  2125. opacity: 1,
  2126. },
  2127. silent: true,
  2128. data: scatterData(4),
  2129. },
  2130. // 柱状体的底部
  2131. {
  2132. type: "scatter",
  2133. coordinateSystem: "geo",
  2134. geoIndex: 0,
  2135. zlevel: 4,
  2136. label: {
  2137. // 这儿是处理的
  2138. formatter: "{b}",
  2139. position: "bottom",
  2140. color: "#fff",
  2141. fontSize: 12,
  2142. distance: 20,
  2143. show: false,
  2144. },
  2145. symbol: "circle",
  2146. symbolSize: [8, 3],
  2147. itemStyle: {
  2148. // color: '#F7AF21',
  2149. color: "#F5F6F2",
  2150. opacity: 1,
  2151. },
  2152. silent: true,
  2153. data: scatterData2(4),
  2154. })
  2155. }
  2156. this.chart4.clear();
  2157. this.chart4.setOption(option);
  2158. var _self = this;
  2159. this.chart4.on('click', function (params) {
  2160. if(_self.currentAdCode.replace(/00/g,"").length==2){
  2161. _self.isCity = true;
  2162. if(params.data){
  2163. _self.currentAdCode = params.data.adCode;
  2164. _self.currentAdName = params.data.name;
  2165. }else{
  2166. _self.chartMapData.geoCoordMapList.forEach((item)=>{
  2167. if(item.name == params.name){
  2168. _self.currentAdCode = item.adCode;
  2169. _self.currentAdName = item.name;
  2170. }
  2171. })
  2172. }
  2173. _self.$nextTick(()=>{
  2174. _self.initStatiscsData();
  2175. _self.initGroupType();
  2176. _self.initMulData();
  2177. _self.initCompareObjTypeData();
  2178. [1,2,3,4].forEach((item)=>{
  2179. _self.initNoticeData(item);
  2180. })
  2181. })
  2182. }
  2183. });
  2184. },
  2185. // initChart5(){
  2186. // this.chart5Title = "问题严重程度统计"
  2187. // this.chart5 = echarts.init(document.getElementById('chart5'));
  2188. // var option = {
  2189. // color: ['#1B84F0', '#FCC00A', '#FE8831', '#FF4258'],
  2190. // tooltip : {
  2191. // trigger: 'item',
  2192. // formatter: "{a} <br/>{b} : {c} ({d}%)"
  2193. // },
  2194. // legend:{
  2195. // orient:'vertical',
  2196. // icon: 'circle', //图例形状
  2197. // top:'25%',
  2198. // bottom:'25%',
  2199. // right:'5%',
  2200. // y:'center',
  2201. // textStyle: { //图例文字的样式
  2202. // color: '#909399',
  2203. // fontSize: 12
  2204. // },
  2205. // },
  2206. // series : [
  2207. // {
  2208. // name:'问题严重程度',
  2209. // type:'pie',
  2210. // center: ['45%', '50%'],
  2211. // radius: ['0%', '75%'],
  2212. // labelLine:{
  2213. // normal:{
  2214. // length:5
  2215. // }
  2216. // },
  2217. // label: {
  2218. // normal: {
  2219. // show:false,
  2220. // formatter: function(params) {
  2221. // return params.name+" ("+params.value+"个)"
  2222. // },
  2223. // }
  2224. // },
  2225. // data:[
  2226. // {value:this.chartPblmLevelData.info, name:'一般',level:0},
  2227. // {value:this.chartPblmLevelData.warn, name:'较重',level:1},
  2228. // {value:this.chartPblmLevelData.fatal, name:'严重',level:2},
  2229. // {value:this.chartPblmLevelData.error, name:'特重',level:3}
  2230. // ]
  2231. // }
  2232. // ]
  2233. // };
  2234. // this.chart5.clear();
  2235. // this.chart5.setOption(option);
  2236. // },
  2237. initChart5(){
  2238. this.chart5Title = "问题严重程度统计"
  2239. this.chart5 = echarts.init(document.getElementById('chart5'));
  2240. var option = {
  2241. title: [
  2242. {
  2243. text: '严重程度',
  2244. textStyle:{
  2245. fontSize:14,
  2246. color:"#666",
  2247. fontWeight:'normal'
  2248. },
  2249. textAlign:"center",
  2250. x: '48%',
  2251. y: '43%',
  2252. },
  2253. {
  2254. subtext: this.chartPblmLevelData.count + '个',
  2255. subtextStyle: {
  2256. fontSize: 14,
  2257. color: '#666',
  2258. fontWeight:'bold'
  2259. },
  2260. textAlign:"center",
  2261. x: '48%',
  2262. y: '46%',
  2263. }],
  2264. color: ['#1B84F0', '#FCC00A', '#FE8831', '#FF4258'],
  2265. tooltip : {
  2266. trigger: 'item',
  2267. formatter: "{a} <br/>{b} : {c} ({d}%)"
  2268. },
  2269. series : [
  2270. {
  2271. name:'问题严重程度',
  2272. type:'pie',
  2273. center: ['50%', '50%'],
  2274. radius: ['45%', '70%'],
  2275. labelLine:{
  2276. normal:{
  2277. length:5
  2278. }
  2279. },
  2280. label: {
  2281. normal: {
  2282. formatter: function(params) {
  2283. return params.name+" ("+params.value+"个)"
  2284. },
  2285. }
  2286. },
  2287. data:[
  2288. {value:this.chartPblmLevelData.info, name:'一般',level:0},
  2289. {value:this.chartPblmLevelData.warn, name:'较重',level:1},
  2290. {value:this.chartPblmLevelData.fatal, name:'严重',level:2},
  2291. {value:this.chartPblmLevelData.error, name:'特重',level:3}
  2292. ]
  2293. }
  2294. ]
  2295. };
  2296. this.chart5.clear();
  2297. this.chart5.setOption(option);
  2298. },
  2299. initChart5_1(){
  2300. this.chart5Title = "问题类别统计"+(this.pblmTypeObj.list.length>0?"("+this.pblmTypeObj.list[0].typeName+")":"")
  2301. this.chart5 = echarts.init(document.getElementById('chart5'));
  2302. var option = {
  2303. color: [
  2304. "#4150d8",
  2305. "#28bf7e",
  2306. "#ed7c2f",
  2307. "#f2a93b",
  2308. "#f9cf36",
  2309. "#4a5bdc",
  2310. "#4cd698",
  2311. "#f4914e",
  2312. "#fcb75b",
  2313. "#ffe180",
  2314. "#b6c2ff",
  2315. "#96edc1"
  2316. ],
  2317. title: [
  2318. {
  2319. text: this.chart5Title,
  2320. textStyle:{
  2321. fontSize:14,
  2322. color:"#666",
  2323. fontWeight:'bold'
  2324. },
  2325. textAlign:"center",
  2326. x: '50%',
  2327. y: 'top',
  2328. },
  2329. {
  2330. subtext: this.pblmTypeObj.count + '个',
  2331. subtextStyle: {
  2332. fontSize: 14,
  2333. color: '#666',
  2334. fontWeight:'bold'
  2335. },
  2336. textAlign:"center",
  2337. x: '48%',
  2338. y: '45%',
  2339. }],
  2340. tooltip : {
  2341. trigger: 'item',
  2342. formatter: "{b} : {c}个"
  2343. },
  2344. grid: {
  2345. top: '12%',
  2346. left: '3%',
  2347. right: '3%',
  2348. bottom: '10%',
  2349. containLabel: true
  2350. },
  2351. series: [
  2352. {
  2353. name:'标题',
  2354. type:'pie',
  2355. center: ['50%', '50%'],
  2356. radius: ['45%', '70%'],
  2357. clockwise: false, //饼图的扇区是否是顺时针排布
  2358. avoidLabelOverlap: false,
  2359. label: {
  2360. normal: {
  2361. show: true,
  2362. position: 'outter',
  2363. formatter:function (parms){
  2364. return parms.data.name+":"+parms.data.value + '个';
  2365. }
  2366. }
  2367. },
  2368. labelLine: {
  2369. show:false,
  2370. normal: {
  2371. length:8,
  2372. length2:5,
  2373. smooth:false,
  2374. }
  2375. },
  2376. data:this.pblmTypeObj.list
  2377. }
  2378. ]
  2379. };
  2380. this.chart5.clear();
  2381. this.chart5.setOption(option);
  2382. },
  2383. // initChart5_1(){
  2384. // this.chart5Title = "问题类别统计"+(this.pblmTypeObj.list.length>0?"("+this.pblmTypeObj.list[0].typeName+")":"")
  2385. // this.chart5 = echarts.init(document.getElementById('chart5'));
  2386. // var option = {
  2387. // color: [
  2388. // "#4150d8",
  2389. // "#28bf7e",
  2390. // "#ed7c2f",
  2391. // "#f2a93b",
  2392. // "#f9cf36",
  2393. // "#4a5bdc",
  2394. // "#4cd698",
  2395. // "#f4914e",
  2396. // "#fcb75b",
  2397. // "#ffe180",
  2398. // "#b6c2ff",
  2399. // "#96edc1"
  2400. // ],
  2401. // // title: [
  2402. // // {
  2403. // // text: '全部',
  2404. // // subtext: this.pblmTypeObj.count + '个',
  2405. // // textStyle:{
  2406. // // fontSize:14,
  2407. // // color:"#666",
  2408. // // fontWeight:'normal'
  2409. // // },
  2410. // // subtextStyle: {
  2411. // // fontSize: 14,
  2412. // // color: '#666',
  2413. // // fontWeight:'bold'
  2414. // // },
  2415. // // textAlign:"center",
  2416. // // x: '48%',
  2417. // // y: '45%',
  2418. // // }],
  2419. // legend:{
  2420. // type: 'scroll',
  2421. // orient:'vertical',
  2422. // icon: 'circle', //图例形状
  2423. // top:'25%',
  2424. // bottom:'25%',
  2425. // right:'2%',
  2426. // y:'center',
  2427. // textStyle: { //图例文字的样式
  2428. // color: '#77797e',
  2429. // fontSize: 12
  2430. // },
  2431. // pageButtonPosition:'start',
  2432. // pageIconColor: '#77797e', //翻页下一页的三角按钮颜色
  2433. // pageIconInactiveColor: '#77797e', //翻页(即翻页到头时)
  2434. // pageIconSize: 10, //翻页按钮大小
  2435. // pageFormatter: '',//隐藏翻页的数字
  2436. // pageButtonItemGap: -6,//翻页按钮的两个之间的间距
  2437. // formatter: function (name) {
  2438. // return name.length > 10 ? name.substr(0, 10) + '...' : name
  2439. // },
  2440. // },
  2441. // tooltip : {
  2442. // trigger: 'item',
  2443. // formatter: "{b} : {c}个"
  2444. // },
  2445. // series: [
  2446. // {
  2447. // name:'标题',
  2448. // type:'pie',
  2449. // center: ['25%', '50%'],
  2450. // radius: ['0%', '70%'],
  2451. // clockwise: false, //饼图的扇区是否是顺时针排布
  2452. // avoidLabelOverlap: false,
  2453. // label: {
  2454. // normal: {
  2455. // show: false,
  2456. // position: 'outter',
  2457. // formatter:function (parms){
  2458. // return parms.data.name+":"+parms.data.value + '个';
  2459. // }
  2460. // }
  2461. // },
  2462. // labelLine: {
  2463. // show:false,
  2464. // normal: {
  2465. // length:8,
  2466. // length2:5,
  2467. // smooth:false,
  2468. // }
  2469. // },
  2470. // data:this.pblmTypeObj.list
  2471. // }
  2472. // ]
  2473. // };
  2474. // this.chart5.clear();
  2475. // this.chart5.setOption(option);
  2476. // },
  2477. initChart5_2(adName){
  2478. this.chart5Title = "督查类别统计问题数"+(adName?"("+adName+")":"");
  2479. this.chart5 = echarts.init(document.getElementById('chart5'));
  2480. var option = {
  2481. color: [
  2482. "#4150d8",
  2483. "#28bf7e",
  2484. "#ed7c2f",
  2485. "#f2a93b",
  2486. "#f9cf36",
  2487. "#4a5bdc",
  2488. "#4cd698",
  2489. "#f4914e",
  2490. "#fcb75b",
  2491. "#ffe180",
  2492. "#b6c2ff",
  2493. "#96edc1"
  2494. ],
  2495. title: [
  2496. {
  2497. text: this.chart5Title,
  2498. textStyle:{
  2499. fontSize:14,
  2500. color:"#666",
  2501. fontWeight:'bold'
  2502. },
  2503. textAlign:"center",
  2504. x: '50%',
  2505. y: 'top',
  2506. }
  2507. ],
  2508. tooltip: {
  2509. trigger: 'axis',
  2510. },
  2511. grid: {
  2512. top: '15%',
  2513. left: '3%',
  2514. right: '3%',
  2515. bottom: '6%',
  2516. containLabel: true
  2517. },
  2518. xAxis: [{
  2519. type: 'category',
  2520. data: this.AreaObjTypeObj.xAxis,
  2521. axisLine:{
  2522. lineStyle:{
  2523. color:"#a4a4a4"
  2524. }
  2525. },
  2526. axisLabel:{
  2527. rotate:40,
  2528. textStyle:{
  2529. color:"#a4a4a4"
  2530. },
  2531. formatter: function(val) {
  2532. if(val){
  2533. return val.length>5? val.substring(0,5):val;
  2534. }
  2535. }
  2536. }
  2537. }],
  2538. yAxis: [{
  2539. name:"数量(个)",
  2540. type:'value',
  2541. axisLine:{
  2542. lineStyle:{
  2543. color:"#a4a4a4"
  2544. }
  2545. },
  2546. axisLabel:{
  2547. rotate:40,
  2548. textStyle:{
  2549. color:"#a4a4a4"
  2550. }
  2551. }
  2552. }],
  2553. series: []
  2554. };
  2555. this.AreaObjTypeObj.list.forEach((item,index)=>{
  2556. var color = this.AreaObjTypeObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
  2557. var obj = {
  2558. name: item.name,
  2559. type: 'bar',
  2560. stack:"all",
  2561. data: item.value,
  2562. barWidth: '8px',
  2563. itemStyle: {
  2564. normal: {
  2565. show: true,
  2566. barBorderRadius:color,
  2567. borderWidth: 0
  2568. }
  2569. }
  2570. }
  2571. option.series.push(obj);
  2572. })
  2573. this.chart5.clear();
  2574. this.chart5.setOption(option);
  2575. },
  2576. // initRangChart1(){
  2577. // this.chartRang = echarts.init(document.getElementById('chartRang'));
  2578. // var option = {
  2579. // tooltip: {
  2580. // trigger: 'axis',
  2581. // },
  2582. // grid: {
  2583. // top: '15%',
  2584. // left: '3%',
  2585. // right: '3%',
  2586. // bottom: '3%',
  2587. // containLabel: true
  2588. // },
  2589. // xAxis: [{
  2590. // type: 'category',
  2591. // data: this.rangeListObj.xAxis1,
  2592. // axisLine:{
  2593. // lineStyle:{
  2594. // color:"#a4a4a4"
  2595. // }
  2596. // },
  2597. // axisLabel:{
  2598. // rotate:40,
  2599. // textStyle:{
  2600. // color:"#a4a4a4"
  2601. // },
  2602. // formatter: function(val) {
  2603. // if(val){
  2604. // return val.length>5? val.substring(0,5):val;
  2605. // }
  2606. // }
  2607. // }
  2608. // }],
  2609. // yAxis: [{
  2610. // name:"问题数(个)",
  2611. // type:'value',
  2612. // axisLine:{
  2613. // lineStyle:{
  2614. // color:"#a4a4a4"
  2615. // }
  2616. // },
  2617. // axisLabel:{
  2618. // rotate:40,
  2619. // textStyle:{
  2620. // color:"#a4a4a4"
  2621. // }
  2622. // }
  2623. // }],
  2624. // series: [{
  2625. // name: "问题数",
  2626. // type: 'bar',
  2627. // data: this.rangeListObj.list1,
  2628. // barWidth: '20px',
  2629. // itemStyle: {
  2630. // normal: {
  2631. // show: true,
  2632. // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
  2633. // offset: 0,
  2634. // color: '#31d3ff'
  2635. // }, {
  2636. // offset: 1,
  2637. // color: '#33b1ff'
  2638. // }]),
  2639. // barBorderRadius: [30, 30, 0, 0],
  2640. // borderWidth: 0,
  2641. // }
  2642. // }
  2643. // }]
  2644. // };
  2645. // this.chartRang.clear();
  2646. // this.chartRang.setOption(option);
  2647. // },
  2648. // initRangChart2(){
  2649. // this.chartRang = echarts.init(document.getElementById('chartRang'));
  2650. // var option = {
  2651. // tooltip: {
  2652. // trigger: 'axis',
  2653. // },
  2654. // grid: {
  2655. // top: '15%',
  2656. // left: '3%',
  2657. // right: '3%',
  2658. // bottom: '3%',
  2659. // containLabel: true
  2660. // },
  2661. // xAxis: [{
  2662. // type: 'category',
  2663. // data: this.rangeListObj.xAxis2,
  2664. // axisLine:{
  2665. // lineStyle:{
  2666. // color:"#a4a4a4"
  2667. // }
  2668. // },
  2669. // axisLabel:{
  2670. // rotate:40,
  2671. // textStyle:{
  2672. // color:"#a4a4a4"
  2673. // },
  2674. // formatter: function(val) {
  2675. // if(val){
  2676. // return val.length>5? val.substring(0,5):val;
  2677. // }
  2678. // }
  2679. // }
  2680. // }],
  2681. // yAxis: [{
  2682. // name:"整改数(个)",
  2683. // type:'value',
  2684. // axisLine:{
  2685. // lineStyle:{
  2686. // color:"#a4a4a4"
  2687. // }
  2688. // },
  2689. // axisLabel:{
  2690. // rotate:40,
  2691. // textStyle:{
  2692. // color:"#a4a4a4"
  2693. // }
  2694. // }
  2695. // }],
  2696. // series: [{
  2697. // name: "整改数",
  2698. // type: 'bar',
  2699. // data: this.rangeListObj.list2,
  2700. // barWidth: '20px',
  2701. // itemStyle: {
  2702. // normal: {
  2703. // show: true,
  2704. // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
  2705. // offset: 0,
  2706. // color: '#31d3ff'
  2707. // }, {
  2708. // offset: 1,
  2709. // color: '#33b1ff'
  2710. // }]),
  2711. // barBorderRadius: [30, 30, 0, 0],
  2712. // borderWidth: 0,
  2713. // }
  2714. // }
  2715. // }]
  2716. // };
  2717. // this.chartRang.clear();
  2718. // this.chartRang.setOption(option);
  2719. // },
  2720. // initRangChart3(){
  2721. // this.chartRang = echarts.init(document.getElementById('chartRang'));
  2722. // var option = {
  2723. // tooltip: {
  2724. // trigger: 'axis',
  2725. // },
  2726. // grid: {
  2727. // top: '15%',
  2728. // left: '3%',
  2729. // right: '3%',
  2730. // bottom: '3%',
  2731. // containLabel: true
  2732. // },
  2733. // xAxis: [{
  2734. // type: 'category',
  2735. // data: this.rangeListObj.xAxis3,
  2736. // axisLine:{
  2737. // lineStyle:{
  2738. // color:"#a4a4a4"
  2739. // }
  2740. // },
  2741. // axisLabel:{
  2742. // rotate:40,
  2743. // textStyle:{
  2744. // color:"#a4a4a4"
  2745. // },
  2746. // formatter: function(val) {
  2747. // if(val){
  2748. // return val.length>5? val.substring(0,5):val;
  2749. // }
  2750. // }
  2751. // }
  2752. // }],
  2753. // yAxis: [{
  2754. // name:"整改率(%)",
  2755. // type:'value',
  2756. // axisLine:{
  2757. // lineStyle:{
  2758. // color:"#a4a4a4"
  2759. // }
  2760. // },
  2761. // axisLabel:{
  2762. // rotate:40,
  2763. // textStyle:{
  2764. // color:"#a4a4a4"
  2765. // }
  2766. // }
  2767. // }],
  2768. // series: [{
  2769. // name: "整改率",
  2770. // type: 'bar',
  2771. // data: this.rangeListObj.list3,
  2772. // barWidth: '20px',
  2773. // itemStyle: {
  2774. // normal: {
  2775. // show: true,
  2776. // color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
  2777. // offset: 0,
  2778. // color: '#31d3ff'
  2779. // }, {
  2780. // offset: 1,
  2781. // color: '#33b1ff'
  2782. // }]),
  2783. // barBorderRadius: [30, 30, 0, 0],
  2784. // borderWidth: 0,
  2785. // }
  2786. // }
  2787. // }]
  2788. // };
  2789. // this.chartRang.clear();
  2790. // this.chartRang.setOption(option);
  2791. // },
  2792. initCompare1(){
  2793. this.chartComPare = echarts.init(document.getElementById('chartComPare'));
  2794. var option = {
  2795. color: [
  2796. "#2ca1ff",
  2797. "#0adbfa",
  2798. "#febe13",
  2799. "#65e5dd",
  2800. "#7b2cff",
  2801. "#fd5151",
  2802. "#f071ff",
  2803. "#85f67a"
  2804. ],
  2805. tooltip: {
  2806. trigger: 'axis',
  2807. },
  2808. // legend:{
  2809. // top:'5%',
  2810. // bottom:'3%',
  2811. // pageIconColor: '#909399', //翻页下一页的三角按钮颜色
  2812. // pageIconInactiveColor: '#909399', //翻页(即
  2813. // pageIconSize: 14, //翻页按钮大小
  2814. // type: 'scroll',
  2815. // icon: "circle",
  2816. // itemWidth: 10, // 设置宽度
  2817. // itemHeight: 10, // 设置高度
  2818. // itemGap: 10, // 设置间距,
  2819. // x:'center', //可设定图例在左、右、居中
  2820. // y:'top',
  2821. // textStyle: { //图例文字的样式
  2822. // color: '#909399',
  2823. // fontSize: 12
  2824. // },
  2825. // },
  2826. grid: {
  2827. top: '15%',
  2828. left: '10%',
  2829. right: '0%',
  2830. bottom: '10%',
  2831. },
  2832. xAxis: [{
  2833. type: 'category',
  2834. data: this.compareListObj.xAxis,
  2835. axisLine:{
  2836. lineStyle:{
  2837. color:"#a4a4a4"
  2838. }
  2839. },
  2840. axisLabel:{
  2841. textStyle:{
  2842. color:"#a4a4a4"
  2843. },
  2844. formatter: function(val) {
  2845. if(val){
  2846. return val.length>5? val.substring(0,5):val;
  2847. }
  2848. }
  2849. }
  2850. }],
  2851. yAxis: [{
  2852. name:"对象数(个)",
  2853. type:'value',
  2854. axisLine:{
  2855. lineStyle:{
  2856. color:"#a4a4a4"
  2857. }
  2858. },
  2859. axisLabel:{
  2860. rotate:40,
  2861. textStyle:{
  2862. color:"#a4a4a4"
  2863. }
  2864. }
  2865. }],
  2866. series: []
  2867. };
  2868. this.compareListObj.list.forEach((item,index)=>{
  2869. // var color = this.compareListObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
  2870. var obj = {
  2871. name: item.typeName,
  2872. type: 'bar',
  2873. stack:"all",
  2874. data: item.typeValue,
  2875. barWidth: '20px',
  2876. itemStyle: {
  2877. normal: {
  2878. show: true,
  2879. // barBorderRadius: color,
  2880. borderWidth: 0
  2881. }
  2882. }
  2883. }
  2884. option.series.push(obj);
  2885. })
  2886. this.chartComPare.clear();
  2887. this.chartComPare.setOption(option);
  2888. },
  2889. initCompare2(){
  2890. this.chartComPare = echarts.init(document.getElementById('chartComPare'));
  2891. var option = {
  2892. color: [
  2893. "#2ca1ff",
  2894. "#0adbfa",
  2895. "#febe13",
  2896. "#65e5dd",
  2897. "#7b2cff",
  2898. "#fd5151",
  2899. "#f071ff",
  2900. "#85f67a"
  2901. ],
  2902. tooltip: {
  2903. trigger: 'axis',
  2904. },
  2905. // legend:{
  2906. // top:'5%',
  2907. // bottom:'3%',
  2908. // pageIconColor: '#909399', //翻页下一页的三角按钮颜色
  2909. // pageIconInactiveColor: '#909399', //翻页(即
  2910. // pageIconSize: 14, //翻页按钮大小
  2911. // type: 'scroll',
  2912. // icon: "circle",
  2913. // itemWidth: 10, // 设置宽度
  2914. // itemHeight: 10, // 设置高度
  2915. // itemGap: 10, // 设置间距,
  2916. // x:'center', //可设定图例在左、右、居中
  2917. // y:'top',
  2918. // textStyle: { //图例文字的样式
  2919. // color: '#909399',
  2920. // fontSize: 12
  2921. // },
  2922. // },
  2923. grid: {
  2924. top: '15%',
  2925. left: '3%',
  2926. right: '0%',
  2927. bottom: '3%',
  2928. containLabel: true
  2929. },
  2930. xAxis: [{
  2931. type: 'category',
  2932. data: this.compareListObj.xAxis,
  2933. axisLine:{
  2934. lineStyle:{
  2935. color:"#a4a4a4"
  2936. }
  2937. },
  2938. axisLabel:{
  2939. textStyle:{
  2940. color:"#a4a4a4"
  2941. },
  2942. formatter: function(val) {
  2943. if(val){
  2944. return val.length>5? val.substring(0,5):val;
  2945. }
  2946. }
  2947. }
  2948. }],
  2949. yAxis: [{
  2950. name:"问题数(个)",
  2951. type:'value',
  2952. axisLine:{
  2953. lineStyle:{
  2954. color:"#a4a4a4"
  2955. }
  2956. },
  2957. axisLabel:{
  2958. rotate:40,
  2959. textStyle:{
  2960. color:"#a4a4a4"
  2961. }
  2962. }
  2963. }],
  2964. series: []
  2965. };
  2966. this.compareListObj.list.forEach((item,index)=>{
  2967. // var color = this.compareListObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
  2968. var obj = {
  2969. name: item.typeName,
  2970. type: 'bar',
  2971. stack:"all",
  2972. data: item.typeValue,
  2973. barWidth: '20px',
  2974. itemStyle: {
  2975. normal: {
  2976. show: true,
  2977. // barBorderRadius: color,
  2978. borderWidth: 0
  2979. }
  2980. }
  2981. }
  2982. option.series.push(obj);
  2983. })
  2984. this.chartComPare.clear();
  2985. this.chartComPare.setOption(option);
  2986. },
  2987. initCompare3(){
  2988. this.chartComPare = echarts.init(document.getElementById('chartComPare'));
  2989. var option = {
  2990. color: [
  2991. "#2ca1ff",
  2992. "#0adbfa",
  2993. "#febe13",
  2994. "#65e5dd",
  2995. "#7b2cff",
  2996. "#fd5151",
  2997. "#f071ff",
  2998. "#85f67a"
  2999. ],
  3000. tooltip: {
  3001. trigger: 'axis',
  3002. },
  3003. // legend:{
  3004. // top:'5%',
  3005. // bottom:'3%',
  3006. // pageIconColor: '#909399', //翻页下一页的三角按钮颜色
  3007. // pageIconInactiveColor: '#909399', //翻页(即
  3008. // pageIconSize: 14, //翻页按钮大小
  3009. // type: 'scroll',
  3010. // icon: "circle",
  3011. // itemWidth: 10, // 设置宽度
  3012. // itemHeight: 10, // 设置高度
  3013. // itemGap: 10, // 设置间距,
  3014. // x:'center', //可设定图例在左、右、居中
  3015. // y:'top',
  3016. // textStyle: { //图例文字的样式
  3017. // color: '#909399',
  3018. // fontSize: 12
  3019. // },
  3020. // },
  3021. grid: {
  3022. top: '15%',
  3023. left: '3%',
  3024. right: '0%',
  3025. bottom: '3%',
  3026. containLabel: true
  3027. },
  3028. xAxis: [{
  3029. type: 'category',
  3030. data: this.compareListObj.xAxis,
  3031. axisLine:{
  3032. lineStyle:{
  3033. color:"#a4a4a4"
  3034. }
  3035. },
  3036. axisLabel:{
  3037. textStyle:{
  3038. color:"#a4a4a4"
  3039. },
  3040. formatter: function(val) {
  3041. if(val){
  3042. return val.length>5? val.substring(0,5):val;
  3043. }
  3044. }
  3045. }
  3046. }],
  3047. yAxis: [{
  3048. name:"整改数(个)",
  3049. type:'value',
  3050. axisLine:{
  3051. lineStyle:{
  3052. color:"#a4a4a4"
  3053. }
  3054. },
  3055. axisLabel:{
  3056. rotate:40,
  3057. textStyle:{
  3058. color:"#a4a4a4"
  3059. }
  3060. }
  3061. }],
  3062. series: []
  3063. };
  3064. this.compareListObj.list.forEach((item,index)=>{
  3065. // var color = this.compareListObj.list.length-1 == index?[30, 30, 0, 0]:[0,0,0,0];
  3066. var obj = {
  3067. name: item.typeName,
  3068. type: 'bar',
  3069. stack:"all",
  3070. data: item.typeValue,
  3071. barWidth: '20px',
  3072. itemStyle: {
  3073. normal: {
  3074. show: true,
  3075. // barBorderRadius: color,
  3076. borderWidth: 0
  3077. }
  3078. }
  3079. }
  3080. option.series.push(obj);
  3081. })
  3082. this.chartComPare.clear();
  3083. this.chartComPare.setOption(option);
  3084. },
  3085. },
  3086. beforeCreate() {}, //生命周期 - 创建之前
  3087. beforeMount() {}, //生命周期 - 挂载之前
  3088. beforeUpdate() {}, //生命周期 - 更新之前
  3089. updated() {}, //生命周期 - 更新之后
  3090. beforeDestroy() {}, //生命周期 - 销毁之前
  3091. destroyed() {}, //生命周期 - 销毁完成
  3092. activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
  3093. };
  3094. </script>
  3095. <style scoped>
  3096. .content{
  3097. width: 100%;
  3098. height:100%;
  3099. background: #F8F8F8;
  3100. position: relative;
  3101. }
  3102. .mainBox{
  3103. position: absolute;
  3104. z-index: 300;
  3105. top:20px;
  3106. left:14px;
  3107. width: calc(100% - 28px);
  3108. height:calc(100% - 40px);
  3109. margin: 0;
  3110. padding: 0;
  3111. display: flex;
  3112. justify-content: center;
  3113. align-items: center;
  3114. }
  3115. .slideBar{
  3116. width: 440px;
  3117. max-width: 440px;
  3118. height:100%;
  3119. }
  3120. .centerBar{
  3121. width: calc(100% - 880px);
  3122. height:100%;
  3123. position: relative;
  3124. background:#F0FAFF;
  3125. }
  3126. .slideBar-left-top{
  3127. width: 100%;
  3128. height:25%;
  3129. background: #FFFFFF;
  3130. box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
  3131. border-radius: 8px;
  3132. }
  3133. .slideBar-left-bottom{
  3134. width: 100%;
  3135. height:calc(75% - 10px);
  3136. margin-top: 10px;
  3137. background: #FFFFFF;
  3138. box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
  3139. border-radius: 8px;
  3140. }
  3141. .slideBar-right-top{
  3142. width: 100%;
  3143. height:20%;
  3144. background: #FFFFFF;
  3145. box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
  3146. border-radius: 8px;
  3147. }
  3148. .slideBar-right-center{
  3149. width: 100%;
  3150. height:calc(37% - 10px);
  3151. background: #FFFFFF;
  3152. box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
  3153. border-radius: 8px;
  3154. margin-top: 10px;
  3155. }
  3156. .slideBar-right-bottom{
  3157. width: 100%;
  3158. height:calc(43% - 10px);
  3159. background: #FFFFFF;
  3160. box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.5);
  3161. border-radius: 8px;
  3162. margin-top: 10px;
  3163. }
  3164. .slideBar-title{
  3165. width: calc(100% - 39px);
  3166. height:39px;
  3167. margin: 0 auto;
  3168. border-bottom: 1px solid #DDDDDD;
  3169. display: flex;
  3170. align-items: center;
  3171. position: relative;
  3172. }
  3173. .slideBar-title img{
  3174. width: 18px;
  3175. height:18px;
  3176. margin-right: 10px;
  3177. }
  3178. .slideBar-title span.titleText{
  3179. font-size: 18px;
  3180. font-family: 黑体;
  3181. font-weight: bold;
  3182. color: #222222;
  3183. }
  3184. .titlePicker{
  3185. width: 110px;
  3186. position: absolute;
  3187. z-index: 1001;
  3188. top:5px;
  3189. right:0px;
  3190. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  3191. }
  3192. .slideRightUl{
  3193. list-style: none;
  3194. display: flex;
  3195. align-items: center;
  3196. height:100%;
  3197. }
  3198. .slideRightUl li:first-child{
  3199. margin-left: 0px !important;
  3200. }
  3201. .slideRightUl li{
  3202. height:calc(100% - 2px);
  3203. display: flex;
  3204. justify-content: center;
  3205. align-items: center;
  3206. font-size: 18px;
  3207. font-family: 黑体;
  3208. font-weight: bold;
  3209. color: #777777;
  3210. border-bottom: 2px solid transparent;
  3211. cursor: pointer;
  3212. margin-left: 18px;
  3213. }
  3214. .is-active{
  3215. font-size: 18px;
  3216. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  3217. font-weight: 500;
  3218. border-bottom: 2px solid #0896eb !important;
  3219. color:#222222 !important;
  3220. }
  3221. .slideBar-content{
  3222. width: calc(100% - 40px);
  3223. margin: 0 auto;
  3224. height:calc(100% - 40px);
  3225. }
  3226. .slideBar-table{
  3227. width: calc(100% - 40px);
  3228. margin-left: 20px;
  3229. height:calc(55% - 20px);
  3230. overflow: auto;
  3231. }
  3232. .slideBar-pie{
  3233. width: calc(100% - 40px);
  3234. margin-left: 20px;
  3235. height:calc(45% - 20px);
  3236. }
  3237. .ul-notify{
  3238. width: 100%;
  3239. line-height: 30px;
  3240. list-style: none;
  3241. height: 100%;
  3242. overflow-y: auto;
  3243. }
  3244. .ul-notify li{
  3245. width: 100%;
  3246. line-height: 30px;
  3247. display: flex;
  3248. align-items: center;
  3249. font-size: 14px;
  3250. color: #817c7c;
  3251. border-bottom: 1px dashed #cdced9;
  3252. cursor: pointer;
  3253. }
  3254. .ul-notify li:hover{
  3255. color: #33b1ff;
  3256. }
  3257. .ul-notify li em{
  3258. display: block;
  3259. width: 4px;
  3260. height:4px;
  3261. border-radius: 30px;
  3262. margin-right: 10px;
  3263. }
  3264. .ul-notify li span:first-child{
  3265. display: flex;
  3266. align-items: center;
  3267. }
  3268. .ul-notify li span:nth-child(2){
  3269. width: calc(100% - 20px);
  3270. overflow:hidden;
  3271. text-overflow:ellipsis;
  3272. white-space:nowrap!important;
  3273. }
  3274. .el-table {
  3275. margin-top: 5px;
  3276. }
  3277. .el-table /deep/ th{
  3278. background: #E1F0FF !important;
  3279. color: #507896!important;
  3280. }
  3281. .el-table /deep/ th{
  3282. box-shadow: none !important;
  3283. }
  3284. .el-table /deep/ tr{
  3285. box-shadow: none !important;
  3286. }
  3287. .rangText{
  3288. font-size: 16px;
  3289. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  3290. font-weight: 500;
  3291. color: #0078FF;
  3292. }
  3293. .rangeTable{
  3294. overflow: auto;
  3295. }
  3296. #chart4{
  3297. width: 100%;
  3298. height:100%;
  3299. }
  3300. .backBtn{
  3301. position: absolute;
  3302. z-index: 1002;
  3303. top:10px;
  3304. right:10px;
  3305. }
  3306. .summary-ul{
  3307. list-style: none;
  3308. width: 100%;
  3309. height:100%;
  3310. }
  3311. .summary-ul li{
  3312. float: left;
  3313. width: calc(33.33% - 10px);
  3314. margin-left: 5px;
  3315. margin-right: 5px;
  3316. height: calc(33.33% - 5px);
  3317. margin-top: 5px;
  3318. background: #FFFFFF;
  3319. box-shadow: 0px 1px 5px 0px rgba(100,180,255,0.5);
  3320. border-radius: 5px;
  3321. cursor: pointer;
  3322. }
  3323. .summary-ul li p{
  3324. width: 100%;
  3325. height: 50%;
  3326. display: flex;
  3327. justify-content: center;
  3328. align-items: center;
  3329. font-size: 14px;
  3330. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  3331. font-weight: bold;
  3332. color: #666666;
  3333. }
  3334. .fontNum-1{
  3335. color:#00B4FF;
  3336. }
  3337. .fontNum-2{
  3338. color:#738CFF;
  3339. }
  3340. .fontNum-3{
  3341. color: #FF9141;
  3342. }
  3343. .fontNum-4{
  3344. color: #00C3A5;
  3345. }
  3346. .fontNum-5{
  3347. color:#FF6E96;
  3348. }
  3349. .fontNum-6{
  3350. color:#FF6ECD;
  3351. }
  3352. .fontNumPercent{
  3353. position: absolute;
  3354. z-index:1200;
  3355. right:10px;
  3356. bottom:0px;
  3357. font-size: 10px;
  3358. }
  3359. .fontNumPercent img{
  3360. width: 18px;
  3361. height:20px;
  3362. }
  3363. .summary-content{
  3364. display: flex !important;
  3365. justify-content: center !important;
  3366. align-items: center !important;
  3367. font-size: 20px !important;
  3368. font-family: SourceHanSansCN-Bold, SourceHanSansCN;
  3369. font-weight: bold !important;
  3370. position: relative;
  3371. }
  3372. .officeNotice{
  3373. list-style: none;
  3374. width: 100%;
  3375. height:calc(100% - 40px);
  3376. margin-top: 20px;
  3377. padding: 0;
  3378. cursor: pointer;
  3379. }
  3380. .officeNotice li:first-child{
  3381. padding: 10px;
  3382. display: flex;
  3383. float: left;
  3384. justify-content: center;
  3385. list-style: none;
  3386. width: calc(100% - 40px);
  3387. height: calc(100% - 20px);
  3388. margin-left: 20px;
  3389. /* padding: 0; */
  3390. /*margin-right: 5px;*/
  3391. background: url("../../assets/fujian/syx.png") no-repeat;
  3392. background-size: 100% 100%;
  3393. /* box-shadow: 0px 1px 5px 0px rgb(255 125 30 / 40%); */
  3394. border: 1px solid #dddddd;
  3395. }
  3396. .officeNotice li:nth-child(2){
  3397. padding: 10px;
  3398. display: flex;
  3399. float: left;
  3400. list-style: none;
  3401. width: calc(50% - 40px);
  3402. height: calc(100% - 20px);
  3403. margin: 0;
  3404. /* padding: 0; */
  3405. margin-left: 20px;
  3406. background: url("../../assets/fujian/syx1.png") no-repeat;
  3407. background-size: 100% 100%;
  3408. /* box-shadow: 0px 1px 5px 0px rgb(255 125 30 / 40%); */
  3409. border: 1px solid #dddddd;
  3410. }
  3411. .officeNotice li div:first-child{
  3412. width: 30%;
  3413. height:100%;
  3414. }
  3415. .officeNotice li div:nth-child(2){
  3416. width: 30%;
  3417. height:100%;
  3418. }
  3419. .officeNotice li div img{
  3420. width: 65px;
  3421. height:100%;
  3422. }
  3423. .officeNotice li div span:first-child{
  3424. display: block;
  3425. width: 100%;
  3426. height:50%;
  3427. text-align: center;
  3428. font-size: 20px;
  3429. font-family: SourceHanSansCN-Regular, SourceHanSansCN;
  3430. font-weight: bold;
  3431. color: #666666;
  3432. }
  3433. .officeNotice li div span:nth-child(2){
  3434. display: block;
  3435. width: 100%;
  3436. height:50%;
  3437. text-align: center;
  3438. font-size: 20px;
  3439. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  3440. font-weight: 500;
  3441. color: #4A4A4A;
  3442. }
  3443. .example{
  3444. width: 120px;
  3445. list-style: none;
  3446. position: absolute;
  3447. z-index:1005;
  3448. right:10px;
  3449. bottom:30px;
  3450. background: #e2f1ff;
  3451. box-shadow: 1px 1px 5px 0px rgb(156 158 167);
  3452. border-radius: 3px;
  3453. }
  3454. .example li{
  3455. display: flex;
  3456. align-items: center;
  3457. font-size: 14px;
  3458. font-weight: bold;
  3459. height: 40px;
  3460. line-height: 40px;
  3461. font-size: 12px;
  3462. font-family: SourceHanSansCN-Regular, SourceHanSansCN;
  3463. font-weight: bold;
  3464. color: #4A4A4A;
  3465. }
  3466. .example li:first-child{
  3467. border-bottom: 1px solid #DDDDDD;
  3468. cursor: pointer;
  3469. font-size: 14px;
  3470. cursor: pointer;
  3471. text-align: center;
  3472. display: flex;
  3473. justify-content: center;
  3474. align-items: center;
  3475. }
  3476. .example li em{
  3477. display: block;
  3478. width: 20px;
  3479. height:20px;
  3480. margin-left: 15px;
  3481. margin-right: 15px;
  3482. }
  3483. .example li:first-child:hover{
  3484. color:#37AAFF !important;
  3485. }
  3486. /*.example li:nth-child(2){*/
  3487. /* border-bottom: 1px solid #DDDDDD;*/
  3488. /* cursor: pointer;*/
  3489. /*}*/
  3490. /*.example li:nth-child(2):hover{*/
  3491. /* color:#37AAFF !important;*/
  3492. /*}*/
  3493. .example li img{
  3494. width: 20px;
  3495. height:20px;
  3496. margin-right: 15px;
  3497. margin-left: 15px;
  3498. }
  3499. .exampleBack{
  3500. width: 120px;
  3501. list-style: none;
  3502. position: absolute;
  3503. z-index:1005;
  3504. right:10px;
  3505. top:5px;
  3506. background: #FFFFFF;
  3507. box-shadow: 1px 1px 5px 0px rgba(210,220,225,0.7);
  3508. border-radius: 3px;
  3509. cursor: pointer;
  3510. }
  3511. .exampleBack li{
  3512. display: flex;
  3513. justify-content: center;
  3514. align-items: center;
  3515. font-size: 15px;
  3516. font-weight: bold;
  3517. height: 40px;
  3518. line-height: 40px;
  3519. font-weight: bold;
  3520. color: #4A4A4A;
  3521. letter-spacing: 3px;
  3522. }
  3523. .exampleBack li:first-child{
  3524. border-bottom: 1px solid #DDDDDD;
  3525. cursor: pointer;
  3526. }
  3527. .exampleBack li:first-child:hover{
  3528. color:#37AAFF !important;
  3529. }
  3530. .exampleBack li:nth-child(2):hover{
  3531. color:#37AAFF !important;
  3532. }
  3533. .DictTitle{
  3534. width: 100%;
  3535. padding: 10px;
  3536. font-weight: bold;
  3537. font-size: 18px;
  3538. text-align: center;
  3539. }
  3540. .pblmDictContent{
  3541. border-radius: 4px;
  3542. border: 1px solid #ebeef5;
  3543. background-color: #fff;
  3544. overflow: hidden;
  3545. color: #303133;
  3546. transition: .3s;
  3547. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  3548. margin-top: 20px;
  3549. }
  3550. .level1Title{
  3551. display: block;
  3552. line-height: 30px;
  3553. width: 100%;
  3554. padding: 10px;
  3555. font-weight: bold;
  3556. font-size: 16px;
  3557. border-bottom: 1px solid #ebeef5;
  3558. }
  3559. .level2Title{
  3560. display: block;
  3561. width: 100%;
  3562. line-height: 30px;
  3563. padding: 10px;
  3564. font-weight: bold;
  3565. font-size: 16px;
  3566. text-indent: 20px;
  3567. border-bottom: 1px solid #ebeef5;
  3568. }
  3569. .level3Title{
  3570. display: block;
  3571. line-height: 30px;
  3572. width: 100%;
  3573. padding: 10px;
  3574. font-weight: bold;
  3575. font-size: 14px;
  3576. text-indent: 60px;
  3577. border-bottom: 1px solid #ebeef5;
  3578. }
  3579. ::-webkit-scrollbar {
  3580. width: 8px;
  3581. background: #F5F5F5;
  3582. box-shadow: inset 0px 0px 5px 0px rgba(180,180,180,0.4);
  3583. border-radius: 4px;
  3584. }
  3585. /* 滚动条上的滚动滑块 */
  3586. ::-webkit-scrollbar-thumb {
  3587. background: #C8DCE6;
  3588. border-radius: 3px;
  3589. }
  3590. </style>