移动端
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

list.vue 250 KiB

3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182
  1. <template>
  2. <div class="app-container">
  3. <van-sticky>
  4. <div class="bannerBg" style="">
  5. <van-nav-bar
  6. style="background:transparent;border-bottom-width:0;"
  7. @click-left="onClickLeft"
  8. @click-right="showUploadList"
  9. >
  10. <template #left>
  11. <van-icon name="arrow-left" size=".5rem" color="#fff" />
  12. </template>
  13. <template #right>
  14. <van-icon v-if="$cookies.get('upload')!=null&&$cookies.get('upload')==1" name="photo-o" size=".5rem" color="#fff"/>
  15. </template>
  16. <template #title>
  17. <p style="color:#fff">{{item.deptName}}</p>
  18. </template>
  19. </van-nav-bar>
  20. <van-popup v-model:show="showImageList" position="bottom" style="height:40vh;padding:50px 10px 0" closeable
  21. close-icon="close">
  22. <p style="color:#000;position:absolute;top:0.426667rem;left:0.426667rem">图片上传</p>
  23. <div style="width:100%;height:calc( 40vh - 100px);overflow-y: scroll;">
  24. <van-uploader v-model="uploadImgList" :after-read="beforeReadImageList" @delete="deleteFileImageList" multiple :max-count="50" />
  25. </div>
  26. <van-row justify="space-around" style=" position:fixed;bottom:0;left:0;width:100%;height:50px;text-align: center;">
  27. <van-col span="12"><van-button type="primary" style="width:100px;" round @click="uploadImgList = [],uploadImgList1 = []">清空</van-button></van-col>
  28. <van-col span="12"><van-button type="primary" style="width:100px;" round @click="submitUploadList">上传</van-button></van-col>
  29. </van-row>
  30. </van-popup>
  31. <div style="display:flex;width:94%;margin:0 auto;justify-content:space-between;padding: 10px 0">
  32. <div style="display:flex;width:90%;margin:0 auto;">
  33. <div :class="{activeBtn : activeBtn==1,disactiveBtn :activeBtn!=1 }" @click="activeBtn=1,getDc()"
  34. ><van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn1'+(activeBtn!=1?'1':'')+'.png')" />
  35. 入户核查
  36. </div>
  37. <div :class="{activeBtn : activeBtn==2,disactiveBtn :activeBtn!=2 }" @click="activeBtn=2,getNh()">
  38. <van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn2'+(activeBtn!=2?'2':'')+'.png')" />
  39. 农户信息
  40. </div>
  41. <div :class="{activeBtn : activeBtn==3,disactiveBtn :activeBtn!=3 }" @click="activeBtn=3,getSyqr()">
  42. <van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn3'+(activeBtn!=3?'3':'')+'.png')" />
  43. 所有权人
  44. </div>
  45. <div :class="{activeBtn : activeBtn==4,disactiveBtn :activeBtn!=4 }" @click="activeBtn=4,mapShow()">
  46. <van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn4'+(activeBtn!=4?'4':'')+'.png')" />
  47. 切换地图
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <div style="background:#fff;padding:10px 0;">
  53. <div style="border:1px solid rgb(122, 201, 67);width:90%;margin:0 auto;border-radius:15px;height:.8rem;display:flex;font-size:.3rem;">
  54. <div style="flex:1;text-align:center;">
  55. <span style="color:rgb(122, 201, 67);line-height:.8rem;">总户数:</span>
  56. <span style="color:rgb(250, 83, 83);line-height:.8rem;">{{totalH}} <span style="font-size:12px;">户</span></span>
  57. </div>
  58. <div style="flex:1;text-align:center;">
  59. <span style="color:rgb(122, 201, 67);line-height:.8rem">总人数:</span>
  60. <span style="color:rgb(250, 83, 83);line-height:.8rem">{{totalR}} <span style="font-size:12px;">人</span></span>
  61. </div>
  62. </div>
  63. </div>
  64. </van-sticky>
  65. <div v-if="activeBtn==1">
  66. <van-search v-model="zjdvalue" placeholder="请输入搜索关键词" show-action @search="onSearchzjd">
  67. <template #action>
  68. <van-icon name="add" color="rgba(122,201,67,1)" size=".8rem" @click="onClickzjd" style="vertical-align:middle;"/>
  69. </template>
  70. </van-search>
  71. <van-tabs v-model="active" title-active-color="#7AC943" color="#7AC943" @click="getZjdList">
  72. <van-tab >
  73. <template #title>全部<van-badge v-if="qbNums>=0" :content="qbNums" /></template>
  74. <!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
  75. <van-list
  76. v-model:loading="loading1"
  77. :finished="finished1"
  78. finished-text="没有更多了"
  79. @load="onRefreshzjd"
  80. :immediate-check="false"
  81. >
  82. <van-cell v-for="(item,index) in list" :key="index" size="small" :clickable="true" style="border-radius: 16px;
  83. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  84. <template #title>
  85. <p v-if="item.syqr!=null&&item.syqr!=''" style="color:#22B7F2">{{limitWords(item.syqr)}}
  86. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  87. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  88. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  89. </p>
  90. </template>
  91. <!--<template #default>
  92. </template>-->
  93. <template #label>
  94. <p>宅基地代码: {{item.zjddm}} </p>
  95. <p>宗地面积: {{item.zdmj}}㎡
  96. <span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='0'" style="color:#ff976a;float:right;">待审核</span>
  97. <span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='1'" style="color:#07c160;float:right;">已审核</span>
  98. <span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
  99. </p>
  100. </template>
  101. <template #icon>
  102. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  103. </template>
  104. </van-cell>
  105. </van-list>
  106. <!--</van-pull-refresh>-->
  107. </van-tab>
  108. <van-tab >
  109. <template #title>已核查<van-badge v-if="yhcNums>=0" :content="yhcNums" /></template>
  110. <!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
  111. <van-list
  112. v-model:loading="loading2"
  113. :finished="finished2"
  114. finished-text="没有更多了"
  115. @load="onRefreshzjd"
  116. :immediate-check="false"
  117. >
  118. <van-cell v-for="(item,index) in list1" :key="index" size="small" :clickable="true" style="border-radius: 16px;
  119. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  120. <template #title>
  121. <p style="color:#22B7F2">{{limitWords(item.syqr)}}
  122. <van-button plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  123. <!--<van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'" plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  124. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>-->
  125. </p>
  126. </template>
  127. <!--<template #default>
  128. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;margin-top:15px;">查看详情</van-button>
  129. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;margin-top:15px;">开始调查</van-button>
  130. </template>-->
  131. <template #label>
  132. <p>宅基地代码: {{item.zjddm}} </p>
  133. <p>宗地面积: {{item.zdmj}}㎡
  134. <span v-if="item.zjdAudit=='0'" style="color:#ff976a;float:right;">待审核</span>
  135. <span v-if="item.zjdAudit=='1'" style="color:#07c160;float:right;">已审核</span>
  136. <span v-if="item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
  137. </p>
  138. </template>
  139. <template #icon>
  140. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  141. </template>
  142. </van-cell>
  143. </van-list>
  144. <!--</van-pull-refresh>-->
  145. </van-tab>
  146. <van-tab >
  147. <template #title>未核查<van-badge v-if="whcNums>=0" :content="whcNums" /></template>
  148. <!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
  149. <van-list
  150. v-model:loading="loading3"
  151. :finished="finished3"
  152. finished-text="没有更多了"
  153. @load="onRefreshzjd"
  154. :immediate-check="false"
  155. >
  156. <van-cell v-for="(item,index) in list2" :key="index" size="small" :clickable="true" style="border-radius: 16px;
  157. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  158. <template #title>
  159. <p style="color:#22B7F2">{{limitWords(item.syqr)}}
  160. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  161. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  162. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  163. </p>
  164. </template>
  165. <!--<template #default>
  166. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;margin-top:15px;">查看详情</van-button>
  167. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;margin-top:15px;">开始调查</van-button>
  168. </template>-->
  169. <template #label>
  170. <p>宅基地代码: {{item.zjddm}} </p>
  171. <p>宗地面积: {{item.zdmj}}㎡
  172. <span v-if="item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
  173. </p>
  174. </template>
  175. <template #icon>
  176. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  177. </template>
  178. </van-cell>
  179. </van-list>
  180. <!--</van-pull-refresh>-->
  181. </van-tab>
  182. </van-tabs>
  183. </div>
  184. <div v-if="activeBtn==2" >
  185. <van-search v-model="nhvalue" placeholder="请输入农户姓名或证件号" show-action @search="onSearchnh">
  186. <template #action>
  187. <van-icon name="add" color="rgba(122,201,67,1)" size=".8rem" @click="onClicknh" style="vertical-align:middle;"/>
  188. </template>
  189. </van-search>
  190. <van-pull-refresh v-model="isLoadingnh" @refresh="onRefreshnh">
  191. <van-cell v-for="(item,index) in nhlist" :key="index" size="small" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  192. <template #title>
  193. <p style="color:#22B7F2">{{item.hzxm}}
  194. <van-button plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;margin-left:10px;" @click="showPopuphncylist(item)">查看成员</van-button>
  195. <van-button plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;margin-left:10px;" @click="showPopupnh(item)">查看户主</van-button>
  196. <van-button plain round color="#FA5353" size="mini" v-if="!isFinished" style="vertical-align:middle;float:right;" @click="deletenh(item,index)">删除</van-button>
  197. </p>
  198. </template>
  199. <!-- <template #default>
  200. </template>-->
  201. <template #label>
  202. <p>证件号码:{{item.hzzjhm}}</p>
  203. <p>农户代码:{{item.nhdm}}</p>
  204. </template>
  205. <template #icon>
  206. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  207. </template>
  208. </van-cell>
  209. </van-pull-refresh>
  210. </div>
  211. <div v-if="activeBtn==3">
  212. <van-form @submit="onSubmitsyqr">
  213. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;padding:5px;background:#fff;">
  214. <van-field
  215. autocomplete="off"
  216. v-model="qlrform.qydm"
  217. name="区域代码"
  218. label="区域代码"
  219. placeholder="禁止修改"
  220. disabled
  221. input-align="right"
  222. />
  223. <van-field
  224. autocomplete="off"
  225. v-model="qlrform.suyqrdm"
  226. name="所有权人代码"
  227. label="所有权人代码"
  228. disabled
  229. placeholder="自动生成"
  230. input-align="right"
  231. />
  232. <van-field
  233. autocomplete="off"
  234. v-model="qlrform.suyqrmc"
  235. name="所有权人名称"
  236. label="所有权人名称"
  237. required
  238. placeholder="所有权人名称"
  239. input-align="right"
  240. :rules="[{ required: true, message: '所有权人名称不能为空' }]"
  241. />
  242. <van-field
  243. autocomplete="off"
  244. v-model="qlrform.suyqxzName"
  245. name="所有权性质"
  246. label="所有权性质"
  247. required
  248. placeholder="所有权性质"
  249. input-align="right"
  250. :rules="[{ required: true, message: '所有权性质不能为空' }]"
  251. @click="showsuyqxz = true"
  252. />
  253. <van-field
  254. autocomplete="off"
  255. v-model="qlrform.suyqxz"
  256. style="display:none"
  257. />
  258. <van-popup v-model="showsuyqxz" position="bottom" input-align="right">
  259. <van-picker
  260. show-toolbar
  261. :columns="suyqxzOptions"
  262. value-key="dictLabel"
  263. @confirm="onConfirmsuyqxz"
  264. @cancel="showsuyqxz = false"
  265. />
  266. </van-popup>
  267. <van-field
  268. autocomplete="off"
  269. v-model="qlrform.dbrxm"
  270. name="代表人姓名"
  271. label="代表人姓名"
  272. required
  273. placeholder="代表人姓名"
  274. input-align="right"
  275. :rules="[{ required: true, message: '代表人姓名不能为空' }]"
  276. />
  277. <van-field
  278. autocomplete="off"
  279. v-model="qlrform.dbrzjlx"
  280. style="display:none"
  281. />
  282. <van-field
  283. autocomplete="off"
  284. v-model="qlrform.dbrzjlxName"
  285. name="代表人证件类型"
  286. label="代表人证件类型"
  287. required
  288. placeholder="代表人证件类型"
  289. input-align="right"
  290. :rules="[{ required: true, message: '代表人证件类型不能为空' }]"
  291. @click="showdbrzjlx = true"
  292. />
  293. <van-popup v-model="showdbrzjlx" position="bottom" input-align="right">
  294. <van-picker
  295. show-toolbar
  296. :columns="zjlxOptions"
  297. value-key="dictLabel"
  298. @confirm="onConfirmdbrzjlx"
  299. @cancel="showdbrzjlx = false"
  300. />
  301. </van-popup>
  302. <van-field
  303. autocomplete="off"
  304. v-model="qlrform.dbrzjhm"
  305. name="代表人证件号码"
  306. label="代表人证件号码"
  307. required
  308. placeholder="代表人证件号码"
  309. input-align="right"
  310. :rules="[{ required: true, message: '代表人证件号码不能为空' },{validator:validatorIdcardqlr,message:'身份证号格式错误!'}]"
  311. />
  312. <van-field
  313. autocomplete="off"
  314. v-model="qlrform.dbrlxdh"
  315. name="代表人联系电话"
  316. label="代表人联系电话"
  317. placeholder="代表人联系电话"
  318. type="number"
  319. input-align="right"
  320. required
  321. :rules="[{ required: true, message: '代表人联系电话不能为空' }]"
  322. />
  323. <van-field
  324. autocomplete="off"
  325. v-model="qlrform.dbrtxdz"
  326. name="代表人通讯地址"
  327. label="代表人通讯地址"
  328. required
  329. placeholder="代表人通讯地址"
  330. input-align="right"
  331. :rules="[{ required: true, message: '代表人通讯地址不能为空' }]"
  332. />
  333. <van-field
  334. autocomplete="off"
  335. v-model="qlrform.dbryzbm"
  336. name="代表人邮政编码"
  337. label="代表人邮政编码"
  338. required
  339. placeholder="代表人邮政编码"
  340. input-align="right"
  341. maxlength="6"
  342. :rules="[{ required: true, message: '代表人邮政编码不能为空' }]"
  343. />
  344. <van-field name="radio" label="是否成立农村集体经济组织" required input-align="right" autocomplete="off">
  345. <template #input>
  346. <van-radio-group v-model="qlrform.sfclncjtjjzz" direction="horizontal">
  347. <van-radio name="Y">是</van-radio>
  348. <van-radio name="N">否 </van-radio>
  349. </van-radio-group>
  350. </template>
  351. </van-field>
  352. <van-field
  353. autocomplete="off"
  354. v-model="qlrform.dlrxm"
  355. name="代理人姓名"
  356. label="代理人姓名"
  357. placeholder="代理人姓名"
  358. input-align="right"
  359. />
  360. <van-field
  361. autocomplete="off"
  362. v-model="qlrform.dlrzjlx"
  363. style="display:none"
  364. />
  365. <van-field
  366. autocomplete="off"
  367. v-model="qlrform.dlrzjlxName"
  368. name="代理人证件类型"
  369. label="代理人证件类型"
  370. placeholder="代理人证件类型"
  371. input-align="right"
  372. @click="showdlrzjlx = true"
  373. />
  374. <van-popup v-model="showdlrzjlx" position="bottom" input-align="right">
  375. <van-picker
  376. show-toolbar
  377. :columns="zjlxOptions"
  378. value-key="dictLabel"
  379. @confirm="onConfirmdlrzjlx"
  380. @cancel="showdlrzjlx = false"
  381. />
  382. </van-popup>
  383. <van-field
  384. autocomplete="off"
  385. v-model="qlrform.dlrzjhm"
  386. name="代理人证件号码"
  387. label="代理人证件号码"
  388. placeholder="代理人证件号码"
  389. input-align="right"
  390. />
  391. <van-field
  392. autocomplete="off"
  393. v-model="qlrform.dlrlxdh"
  394. name="代理人联系电话"
  395. label="代理人联系电话"
  396. placeholder="代理人联系电话"
  397. input-align="right"
  398. />
  399. <van-field
  400. autocomplete="off"
  401. v-model="qlrform.dlrtxdz"
  402. name="代理人通讯地址"
  403. label="代理人通讯地址"
  404. placeholder="代理人通讯地址"
  405. input-align="right"
  406. />
  407. <van-field
  408. autocomplete="off"
  409. v-model="qlrform.dlryzbm"
  410. name="代理人邮政编码"
  411. label="代理人邮政编码"
  412. placeholder="代理人邮政编码"
  413. input-align="right"
  414. />
  415. </div>
  416. <div style="border-radius: 16px;
  417. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;padding:5px;background:#fff;">
  418. <van-field
  419. autocomplete="off"
  420. v-model="qlrform.ncjtjjzzdm"
  421. name="农村集体经济组织代码"
  422. label="农村集体经济组织代码"
  423. placeholder="农村集体经济组织代码"
  424. input-align="right"
  425. />
  426. <van-field
  427. autocomplete="off"
  428. v-model="qlrform.ncjtjjzzmc"
  429. name="农村集体经济组织名称"
  430. label="农村集体经济组织名称"
  431. placeholder="农村集体经济组织名称"
  432. input-align="right"
  433. />
  434. <van-field
  435. autocomplete="off"
  436. v-model="qlrform.fbfdm"
  437. name="发包方代码"
  438. label="发包方代码"
  439. placeholder="发包方代码"
  440. input-align="right"
  441. />
  442. <van-field
  443. autocomplete="off"
  444. v-model="qlrform.fbfmc"
  445. name="发包方名称"
  446. label="发包方名称"
  447. placeholder="发包方名称"
  448. input-align="right"
  449. />
  450. <van-field
  451. autocomplete="off"
  452. v-model="qlrform.sjlyName"
  453. name="数据来源"
  454. label="数据来源"
  455. placeholder="数据来源"
  456. input-align="right"
  457. @click="showsjly = true"
  458. required
  459. :rules="[{ required: true, message: '数据来源不能为空' }]"
  460. />
  461. <van-field
  462. autocomplete="off"
  463. v-model="qlrform.sjly"
  464. style="display:none"
  465. />
  466. <van-popup v-model="showsjly" position="bottom" input-align="right">
  467. <van-picker
  468. show-toolbar
  469. :columns="sjlyOptions"
  470. value-key="dictLabel"
  471. @confirm="onConfirmsjly"
  472. @cancel="showsjly = false"
  473. />
  474. </van-popup>
  475. <van-field
  476. autocomplete="off"
  477. v-model="qlrform.bz"
  478. name="备注"
  479. label="备注"
  480. placeholder="备注"
  481. input-align="right"
  482. />
  483. </div>
  484. <div style="margin: 16px;" v-if="!isFinished">
  485. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  486. </div>
  487. </van-form>
  488. </div>
  489. <div v-if="activeBtn==4" style="overflow:hidden">
  490. <!-- <van-search placeholder="请输入宅基地号查询" v-if="false">
  491. <template #action>
  492. </template>
  493. </van-search>-->
  494. <div id="mapWrapAll" style="width: 100%;height: calc(100vh - 247px);"></div>
  495. <div id="info" style="display: none"></div>
  496. <div id="deleteHistory" style="display: none"></div>
  497. <div id="deleteHistoryMap" style="display: none"></div>
  498. <van-overlay :show="showSearch" @click="closeSearchBox" />
  499. <!--搜索栏目-->
  500. <div class="searchBar_wrap" :style="{bottom : bottomHeight}">
  501. <van-search
  502. v-model="seachText"
  503. show-action
  504. placeholder="请输入宗地或权利人信息"
  505. >
  506. <template #action>
  507. <div id="query">搜索</div>
  508. </template>
  509. </van-search>
  510. <div class="searchBox" style="display: none;">
  511. <van-cell center v-for="(item,index) in mapDataAll" :key="index">
  512. <template #title>
  513. <p><van-icon name="manager" /><span>{{item.syqr}}</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.paceType}}</span>
  514. <!--<span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.typeTc}}</span>--></p>
  515. </template>
  516. <template #default>
  517. <p style="border: 1px solid #7ac943;color:#7ac943;" @click="zjdSs(item)">查看详情</p>
  518. </template>
  519. <template #label>
  520. <p style="font-size: 0.25rem;color: #666666;">宅基地代码 {{item.zjddm}}</p>
  521. <p style="font-size: 0.25rem;color: #666666;">宗地面积 {{item.zdmj}}㎡</p>
  522. </template>
  523. </van-cell>
  524. </div>
  525. </div>
  526. <!--图层-->
  527. <div class="rightZoom_wrap">
  528. <img src="../../assets/images/housesteadSurvey/tool1.png">
  529. <div class="amplification" @click="selectionPushMap">图层</div>
  530. </div>
  531. <!--放大缩小-->
  532. <div class="mapZoom_wrap">
  533. <div class="qtMap" id="mapAllQt">
  534. <img src="../../assets/images/housesteadSurvey/tool2.png">
  535. <p>全图</p>
  536. </div>
  537. <div class="clMap" @click="" id="area">
  538. <img src="../../assets/images/housesteadSurvey/tool3.png">
  539. <p>测量</p>
  540. </div>
  541. <div class="hcMap" @click="zjdHc">
  542. <img src="../../assets/images/housesteadSurvey/tool4.png">
  543. <p>核查</p>
  544. </div>
  545. <div class="htMap" @click="" id="htMapAll">
  546. <img src="../../assets/images/housesteadSurvey/tool5.png">
  547. <p>绘图</p>
  548. </div>
  549. <div class="dwMap" @click="" id="dwMapAll">
  550. <img src="../../assets/images/housesteadSurvey/tool6.png">
  551. <p>定位</p>
  552. </div>
  553. </div>
  554. <!--列表拉取详情-->
  555. <div class="homesteadList_wrap" v-show="homesteadListStatus">
  556. <div class="main_m">
  557. <div class="title_m">
  558. <div class="more_icon" @click="homesteadListShrink"></div>
  559. <div class="name">筛选列表</div>
  560. </div>
  561. <div style="padding: 10px 15px;">
  562. <van-checkbox name="all" shape="square" id="checkAll" v-model="checkAllFlag" @click="checkAllArray">全选</van-checkbox>
  563. <div style="height: 15px;"></div>
  564. <van-checkbox-group v-model="checked" @change="handleChecked" ref="checkboxGroup">
  565. <van-checkbox name="fsssSx" shape="square" style="margin-bottom: 5px;" id="fsssSx">
  566. <template #default>
  567. 附属设施<span style="display: inline-block;background: #00FFFF;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span>
  568. </template>
  569. </van-checkbox>
  570. <van-checkbox name="zrzSx" shape="square" style="margin-bottom: 5px;" id="zrzSx">
  571. <template #default>
  572. 自<i style="margin-right: 0.5em;"></i>然<i style="margin-right: 0.5em;"></i>幢<span style="display: inline-block;background: #FFD306;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span>
  573. </template>
  574. </van-checkbox>
  575. <van-checkbox name="zjdSx" shape="square" style="margin-bottom: 5px;" id="zjdSx">
  576. <template #default>
  577. 宅<i style="margin-right: 0.5em;"></i>基<i style="margin-right: 0.5em;"></i>地<span style="display: inline-block;background: #AE57A4;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span>
  578. </template>
  579. </van-checkbox>
  580. </van-checkbox-group>
  581. </div>
  582. </div>
  583. </div>
  584. <van-overlay :show="selectionIconShow" @click="homesteadListShrink" />
  585. </div>
  586. <van-popup v-model="shownh" style="height:100%;width:100%;">
  587. <div class="bannerBg">
  588. <van-nav-bar
  589. style="background:transparent;border-bottom-width:0;"
  590. @click-left="shownh=false"
  591. >
  592. <template #left>
  593. <van-icon name="arrow-left" size="18" color="#fff" />
  594. </template>
  595. <template #title>
  596. <p style="color:#fff">{{nhform.id?"":"新增"}}户主信息</p>
  597. </template>
  598. </van-nav-bar>
  599. </div>
  600. <div style="margin:20px;">
  601. <van-form @submit="onSubmitnh">
  602. <van-field
  603. autocomplete="off"
  604. input-align="right"
  605. v-model="nhform.suyqrdm"
  606. name="所有权人代码"
  607. label="所有权人代码"
  608. placeholder="所有权人代码"
  609. required
  610. disabled
  611. :rules="[{ required: true, message: '所有权人代码不能为空' }]"
  612. />
  613. <van-field
  614. autocomplete="off"
  615. input-align="right"
  616. v-model="nhform.nhdm"
  617. name="农户代码"
  618. label="农户代码"
  619. placeholder="自动生成"
  620. disabled
  621. />
  622. <van-field
  623. autocomplete="off"
  624. input-align="right"
  625. v-model="nhform.hzxm"
  626. name="户主姓名"
  627. label="户主姓名"
  628. placeholder="户主姓名"
  629. required
  630. :rules="[{ required: true, message: '户主姓名不能为空' }]"
  631. />
  632. <van-field
  633. autocomplete="off"
  634. input-align="right"
  635. v-model="nhform.hzzjlxName"
  636. name="户主证件类型"
  637. label="户主证件类型"
  638. placeholder="户主证件类型"
  639. required
  640. readonly
  641. :rules="[{ required: true, message: '户主证件类型不能为空' }]"
  642. @click="showhzzjlx = true"
  643. />
  644. <van-field
  645. autocomplete="off"
  646. v-model="nhform.hzzjlx"
  647. style="display:none"
  648. />
  649. <van-field
  650. autocomplete="off"
  651. v-model="nhform.hzzjhm"
  652. input-align="right"
  653. name="户主证件号码"
  654. label="户主证件号码"
  655. placeholder="户主证件号码"
  656. required
  657. :rules="[{ required: true, message: '户主证件号码不能为空' },{validator:validatorIdcardnh,message:'身份证号格式错误!'}]"
  658. />
  659. <van-field
  660. autocomplete="off"
  661. input-align="right"
  662. v-model="nhform.txdz"
  663. name="通讯地址"
  664. label="通讯地址"
  665. placeholder="通讯地址"
  666. required
  667. :rules="[{ required: true, message: '通讯地址不能为空' }]"
  668. />
  669. <van-field
  670. autocomplete="off"
  671. input-align="right"
  672. v-model="nhform.hncysl"
  673. name="户内成员数量"
  674. label="户内成员数量"
  675. placeholder="户内成员数量"
  676. required
  677. :rules="[{ required: true, message: '户内成员数量不能为空' }]"
  678. />
  679. <van-field name="radio" label="婚姻状况" input-align="right" autocomplete="off">
  680. <template #input>
  681. <van-radio-group v-model="nhform.hyzk" direction="horizontal">
  682. <van-radio v-for="dict in hyzkOptions" :key="dict.dictValue" :name="dict.dictValue">{{dict.dictLabel}}</van-radio>
  683. </van-radio-group>
  684. </template>
  685. </van-field>
  686. <van-field
  687. autocomplete="off"
  688. input-align="right"
  689. v-model="nhform.phone"
  690. name="电话号码"
  691. label="电话号码"
  692. placeholder="电话号码"
  693. />
  694. <van-field
  695. autocomplete="off"
  696. input-align="right"
  697. v-model="nhform.occupationName"
  698. name="职业"
  699. label="职业"
  700. placeholder="职业"
  701. required
  702. readonly
  703. :rules="[{ required: true, message: '职业不能为空' }]"
  704. @click="showhzoccupation = true"
  705. />
  706. <van-field
  707. autocomplete="off"
  708. v-model="nhform.occupation"
  709. style="display:none"
  710. />
  711. <van-field
  712. autocomplete="off"
  713. input-align="right"
  714. v-model="nhform.jzqkName"
  715. name="居住情况"
  716. label="居住情况"
  717. placeholder="居住情况"
  718. required
  719. readonly
  720. :rules="[{ required: true, message: '居住情况不能为空' }]"
  721. @click="showhzjzqk = true"
  722. />
  723. <van-field
  724. autocomplete="off"
  725. v-model="nhform.jzqk"
  726. style="display:none"
  727. />
  728. <van-field
  729. autocomplete="off"
  730. input-align="right"
  731. v-model="nhform.jzhcssfyzfName"
  732. name="在集镇或城市是否有住房"
  733. label="在集镇或城市是否有住房"
  734. placeholder="在集镇或城市是否有住房"
  735. required
  736. readonly
  737. :rules="[{ required: true, message: '在集镇或城市是否有住房不能为空' }]"
  738. @click="showhzjzhcssfyzf = true"
  739. />
  740. <van-field
  741. autocomplete="off"
  742. v-model="nhform.jzhcssfyzf"
  743. style="display:none"
  744. />
  745. <van-field name="radio" label="在其他村庄是否有住房" input-align="right" autocomplete="off">
  746. <template #input>
  747. <van-radio-group v-model="nhform.zqtczsfyzf" direction="horizontal">
  748. <van-radio name="Y">是</van-radio>
  749. <van-radio name="N">否</van-radio>
  750. </van-radio-group>
  751. </template>
  752. </van-field>
  753. <van-field name="radio" label="是否本村村民" input-align="right" autocomplete="off">
  754. <template #input>
  755. <van-radio-group v-model="nhform.sfbccm" direction="horizontal">
  756. <van-radio name="Y">是</van-radio>
  757. <van-radio name="N">否</van-radio>
  758. </van-radio-group>
  759. </template>
  760. </van-field>
  761. <van-field name="radio" label="是否贫困户" input-align="right" autocomplete="off">
  762. <template #input>
  763. <van-radio-group v-model="nhform.sfpkh" direction="horizontal">
  764. <van-radio name="Y">是</van-radio>
  765. <van-radio name="N">否</van-radio>
  766. </van-radio-group>
  767. </template>
  768. </van-field>
  769. <van-field name="radio" label="是否五保户" input-align="right" autocomplete="off">
  770. <template #input>
  771. <van-radio-group v-model="nhform.sfwbh" direction="horizontal">
  772. <van-radio name="Y">是</van-radio>
  773. <van-radio name="N">否</van-radio>
  774. </van-radio-group>
  775. </template>
  776. </van-field>
  777. <van-field
  778. autocomplete="off"
  779. input-align="right"
  780. v-model="nhform.sjlyName"
  781. name="数据来源"
  782. label="数据来源"
  783. placeholder="数据来源"
  784. required
  785. readonly
  786. :rules="[{ required: true, message: '能为空' }]"
  787. @click="showhzsjly = true"
  788. />
  789. <van-field
  790. autocomplete="off"
  791. v-model="nhform.sjly"
  792. style="display:none"
  793. />
  794. <van-field
  795. autocomplete="off"
  796. input-align="right"
  797. v-model="nhform.bz"
  798. name="备注"
  799. label="备注"
  800. placeholder="备注"
  801. />
  802. <div style="text-align:center;overflow:auto;">
  803. <van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" native-type="button" @click="showPopuphncylist(nhform)">查看户内成员列表</van-button>
  804. </div>
  805. <div style="margin: 16px;" v-if="!isFinished">
  806. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  807. </div>
  808. </van-form>
  809. </div>
  810. </van-popup>
  811. <!--户主数据来源-->
  812. <van-popup v-model="showhzsjly" position="bottom">
  813. <van-picker
  814. show-toolbar
  815. :columns="sjlyOptions"
  816. value-key="dictLabel"
  817. @confirm="onConfirmhzsjly"
  818. @cancel="showhzsjly = false"
  819. />
  820. </van-popup>
  821. <!--户内成员数据来源-->
  822. <van-popup v-model="showhncysjly" position="bottom">
  823. <van-picker
  824. show-toolbar
  825. :columns="sjlyOptions"
  826. value-key="dictLabel"
  827. @confirm="onConfirmhncysjly"
  828. @cancel="showhncysjly = false"
  829. />
  830. </van-popup>
  831. <!--集市或城市是否有住房-->
  832. <van-popup v-model="showhzjzhcssfyzf" position="bottom">
  833. <van-picker
  834. show-toolbar
  835. :columns="jzhcssfyzfOptions"
  836. value-key="dictLabel"
  837. @confirm="onConfirmhzjzhcssfyzf"
  838. @cancel="showhzjzhcssfyzf = false"
  839. />
  840. </van-popup>
  841. <!--户主证件类型-->
  842. <van-popup v-model="showhzzjlx" position="bottom">
  843. <van-picker
  844. show-toolbar
  845. :columns="zjlxOptions"
  846. value-key="dictLabel"
  847. @confirm="onConfirmhzzjlx"
  848. @cancel="showhzzjlx = false"
  849. />
  850. </van-popup>
  851. <!--户内成员证件类型-->
  852. <van-popup v-model="showhncyzjlx" position="bottom">
  853. <van-picker
  854. show-toolbar
  855. :columns="zjlxOptions"
  856. value-key="dictLabel"
  857. @confirm="onConfirmhncyzjlx"
  858. @cancel="showhncyzjlx = false"
  859. />
  860. </van-popup>
  861. <!--户内成员与户主关系-->
  862. <van-popup v-model="showhncyyhzgx" position="bottom">
  863. <van-picker
  864. show-toolbar
  865. :columns="yhzgxOptions"
  866. value-key="dictLabel"
  867. @confirm="onConfirmhncyyhzgx"
  868. @cancel="showhncyyhzgx = false"
  869. />
  870. </van-popup>
  871. <!--户内成员职业-->
  872. <van-popup v-model="showhncyoccupation" position="bottom">
  873. <van-picker
  874. show-toolbar
  875. :columns="occupationOptions"
  876. value-key="dictLabel"
  877. @confirm="onConfirmhncyoccupation"
  878. @cancel="showhncyoccupation = false"
  879. />
  880. </van-popup>
  881. <!--户内成员成员备注-->
  882. <van-popup v-model="showhncycybz" position="bottom">
  883. <van-picker
  884. show-toolbar
  885. :columns="cybzOptions"
  886. value-key="dictLabel"
  887. @confirm="onConfirmhncycybz"
  888. @cancel="showhncycybz = false"
  889. />
  890. </van-popup>
  891. <!--户内成员居住情况-->
  892. <van-popup v-model="showhncyjzqk" position="bottom">
  893. <van-picker
  894. show-toolbar
  895. :columns="jzqkOptions"
  896. value-key="dictLabel"
  897. @confirm="onConfirmhncyjzqk"
  898. @cancel="showhncyjzqk = false"
  899. />
  900. </van-popup>
  901. <!--户主职业-->
  902. <van-popup v-model="showhzoccupation" position="bottom">
  903. <van-picker
  904. show-toolbar
  905. :columns="occupationOptions"
  906. value-key="dictLabel"
  907. @confirm="onConfirmhzoccupation"
  908. @cancel="showhzoccupation = false"
  909. />
  910. </van-popup>
  911. <!--户主居住情况-->
  912. <van-popup v-model="showhzjzqk" position="bottom">
  913. <van-picker
  914. show-toolbar
  915. :columns="jzqkOptions"
  916. value-key="dictLabel"
  917. @confirm="onConfirmhzjzqk"
  918. @cancel="showhzjzqk = false"
  919. />
  920. </van-popup>
  921. <van-popup v-model="showhncylist" style="height:100%;width:100%;">
  922. <div class="bannerBg">
  923. <van-nav-bar
  924. style="background:transparent;border-bottom-width:0;"
  925. @click-left="showhncylist=false"
  926. >
  927. <template #left>
  928. <van-icon name="arrow-left" size="18" color="#fff" />
  929. </template>
  930. <template #title>
  931. <p style="color:#fff">户内成员列表</p>
  932. </template>
  933. </van-nav-bar>
  934. </div>
  935. <van-swipe-cell v-for="(item,index) in hncylist" :key="index" @click.native="showPopuphncy(item)" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px auto;background:#fff;">
  936. <div style="padding:20px;">
  937. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="wap-home" color="#22b7f2" size="20" style="margin-right:10px;"/>
  938. {{item.xm}}</p>
  939. <div style="display:flex;line-height:20px">
  940. <p style="flex:1;text-align:left;">证件号码</p>
  941. <p style="flex:1;text-align:right;">{{item.zjhm}}</p>
  942. </div>
  943. <div style="display:flex;line-height:20px">
  944. <p style="flex:1;text-align:left;">与户主关系</p>
  945. <p style="flex:1;text-align:right;">{{yhzgxfy(item.yhzgx)}}</p>
  946. </div>
  947. </div>
  948. <template #right v-if="!isFinished">
  949. <van-button square text="设为户主" type="primary" style="height:100%" @click="setNh(item,index)"/>
  950. <van-button square text="删除" type="danger" style="height:100%" @click="deletehncy(item.id,index)" />
  951. </template>
  952. </van-swipe-cell>
  953. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;" v-if="!isFinished">
  954. <div style="text-align:center;" >
  955. <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopuphncy('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加户内成员信息</p>
  956. </div>
  957. </div>
  958. </van-popup>
  959. <van-popup v-model="showhncy" style="height:100%;width:100%;">
  960. <div class="bannerBg">
  961. <van-nav-bar
  962. style="background:transparent;border-bottom-width:0;"
  963. @click-left="showhncy=!showhncy"
  964. >
  965. <template #left>
  966. <van-icon name="arrow-left" size="18" color="#fff" />
  967. </template>
  968. <template #title>
  969. <p style="color:#fff">户内成员</p>
  970. </template>
  971. </van-nav-bar>
  972. </div>
  973. <div style="margin:20px;">
  974. <van-form @submit="onSubmithncy">
  975. <van-field
  976. autocomplete="off"
  977. input-align="right"
  978. v-model="form5.nhdm"
  979. name="农户代码"
  980. label="农户代码"
  981. placeholder="农户代码"
  982. disabled
  983. required
  984. :rules="[{ required: true, message: '农户代码不能为空' }]"
  985. />
  986. <van-field
  987. autocomplete="off"
  988. input-align="right"
  989. v-model="form5.xm"
  990. name="姓名"
  991. label="姓名"
  992. placeholder="姓名"
  993. required
  994. :rules="[{ required: true, message: '姓名不能为空' }]"
  995. />
  996. <van-field
  997. autocomplete="off"
  998. input-align="right"
  999. v-model="form5.zjlxName"
  1000. name="证件类型"
  1001. label="证件类型"
  1002. placeholder="证件类型"
  1003. required
  1004. :rules="[{ required: true, message: '证件类型不能为空' }]"
  1005. readonly
  1006. @click="showhncyzjlx = true"
  1007. />
  1008. <van-field
  1009. autocomplete="off"
  1010. v-model="form5.zjlx"
  1011. style="display:none"
  1012. />
  1013. <van-field
  1014. autocomplete="off"
  1015. input-align="right"
  1016. v-model="form5.yhzgxName"
  1017. name="与户主关系"
  1018. label="与户主关系"
  1019. placeholder="与户主关系"
  1020. required
  1021. :rules="[{ required: true, message: '与户主关系不能为空' }]"
  1022. @click="showhncyyhzgx = true"
  1023. />
  1024. <van-field
  1025. autocomplete="off"
  1026. v-model="form5.yhzgx"
  1027. style="display:none"
  1028. />
  1029. <van-field
  1030. autocomplete="off"
  1031. input-align="right"
  1032. v-model="form5.zjhm"
  1033. name="证件号码"
  1034. label="证件号码"
  1035. placeholder="证件号码"
  1036. required
  1037. :rules="[{ required: true, message: '证件号码不能为空' },{validator:validatorIdcardhncy,message:'身份证号格式错误!'}]"
  1038. />
  1039. <van-field autocomplete="off" name="radio" label="性别" input-align="right" required
  1040. :rules="[{ required: true, message: '性别不能为空' }]">
  1041. <template #input>
  1042. <van-radio-group v-model="form5.xb" direction="horizontal">
  1043. <van-radio name="1">男</van-radio>
  1044. <van-radio name="0">女</van-radio>
  1045. <van-radio name="2">未知</van-radio>
  1046. </van-radio-group>
  1047. </template>
  1048. </van-field>
  1049. <van-field
  1050. autocomplete="off"
  1051. input-align="right"
  1052. v-model="form5.lxdh"
  1053. name="联系电话"
  1054. label="联系电话"
  1055. placeholder="联系电话"
  1056. />
  1057. <van-field name="radio" label="户口类型" input-align="right" autocomplete="off">
  1058. <template #input>
  1059. <van-radio-group v-model="form5.hklx" direction="horizontal">
  1060. <van-radio name="1">农业</van-radio>
  1061. <van-radio name="0">非农业</van-radio>
  1062. </van-radio-group>
  1063. </template>
  1064. </van-field>
  1065. <van-field name="radio" label="婚姻状况" input-align="right" autocomplete="off">
  1066. <template #input>
  1067. <van-radio-group v-model="form5.hyzk" direction="horizontal">
  1068. <van-radio v-for="dict in hyzkOptions" :key="dict.dictValue" :name="dict.dictValue">{{dict.dictLabel}}</van-radio>
  1069. </van-radio-group>
  1070. </template>
  1071. </van-field>
  1072. <van-field name="radio" label="是否本集体经济组织成员" input-align="right" autocomplete="off">
  1073. <template #input>
  1074. <van-radio-group v-model="form5.sfbjtjjzzcy" direction="horizontal">
  1075. <van-radio name="Y">是</van-radio>
  1076. <van-radio name="N">否</van-radio>
  1077. </van-radio-group>
  1078. </template>
  1079. </van-field>
  1080. <van-field
  1081. autocomplete="off"
  1082. input-align="right"
  1083. v-model="form5.cybzName"
  1084. name="成员备注"
  1085. label="成员备注"
  1086. placeholder="成员备注"
  1087. @click="showhncycybz = true"
  1088. />
  1089. <van-field
  1090. autocomplete="off"
  1091. v-model="form5.cybz"
  1092. style="display:none"
  1093. />
  1094. <van-field
  1095. autocomplete="off"
  1096. input-align="right"
  1097. v-model="form5.cybzsm"
  1098. name="成员备注说明"
  1099. label="成员备注说明"
  1100. placeholder="成员备注说明"
  1101. />
  1102. <van-field
  1103. autocomplete="off"
  1104. input-align="right"
  1105. v-model="form5.occupationName"
  1106. name="职业"
  1107. label="职业"
  1108. placeholder="职业"
  1109. required
  1110. :rules="[{ required: true, message: '' }]"
  1111. @click="showhncyoccupation = true"
  1112. />
  1113. <van-field
  1114. autocomplete="off"
  1115. v-model="form5.occupation"
  1116. style="display:none"
  1117. />
  1118. <van-field
  1119. autocomplete="off"
  1120. input-align="right"
  1121. v-model="form5.jzqkName"
  1122. name="居住情况"
  1123. label="居住情况"
  1124. placeholder="居住情况"
  1125. required
  1126. :rules="[{ required: true, message: '' }]"
  1127. @click="showhncyjzqk = true"
  1128. />
  1129. <van-field
  1130. autocomplete="off"
  1131. v-model="form5.jzqk"
  1132. style="display:none"
  1133. />
  1134. <van-field name="radio" label="是否贫困户" input-align="right" autocomplete="off">
  1135. <template #input>
  1136. <van-radio-group v-model="form5.sfpkh" direction="horizontal">
  1137. <van-radio name="Y">是</van-radio>
  1138. <van-radio name="N">否</van-radio>
  1139. </van-radio-group>
  1140. </template>
  1141. </van-field>
  1142. <van-field name="radio" label="是否五保户" input-align="right" autocomplete="off">
  1143. <template #input>
  1144. <van-radio-group v-model="form5.sfwbh" direction="horizontal">
  1145. <van-radio name="Y">是</van-radio>
  1146. <van-radio name="N">否</van-radio>
  1147. </van-radio-group>
  1148. </template>
  1149. </van-field>
  1150. <van-field
  1151. autocomplete="off"
  1152. input-align="right"
  1153. v-model="form5.sjlyName"
  1154. name="数据来源"
  1155. label="数据来源"
  1156. placeholder="数据来源"
  1157. required
  1158. :rules="[{ required: true, message: '' }]"
  1159. @click="showhncysjly = true"
  1160. />
  1161. <van-field
  1162. autocomplete="off"
  1163. v-model="form5.sjly"
  1164. style="display:none"
  1165. />
  1166. <div style="margin: 16px;" v-if="!isFinished">
  1167. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  1168. </div>
  1169. </van-form>
  1170. </div>
  1171. </van-popup>
  1172. <!--绘制结束弹窗开始-->
  1173. <van-popup v-model:show="showhzht" style="width: 94%;border-radius: 15PX" :close-on-click-overlay="false">
  1174. <div style="padding: 5px 3% 3%;">
  1175. <h1 style="font-size: 0.35rem;font-weight: 400;border-bottom: 1px solid #ccc; line-height: 0.8rem;"><i style="display: inline-block;width: 1%;height: 0.4rem;background: #7ac943;vertical-align: middle;margin-right: 1%;"></i>是否完成绘制</h1>
  1176. <div style="text-align: center;margin-top: 3%;">
  1177. <p style="font-size: 0.3rem;display: inline-block;background: #ccc;padding: 2% 0;border-radius: 30PX;color: #FFF;margin-right: 10%;width: 40%" @click="deleteHistory">否</p>
  1178. <p style="font-size: 0.3rem;display: inline-block;background: #7ac943;padding: 2% 0;border-radius: 30PX;color: #FFF;width: 40%" @click="showhzlx = true,showhzht = false">是</p>
  1179. </div>
  1180. </div>
  1181. </van-popup>
  1182. <!-- background: #ccc -->
  1183. <van-popup v-model:show="showhzlx" style="width: 94%;border-radius: 15PX">
  1184. <div style="padding: 5px 3% 3%;">
  1185. <h1 style="font-size: 0.35rem;font-weight: 400;border-bottom: 1px solid #ccc; line-height: 0.8rem;"><i style="display: inline-block;width: 1%;height: 0.4rem;background: #7ac943;vertical-align: middle;margin-right: 1%;"></i>请选择绘制类型<van-icon name="cross" color="#666666" style="position: absolute;right: 2%;top: 0.1rem" @click="showhzlx = false,showhzht = true" /></h1>
  1186. <div style="text-align: center;margin-top: 3%;">
  1187. <p class="hzlxBtn" :style="{background: mapZjdData ? '#CCC':'#7ac943'}" @click="zjdTz">宅基地</p>
  1188. <p class="hzlxBtn" :style="{background: mapZjdData ? '#b026ff':'#CCC'}" @click="zrzTz">自然幢</p>
  1189. <p class="hzlxBtn" :style="{background: mapZjdData ? '#3ac2db':'#CCC'}" @click="fsssTz">附属设施</p>
  1190. </div>
  1191. </div>
  1192. </van-popup>
  1193. <!--绘制结束弹窗结束-->
  1194. </div>
  1195. </template>
  1196. <script>
  1197. import {listZjdzd,getQueryLand,getZjdzd,delZjdzdInfo,uploadFile,submitUploadImageList} from "@/api/homesteadSurvey/zjdzd";
  1198. import {addNh, delNh, exportNh, getNh, listNh, updateNh,setNhInfo} from "@/api/homesteadSurvey/nh";
  1199. import {addNhhncy, delNhhncy, exportNhhncy, getNhhncy, listNhhncy, updateNhhncy} from "@/api/homesteadSurvey/nhhncy";
  1200. import {listShyqr,setSyqrInfo} from "@/api/homesteadSurvey/shyqr";
  1201. import {listSuyqr,updateSuyqr,addSuyqr} from "@/api/homesteadSurvey/suyqr";
  1202. import {listZrz,getZrzZjdDmList,getZrz} from "@/api/homesteadSurvey/zrz";
  1203. import {listFsss,getFsssZjdDmList,getFsss} from "@/api/homesteadSurvey/fsss";
  1204. import {getGeoServerConfigKey} from "@/api/system/config";
  1205. import { listTown, getTown } from "@/api/homesteadSurvey/town";
  1206. import { listVillage} from "@/api/homesteadSurvey/village";
  1207. import $ from "jquery";
  1208. import {Dialog} from "vant";
  1209. import {ref} from "vue";
  1210. import axios from "axios";
  1211. export default {
  1212. name: "homesteadList",
  1213. data() {
  1214. return {
  1215. loading1:false,
  1216. finished1:false,
  1217. loading2:false,
  1218. finished2:false,
  1219. loading3:false,
  1220. finished3:false,
  1221. //全部
  1222. qbNums:0,
  1223. //已调查数量
  1224. yhcNums:0,
  1225. //未核查数量
  1226. whcNums:0,
  1227. // 总户数
  1228. totalH:0,
  1229. // 总人数
  1230. totalR:0,
  1231. zjdSx:true,
  1232. zrzSx :true,
  1233. fsssSx:true,
  1234. showhncysjly:false,
  1235. showhzsjly:false,
  1236. showhncycybz:false,
  1237. showhncyzjlx:false,
  1238. showhncyyhzgx:false,
  1239. showhzjzhcssfyzf:false,
  1240. showhncyoccupation:false,
  1241. showhncyjzqk:false,
  1242. showhzoccupation:false,
  1243. showhzjzqk:false,
  1244. // 下拉刷新
  1245. isLoadingnh:false,
  1246. countnh:0,
  1247. isLoadingzjd:false,
  1248. countqb:1,
  1249. countyhc:1,
  1250. countwhc:1,
  1251. // 使用权人表单弹出
  1252. shownh:false,
  1253. showhzht:false,
  1254. showhzlx:false,
  1255. showhncylist:false,
  1256. showhncy:false,
  1257. activeBtn:1,
  1258. value:'',
  1259. // 宅基地搜索框
  1260. zjdvalue:"",
  1261. // 使用权人搜索框
  1262. nhvalue:"",
  1263. active:2,
  1264. // 全部列表
  1265. list:[],
  1266. // 已核查列表
  1267. list1:[],
  1268. // 未核查列表
  1269. list2:[],
  1270. // 户主列表
  1271. nhlist:[],
  1272. // 户内成员表单
  1273. form5: {},
  1274. // 户内成员列表
  1275. hncylist:[],
  1276. currentRate:20,
  1277. // 使用权人
  1278. nhform:[],
  1279. // 户主列表
  1280. hzform:{},
  1281. // 权利人列表
  1282. qlrform:[],
  1283. // 权利人性质弹出框
  1284. showsuyqxz:false,
  1285. // 代理人证件类型弹出框
  1286. showdlrzjlx:false,
  1287. // 代表人证件类型弹出框
  1288. showdbrzjlx:false,
  1289. // 数据来源弹出框
  1290. showsjly:false,
  1291. // 证件类型字典
  1292. zjlxOptions: [],
  1293. // 所有权性质字典
  1294. suyqxzOption: [],
  1295. // 婚姻状况字典
  1296. hyzkOptions:[],
  1297. // 数据来源字典
  1298. sjlyOptions:[],
  1299. // 居住情况字典
  1300. jzqkOptions:[],
  1301. // 与户主关系字典
  1302. yhzgxOptions:[],
  1303. // 职业字典
  1304. occupationOptions:[],
  1305. // 集镇或城市是否有住房字典
  1306. jzhcssfyzfOptions:[],
  1307. // 成员备注字典
  1308. cybzOptions:[],
  1309. columns:[],
  1310. show1:false,
  1311. showhzzjlx: false,
  1312. // 路由传过来的任务基本信息。
  1313. item: {},
  1314. //地图使用 --start
  1315. openMap: false,
  1316. mapTheGeomZrzId: null,
  1317. mapTheGeomZjdId: null,
  1318. mapTheGeomFsssId: null,
  1319. drawInsert:null,
  1320. mapZjdData:"",
  1321. mapZrzData:"",
  1322. mapFsssData:"",
  1323. mapZjdDataTure:"",
  1324. mapZjdTeAll:{
  1325. active:"",
  1326. mapZjdAData:{},
  1327. mapZrzAData:{},
  1328. mapFsssAData:{},
  1329. },
  1330. mapHaDataValue:false,
  1331. mapHasDateStatus: 0, //0附属设施 1自然幢 2宅基地
  1332. selectionIconShow:false,
  1333. homesteadListStatus:false,
  1334. //地图绘制状态
  1335. draw: {
  1336. drawMapPolygon: false, //绘制地图
  1337. },
  1338. mapTownList: null,
  1339. mapVillageList: null,
  1340. coordinate:"",
  1341. checked:['zjdSx', 'zrzSx', 'fsssSx'],
  1342. checkAllMap: false,
  1343. sx:"",
  1344. drawingClick:true,
  1345. //搜索---start
  1346. seachText: "",
  1347. //搜索栏目-操作栏显隐
  1348. searchBarOperVisbile: false,
  1349. mapDataAll: [],
  1350. showSearch:false,
  1351. bottomHeight:'0px',
  1352. //搜索---end
  1353. //测面
  1354. textMjAll:"",
  1355. clickBbox:"",
  1356. textMjAllNum:"",
  1357. //核查
  1358. zjdHcDy:"",
  1359. //绘图
  1360. htZjdZrzFsss:"",
  1361. //筛选
  1362. checkAllFlag: true,
  1363. CheckedAllArr: [],//全选数组
  1364. dataForm: {
  1365. imageUrl: []
  1366. },
  1367. dataList: [["fsssSx"],["zjdSx"],["zrzSx"]], //地图使用 --end
  1368. checkBoxAll:[],
  1369. //地图跳转存之
  1370. mapAddJump:"",
  1371. mapAddJumpNum:"",
  1372. nhdm:"",
  1373. backTheGeom:"",
  1374. //地图服务地址
  1375. mapGeoServerUrl:"",
  1376. backMap:"",
  1377. // 任务完成标记
  1378. isFinished:false,
  1379. //
  1380. showImageList:false,
  1381. uploadImgList:[],
  1382. uploadImgList1:[],
  1383. // 字典列表json
  1384. dictTypeList:null,
  1385. };
  1386. },
  1387. mounted(){
  1388. },
  1389. created(){
  1390. axios.get('../static/dictyType.json').then(res => {
  1391. this.dictTypeList = res.data
  1392. this.zjlxOptions = this.dictTypeList.zjlx;
  1393. this.suyqxzOptions = this.dictTypeList.qsxz;
  1394. this.sjlyOptions = this.dictTypeList.sjly;
  1395. this.hyzkOptions = this.dictTypeList.hyzk;
  1396. this.occupationOptions = this.dictTypeList.occupation;
  1397. this.jzqkOptions = this.dictTypeList.living_condition;
  1398. this.jzhcssfyzfOptions = this.dictTypeList.jzhcssfyzf;
  1399. this.cybzOptions = this.dictTypeList.member_remark;
  1400. })
  1401. this.getDicts("family_status").then(response => {
  1402. var arr = [];
  1403. response.data.forEach(function (item) {
  1404. if (item.dictLabel !== '户主') {
  1405. arr.push(item)
  1406. }
  1407. });
  1408. this.yhzgxOptions = arr;
  1409. });
  1410. if(this.$cookies.get("search") != null && this.$cookies.get("search") !="" && this.$cookies.get("search")!=undefined){
  1411. if(this.$cookies.get("search").activeBtn !=null){
  1412. if(this.$cookies.get("search").activeBtn == 4){
  1413. // if(location.href.indexOf("#reloaded")==-1){
  1414. // location.href=location.href+"#reloaded";
  1415. // location.reload();
  1416. // }
  1417. this.activeBtn = this.$cookies.get("search").activeBtn;
  1418. this.item = this.$cookies.get("item");
  1419. this.mapAddJump = this.$cookies.get("search").backMapZjdAData.deptId;
  1420. this.backTheGeom = this.$cookies.get("search").backMapZjdAData.theGeom;
  1421. this.mapZjdData = this.$cookies.get("search").backMapZjdAData;
  1422. this.mapZjdTeAll.mapZjdAData = this.$cookies.get("search").backMapZjdAData;
  1423. this.zjdHcDy = 1;
  1424. this.mapZjdDataTure = 1;
  1425. this.mapAddJumpNum =1;
  1426. this.mapShow();
  1427. this.getZjdList();
  1428. this.getTotalHR();
  1429. if(this.item.taskStatus=="FINISHED"){
  1430. this.isFinished = true
  1431. }else{
  1432. this.isFinished = false
  1433. }
  1434. }
  1435. }else {
  1436. this.item = this.$cookies.get("item");
  1437. this.getZjdList();
  1438. this.getTotalHR();
  1439. if(this.item.taskStatus=="FINISHED"){
  1440. this.isFinished = true
  1441. }else{
  1442. this.isFinished = false
  1443. }
  1444. }
  1445. }else {
  1446. this.item = this.$cookies.get("item");
  1447. this.getZjdList();
  1448. this.getTotalHR();
  1449. if(this.item.taskStatus=="FINISHED"){
  1450. this.isFinished = true
  1451. }else{
  1452. this.isFinished = false
  1453. }
  1454. }
  1455. },
  1456. methods: {
  1457. showUploadList(){
  1458. this.showImageList = true;
  1459. },
  1460. submitUploadList(){
  1461. submitUploadImageList(this.uploadImgList1).then(res => {
  1462. let _this = this
  1463. this.$toast({
  1464. icon: 'success', // 找到自己需要的图标
  1465. message: '上传成功',
  1466. duration:"1000",
  1467. onClose:function(){
  1468. _this.showImageList = false
  1469. }
  1470. })
  1471. })
  1472. },
  1473. // 图片上传前
  1474. beforeReadImageList(file){
  1475. let _this = this
  1476. if(file.length!=undefined){
  1477. file.map(res => {
  1478. let zjddm = res.file.name
  1479. //zjddm=zjddm.substring(0,zjddm.lastIndexOf("\("));
  1480. // 创建Canvas对象(画布)
  1481. let canvas = document.createElement('canvas')
  1482. // 获取对应的CanvasRenderingContext2D对象(画笔)
  1483. let context = canvas.getContext('2d')
  1484. // 创建新的图片对象
  1485. let img = new Image()
  1486. // 指定图片的DataURL(图片的base64编码数据)
  1487. img.src = res.content
  1488. // 监听浏览器加载图片完成,然后进行进行绘制
  1489. img.onload = () => {
  1490. /*const h = img.height
  1491. const w = img.width*/
  1492. let ch = img.height/5
  1493. let cw = img.width/5
  1494. let canvas = document.createElement('canvas')
  1495. let ctx = canvas.getContext('2d')
  1496. canvas.height = ch
  1497. canvas.width = cw
  1498. ctx.clearRect(0,0,cw,ch)
  1499. ctx.drawImage(img,0,0,cw,ch)
  1500. let base_img = canvas.toDataURL('image/jpeg')
  1501. let blobBin = atob(base_img.split(',')[1])
  1502. let d = []
  1503. for (let i=0;i<blobBin.length;i++){
  1504. d.push(blobBin.charCodeAt(i))
  1505. }
  1506. let data2 = new FormData();
  1507. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  1508. uploadFile(data2).then(response => {
  1509. let p={
  1510. "zjddm":zjddm,
  1511. "url":response.fileName
  1512. }
  1513. _this.uploadImgList1.push(p)
  1514. })
  1515. }
  1516. })
  1517. }else{
  1518. let zjddm = file.file.name
  1519. //zjddm=zjddm.substring(0,zjddm.lastIndexOf("\("));
  1520. // 创建Canvas对象(画布)
  1521. let canvas = document.createElement('canvas')
  1522. // 获取对应的CanvasRenderingContext2D对象(画笔)
  1523. let context = canvas.getContext('2d')
  1524. // 创建新的图片对象
  1525. let img = new Image()
  1526. // 指定图片的DataURL(图片的base64编码数据)
  1527. img.src = file.content
  1528. // 监听浏览器加载图片完成,然后进行进行绘制
  1529. img.onload = () => {
  1530. /*const h = img.height
  1531. const w = img.width*/
  1532. let ch = img.height/5
  1533. let cw = img.width/5
  1534. let canvas = document.createElement('canvas')
  1535. let ctx = canvas.getContext('2d')
  1536. canvas.height = ch
  1537. canvas.width = cw
  1538. ctx.clearRect(0,0,cw,ch)
  1539. ctx.drawImage(img,0,0,cw,ch)
  1540. let base_img = canvas.toDataURL('image/jpeg')
  1541. let blobBin = atob(base_img.split(',')[1])
  1542. let d = []
  1543. for (let i=0;i<blobBin.length;i++){
  1544. d.push(blobBin.charCodeAt(i))
  1545. }
  1546. let data2 = new FormData();
  1547. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  1548. uploadFile(data2).then(response => {
  1549. let p={
  1550. "zjddm":zjddm,
  1551. "url":response.fileName
  1552. }
  1553. _this.uploadImgList1.push(p)
  1554. })
  1555. }
  1556. }
  1557. },
  1558. deleteFileImageList(file){
  1559. let url = file.file.name
  1560. this.uploadImgList1.map((res,index) => {
  1561. if(res.zjddm==url){
  1562. this.uploadImgList1.remove(index);
  1563. }
  1564. })
  1565. },
  1566. validatorIdcardqlr(val){
  1567. if(this.qlrform.dbrzjlx=='01'){
  1568. if(this.vcheckID(val)){
  1569. return true
  1570. }else {
  1571. return false
  1572. }
  1573. }else{
  1574. return true
  1575. }
  1576. },
  1577. validatorIdcardnh(val){
  1578. if(this.nhform.hzzjlx=='01'){
  1579. if(this.vcheckID(val)){
  1580. return true
  1581. }else {
  1582. return false
  1583. }
  1584. }else{
  1585. return true
  1586. }
  1587. },
  1588. validatorIdcardhncy(val){
  1589. if(this.form5.zjlx=='01'){
  1590. if(this.vcheckID(val)){
  1591. return true
  1592. }else {
  1593. return false
  1594. }
  1595. }else{
  1596. return true
  1597. }
  1598. },
  1599. checkCode(val) {
  1600. var p = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
  1601. var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ];
  1602. var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ];
  1603. var code = val.substring(17);
  1604. if(p.test(val)) {
  1605. var sum = 0;
  1606. for(var i=0;i<17;i++) {
  1607. sum += val[i]*factor[i];
  1608. }
  1609. if(parity[sum % 11] == code.toUpperCase()) {
  1610. return true;
  1611. }
  1612. }
  1613. return false;
  1614. },
  1615. checkDate (val) {
  1616. var pattern = /^(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)$/;
  1617. if(pattern.test(val)) {
  1618. var year = val.substring(0, 4);
  1619. var month = val.substring(4, 6);
  1620. var date = val.substring(6, 8);
  1621. var date2 = new Date(year+"-"+month+"-"+date);
  1622. if(date2 && date2.getMonth() == (parseInt(month) - 1)) {
  1623. return true;
  1624. }
  1625. }
  1626. return false;
  1627. },
  1628. checkProv(val) {
  1629. var pattern = /^[1-9][0-9]/;
  1630. var provs = {11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门"};
  1631. if(pattern.test(val)) {
  1632. if(provs[val]) {
  1633. return true;
  1634. }
  1635. }
  1636. return false;
  1637. },
  1638. vcheckID(val){
  1639. if(this.checkCode(val)) {
  1640. var date = val.substring(6,14);
  1641. if(this.checkDate(date)) {
  1642. if(this.checkProv(val.substring(0,2))) {
  1643. return true;
  1644. }
  1645. }
  1646. }
  1647. return false;
  1648. },
  1649. deleteZjd(item,index){
  1650. Dialog.confirm({
  1651. title: '警告',
  1652. message: '将删除与此宅基地关联的使用权人,自然幢,房屋,附属设施等所有信息,同时删除后无法恢复,确认删除么?',
  1653. })
  1654. .then(() => {
  1655. // on confirm
  1656. delZjdzdInfo(item).then(res => {
  1657. if(res.code=="200"){
  1658. if(this.active==1){
  1659. this.list1.splice(index,1);
  1660. }else if(this.active==2){
  1661. this.list2.splice(index,1);
  1662. }else{
  1663. this.list.splice(index,1);
  1664. }
  1665. }
  1666. })
  1667. })
  1668. .catch(() => {
  1669. // on cancel
  1670. });
  1671. },
  1672. //删除户主
  1673. deletenh(item,index){
  1674. let yes = true
  1675. let params={
  1676. nhdm : item.nhdm,
  1677. deptId: item.deptId
  1678. }
  1679. listNhhncy(params).then((res) => {
  1680. console.log(res.rows.length)
  1681. if(res.rows.length>0){
  1682. yes = false
  1683. this.$toast({
  1684. icon: 'error', // 找到自己需要的图标
  1685. message: '无法删除,此户主存在户内成员!',
  1686. duration:"1000",
  1687. onClose:function(){
  1688. }
  1689. })
  1690. }else{
  1691. listShyqr(params).then((res) => {
  1692. if(res.rows.length>0){
  1693. yes = false
  1694. this.$toast({
  1695. icon: 'error', // 找到自己需要的图标
  1696. message: '无法删除,此户主已经成为使用权人!',
  1697. duration:"1000",
  1698. onClose:function(){
  1699. }
  1700. })
  1701. }else{
  1702. if(yes){
  1703. Dialog.confirm({
  1704. title: '警告',
  1705. message: '确认删除此使用权人么?',
  1706. })
  1707. .then(() => {
  1708. // on confirm
  1709. delNh(item.id).then(res => {
  1710. if(res.code=="200"){
  1711. this.nhlist.splice(index,1);
  1712. this.totalH--
  1713. this.totalR--
  1714. }
  1715. })
  1716. })
  1717. .catch(() => {
  1718. // on cancel
  1719. });
  1720. }
  1721. }
  1722. });
  1723. }
  1724. });
  1725. },
  1726. // 设为户主
  1727. setNh(item,index){
  1728. Dialog.confirm({
  1729. title: '警告',
  1730. message: '此操作将删除原户主,并将此成员设为新户主,是否确认操作?',
  1731. })
  1732. .then(() => {
  1733. // on confirm
  1734. delNhhncy(item.id).then(res => {
  1735. if(res.code=="200"){
  1736. this.hncylist.splice(index,1);
  1737. this.totalR--
  1738. }
  1739. })
  1740. // 更新户主信息
  1741. let pnh = {
  1742. deptId : item.deptId,
  1743. nhdm : item.nhdm,
  1744. hzxm:item.xm,
  1745. hzzjlx :item.zjlx,
  1746. hzzjhm :item.zjhm
  1747. }
  1748. setNhInfo(pnh).then(res => {
  1749. })
  1750. // 更新使用权人
  1751. let psyqr = {
  1752. deptId : item.deptId,
  1753. nhdm : item.nhdm,
  1754. shyqrdbxm : item.xm,
  1755. shyqrdbzjlx : item.zjlx,
  1756. shyqrdbzjhm : item.zjhm,
  1757. xb : item.xb
  1758. }
  1759. setSyqrInfo(psyqr).then(res => {
  1760. })
  1761. })
  1762. .catch(() => {
  1763. // on cancel
  1764. });
  1765. },
  1766. //删除户内成员
  1767. deletehncy(id,index){
  1768. Dialog.confirm({
  1769. title: '警告',
  1770. message: '删除后无法恢复,确认删除此成员么?',
  1771. })
  1772. .then(() => {
  1773. // on confirm
  1774. delNhhncy(id).then(res => {
  1775. if(res.code=="200"){
  1776. this.hncylist.splice(index,1);
  1777. this.totalR--
  1778. }
  1779. })
  1780. })
  1781. .catch(() => {
  1782. // on cancel
  1783. });
  1784. },
  1785. // 字数限制
  1786. limitWords(val){
  1787. if(val==null||val==""){
  1788. return "无"
  1789. }else{
  1790. if(val.length>11){
  1791. val = val.slice(0,10) +"..."
  1792. }
  1793. return val
  1794. }
  1795. },
  1796. // 与户主关系翻译
  1797. yhzgxfy(value){
  1798. let label
  1799. this.yhzgxOptions.map(res => {
  1800. if(res.dictValue == value){
  1801. label = res.dictLabel
  1802. }
  1803. })
  1804. return label
  1805. },
  1806. onRefreshzjd(){
  1807. this.isLoadingzjd = false;
  1808. let _this = this
  1809. if(this.active==1&&this.loading2){
  1810. let params = {
  1811. "deptId" : this.item.deptId,
  1812. "houseDataConfirmStatus" : "CONFIRMED",
  1813. "pageNum": this.countyhc+1,
  1814. "pageSize":10,
  1815. }
  1816. listZjdzd(params).then((response) => {
  1817. if(response.rows.length>0&&this.list1.length<response.total){
  1818. response.rows.map(res => {
  1819. this.list1.push(res)
  1820. })
  1821. this.countyhc++
  1822. this.loading2 = false
  1823. }else{
  1824. this.loading2 = false
  1825. this.finished2 = true
  1826. }
  1827. });
  1828. }else if(this.active==2&&this.loading3){
  1829. let params = {
  1830. "deptId" : this.item.deptId,
  1831. "houseDataConfirmStatus" : "UNCONFIRMED",
  1832. "pageNum": this.countwhc+1,
  1833. "pageSize":10,
  1834. }
  1835. listZjdzd(params).then((response) => {
  1836. if(response.rows.length>0&&this.list2.length<response.total){
  1837. response.rows.map(res => {
  1838. this.list2.push(res)
  1839. })
  1840. this.countwhc++
  1841. this.loading3 = false
  1842. }else{
  1843. this.finished3 = true
  1844. }
  1845. });
  1846. }else if(this.active==0&&this.loading1){
  1847. let params = {
  1848. "deptId" : this.item.deptId,
  1849. "pageNum": this.countqb+1,
  1850. "pageSize":10,
  1851. }
  1852. listZjdzd(params).then((response) => {
  1853. if(response.rows.length>0&&this.list.length<response.total){
  1854. response.rows.map(res => {
  1855. _this.list.push(res)
  1856. })
  1857. this.countqb++
  1858. this.loading1 = false
  1859. }else{
  1860. this.finished1 = true
  1861. }
  1862. });
  1863. }
  1864. },
  1865. getTotalHR(){
  1866. let params = {
  1867. "deptId" : this.item.deptId,
  1868. "pageNum": 1,
  1869. "pageSize":10,
  1870. }
  1871. listNh(params).then((response) => {
  1872. if(response.rows.length>=0){
  1873. this.totalH = response.total
  1874. }
  1875. listNhhncy(params).then((res) => {
  1876. if(res.rows.length>=0){
  1877. this.totalR = res.total + this.totalH
  1878. }
  1879. });
  1880. });
  1881. },
  1882. onRefreshnh(){
  1883. this.isLoadingnh = false
  1884. let params = {
  1885. "deptId" : this.item.deptId,
  1886. "pageNum": this.countnh+1,
  1887. "pageSize":10,
  1888. }
  1889. listNh(params).then((response) => {
  1890. if(response.rows.length>0&&this.nhlist.length<response.total){
  1891. response.rows.map(res => {
  1892. this.nhlist.unshift(res)
  1893. })
  1894. this.countnh++
  1895. }
  1896. });
  1897. },
  1898. setCookies(item){
  1899. //this.$cookies.set("search",JSON.stringify(item));
  1900. this.$cookies.set("search","");
  1901. // let _this = this
  1902. // setTimeout(function(){
  1903. // _this.$router.push({name:'homesteadAdd'});
  1904. // },1000)
  1905. this.$router.push({path:'/homesteadSurvey/add',query: {res: item}});
  1906. },
  1907. // 入户核查搜索框新增。
  1908. onClickzjd(){
  1909. this.$cookies.remove("search");
  1910. this.$router.push({name:'homesteadAdd'});
  1911. },
  1912. // 农户信息搜索框新增。
  1913. onClicknh(){
  1914. this.shownh = true;
  1915. let params = {
  1916. "deptId" : this.item.deptId
  1917. }
  1918. this.qlrform={}
  1919. this.nhform={
  1920. "suyqrdm":null,
  1921. "deptId":this.item.deptId,
  1922. "hzzjlx":'01',
  1923. "hzzjlxName":"身份证",
  1924. "hyzk":'02',
  1925. "occupation":'1',
  1926. "occupationName":'务农',
  1927. "jzqk":'3',
  1928. "jzqkName":'常年居住',
  1929. "jzhcssfyzf":'1',
  1930. "jzhcssfyzfName":'无住房',
  1931. "zqtczsfyzf":'Y',
  1932. "sfbccm":'Y',
  1933. "sfpkh":'N',
  1934. "sfwbh":'N',
  1935. "sjly":'07',
  1936. "sjlyName":'农村集体产权制度改革',
  1937. }
  1938. listSuyqr(params).then((response) => {
  1939. if(response.rows.length>0){
  1940. this.qlrform = response.rows[0]
  1941. this.nhform.suyqrdm = this.qlrform.suyqrdm
  1942. this.nhform.txdz = response.rows[0].suyqrmc
  1943. }
  1944. });
  1945. },
  1946. // 返回
  1947. onClickLeft(){
  1948. this.$cookies.set("search","")
  1949. this.$router.push('/homesteadSurvey/index');
  1950. },
  1951. onConfirmhncysjly(value){
  1952. this.form5.sjlyName = value.dictLabel
  1953. this.form5.sjly = value.dictValue
  1954. this.showhncysjly= false
  1955. },
  1956. onConfirmhzsjly(value){
  1957. this.nhform.sjlyName = value.dictLabel
  1958. this.nhform.sjly = value.dictValue
  1959. this.showhzsjly= false
  1960. },
  1961. onConfirmhncycybz(value){
  1962. this.form5.cybzName = value.dictLabel
  1963. this.form5.cybz = value.dictValue
  1964. this.showhncycybz= false
  1965. },
  1966. onConfirmhzjzhcssfyzf(value){
  1967. this.nhform.jzhcssfyzfName = value.dictLabel
  1968. this.nhform.jzhcssfyzf = value.dictValue
  1969. this.showhzjzhcssfyzf= false
  1970. },
  1971. onConfirmhncyyhzgx(value){
  1972. this.form5.yhzgxName = value.dictLabel
  1973. this.form5.yhzgx = value.dictValue
  1974. this.showhncyyhzgx = false
  1975. },
  1976. onConfirmhncyzjlx(value){
  1977. this.form5.zjlxName = value.dictLabel
  1978. this.form5.zjlx = value.dictValue
  1979. this.showhncyzjlx = false
  1980. },
  1981. onConfirmhncyjzqk(value){
  1982. this.form5.jzqkName = value.dictLabel
  1983. this.form5.jzqk = value.dictValue
  1984. this.showhncyjzqk = false
  1985. },
  1986. onConfirmhzjzqk(value){
  1987. this.nhform.jzqkName = value.dictLabel
  1988. this.nhform.jzqk = value.dictValue
  1989. this.showhzjzqk = false
  1990. },
  1991. onConfirmhncyoccupation(value){
  1992. this.form5.occupationName = value.dictLabel
  1993. this.form5.occupation = value.dictValue
  1994. this.showhncyoccupation = false
  1995. },
  1996. onConfirmhzoccupation(value){
  1997. this.nhform.occupationName = value.dictLabel
  1998. this.nhform.occupation = value.dictValue
  1999. this.showhzoccupation = false
  2000. },
  2001. onConfirmhzzjlx(value){
  2002. this.nhform.hzzjlxName = value.dictLabel
  2003. this.nhform.hzzjlx = value.dictValue
  2004. this.showhzzjlx = false
  2005. },
  2006. onConfirmdbrzjlx(value){
  2007. this.qlrform.dbrzjlxName = value.dictLabel
  2008. this.qlrform.dbrzjlx = value.dictValue
  2009. this.showdbrzjlx = false
  2010. },
  2011. onConfirmsuyqxz(value){
  2012. this.qlrform.suyqxzName = value.dictLabel
  2013. this.qlrform.suyqxz = value.dictValue
  2014. this.showsuyqxz = false
  2015. },
  2016. onConfirmdlrzjlx(value){
  2017. this.qlrform.dlrzjlxName = value.dictLabel
  2018. this.qlrform.dlrzjlx = value.dictValue
  2019. this.showdlrzjlx = false
  2020. },
  2021. onConfirmsjly(value){
  2022. this.qlrform.sjlyName = value.dictLabel
  2023. this.qlrform.sjly = value.dictValue
  2024. this.showsjly = false
  2025. },
  2026. // 户主保存
  2027. onSubmitnh(){
  2028. if(this.nhform.id!=null){
  2029. updateNh(this.nhform).then(
  2030. response => {
  2031. let _this =this
  2032. this.$toast({
  2033. icon: 'success', // 找到自己需要的图标
  2034. message: '修改成功',
  2035. duration:"1000",
  2036. onClose:function(){
  2037. _this.getNh()
  2038. let psyqr = {
  2039. deptId : _this.nhform.deptId,
  2040. nhdm : _this.nhform.nhdm,
  2041. shyqrdbxm : _this.nhform.hzxm,
  2042. shyqrdbzjlx : _this.nhform.hzzjlx,
  2043. shyqrdbzjhm : _this.nhform.hzzjhm,
  2044. dh : _this.nhform.phone,
  2045. dz : _this.nhform.txdz
  2046. }
  2047. setSyqrInfo(psyqr).then(res => {
  2048. _this.shownh = false
  2049. })
  2050. }
  2051. })
  2052. }
  2053. );
  2054. }else{
  2055. this.nhform.deptId = this.item.deptId
  2056. addNh(this.nhform).then(
  2057. response => {
  2058. this.totalR+=1
  2059. this.totalH+=1
  2060. let _this =this
  2061. this.$toast({
  2062. icon: 'success', // 找到自己需要的图标
  2063. message: '保存成功',
  2064. duration:"1000",
  2065. onClose:function(){
  2066. _this.shownh = false
  2067. _this.getNh()
  2068. }
  2069. })
  2070. }
  2071. );
  2072. }
  2073. },
  2074. // 所有权人保存
  2075. onSubmitsyqr(){
  2076. if(this.qlrform.id!=null){
  2077. updateSuyqr(this.qlrform).then(
  2078. response => {
  2079. let _this =this
  2080. this.$toast({
  2081. icon: 'success', // 找到自己需要的图标
  2082. message: '修改成功',
  2083. duration:"1000"
  2084. })
  2085. }
  2086. );
  2087. }else{
  2088. this.qlrform.deptId = this.item.deptId
  2089. addSuyqr(this.qlrform).then(
  2090. response => {
  2091. let _this =this
  2092. this.$toast({
  2093. icon: 'success', // 找到自己需要的图标
  2094. message: '保存成功',
  2095. duration:"1000"
  2096. })
  2097. }
  2098. );
  2099. }
  2100. },
  2101. // 查询所有权人
  2102. getSyqr(){
  2103. //删除地图选中状态
  2104. $("#deleteHistoryMap").trigger("click");
  2105. let params = {
  2106. "deptId" : this.item.deptId
  2107. }
  2108. this.qlrform ={
  2109. "deptId":this.item.deptId,
  2110. "suyqxz":'40',
  2111. "suyqxzName":'集体土地所有权',
  2112. "dbrzjlx":'01',
  2113. "dbrzjlxName":'身份证',
  2114. "sfclncjtjjzz":'Y',
  2115. "sjly":'04',
  2116. "sjlyName":"农村宅基地使用权确权登记发证"
  2117. }
  2118. listSuyqr(params).then((response) => {
  2119. if(response.rows.length>0){
  2120. this.qlrform = response.rows[0]
  2121. if(this.qlrform.suyqxz==null||this.qlrform.suyqxz==""){
  2122. this.qlrform.suyqxz = "40"
  2123. this.qlrform.suyqxzName = "集体土地所有权"
  2124. }
  2125. if(this.qlrform.dbrzjlx==null||this.qlrform.dbrzjlx==""){
  2126. this.qlrform.dbrzjlx = "01"
  2127. this.qlrform.dbrzjlxName = "身份证"
  2128. }
  2129. if(this.qlrform.sfclncjtjjzz==null||this.qlrform.sfclncjtjjzz==""){
  2130. this.qlrform.sfclncjtjjzz = "Y"
  2131. }
  2132. if(this.qlrform.sjly==null||this.qlrform.sjly==""){
  2133. this.qlrform.sjly = "04"
  2134. this.qlrform.sjlyName = "农村宅基地使用权确权登记发证"
  2135. }
  2136. this.zjlxOptions.map(res => {
  2137. if(res.dictValue == this.qlrform.dbrzjlx){
  2138. this.qlrform.dbrzjlxName = res.dictLabel
  2139. }
  2140. if(res.dictValue == this.qlrform.dlrzjlx){
  2141. this.qlrform.dlrzjlxName = res.dictLabel
  2142. }
  2143. })
  2144. this.suyqxzOptions.map(res => {
  2145. if(res.dictValue == this.qlrform.suyqxz){
  2146. this.qlrform.suyqxzName = res.dictLabel
  2147. }
  2148. })
  2149. this.sjlyOptions.map(res => {
  2150. if(res.dictValue == this.qlrform.sjly){
  2151. this.qlrform.sjlyName = res.dictLabel
  2152. }
  2153. })
  2154. }
  2155. });
  2156. },
  2157. // 查询农户列表
  2158. getNh(){
  2159. //删除地图选中状态
  2160. $("#deleteHistoryMap").trigger("click");
  2161. let params = {
  2162. "deptId" : this.item.deptId
  2163. }
  2164. listNh(params).then((response) => {
  2165. this.nhlist = response.rows
  2166. this.totalN = response.total
  2167. });
  2168. },
  2169. //调查
  2170. getDc(){
  2171. //删除地图选中状态
  2172. $("#deleteHistoryMap").trigger("click");
  2173. },
  2174. // 农户信息搜索框
  2175. onSearchnh(){
  2176. let params = {
  2177. "deptId" : this.item.deptId,
  2178. "nhValue" : this.nhvalue
  2179. }
  2180. listNh(params).then((response) => {
  2181. this.nhlist = response.rows
  2182. });
  2183. },
  2184. // 宅基地搜索框
  2185. onSearchzjd(){
  2186. if(this.active==1){
  2187. let params = {
  2188. "deptId" : this.item.deptId,
  2189. "houseDataConfirmStatus" : "CONFIRMED",
  2190. "syqr" : this.zjdvalue
  2191. }
  2192. listZjdzd(params).then((response) => {
  2193. if (response.code == 200) {
  2194. this.list1 = response.rows
  2195. }
  2196. });
  2197. }else if(this.active==2){
  2198. let params = {
  2199. "deptId" : this.item.deptId,
  2200. "houseDataConfirmStatus" : "UNCONFIRMED",
  2201. "syqr" : this.zjdvalue
  2202. }
  2203. listZjdzd(params).then((response) => {
  2204. if (response.code == 200) {
  2205. this.list2 = response.rows
  2206. }
  2207. });
  2208. }else{
  2209. let params = {
  2210. "deptId" : this.item.deptId,
  2211. "syqr" : this.zjdvalue
  2212. }
  2213. listZjdzd(params).then((response) => {
  2214. if (response.code == 200) {
  2215. this.list = response.rows
  2216. }
  2217. });
  2218. }
  2219. },
  2220. // 户内成员弹窗
  2221. showPopuphncy(item){
  2222. this.showhncy = true
  2223. if(item.id==null||item.id==""){
  2224. this.form5 = {
  2225. "nhdm":this.nhdm,
  2226. "deptId":this.item.deptId,
  2227. "zjlx":'01',
  2228. "zjlxName":"身份证",
  2229. "yhzgx":"14",
  2230. "yhzgxName":"妻",
  2231. "hyzk":'02',
  2232. "hklx":'1',
  2233. "occupation":'1',
  2234. "occupationName":'务农',
  2235. "jzqk":'3',
  2236. "jzqkName":'常年居住',
  2237. "sfbjtjjzzcy":'Y',
  2238. "xb":'0',
  2239. "sfbccm":'Y',
  2240. "sfpkh":'N',
  2241. "sfwbh":'N',
  2242. "sjly":'07',
  2243. "sjlyName":'农村集体产权制度改革',
  2244. "cybz":'9',
  2245. "cybzName":'其他备注'
  2246. }
  2247. }else{
  2248. let _this = this
  2249. this.form5 = item
  2250. if(this.form5.nhdm==null||this.form5.nhdm==""){
  2251. this.form5.nhdm = this.nhform.nhdm
  2252. }
  2253. if(this.form5.deptId==null||this.form5.deptId==""){
  2254. this.form5.deptId = this.nhform.deptId
  2255. }
  2256. if(this.form5.zjlx==null||this.form5.zjlx==""){
  2257. this.form5.zjlx = "01"
  2258. this.form5.zjlxName = "身份证"
  2259. }
  2260. if(this.form5.yhzgx==null||this.form5.yhzgx==""){
  2261. this.form5.yhzgx = "14"
  2262. this.form5.yhzgxName = "妻"
  2263. }
  2264. if(this.form5.hyzk==null||this.form5.hyzk==""){
  2265. this.form5.hyzk = "02"
  2266. }
  2267. if(this.form5.hklx==null||this.form5.hklx==""){
  2268. this.form5.hklx = "1"
  2269. }
  2270. if(this.form5.occupation==null||this.form5.occupation==""){
  2271. this.form5.occupation = "1"
  2272. this.form5.occupationName = "务农"
  2273. }
  2274. if(this.form5.jzqk==null||this.form5.jzqk==""){
  2275. this.form5.jzqk = "3"
  2276. this.form5.jzqkName = "常年居住"
  2277. }
  2278. if(this.form5.sfbjtjjzzcy==null||this.form5.sfbjtjjzzcy==""){
  2279. this.form5.sfbjtjjzzcy = "Y"
  2280. }
  2281. if(this.form5.xb==null||this.form5.xb==""){
  2282. this.form5.xb = "0"
  2283. }
  2284. if(this.form5.sfbccm==null||this.form5.sfbccm==""){
  2285. this.form5.sfbccm = "Y"
  2286. }
  2287. if(this.form5.sfpkh==null||this.form5.sfpkh==""){
  2288. this.form5.sfpkh = "N"
  2289. }
  2290. if(this.form5.sfwbh==null||this.form5.sfwbh==""){
  2291. this.form5.sfwbh = "N"
  2292. }
  2293. if(this.form5.sjly==null||this.form5.sjly==""){
  2294. this.form5.sjly = "07"
  2295. this.form5.sjlyName = "农村集体产权制度改革"
  2296. }
  2297. if(this.form5.cybz==null||this.form5.cybz==""){
  2298. this.form5.cybz = "9"
  2299. this.form5.cybzName = "其他备注"
  2300. }
  2301. this.jzhcssfyzfOptions.map(res => {
  2302. if(res.dictValue == item.jzhcssfyzf){
  2303. this.form5.jzhcssfyzfName = res.dictLabel
  2304. }
  2305. })
  2306. this.zjlxOptions.map(res => {
  2307. if(res.dictValue == item.zjlx){
  2308. this.form5.zjlxName = res.dictLabel
  2309. }
  2310. })
  2311. this.occupationOptions.map(res => {
  2312. if(res.dictValue == item.occupation){
  2313. this.form5.occupationName = res.dictLabel
  2314. }
  2315. })
  2316. this.jzqkOptions.map(res => {
  2317. if(res.dictValue == item.jzqk){
  2318. this.form5.jzqkName = res.dictLabel
  2319. }
  2320. })
  2321. this.yhzgxOptions.map(res => {
  2322. if(res.dictValue == item.yhzgx){
  2323. this.form5.yhzgxName = res.dictLabel
  2324. }
  2325. })
  2326. this.cybzOptions.map(res => {
  2327. if(res.dictValue == item.cybz){
  2328. this.form5.cybzName = res.dictLabel
  2329. }
  2330. })
  2331. this.sjlyOptions.map(res => {
  2332. if(res.dictValue == item.sjly){
  2333. this.form5.sjlyName = res.dictLabel
  2334. }
  2335. })
  2336. }
  2337. },
  2338. // 户内成员列表
  2339. showPopuphncylist(item){
  2340. if(item.nhdm==null||item.nhdm==""){
  2341. this.$toast({
  2342. icon: 'error', // 找到自己需要的图标
  2343. message: '请先保存户主信息',
  2344. duration:"1000"
  2345. })
  2346. }else{
  2347. this.nhdm = item.nhdm
  2348. this.showhncylist = true
  2349. let params = {
  2350. "nhdm":item.nhdm,
  2351. "deptId":this.item.deptId
  2352. }
  2353. listNhhncy(params).then((response) => {
  2354. if (response.code == 200) {
  2355. this.hncylist = response.rows
  2356. }
  2357. });
  2358. }
  2359. },
  2360. showPopupnh(item){
  2361. this.shownh = true
  2362. this.nhform = item
  2363. this.jzhcssfyzfOptions.map(res => {
  2364. if(res.dictValue == item.jzhcssfyzf){
  2365. this.nhform.jzhcssfyzfName = res.dictLabel
  2366. }
  2367. })
  2368. this.zjlxOptions.map(res => {
  2369. if(res.dictValue == item.hzzjlx){
  2370. this.nhform.hzzjlxName = res.dictLabel
  2371. }
  2372. })
  2373. this.occupationOptions.map(res => {
  2374. if(res.dictValue == item.occupation){
  2375. this.nhform.occupationName = res.dictLabel
  2376. }
  2377. })
  2378. this.jzqkOptions.map(res => {
  2379. if(res.dictValue == item.jzqk){
  2380. this.nhform.jzqkName = res.dictLabel
  2381. }
  2382. })
  2383. this.sjlyOptions.map(res => {
  2384. if(res.dictValue == item.sjly){
  2385. this.nhform.sjlyName = res.dictLabel
  2386. }
  2387. })
  2388. },
  2389. getZjdList(){
  2390. let params = {
  2391. "deptId" : this.item.deptId,
  2392. "pageNum": 1,
  2393. "pageSize":10,
  2394. }
  2395. listZjdzd(params).then((response) => {
  2396. if (response.code == 200) {
  2397. this.list = response.rows
  2398. this.qbNums = response.total
  2399. /* if(response.rows.length>=10){
  2400. this.list = newList.slice(0,9)
  2401. }else {
  2402. this.list = newList
  2403. }
  2404. this.yhcNums = 0
  2405. this.whcNums = 0
  2406. this.list1 = []
  2407. this.list2 = []
  2408. response.rows.map(res => {
  2409. if(res.houseDataConfirmStatus == 'CONFIRMED'){
  2410. if(this.list1.length<10){
  2411. this.list1.push(res)
  2412. }
  2413. this.yhcNums ++
  2414. }else{
  2415. if(this.list2.length<10){
  2416. this.list2.push(res)
  2417. }
  2418. this.whcNums ++
  2419. }
  2420. })*/
  2421. }
  2422. });
  2423. let params1 = {
  2424. "deptId" : this.item.deptId,
  2425. "houseDataConfirmStatus" : "CONFIRMED",
  2426. "pageNum": 1,
  2427. "pageSize":10,
  2428. }
  2429. listZjdzd(params1).then((response) => {
  2430. if (response.code == 200) {
  2431. this.yhcNums = response.total
  2432. this.list1 = response.rows
  2433. }
  2434. });
  2435. let params2 = {
  2436. "deptId" : this.item.deptId,
  2437. "houseDataConfirmStatus" : "UNCONFIRMED",
  2438. "pageNum": 1,
  2439. "pageSize":10,
  2440. }
  2441. listZjdzd(params2).then((response) => {
  2442. if (response.code == 200) {
  2443. this.whcNums = response.total
  2444. this.list2 = response.rows
  2445. }
  2446. });
  2447. },
  2448. onConfirm(){},
  2449. /*onSubmithncy(){
  2450. if (this.form5.id != null) {
  2451. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2452. if(this.form5.xb!='1'){
  2453. Dialog.confirm({
  2454. title: '警告',
  2455. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2456. })
  2457. .then(() => {
  2458. // on confirm
  2459. updateNhhncy(this.form5).then(response => {
  2460. let _this =this
  2461. this.$toast({
  2462. icon: 'success', // 找到自己需要的图标
  2463. message: '修改成功',
  2464. duration:"1000",
  2465. onClose:function(){
  2466. _this.showhncy = false
  2467. let params = {
  2468. "nhdm":_this.form5.nhdm,
  2469. deptId:_this.form5.deptId
  2470. }
  2471. listNhhncy(params).then((response) => {
  2472. _this.hncylist = response.rows
  2473. })
  2474. }
  2475. })
  2476. });
  2477. })
  2478. .catch(() => {
  2479. // on cancel
  2480. });
  2481. }else{
  2482. updateNhhncy(this.form5).then(response => {
  2483. let _this =this
  2484. this.$toast({
  2485. icon: 'success', // 找到自己需要的图标
  2486. message: '修改成功',
  2487. duration:"1000",
  2488. onClose:function(){
  2489. _this.showhncy = false
  2490. let params = {
  2491. "nhdm":_this.form5.nhdm,
  2492. deptId:_this.form5.deptId
  2493. }
  2494. listNhhncy(params).then((response) => {
  2495. _this.hncylist = response.rows
  2496. })
  2497. }
  2498. })
  2499. });
  2500. }
  2501. } else {
  2502. if(this.form5.xb=='1'){
  2503. Dialog.confirm({
  2504. title: '警告',
  2505. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2506. })
  2507. .then(() => {
  2508. // on confirm
  2509. updateNhhncy(this.form5).then(response => {
  2510. let _this =this
  2511. this.$toast({
  2512. icon: 'success', // 找到自己需要的图标
  2513. message: '修改成功',
  2514. duration:"1000",
  2515. onClose:function(){
  2516. _this.showhncy = false
  2517. let params = {
  2518. "nhdm":_this.form5.nhdm,
  2519. deptId:_this.form5.deptId
  2520. }
  2521. listNhhncy(params).then((response) => {
  2522. _this.hncylist = response.rows
  2523. })
  2524. }
  2525. })
  2526. });
  2527. })
  2528. .catch(() => {
  2529. // on cancel
  2530. });
  2531. }else{
  2532. updateNhhncy(this.form5).then(response => {
  2533. let _this =this
  2534. this.$toast({
  2535. icon: 'success', // 找到自己需要的图标
  2536. message: '修改成功',
  2537. duration:"1000",
  2538. onClose:function(){
  2539. _this.showhncy = false
  2540. let params = {
  2541. "nhdm":_this.form5.nhdm,
  2542. deptId:_this.form5.deptId
  2543. }
  2544. listNhhncy(params).then((response) => {
  2545. _this.hncylist = response.rows
  2546. })
  2547. }
  2548. })
  2549. });
  2550. }
  2551. }
  2552. } else {
  2553. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2554. if(this.form5.xb!='1'){
  2555. Dialog.confirm({
  2556. title: '警告',
  2557. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2558. })
  2559. .then(() => {
  2560. // on confirm
  2561. addNhhncy(this.form5).then(response => {
  2562. let _this =this
  2563. this.$toast({
  2564. icon: 'success', // 找到自己需要的图标
  2565. message: '保存成功',
  2566. duration:"1000",
  2567. onClose:function(){
  2568. _this.showhncy = false
  2569. _this.totalR+=1
  2570. _this.totalH+=1
  2571. let params = {
  2572. "nhdm":_this.form5.nhdm,
  2573. deptId:_this.form5.deptId
  2574. }
  2575. listNhhncy(params).then((response) => {
  2576. _this.hncylist = response.rows
  2577. })
  2578. }
  2579. })
  2580. });
  2581. })
  2582. .catch(() => {
  2583. // on cancel
  2584. });
  2585. }else{
  2586. addNhhncy(this.form5).then(response => {
  2587. let _this =this
  2588. this.$toast({
  2589. icon: 'success', // 找到自己需要的图标
  2590. message: '保存成功',
  2591. duration:"1000",
  2592. onClose:function(){
  2593. _this.showhncy = false
  2594. _this.totalR+=1
  2595. _this.totalH+=1
  2596. let params = {
  2597. "nhdm":_this.form5.nhdm,
  2598. deptId:_this.form5.deptId
  2599. }
  2600. listNhhncy(params).then((response) => {
  2601. _this.hncylist = response.rows
  2602. })
  2603. }
  2604. })
  2605. });
  2606. }
  2607. } else {
  2608. if(this.form5.xb=='1'){
  2609. Dialog.confirm({
  2610. title: '警告',
  2611. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2612. })
  2613. .then(() => {
  2614. // on confirm
  2615. addNhhncy(this.form5).then(response => {
  2616. let _this =this
  2617. this.$toast({
  2618. icon: 'success', // 找到自己需要的图标
  2619. message: '保存成功',
  2620. duration:"1000",
  2621. onClose:function(){
  2622. _this.showhncy = false
  2623. _this.totalR+=1
  2624. _this.totalH+=1
  2625. let params = {
  2626. "nhdm":_this.form5.nhdm,
  2627. deptId:_this.form5.deptId
  2628. }
  2629. listNhhncy(params).then((response) => {
  2630. _this.hncylist = response.rows
  2631. })
  2632. }
  2633. })
  2634. });
  2635. })
  2636. .catch(() => {
  2637. // on cancel
  2638. });
  2639. }else{
  2640. addNhhncy(this.form5).then(response => {
  2641. let _this =this
  2642. this.$toast({
  2643. icon: 'success', // 找到自己需要的图标
  2644. message: '保存成功',
  2645. duration:"1000",
  2646. onClose:function(){
  2647. _this.showhncy = false
  2648. _this.totalR+=1
  2649. _this.totalH+=1
  2650. let params = {
  2651. "nhdm":_this.form5.nhdm,
  2652. deptId:_this.form5.deptId
  2653. }
  2654. listNhhncy(params).then((response) => {
  2655. _this.hncylist = response.rows
  2656. })
  2657. }
  2658. })
  2659. });
  2660. }
  2661. }
  2662. }
  2663. },*/
  2664. onSubmithncy(){
  2665. if (this.form5.id != null) {
  2666. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2667. if(this.form5.xb!='1'){
  2668. Dialog.confirm({
  2669. title: '警告',
  2670. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2671. })
  2672. .then(() => {
  2673. // on confirm
  2674. updateNhhncy(this.form5).then(response => {
  2675. let _this =this
  2676. this.$toast({
  2677. icon: 'success', // 找到自己需要的图标
  2678. message: '修改成功',
  2679. duration:"1000",
  2680. onClose:function(){
  2681. _this.showhncy = false
  2682. let params = {
  2683. "nhdm":_this.form5.nhdm,
  2684. deptId:_this.form5.deptId
  2685. }
  2686. listNhhncy(params).then((response) => {
  2687. _this.hncylist = response.rows
  2688. })
  2689. }
  2690. })
  2691. });
  2692. })
  2693. .catch(() => {
  2694. // on cancel
  2695. });
  2696. }else{
  2697. updateNhhncy(this.form5).then(response => {
  2698. let _this =this
  2699. this.$toast({
  2700. icon: 'success', // 找到自己需要的图标
  2701. message: '修改成功',
  2702. duration:"1000",
  2703. onClose:function(){
  2704. _this.showhncy = false
  2705. let params = {
  2706. "nhdm":_this.form5.nhdm,
  2707. deptId:_this.form5.deptId
  2708. }
  2709. listNhhncy(params).then((response) => {
  2710. _this.hncylist = response.rows
  2711. })
  2712. }
  2713. })
  2714. });
  2715. }
  2716. } else if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 0){
  2717. if(this.form5.xb!='0'){
  2718. Dialog.confirm({
  2719. title: '警告',
  2720. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2721. })
  2722. .then(() => {
  2723. // on confirm
  2724. updateNhhncy(this.form5).then(response => {
  2725. let _this =this
  2726. this.$toast({
  2727. icon: 'success', // 找到自己需要的图标
  2728. message: '修改成功',
  2729. duration:"1000",
  2730. onClose:function(){
  2731. _this.showhncy = false
  2732. let params = {
  2733. "nhdm":_this.form5.nhdm,
  2734. deptId:_this.form5.deptId
  2735. }
  2736. listNhhncy(params).then((response) => {
  2737. _this.hncylist = response.rows
  2738. })
  2739. }
  2740. })
  2741. });
  2742. })
  2743. .catch(() => {
  2744. // on cancel
  2745. });
  2746. }else{
  2747. updateNhhncy(this.form5).then(response => {
  2748. let _this =this
  2749. this.$toast({
  2750. icon: 'success', // 找到自己需要的图标
  2751. message: '修改成功',
  2752. duration:"1000",
  2753. onClose:function(){
  2754. _this.showhncy = false
  2755. let params = {
  2756. "nhdm":_this.form5.nhdm,
  2757. deptId:_this.form5.deptId
  2758. }
  2759. listNhhncy(params).then((response) => {
  2760. _this.hncylist = response.rows
  2761. })
  2762. }
  2763. })
  2764. });
  2765. }
  2766. }else{
  2767. updateNhhncy(this.form5).then(response => {
  2768. let _this =this
  2769. this.$toast({
  2770. icon: 'success', // 找到自己需要的图标
  2771. message: '修改成功',
  2772. duration:"1000",
  2773. onClose:function(){
  2774. _this.showhncy = false
  2775. let params = {
  2776. "nhdm":_this.form5.nhdm,
  2777. deptId:_this.form5.deptId
  2778. }
  2779. listNhhncy(params).then((response) => {
  2780. _this.hncylist = response.rows
  2781. })
  2782. }
  2783. })
  2784. });
  2785. }
  2786. } else {
  2787. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2788. if(this.form5.xb!='1'){
  2789. Dialog.confirm({
  2790. title: '警告',
  2791. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2792. })
  2793. .then(() => {
  2794. // on confirm
  2795. addNhhncy(this.form5).then(response => {
  2796. let _this =this
  2797. this.$toast({
  2798. icon: 'success', // 找到自己需要的图标
  2799. message: '保存成功',
  2800. duration:"1000",
  2801. onClose:function(){
  2802. _this.totalR+=1
  2803. _this.showhncy = false
  2804. let params = {
  2805. "nhdm":_this.form5.nhdm,
  2806. deptId:_this.form5.deptId
  2807. }
  2808. listNhhncy(params).then((response) => {
  2809. _this.hncylist = response.rows
  2810. })
  2811. }
  2812. })
  2813. });
  2814. })
  2815. .catch(() => {
  2816. // on cancel
  2817. });
  2818. }else{
  2819. addNhhncy(this.form5).then(response => {
  2820. let _this =this
  2821. this.$toast({
  2822. icon: 'success', // 找到自己需要的图标
  2823. message: '保存成功',
  2824. duration:"1000",
  2825. onClose:function(){
  2826. _this.totalR+=1
  2827. _this.showhncy = false
  2828. let params = {
  2829. "nhdm":_this.form5.nhdm,
  2830. deptId:_this.form5.deptId
  2831. }
  2832. listNhhncy(params).then((response) => {
  2833. _this.hncylist = response.rows
  2834. })
  2835. }
  2836. })
  2837. });
  2838. }
  2839. } else if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 0){
  2840. if(this.form5.xb!='0'){
  2841. Dialog.confirm({
  2842. title: '警告',
  2843. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2844. })
  2845. .then(() => {
  2846. // on confirm
  2847. addNhhncy(this.form5).then(response => {
  2848. let _this =this
  2849. this.$toast({
  2850. icon: 'success', // 找到自己需要的图标
  2851. message: '保存成功',
  2852. duration:"1000",
  2853. onClose:function(){
  2854. _this.totalR+=1
  2855. _this.showhncy = false
  2856. let params = {
  2857. "nhdm":_this.form5.nhdm,
  2858. deptId:_this.form5.deptId
  2859. }
  2860. listNhhncy(params).then((response) => {
  2861. _this.hncylist = response.rows
  2862. })
  2863. }
  2864. })
  2865. });
  2866. })
  2867. .catch(() => {
  2868. // on cancel
  2869. });
  2870. }else{
  2871. addNhhncy(this.form5).then(response => {
  2872. let _this =this
  2873. this.$toast({
  2874. icon: 'success', // 找到自己需要的图标
  2875. message: '保存成功',
  2876. duration:"1000",
  2877. onClose:function(){
  2878. _this.totalR+=1
  2879. _this.showhncy = false
  2880. let params = {
  2881. "nhdm":_this.form5.nhdm,
  2882. deptId:_this.form5.deptId
  2883. }
  2884. listNhhncy(params).then((response) => {
  2885. _this.hncylist = response.rows
  2886. })
  2887. }
  2888. })
  2889. });
  2890. }
  2891. }else{
  2892. addNhhncy(this.form5).then(response => {
  2893. let _this =this
  2894. this.$toast({
  2895. icon: 'success', // 找到自己需要的图标
  2896. message: '保存成功',
  2897. duration:"1000",
  2898. onClose:function(){
  2899. _this.totalR+=1
  2900. _this.showhncy = false
  2901. let params = {
  2902. "nhdm":_this.form5.nhdm,
  2903. deptId:_this.form5.deptId
  2904. }
  2905. listNhhncy(params).then((response) => {
  2906. _this.hncylist = response.rows
  2907. })
  2908. }
  2909. })
  2910. });
  2911. }
  2912. }
  2913. },
  2914. mapShow() {
  2915. //删除地图选中状态
  2916. $("#deleteHistoryMap").trigger("click");
  2917. //通过数据直接查询方式--------加载较慢 start
  2918. //镇边界获取
  2919. // listTown().then(response => {
  2920. // if (response.code == 200) {
  2921. // this.mapTownList = response.rows;
  2922. // //村边界获取
  2923. // listVillage(this.queryParams).then(response => {
  2924. // this.mapVillageList = response.rows;
  2925. // listZjdzd().then((response) => {
  2926. // if (response.code == 200) {
  2927. // this.mapTheGeomZjdId= response.rows;
  2928. // listZrz().then((response) => {
  2929. // if (response.code == 200) {
  2930. // this.mapTheGeomZrzId = response.rows;
  2931. // listFsss().then((response) => {
  2932. // if (response.code == 200) {
  2933. // this.mapTheGeomFsssId = response.rows;
  2934. // }
  2935. // setTimeout(() => {
  2936. // this.GetMapsInit();
  2937. // }, 300);
  2938. // });
  2939. // }
  2940. // });
  2941. // }
  2942. // });
  2943. // });
  2944. // }
  2945. // });
  2946. //通过数据直接查询方式--------加载较慢 end
  2947. getGeoServerConfigKey().then(response => {
  2948. this.mapGeoServerUrl = response.msg;
  2949. setTimeout(() => {
  2950. this.GetMapsInit();
  2951. }, 300);
  2952. });
  2953. var that = this;
  2954. setTimeout(function () {
  2955. var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true)
  2956. that.bottomHeight = -height+'px'
  2957. },500)
  2958. },
  2959. //地图加载 -----start
  2960. GetMapsInit() {
  2961. //加载地图编辑
  2962. var that = this;
  2963. var map;
  2964. //点击事件添加样式
  2965. var hc_land_on;
  2966. document.getElementById("mapWrapAll").innerHTML = '';
  2967. var hc_land;
  2968. var projection = new ol.proj.Projection({
  2969. //地图投影类型
  2970. code: "EPSG:3857",
  2971. units: "degrees",
  2972. //extent:extent
  2973. });
  2974. var aerial = new ol.layer.Tile({
  2975. source: new ol.source.XYZ({
  2976. // url: "http://t0.tianditu.gov.cn/img_w/wmts?" +
  2977. // "SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
  2978. // "&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
  2979. url: "http://t{0-7}.tianditu.com/img_w/wmts?" +
  2980. "SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
  2981. "&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067&TIMESTAMP="+ new Date().getTime(),
  2982. }),
  2983. isGroup: true,
  2984. name: "卫星影像图",
  2985. });
  2986. var yingxzi = new ol.layer.Tile({
  2987. source: new ol.source.XYZ({
  2988. url: "http://t{0-7}.tianditu.com/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=cc4aba6e967096098249efa069733067&TIMESTAMP="+ new Date().getTime(),
  2989. }),
  2990. isGroup: true,
  2991. name: "天地图文字标注--卫星影像图",
  2992. });
  2993. //加载地图
  2994. map = new ol.Map({
  2995. controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮
  2996. layers: [aerial, yingxzi],
  2997. projection: projection,
  2998. target: "mapWrapAll",
  2999. view: new ol.View({
  3000. //center: ol.proj.fromLonLat([115.452752, 31.789033]),
  3001. //center: ol.proj.fromLonLat([115.452752, 31.789033]),
  3002. zoom: 10,
  3003. minZoom: 5, //地图缩小限制
  3004. maxZoom: 18.3, //地图放大限制
  3005. resolution: Math.random() * 0.00000001,
  3006. }),
  3007. interactions: ol.interaction.defaults({
  3008. pinchRotate: false // 移动端禁止地图旋转
  3009. }),
  3010. });
  3011. //使用geoserver服务查询开始 -------------------start
  3012. //镇边界查询开始 ------------------------------start
  3013. // var zhenTc= new ol.layer.Tile({
  3014. // source: new ol.source.TileWMS({
  3015. // url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  3016. // params: {
  3017. // LAYERS: 'zjd_dc:t_house_survey_border_town',
  3018. // TILED: true,
  3019. // //cql_filter: cql_filter,
  3020. // SRID: 3857,
  3021. // },
  3022. // }),
  3023. // });
  3024. // map.addLayer(zhenTc);
  3025. //镇边界查询开始 ------------------------------end
  3026. //村边界查询开始 ------------------------------start
  3027. var cql_filter = "dept_id='" + that.$cookies.get("item").deptId + "'";
  3028. var cunTc = new ol.layer.Image({
  3029. source: new ol.source.ImageWMS({
  3030. url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
  3031. params: {
  3032. LAYERS: 'zjd_dc:t_house_survey_border_village',
  3033. TILED: true,
  3034. cql_filter: cql_filter,
  3035. SRID: 3857,
  3036. TIMESTAMP: new Date().getTime(),
  3037. },
  3038. resolution: Math.random() * 0.00000001,
  3039. }),
  3040. });
  3041. //定位查询位置
  3042. let param_dw = {
  3043. srsName: "EPSG:3857",
  3044. service: "WFS",
  3045. version: "1.0.0",
  3046. request: "GetFeature",
  3047. typename: "zjd_dc:t_house_survey_border_village",
  3048. //featureNS: 'nsgk_hc',//命名空间 URI
  3049. cql_filter: cql_filter,
  3050. //featurePrefix: 'nationalwater',//工作区名称
  3051. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  3052. outputFormat: "application/json",
  3053. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  3054. };
  3055. let url_dw = that.mapGeoServerUrl + "/geoserver/zjd_dc/wfs"; //wfsurl;
  3056. url_dw = url_dw + "?";
  3057. for (let key in param_dw) {
  3058. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  3059. }
  3060. url_dw = url_dw.substr(0, url_dw.length - 1);
  3061. fetch(url_dw, {
  3062. method: "POST", // *GET, POST, PUT, DELETE, etc.
  3063. })
  3064. .then((res) => {
  3065. var geojsonmap = res.json();
  3066. return geojsonmap;
  3067. })
  3068. .then((data) => {
  3069. if (that.backTheGeom != "" && that.backTheGeom != undefined && that.backTheGeom.substring(0, 1) == "{") {
  3070. hc_land_on = new ol.layer.Vector({
  3071. title: "add Layer",
  3072. source: new ol.source.Vector({
  3073. projection: projection,
  3074. features: new ol.format.GeoJSON().readFeatures(that.backTheGeom),
  3075. }),
  3076. style: new ol.style.Style({
  3077. stroke: new ol.style.Stroke({
  3078. //边界样式
  3079. color: "#CCFF66",
  3080. width: 6,
  3081. }),
  3082. }),
  3083. });
  3084. map.addLayer(hc_land_on);
  3085. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  3086. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  3087. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  3088. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  3089. //定位查询位置
  3090. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3091. that.clickBbox = center;
  3092. console.log(that.mapZjdData);
  3093. that.textMjAll = that.mapZjdData.zdmj;
  3094. map.getView().animate({
  3095. // 只设置需要的属性即可
  3096. center: center, // 中心点
  3097. zoom: 17.9, // 缩放级别
  3098. rotation: undefined, // 缩放完成view视图旋转弧度
  3099. duration: 1000, // 缩放持续时间,默认不需要设置
  3100. resolution: Math.random() * 0.00000001,
  3101. });
  3102. //this.backMap =1;
  3103. } else if (that.backTheGeom != "" && that.backTheGeom != undefined && that.backTheGeom.substring(0, 1) == "[") {
  3104. //that.newHt ="1";
  3105. var zbNew = JSON.stringify({
  3106. "type": "MultiPolygon",
  3107. "coordinates": [that.backTheGeom.replaceAll("\"", "")]
  3108. });
  3109. var leftJoin = zbNew.replace("\"[", "[");
  3110. var rightJoin = leftJoin.replace("\"]", "]");
  3111. hc_land_on = new ol.layer.Vector({
  3112. title: "add Layer",
  3113. source: new ol.source.Vector({
  3114. projection: projection,
  3115. features: new ol.format.GeoJSON().readFeatures("{\n" +
  3116. " \"type\": \"Feature\",\n" +
  3117. " \"geometry\":" + rightJoin + "}"),
  3118. }),
  3119. style: new ol.style.Style({
  3120. fill: new ol.style.Fill({
  3121. //矢量图层填充颜色,以及透明度
  3122. color: "rgba(204, 255, 204,0.3)",
  3123. }),
  3124. stroke: new ol.style.Stroke({
  3125. //边界样式
  3126. color: "#CCFF66",
  3127. width: 3,
  3128. }),
  3129. }),
  3130. });
  3131. map.addLayer(hc_land_on);
  3132. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  3133. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  3134. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  3135. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  3136. //定位查询位置
  3137. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3138. that.clickBbox = center;
  3139. console.log(that.mapZjdData);
  3140. that.textMjAll = that.mapZjdData.zdmj;
  3141. map.getView().animate({
  3142. // 只设置需要的属性即可
  3143. center: center, // 中心点
  3144. zoom: 16.9, // 缩放级别
  3145. rotation: undefined, // 缩放完成view视图旋转弧度
  3146. duration: 1000, // 缩放持续时间,默认不需要设置
  3147. resolution: Math.random() * 0.00000001,
  3148. });
  3149. //this.backMap =1;
  3150. } else {
  3151. let resolution = map.getView().getResolutionForExtent(data.bbox, map.getSize());
  3152. resolution:resolution + Math.random() * 0.00000001,
  3153. map.getView().fit(data.bbox);
  3154. map.getView().setResolution(resolution);
  3155. }
  3156. })
  3157. .catch((error) => {
  3158. console.log("【异常】", error);
  3159. });
  3160. map.addLayer(cunTc);
  3161. //村边界查询开始 ------------------------------end
  3162. //宅基地图层查询开始 ------------------start
  3163. //var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'";
  3164. var zjdTc = new ol.layer.Image({
  3165. source: new ol.source.ImageWMS({
  3166. url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
  3167. params: {
  3168. LAYERS: 'zjd_dc:t_house_survey_zjdzd',
  3169. TILED: true,
  3170. cql_filter: cql_filter,
  3171. SRID: 3857,
  3172. TIMESTAMP: new Date().getTime(),
  3173. },
  3174. }),
  3175. });
  3176. map.addLayer(zjdTc);
  3177. //宅基地图层查询开始 ------------------start
  3178. // //自然幢图层查询开始 ------------------start
  3179. // var zrzTc = new ol.layer.Image({
  3180. // source: new ol.source.ImageWMS({
  3181. // url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
  3182. // params: {
  3183. // LAYERS: 'zjd_dc:t_house_survey_zrz',
  3184. // TILED: true,
  3185. // cql_filter: cql_filter,
  3186. // SRID: 3857,
  3187. // TIMESTAMP: new Date().getTime(),
  3188. // },
  3189. // }),
  3190. // });
  3191. // map.addLayer(zrzTc);
  3192. // //自然幢图层查询开始 ------------------start
  3193. //
  3194. // //附属设施图层查询开始 ------------------start
  3195. // var fsssTc = new ol.layer.Image({
  3196. // source: new ol.source.ImageWMS({
  3197. // url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
  3198. // params: {
  3199. // LAYERS: 'zjd_dc:t_house_survey_fsss',
  3200. // TILED: true,
  3201. // cql_filter: cql_filter,
  3202. // SRID: 3857,
  3203. // TIMESTAMP: new Date().getTime(),
  3204. // },
  3205. // }),
  3206. // });
  3207. // map.addLayer(fsssTc);
  3208. // //附属设施图层查询开始 ------------------start
  3209. //使用geoserver服务查询开始 -------------------end
  3210. // if(this.backMap ==1){
  3211. // var cql = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + this.mapZjdTeAll.mapZjdAData.zjddm + "'";
  3212. // var wmsSourceBack = new ol.source.ImageWMS({
  3213. // crossOrigin: 'anonymous',
  3214. // params: {
  3215. // LAYERS: 'zjd_dc:t_house_survey_all',
  3216. // 'VERSION': '1.1.0',
  3217. // 'FORMAT': "image/png",
  3218. // 'CQL_FILTER': cql
  3219. // },
  3220. // serverType: 'geoserver',
  3221. // url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
  3222. // });
  3223. // zjdTc.setSource(wmsSourceBack);
  3224. // ol.view.setResolution(ol.view.getResolution() + Math.random() * 0.00000001);//随机数缩放实现刷新
  3225. // }
  3226. //数据库直接加载数据渲染方式---------------------------------------------------start
  3227. //判断当前账套是否有数据
  3228. // var mapTalkAbout = true;
  3229. // //获取镇界线----start
  3230. // if(this.mapTownList.length >0){
  3231. // for (var i = 0; this.mapTownList.length > i; i++) {
  3232. // if (this.mapTownList[i] != null && this.mapTownList[i].theGeom != null && this.mapTownList[i].theGeom != "") {
  3233. // mapTalkAbout =false;
  3234. // this.mapTownList[i].createBy = 'mapTownList';
  3235. // var theGeomLine= this.mapTownList[i].theGeom.replaceAll("MultiPolygon","LineString");
  3236. // theGeomLine = theGeomLine.replaceAll("[[[[","[[");
  3237. // theGeomLine = theGeomLine.replaceAll("]]]]","]]");
  3238. // hc_land = new ol.layer.Vector({
  3239. // title: "add Layer",
  3240. // source: new ol.source.Vector({
  3241. // projection: projection,
  3242. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3243. // " \"type\": \"Feature\",\n" +
  3244. // " \"geometry\":" + theGeomLine + ", \"properties\":" + JSON.stringify(this.mapTownList[i]) + "}"),
  3245. // }),
  3246. // style: new ol.style.Style({
  3247. // fill: new ol.style.Fill({
  3248. // //矢量图层填充颜色,以及透明度
  3249. // color: "#AE57A4",
  3250. // }),
  3251. // stroke: new ol.style.Stroke({
  3252. // //边界样式
  3253. // color: "#FF0000",
  3254. // width: 3,
  3255. // }),
  3256. // // text: new ol.style.Text({
  3257. // // text: this.mapTownList[i].xzqmc,
  3258. // // font: '30px sans-serif',
  3259. // // textAlign: "center",
  3260. // // textBaseline: "middle",
  3261. // // //font: 'verdana',
  3262. // // fill: new ol.style.Fill({
  3263. // // color: "#ff0000"
  3264. // // }),
  3265. // // // backgroundFill: new ol.style.Fill({
  3266. // // // color: "#ff0000"
  3267. // // // }),
  3268. // // font: "30px sans-serif",
  3269. // // stroke: new ol.style.Stroke({
  3270. // // color: "#ffffff"
  3271. // // // width: 3
  3272. // // }),
  3273. // // offsetX: parseInt(0, 10),
  3274. // // offsetY: parseInt(0, 10),
  3275. // // placement: "line", //point 则自动计算面的中心k点然后标注 line 则根据面要素的边进行标注
  3276. // // overflow: false //超出面的部分不显示
  3277. // //}),
  3278. // }),
  3279. // });
  3280. // map.addLayer(hc_land);
  3281. // //console.log(hc_land.values_.source.featuresRtree_.rbush_.data);
  3282. // var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX;
  3283. // var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY;
  3284. // var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX;
  3285. // var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY;
  3286. // // //定位查询位置
  3287. // var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3288. // // console.log(center);
  3289. // map.getView().animate({
  3290. // // 只设置需要的属性即可
  3291. // center: center, // 中心点
  3292. // zoom: 9.8, // 缩放级别
  3293. // rotation: undefined, // 缩放完成view视图旋转弧度
  3294. // duration: 1000, // 缩放持续时间,默认不需要设置
  3295. // });
  3296. // }
  3297. // }
  3298. // }
  3299. // //获取镇界线----end
  3300. // //获取村界线----start
  3301. // if(this.mapVillageList.length >0){
  3302. // for (var i = 0; this.mapVillageList.length > i; i++) {
  3303. // if (this.mapVillageList[i] != null && this.mapVillageList[i].theGeom != null && this.mapVillageList[i].theGeom != "") {
  3304. // mapTalkAbout =false;
  3305. // this.mapVillageList[i].createBy = 'mapVillageList';
  3306. // var theGeomLine= this.mapVillageList[i].theGeom.replaceAll("MultiPolygon","LineString");
  3307. // theGeomLine = theGeomLine.replaceAll("[[[[","[[");
  3308. // theGeomLine = theGeomLine.replaceAll("]]]]","]]");
  3309. // hc_land = new ol.layer.Vector({
  3310. // title: "add Layer",
  3311. // source: new ol.source.Vector({
  3312. // projection: projection,
  3313. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3314. // " \"type\": \"Feature\",\n" +
  3315. // " \"geometry\":" + theGeomLine + ", \"properties\":" + JSON.stringify(this.mapVillageList[i]) + "}"),
  3316. // }),
  3317. // style: new ol.style.Style({
  3318. // fill: new ol.style.Fill({
  3319. // //矢量图层填充颜色,以及透明度
  3320. // color: "#AE57A4",
  3321. // }),
  3322. // stroke: new ol.style.Stroke({
  3323. // //边界样式
  3324. // color: "#ff00ff",
  3325. // width: 3,
  3326. // }),
  3327. // // text: new ol.style.Text({
  3328. // // text: this.mapVillageList[i].dcmj,
  3329. // // font: '30px sans-serif',
  3330. // // textAlign: "center",
  3331. // // textBaseline: "middle",
  3332. // // //font: 'verdana',
  3333. // // fill: new ol.style.Fill({
  3334. // // color: "#ff00ff"
  3335. // // }),
  3336. // // // backgroundFill: new ol.style.Fill({
  3337. // // // color: "#ff0000"
  3338. // // // }),
  3339. // // font: "30px sans-serif",
  3340. // // stroke: new ol.style.Stroke({
  3341. // // color: "#ffffff"
  3342. // // // width: 3
  3343. // // }),
  3344. // // offsetX: parseInt(0, 10),
  3345. // // offsetY: parseInt(0, 10),
  3346. // // placement: "line", //point 则自动计算面的中心k点然后标注 line 则根据面要素的边进行标注
  3347. // // overflow: false //超出面的部分不显示
  3348. // // }),
  3349. // }),
  3350. // });
  3351. // map.addLayer(hc_land);
  3352. // }
  3353. // }
  3354. // }
  3355. // // //获取村界线----end
  3356. // //宅基地定位开始 ---------start
  3357. // if(this.mapTheGeomZjdId.length >0) {
  3358. // for (var i = 0; this.mapTheGeomZjdId.length > i; i++) {
  3359. // if (this.mapTheGeomZjdId[i] !=null && this.mapTheGeomZjdId[i].theGeom != null && this.mapTheGeomZjdId[i].theGeom != "") {
  3360. // mapTalkAbout =false;
  3361. // this.mapTheGeomZjdId[i].createBy = 'mapTheGeomZjdId';
  3362. // var styleYqr = "";
  3363. // if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){
  3364. // styleYqr = new ol.style.Style({
  3365. // fill: new ol.style.Fill({
  3366. // //矢量图层填充颜色,以及透明度
  3367. // color: "#AE57A4",
  3368. // }),
  3369. // stroke: new ol.style.Stroke({
  3370. // //边界样式
  3371. // color: "#28FF28",
  3372. // width: 3,
  3373. // }),
  3374. // });
  3375. // } else {
  3376. // styleYqr = new ol.style.Style({
  3377. // fill: new ol.style.Fill({
  3378. // //矢量图层填充颜色,以及透明度
  3379. // color: "#AE57A4",
  3380. // }),
  3381. // stroke: new ol.style.Stroke({
  3382. // //边界样式
  3383. // color: "rgba(255, 45, 45,1)",
  3384. // width: 3,
  3385. // }),
  3386. // });
  3387. // }
  3388. // hc_land = new ol.layer.Vector({
  3389. // title: "add Layer",
  3390. // source: new ol.source.Vector({
  3391. // projection: projection,
  3392. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3393. // " \"type\": \"Feature\",\n" +
  3394. // " \"geometry\":" + this.mapTheGeomZjdId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomZjdId[i]) + "}"),
  3395. // }),
  3396. // style: styleYqr
  3397. // });
  3398. // map.addLayer(hc_land);
  3399. // // var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX;
  3400. // // var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY;
  3401. // // var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX;
  3402. // // var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY;
  3403. // // //定位查询位置
  3404. // // var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3405. // // map.getView().animate({
  3406. // // // 只设置需要的属性即可
  3407. // // center: center, // 中心点
  3408. // // zoom: 15.8, // 缩放级别
  3409. // // rotation: undefined, // 缩放完成view视图旋转弧度
  3410. // // duration: 1000, // 缩放持续时间,默认不需要设置
  3411. // // });
  3412. // //自然幢定位开始 ---------start
  3413. // getZrzZjdDmList(this.mapTheGeomZjdId[i].zjddm).then((response) => {
  3414. // if (response.code == 200) {
  3415. // this.mapTheGeomZrzId = response.data;
  3416. // if(this.mapTheGeomZrzId.length >0) {
  3417. // for (var i = 0; this.mapTheGeomZrzId.length > i; i++) {
  3418. // if (this.mapTheGeomZrzId[i] !=null && this.mapTheGeomZrzId[i].theGeom != null && this.mapTheGeomZrzId[i].theGeom != "") {
  3419. // this.mapTheGeomZrzId[i].createBy = 'mapTheGeomZrzId';
  3420. // var styleZrz = "";
  3421. // if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){
  3422. // styleZrz = new ol.style.Style({
  3423. // fill: new ol.style.Fill({
  3424. // //矢量图层填充颜色,以及透明度
  3425. // color: "#FFD306",
  3426. // }),
  3427. // stroke: new ol.style.Stroke({
  3428. // //边界样式
  3429. // color: "#28FF28",
  3430. // width: 3,
  3431. // }),
  3432. // });
  3433. // } else {
  3434. // styleZrz = new ol.style.Style({
  3435. // fill: new ol.style.Fill({
  3436. // //矢量图层填充颜色,以及透明度
  3437. // color: "#FFD306",
  3438. // }),
  3439. // stroke: new ol.style.Stroke({
  3440. // //边界样式
  3441. // color: "rgba(255, 45, 45,1)",
  3442. // width: 3,
  3443. // }),
  3444. // });
  3445. // }
  3446. // hc_land = new ol.layer.Vector({
  3447. // title: "add Layer",
  3448. // source: new ol.source.Vector({
  3449. // projection: projection,
  3450. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3451. // " \"type\": \"Feature\",\n" +
  3452. // " \"geometry\":" + this.mapTheGeomZrzId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomZrzId[i]) + "}"),
  3453. // }),
  3454. // style: styleZrz
  3455. // });
  3456. // map.addLayer(hc_land);
  3457. // }
  3458. // }
  3459. // }
  3460. // }
  3461. // });
  3462. // //自然幢定位结束 ---------end
  3463. //
  3464. // //附属设施定位开始 ---------start
  3465. // getFsssZjdDmList(this.mapTheGeomZjdId[i].zjddm).then((response) => {
  3466. // if (response.code == 200) {
  3467. // this.mapTheGeomFsssId = response.data;
  3468. // if(this.mapTheGeomFsssId.length >0) {
  3469. // for (var i = 0; this.mapTheGeomFsssId.length > i; i++) {
  3470. // if (this.mapTheGeomFsssId[i] !=null && this.mapTheGeomFsssId[i].theGeom != null && this.mapTheGeomFsssId[i].theGeom != "") {
  3471. // this.mapTheGeomFsssId[i].createBy = 'mapTheGeomFsssId';
  3472. // var styleFsss = "";
  3473. // if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){
  3474. // styleFsss = new ol.style.Style({
  3475. // fill: new ol.style.Fill({
  3476. // //矢量图层填充颜色,以及透明度
  3477. // color: "#00FFFF",
  3478. // }),
  3479. // stroke: new ol.style.Stroke({
  3480. // //边界样式
  3481. // color: "#28FF28",
  3482. // width: 3,
  3483. // }),
  3484. // });
  3485. // } else {
  3486. // styleFsss = new ol.style.Style({
  3487. // fill: new ol.style.Fill({
  3488. // //矢量图层填充颜色,以及透明度
  3489. // color: "#00FFFF",
  3490. // }),
  3491. // stroke: new ol.style.Stroke({
  3492. // //边界样式
  3493. // color: "rgba(255, 45, 45,1)",
  3494. // width: 3,
  3495. // }),
  3496. // });
  3497. // }
  3498. // hc_land = new ol.layer.Vector({
  3499. // title: "add Layer",
  3500. // source: new ol.source.Vector({
  3501. // projection: projection,
  3502. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3503. // " \"type\": \"Feature\",\n" +
  3504. // " \"geometry\":" + this.mapTheGeomFsssId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomFsssId[i]) + "}"),
  3505. // }),
  3506. // style: styleFsss
  3507. // });
  3508. // map.addLayer(hc_land);
  3509. // }
  3510. // }
  3511. // }
  3512. // }
  3513. // });
  3514. // //附属设施定位结束 ---------end
  3515. // }
  3516. // }
  3517. // }
  3518. // //宅基地定位结束 ---------end
  3519. //数据库直接加载数据渲染方式---------------------------------------------------end
  3520. //地图操作定义------------start
  3521. //定位定义------------start
  3522. var Zb;
  3523. var latitude;
  3524. var longitude;
  3525. var vector_drawing;
  3526. //定位定义------------end
  3527. //绘图定义---------------start
  3528. var drawing;
  3529. var draw_map;
  3530. //绘图定义---------------end
  3531. //测面绘图定义------------start
  3532. var draw_cm;
  3533. //定义矢量图层
  3534. var vector;
  3535. //创建一个帮助提示信息对象
  3536. var helpTooltip;
  3537. //创建一个测量提示信息对象
  3538. var measureTooltip;
  3539. //创建一个帮助提示框对象
  3540. var helpTooltipElement;
  3541. //测出距离
  3542. var measureTooltipElement;
  3543. //测面绘图定义-----------end
  3544. //地图操作定义------------end
  3545. //定位当前位置 ------start
  3546. $("#dwMapAll").on("click", function () {
  3547. //删除测量记录操作--------start
  3548. //将矢量图层从图中删除
  3549. //map.removeLayer(helpTooltip);
  3550. map.removeLayer(vector);
  3551. map.removeInteraction(draw_cm);
  3552. //map.removeOverlay(helpTooltipElement);
  3553. //map.removeLayer(measureTooltip);
  3554. //删除测量记录操作--------end
  3555. //删除绘制图层画图操作-------start
  3556. map.removeInteraction(draw_map);
  3557. map.removeLayer(drawing);
  3558. //删除绘制图层画图操作-------end
  3559. //开始定位当前位置
  3560. navigator.geolocation.getCurrentPosition(function(position) {
  3561. latitude = position.coords.latitude;// 获取纬度
  3562. longitude = position.coords.longitude;// 获取经度
  3563. });
  3564. if(latitude !=null && longitude !=null && latitude !="" && longitude !="" && latitude !=undefined && longitude !=undefined ){
  3565. Zb = [longitude,latitude];
  3566. }else {
  3567. Zb =[115.452752, 31.789033];
  3568. }
  3569. //获取坐标点LocationManager
  3570. // geoGps().then(response => {
  3571. //
  3572. // });
  3573. //矢量标注样式设置函数,设置image为图标ol.style.Icon
  3574. function createLabelStyle() {
  3575. return new ol.style.Style({
  3576. image: new ol.style.Icon({
  3577. //设置图标偏移
  3578. anchor: [0.5, 1],
  3579. //标注样式的起点位置
  3580. anchorOrigin: "top-right",
  3581. //X方向单位:分数
  3582. anchorXUnits: "fraction",
  3583. //Y方向单位:像素
  3584. anchorYUnits: "pixels",
  3585. //偏移起点位置的方向
  3586. offsetOrigin: "top-right",
  3587. //透明度
  3588. opacity: 0.9,
  3589. //图片路径
  3590. src: require("../../assets/images/housesteadSurvey/mark.png"),
  3591. }),
  3592. text: new ol.style.Text({
  3593. textAlign: "center", //位置
  3594. textBaseline: "middle", //基准线
  3595. font: "normal 12px 微软雅黑", //文字样式
  3596. //text: "标注点", //文本内容
  3597. fill: new ol.style.Fill({
  3598. //文本填充样式(即文字颜色)
  3599. color: "#ff0000",
  3600. }),
  3601. }),
  3602. zIndex: 9999,
  3603. });
  3604. }
  3605. var newcenterFeature = new ol.Feature({
  3606. geometry: new ol.geom.Point(ol.proj.fromLonLat(Zb)), //几何信息
  3607. name: "标注点",
  3608. });
  3609. var sourceMapLook = new ol.source.Vector({wrapX: false});
  3610. vector_drawing = new ol.layer.Vector({
  3611. source: sourceMapLook,
  3612. });
  3613. map.addLayer(vector_drawing);
  3614. newcenterFeature.setStyle(createLabelStyle()); //设置要素样式
  3615. sourceMapLook.addFeature(newcenterFeature);
  3616. map.getView().animate({
  3617. // 只设置需要的属性即可
  3618. center: ol.proj.fromLonLat(Zb), // 中心点
  3619. zoom: 17.8, // 缩放级别
  3620. rotation: undefined, // 缩放完成view视图旋转弧度
  3621. duration: 1000, // 缩放持续时间,默认不需要设置
  3622. resolution:Math.random() * 0.00000001,
  3623. });
  3624. });
  3625. //定位当前位置 ------end
  3626. //开始绘制图层- -----start
  3627. $("#htMapAll").on("click", function () {
  3628. if(that.drawingClick) {
  3629. that.drawingClick=false;
  3630. //删除之前 测距操作添加map中的绘图 --------start
  3631. //map.removeLayer(helpTooltip);
  3632. map.removeLayer(vector);
  3633. map.removeInteraction(draw_cm);
  3634. //map.removeOverlay(helpTooltipElement);
  3635. map.removeLayer(measureTooltipElement);
  3636. //删除之前 测距操作添加map中的绘图 --------end
  3637. //删除之前画图图层,重新绘制图层
  3638. map.removeInteraction(draw_map);
  3639. map.removeLayer(drawing);
  3640. //var source = new ol.source.Vector({wrapX: false});
  3641. drawing = new ol.layer.Vector({
  3642. source: new ol.source.Vector(),
  3643. });
  3644. map.addLayer(drawing);
  3645. function addInteraction() {
  3646. draw_map = new ol.interaction.Draw({
  3647. source: drawing.getSource(),
  3648. type: "Polygon",
  3649. });
  3650. draw_map.on("drawend", function (evt) {
  3651. var feature = evt.feature;
  3652. var geometry = feature.getGeometry();
  3653. that.coordinate = geometry.getCoordinates();
  3654. //_this.coordinateList = coordinate.toString();
  3655. //提示当前坐标是否绘制完成
  3656. if (that.coordinate != "" && that.coordinate != null) {
  3657. that.showhzht = true;
  3658. that.htZjdZrzFsss = JSON.stringify(that.coordinate);
  3659. console.log(that.mapZjdData);
  3660. // htMapAllFu();
  3661. } else {
  3662. $("#htMapAll").trigger("click");
  3663. }
  3664. });
  3665. map.addInteraction(draw_map);
  3666. }
  3667. function htMapAllFu() {
  3668. //that.drawMapPolygonFun();
  3669. //绘制多边形地图
  3670. that.$dialog
  3671. .confirm({
  3672. title: "提示",
  3673. message: "是否重新绘制画图",
  3674. })
  3675. .then(() => {
  3676. //$("#drawRemove").trigger("click");
  3677. map.removeInteraction(draw_map);
  3678. that.coordinate = "";
  3679. })
  3680. .catch(() => {
  3681. //删除画图点
  3682. map.removeInteraction(draw_map);
  3683. });
  3684. }
  3685. addInteraction();
  3686. } else {
  3687. that.drawingClick=true;
  3688. //删除之前 测距操作添加map中的绘图 --------start
  3689. //map.removeLayer(helpTooltip);
  3690. map.removeLayer(vector);
  3691. map.removeInteraction(draw_cm);
  3692. //map.removeOverlay(helpTooltipElement);
  3693. map.removeLayer(measureTooltipElement);
  3694. //删除之前 测距操作添加map中的绘图 --------end
  3695. //删除之前画图图层,重新绘制图层
  3696. map.removeInteraction(draw_map);
  3697. map.removeLayer(drawing);
  3698. //var source = new ol.source.Vector({wrapX: false});
  3699. }
  3700. });
  3701. //删除之前绘制图层
  3702. $("#deleteHistory").on("click", function () {
  3703. map.removeLayer(drawing);
  3704. that.showhzht = false;
  3705. });
  3706. //开始绘制图层- -----end
  3707. //切换功能删除之前选中状态
  3708. $("#deleteHistoryMap").on("click", function () {
  3709. map.removeLayer(hc_land_on);
  3710. that.mapZjdData = "";
  3711. that.mapZrzData = "";
  3712. that.mapFsssData = "";
  3713. //that.mapZjdTeAll.active ="1";
  3714. that.mapZjdTeAll.mapZjdAData = {};
  3715. that.mapZjdTeAll.mapZrzAData = {};
  3716. that.mapZjdTeAll.mapFsssAData = {};
  3717. that.mapZjdDataTure = "";
  3718. });
  3719. //清除画图鼠标点击事件
  3720. // $("#drawRemove").click(function () {
  3721. // map.removeLayer(drawing);
  3722. // });
  3723. //
  3724. //地图定义
  3725. var delete_map = ["mapZjd", "mapZrz","mapFsss"];
  3726. var hc_land_queryList =[];
  3727. var texiao_layer_zjd;
  3728. var texiao_layer_zrz;
  3729. var texiao_layer_fsss;
  3730. //按照查询条件人名 定位地图-----------------start
  3731. $("#query").on("click", function () {
  3732. //数据库查询数据------------------------------------------------------start
  3733. $("#deleteHistoryMap").trigger("click");
  3734. var val = that.seachText;
  3735. //删除之前查询图层
  3736. for(var i=0;hc_land_queryList.length>i;i++){
  3737. map.removeLayer(hc_land_queryList[i]);
  3738. }
  3739. hc_land_queryList = [];
  3740. that.mapDataAll =[];
  3741. if (val == "") {
  3742. that.$toast('请填写查询条件再查询');
  3743. } else {
  3744. var styleZjd = new ol.style.Style({
  3745. stroke: new ol.style.Stroke({
  3746. //边界样式
  3747. color: "#CCFF66",
  3748. width: 6,
  3749. }),
  3750. });
  3751. let params;
  3752. if(that.mapAddJumpNum == 1){
  3753. params = {
  3754. "deptId" : that.mapAddJump,
  3755. "syqr" : val
  3756. }
  3757. } else {
  3758. params = {
  3759. "deptId" : that.$cookies.get("item").deptId,
  3760. "syqr" : val
  3761. }
  3762. }
  3763. listZjdzd(params).then((response) => {
  3764. if(response.rows.length != 0){
  3765. that.mapDataAll = response.rows;
  3766. for(var hg=0; hg < that.mapDataAll.length; hg++){
  3767. var mapNum = that.mapDataAll[hg].houseDataConfirmStatus;
  3768. if(mapNum == "UNCONFIRMED"){
  3769. that.mapDataAll[hg].paceType = "未核查";
  3770. } else if (mapNum == "CONFIRMED"){
  3771. that.mapDataAll[hg].paceType = "已核查";
  3772. }else{
  3773. }
  3774. that.mapDataAll[hg].typeTc="宅基地";
  3775. if (that.mapDataAll[hg] !=null && that.mapDataAll[hg].theGeom != null && that.mapDataAll[hg].theGeom != "") {
  3776. that.mapDataAll[hg].createBy = 'mapTheGeomZjdId';
  3777. hc_land_queryList[hg] =new ol.layer.Vector({
  3778. title: "add Layer",
  3779. source: new ol.source.Vector({
  3780. projection: projection,
  3781. features: new ol.format.GeoJSON().readFeatures("{\n" +
  3782. " \"type\": \"Feature\",\n" +
  3783. " \"geometry\":" + that.mapDataAll[hg].theGeom + ", \"properties\":" + JSON.stringify(that.mapDataAll[hg]) + "}"),
  3784. }),
  3785. style: styleZjd
  3786. });
  3787. map.addLayer(hc_land_queryList[hg]);
  3788. var maxXMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.maxX;
  3789. var maxYMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.maxY;
  3790. var minXMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.minX;
  3791. var minYMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.minY;
  3792. //定位查询位置
  3793. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3794. map.getView().animate({
  3795. // 只设置需要的属性即可
  3796. center: center, // 中心点
  3797. zoom: 15.8, // 缩放级别
  3798. rotation: undefined, // 缩放完成view视图旋转弧度
  3799. duration: 1000, // 缩放持续时间,默认不需要设置
  3800. resolution:Math.random() * 0.00000001,
  3801. });
  3802. }
  3803. // listFsss(paramsZrz).then((response) => {
  3804. // that.mapDataAll.push(response.rows);
  3805. // });
  3806. }
  3807. // for(var queryFor=0; hc_land_queryList > queryFor; queryFor++ ){
  3808. // map.addLayer(hc_land_queryList[queryFor]);
  3809. // }
  3810. // var mapZrzFor = that.mapDataAll[0].length+1;
  3811. // console.log(mapZrzFor);
  3812. // for(var mapFor=0;mapZrzFor>mapFor;mapFor++){
  3813. // //查询自然幢
  3814. // let paramsZrz = {
  3815. // "deptId" : that.$cookies.get("item").deptId,
  3816. // "zjddm" : that.mapDataAll[0][mapFor].zjddm,
  3817. // "pageSize":20,
  3818. // }
  3819. // listZrz(paramsZrz).then((response) => {
  3820. // console.log(response);
  3821. // that.mapDataAll[0].
  3822. // that.mapDataAll[0].push(response.rows);
  3823. // });
  3824. // }
  3825. setTimeout(function () {
  3826. that.showSearch = true ;
  3827. $('.searchBox').css('display','block')
  3828. var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true)
  3829. document.styleSheets[0].insertRule(
  3830. "@keyframes test" +
  3831. "{" +
  3832. "0%{bottom: -" + height + "px;}" +
  3833. "100%{bottom: 0px;}" +
  3834. "}"
  3835. )
  3836. $('.searchBar_wrap').css({'animation':'test 0.5s ease-in-out 0s 1 alternate forwards','-webkit-animation':'test 0.5s ease-in-out 0s 1 alternate forwards'});
  3837. //}
  3838. },500);
  3839. } else {
  3840. that.$toast("暂无数据")
  3841. }
  3842. });
  3843. }
  3844. //数据库查询数据------------------------------------------------------end
  3845. //地图查询------------------------------------------------------------start
  3846. /**
  3847. * @api wfs服务空间查询
  3848. * @param {*} wfsurl
  3849. * @param {*} srsName
  3850. * @param {*} typeName
  3851. * @param {*} drawType
  3852. * @param {option 可选} geometryField
  3853. */
  3854. // var val = that.seachText;
  3855. // if (val == "") {
  3856. // that.$toast('请填写查询条件再查询');
  3857. // } else {
  3858. // //清除之前查询数据
  3859. // that.mapDataAll =[];
  3860. // //分类查询查询农地、农房
  3861. // var difang;
  3862. // //查询条件
  3863. // var cql_filter_cun;
  3864. // var cun = that.$cookies.get("item").deptId;
  3865. // difang = ["zjd_dc:t_house_survey_zjdzd", "zjd_dc:t_house_survey_zrz","zjd_dc:t_house_survey_fsss"];
  3866. // var tach = 0;
  3867. // var once = 0;
  3868. // for (var i = 0; i < difang.length; i++) {
  3869. // map.removeLayer(delete_map[i]);
  3870. // // 数字验证!
  3871. // var reg = /\d/;
  3872. // //验证汉子
  3873. // //var han = /^[\u4e00-\u9fa5]+$/;
  3874. // if (reg.test(val)) {
  3875. // //循环判断查询条件
  3876. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3877. // } else {
  3878. // //循环判断查询条件
  3879. // if (difang[i] == "zjd_dc:t_house_survey_zjdzd") {
  3880. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3881. // } else if(difang[i] == "zjd_dc:t_house_survey_zrz") {
  3882. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3883. // } else if(difang[i] == "zjd_dc:t_house_survey_fsss") {
  3884. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3885. // }
  3886. // }
  3887. // //for(var i=0; i< difang.length; i++){
  3888. // //cql_filter = "CM='"+cun +"'"+ "and XZQK='待流转待盘活'";
  3889. //
  3890. // //图层加载
  3891. //
  3892. // //业务图层 wms服务
  3893. // delete_map[i] = new ol.layer.Tile({
  3894. // source: new ol.source.TileWMS({
  3895. // url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  3896. // params: {
  3897. // LAYERS: difang[i],
  3898. // //'LAYERS': 'new_shp:new_shp_all',
  3899. // TILED: true,
  3900. // cql_filter: cql_filter_cun,
  3901. // SRID: 3857,
  3902. // },
  3903. // }),
  3904. // });
  3905. //
  3906. // //}
  3907. // //定位查询位置
  3908. // let param_dw = {
  3909. // srsName: "EPSG:3857",
  3910. // service: "WFS",
  3911. // version: "1.0.0",
  3912. // request: "GetFeature",
  3913. // typename: difang[i],
  3914. // //featureNS: 'nsgk_hc',//命名空间 URI
  3915. // cql_filter: cql_filter_cun,
  3916. // //featurePrefix: 'nationalwater',//工作区名称
  3917. // //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  3918. // outputFormat: "application/json",
  3919. // //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  3920. // };
  3921. // let url_dw = that.mapGeoServerUrl+"/geoserver/zjd_dc/wfs"; //wfsurl;
  3922. // url_dw = url_dw + "?";
  3923. // for (let key in param_dw) {
  3924. // url_dw = url_dw + key + "=" + param_dw[key] + "&";
  3925. // }
  3926. // url_dw = url_dw.substr(0, url_dw.length - 1);
  3927. // fetch(url_dw, {
  3928. // method: "POST", // *GET, POST, PUT, DELETE, etc.
  3929. // })
  3930. // .then((res) => {
  3931. // var geojsonmap = res.json();
  3932. // return geojsonmap;
  3933. // })
  3934. // .then((data) => {
  3935. // tach = tach + 1;
  3936. // if (data.features != null && data.features != "") {
  3937. // for(var i=0; data.features.length >i; i++) {
  3938. // //特效动画实现 -----------------------------start
  3939. // console.log(tach,"++++++++++++++++++",once)
  3940. // var datamap = data.features[0].bbox;
  3941. // if (tach == 1 && once == 0) {
  3942. // console.log("zrz")
  3943. // texiao_layer_zjd = new ol.layer.Vector({
  3944. // source: new ol.source.Vector(),
  3945. // });
  3946. // map.addLayer(texiao_layer_zjd);
  3947. // var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  3948. // var circle = new ol.Feature({
  3949. // geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  3950. // });
  3951. //
  3952. // circle.setStyle(
  3953. // new ol.style.Style({
  3954. // image: new ol.style.Circle({
  3955. // radius: 0,
  3956. // stroke: new ol.style.Stroke({
  3957. // color: "yellow",
  3958. // size: 1,
  3959. // }),
  3960. // }),
  3961. // })
  3962. // );
  3963. // texiao_layer_zjd.getSource().addFeature(circle);
  3964. //
  3965. // // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  3966. // var radius = 0;
  3967. // map.on("postcompose", function () {
  3968. // // 增大半径,最大20
  3969. // radius++;
  3970. // radius = radius % 10;
  3971. // // 设置样式
  3972. // circle.setStyle(
  3973. // new ol.style.Style({
  3974. // image: new ol.style.Circle({
  3975. // radius: radius,
  3976. // stroke: new ol.style.Stroke({
  3977. // color: "yellow",
  3978. // size: 1,
  3979. // }),
  3980. // }),
  3981. // })
  3982. // );
  3983. // });
  3984. // } else if(tach == 2) {
  3985. // console.log("zrz")
  3986. // texiao_layer_zrz = new ol.layer.Vector({
  3987. // source: new ol.source.Vector(),
  3988. // });
  3989. // map.addLayer(texiao_layer_zrz);
  3990. // var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  3991. // var circle = new ol.Feature({
  3992. // geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  3993. // });
  3994. //
  3995. // circle.setStyle(
  3996. // new ol.style.Style({
  3997. // image: new ol.style.Circle({
  3998. // radius: 0,
  3999. // stroke: new ol.style.Stroke({
  4000. // color: "yellow",
  4001. // size: 1,
  4002. // }),
  4003. // }),
  4004. // })
  4005. // );
  4006. // texiao_layer_zrz.getSource().addFeature(circle);
  4007. //
  4008. // // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  4009. // var radius = 0;
  4010. // map.on("postcompose", function () {
  4011. // // 增大半径,最大20
  4012. // radius++;
  4013. // radius = radius % 10;
  4014. // // 设置样式
  4015. // circle.setStyle(
  4016. // new ol.style.Style({
  4017. // image: new ol.style.Circle({
  4018. // radius: radius,
  4019. // stroke: new ol.style.Stroke({
  4020. // color: "yellow",
  4021. // size: 1,
  4022. // }),
  4023. // }),
  4024. // })
  4025. // );
  4026. // });
  4027. // } else {
  4028. // console.log("fsss")
  4029. // texiao_layer_fsss = new ol.layer.Vector({
  4030. // source: new ol.source.Vector(),
  4031. // });
  4032. // map.addLayer(texiao_layer_fsss);
  4033. // var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  4034. // var circle = new ol.Feature({
  4035. // geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  4036. // });
  4037. //
  4038. // circle.setStyle(
  4039. // new ol.style.Style({
  4040. // image: new ol.style.Circle({
  4041. // radius: 0,
  4042. // stroke: new ol.style.Stroke({
  4043. // color: "yellow",
  4044. // size: 1,
  4045. // }),
  4046. // }),
  4047. // })
  4048. // );
  4049. // texiao_layer_fsss.getSource().addFeature(circle);
  4050. //
  4051. // // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  4052. // var radius = 0;
  4053. // map.on("postcompose", function () {
  4054. // // 增大半径,最大20
  4055. // radius++;
  4056. // radius = radius % 10;
  4057. // // 设置样式
  4058. // circle.setStyle(
  4059. // new ol.style.Style({
  4060. // image: new ol.style.Circle({
  4061. // radius: radius,
  4062. // stroke: new ol.style.Stroke({
  4063. // color: "yellow",
  4064. // size: 1,
  4065. // }),
  4066. // }),
  4067. // })
  4068. // );
  4069. // });
  4070. // }
  4071. // //特效动画实现 -----------------------------end
  4072. // that.mapDataAll.push(JSON.parse(JSON.stringify(data.features[i].properties)));
  4073. // }
  4074. // //定位实现
  4075. // let resolution = map.getView().getResolutionForExtent(data.bbox, map.getSize());
  4076. // map.getView().fit(data.bbox);
  4077. // map.getView().setResolution(resolution);
  4078. // console.log(that.mapDataAll);
  4079. // } else if (tach == 1) {
  4080. // once = once + 1;
  4081. // } else {
  4082. // if (once == 1 && tach == 3) {
  4083. // that.$toast("没有找到相关人员信息");
  4084. // //that.showSearch = false ;
  4085. // }else {
  4086. //
  4087. // }
  4088. // }
  4089. // })
  4090. // .catch((error) => {
  4091. // console.log("【异常】", error);
  4092. // });
  4093. // map.addLayer(delete_map[i]);
  4094. // }
  4095. //地图查询------------------------------------------------------------end
  4096. });
  4097. //按照查询 定位地图-----------------end
  4098. //筛选附属设施-----------------------------------start
  4099. $("#fsssSx").click(function () {
  4100. if(!that.fsssSx){
  4101. map.addLayer(fsssTc);
  4102. }else {
  4103. map.removeLayer(fsssTc);
  4104. }
  4105. });
  4106. $("#zrzSx").click(function () {
  4107. if(!that.zrzSx){
  4108. map.addLayer(zrzTc);
  4109. }else {
  4110. map.removeLayer(zrzTc);
  4111. }
  4112. });
  4113. $("#zjdSx").click(function () {
  4114. if(!that.zjdSx){
  4115. map.addLayer(zjdTc);
  4116. }else {
  4117. map.removeLayer(zjdTc);
  4118. }
  4119. });
  4120. $("#checkAll").click(function () {
  4121. if(!that.fsssSx && !that.zjdSx && !that.zrzSx){
  4122. map.addLayer(zjdTc);
  4123. map.addLayer(zrzTc);
  4124. map.addLayer(fsssTc);
  4125. }else {
  4126. map.removeLayer(zrzTc);
  4127. map.removeLayer(zjdTc);
  4128. map.removeLayer(fsssTc);
  4129. }
  4130. });
  4131. //筛选附属设施-----------------------------------end
  4132. // //获取类型开始 侧面-----------------------------------------------------------------start
  4133. //样式加载定义
  4134. var vector_drawing_delete;
  4135. $("#area").click(function () {
  4136. console.log(that.textMjAll);
  4137. console.log(that.clickBbox);
  4138. if(that.textMjAll ==null || that.textMjAll ==""){
  4139. that.textMjAll =0;
  4140. }
  4141. if((that.textMjAll != "" && that.clickBbox !="") || (that.textMjAll == 0 && that.clickBbox !="")){
  4142. map.removeLayer(vector_drawing_delete);
  4143. function createLabelStyle() {
  4144. return new ol.style.Style({
  4145. text: new ol.style.Text({
  4146. text: that.textMjAll+"㎡",
  4147. textAlign: "center", //位置
  4148. textBaseline: "middle", //基准线
  4149. font: "normal 12px 微软雅黑", //文字样式
  4150. //text: "标注点", //文本内容
  4151. fill: new ol.style.Fill({
  4152. //文本填充样式(即文字颜色)
  4153. color: "#FFFFFF",
  4154. width: 10,
  4155. }),
  4156. overflow: false //超出面的部分不显示
  4157. }),
  4158. zIndex: 9999,
  4159. });
  4160. }
  4161. var newcenterFeature = new ol.Feature({
  4162. geometry: new ol.geom.Point(that.clickBbox), //几何信息
  4163. //name: "标注点",
  4164. });
  4165. var sourceMapLook = new ol.source.Vector({wrapX: false});
  4166. vector_drawing_delete = new ol.layer.Vector({
  4167. source: sourceMapLook,
  4168. });
  4169. map.addLayer(vector_drawing_delete);
  4170. newcenterFeature.setStyle(createLabelStyle()); //设置要素样式
  4171. sourceMapLook.addFeature(newcenterFeature);
  4172. //map.addLayer(styleFsss);
  4173. } else if(that.textMjAllNum == "1"){
  4174. that.$toast("该图层面积暂无信息");
  4175. } else {
  4176. that.$toast("选择图层进行面积显示");
  4177. }
  4178. });
  4179. // $("#area").click(function () {
  4180. // console.log("进入测面")
  4181. // //删除绘制图层画图操作-------start
  4182. // map.removeInteraction(draw_map);
  4183. // map.removeLayer(drawing);
  4184. // //删除绘制图层画图操作-------end
  4185. // //开始绘制 测面--------------------------------------------------------------start
  4186. // //定义矢量数据源
  4187. // var source = new ol.source.Vector();
  4188. //
  4189. // vector = new ol.layer.Vector({
  4190. // source: source,
  4191. // style: new ol.style.Style({
  4192. // fill: new ol.style.Fill({
  4193. // color: "rgba(255,255,255,0.2)",
  4194. // }),
  4195. // stroke: new ol.style.Stroke({
  4196. // color: "#e21e0a",
  4197. // width: 2,
  4198. // }),
  4199. // //image: new ol.style.Circle({
  4200. // // radius: 7,
  4201. // // fill: new ol.style.Fill({
  4202. // // color:'#ffcc33'
  4203. // // })
  4204. // //})
  4205. // }),
  4206. // });
  4207. //
  4208. // //将矢量图层添加到地图中 线的颜色加入map中
  4209. // map.addLayer(vector);
  4210. //
  4211. // var sketch;
  4212. //
  4213. // var continuePolygonMsg = "单击以继续绘制多边形";
  4214. //
  4215. // /**
  4216. // * Message to show when the user is drawing a line.
  4217. // * @type {string}
  4218. // */
  4219. // //var continueLineMsg = '单击继续绘制直线';
  4220. //
  4221. // //鼠标移动触发的函数
  4222. // var pointerMoveHandler = function (evt) {
  4223. // //Indicates if the map is currently being dragged.
  4224. // //Only set for POINTERDRAG and POINTERMOVE events. Default is false.
  4225. // //如果是平移地图则直接结束
  4226. // if (evt.dragging) {
  4227. // return;
  4228. // }
  4229. // //帮助提示信息
  4230. // var helpMsg = "单击开始绘图";
  4231. //
  4232. // if (sketch) {
  4233. // //Get the feature's default geometry.
  4234. // //A feature may have any number of named geometries.
  4235. // //获取绘图对象的几何要素
  4236. // var geom = sketch.getGeometry();
  4237. // //如果当前绘制的几何要素是多边形,则将绘制提示信息设置为多边形绘制提示信息
  4238. // //如果当前绘制的几何要素是多线段,则将绘制提示信息设置为多线段绘制提示信息
  4239. // helpMsg = continuePolygonMsg;
  4240. // }
  4241. // //设置帮助提示要素的内标签为帮助提示信息
  4242. // helpTooltipElement.innerHTML = helpMsg;
  4243. // //设置帮助提示信息的位置
  4244. // //The coordinate in view projection corresponding to the original browser event.
  4245. // helpTooltip.setPosition(evt.coordinate);
  4246. // //移除帮助提示要素的隐藏样式
  4247. // $(helpTooltipElement).removeClass("hidden");
  4248. // };
  4249. //
  4250. // map.on("pointermove", pointerMoveHandler);
  4251. //
  4252. // map.getViewport().addEventListener("mouseout", function () {
  4253. // helpTooltipElement.classList.add("hidden");
  4254. // });
  4255. //
  4256. // //添加交互式绘图对象的函数
  4257. // function addInteraction() {
  4258. // // 获取当前选择的绘制类型
  4259. // //var type = typeSelect.value == 'length' ? 'Polygon' : 'LineString';
  4260. // //创建一个交互式绘图对象
  4261. // var type = "Polygon";
  4262. // draw_cm = new ol.interaction.Draw({
  4263. // //绘制的数据源
  4264. // source: source,
  4265. // //绘制类型
  4266. // type: type,
  4267. // //样式
  4268. // style: new ol.style.Style({
  4269. // fill: new ol.style.Fill({
  4270. // color: "rgba(255,255,255,0.2)",
  4271. // }),
  4272. // stroke: new ol.style.Stroke({
  4273. // color: "rgba(0,0,0,0.5)",
  4274. // lineDash: [10, 10],
  4275. // width: 2,
  4276. // }),
  4277. // // image: new ol.style.Circle({
  4278. // // radius: 5,
  4279. // // stroke: new ol.style.Stroke({
  4280. // // color:'rgba(0,0,0,0.7)'
  4281. // // }),
  4282. // // fill: new ol.style.Fill({
  4283. // //color: 'rgba(255,255,255,0.2)'
  4284. // // })
  4285. // //})
  4286. // }),
  4287. // });
  4288. // //将交互绘图对象添加到地图中
  4289. // map.addInteraction(draw_cm);
  4290. //
  4291. // //创建测量提示框
  4292. // createMeasureTooltip();
  4293. // //创建帮助提示框
  4294. // createHelpTooltip();
  4295. //
  4296. // //定义一个事件监听
  4297. // var listener;
  4298. // //定义一个控制鼠标点击次数的变量
  4299. // var count = 0;
  4300. // //绘制开始事件
  4301. // draw_cm.on(
  4302. // "drawstart",
  4303. // function (evt) {
  4304. // //The feature being drawn.
  4305. // sketch = evt.feature;
  4306. // //提示框的坐标
  4307. // var tooltipCoord = evt.coordinate;
  4308. // //监听几何要素的change事件
  4309. // //Increases the revision counter and dispatches a 'change' event.
  4310. //
  4311. // listener = sketch.getGeometry().on("change", function (evt) {
  4312. // //The event target.
  4313. // //获取绘制的几何对象
  4314. // var geom = evt.target;
  4315. // //定义一个输出对象,用于记录面积和长度
  4316. // var output;
  4317. // map.removeEventListener("singleclick");
  4318. // map.removeEventListener("dblclick");
  4319. // //输出多边形的面积
  4320. // output = formatArea(geom);
  4321. // //Return an interior point of the polygon.
  4322. // //获取多变形内部点的坐标
  4323. // tooltipCoord = geom.getInteriorPoint().getCoordinates();
  4324. //
  4325. // //设置测量提示框的内标签为最终输出结果
  4326. // measureTooltipElement.innerHTML = output;
  4327. // //设置测量提示信息的位置坐标
  4328. // measureTooltip.setPosition(tooltipCoord);
  4329. // });
  4330. //
  4331. // //地图单击事件
  4332. // map.on("singleclick", function (evt) {
  4333. // //设置测量提示信息的位置坐标,用来确定鼠标点击后测量提示框的位置
  4334. // measureTooltip.setPosition(evt.coordinate);
  4335. // //如果是第一次点击,则设置测量提示框的文本内容为起点
  4336. // if (count == 0) {
  4337. // measureTooltipElement.innerHTML = "起点";
  4338. // }
  4339. // //根据鼠标点击位置生成一个点
  4340. // var point = new ol.geom.Point(evt.coordinate);
  4341. // //将该点要素添加到矢量数据源中
  4342. // source.addFeature(new ol.Feature(point));
  4343. // //更改测量提示框的样式,使测量提示框可见
  4344. // measureTooltipElement.className = "tooltip tooltip-static";
  4345. // //创建测量提示框
  4346. // createMeasureTooltip();
  4347. // //点击次数增加
  4348. // count++;
  4349. // });
  4350. //
  4351. // //地图双击事件
  4352. // map.on("dblclick", function (evt) {
  4353. // //根据
  4354. // var point = new ol.geom.Point(evt.coordinate);
  4355. // source.addFeature(new ol.Feature(point));
  4356. // });
  4357. // },
  4358. // this
  4359. // );
  4360. // //绘制结束事件
  4361. // draw_cm.on(
  4362. // "drawend",
  4363. // function (evt) {
  4364. // count = 0;
  4365. // //设置测量提示框的样式
  4366. // measureTooltipElement.className = "tooltip tooltip-static";
  4367. // //Set the offset for this overlay.
  4368. // //设置偏移量
  4369. // measureTooltip.setOffset([0, -7]);
  4370. // //清空绘制要素
  4371. // sketch = null;
  4372. // //清空测量提示要素
  4373. // measureTooltipElement = null;
  4374. // //创建测量提示框
  4375. // createMeasureTooltip();
  4376. // //Removes an event listener using the key returned by on() or once().
  4377. // //移除事件监听
  4378. // ol.Observable.unByKey(listener);
  4379. // //移除地图单击事件
  4380. // map.removeEventListener("singleclick");
  4381. // },
  4382. // this
  4383. // );
  4384. // }
  4385. // /**
  4386. // * Creates a new help tooltip
  4387. // */
  4388. // function createHelpTooltip() {
  4389. // if (helpTooltipElement) {
  4390. // helpTooltipElement.parentNode.removeChild(helpTooltipElement);
  4391. // }
  4392. // helpTooltipElement = document.createElement("div");
  4393. // helpTooltipElement.className = "ol-tooltip hidden";
  4394. // helpTooltip = new ol.Overlay({
  4395. // element: helpTooltipElement,
  4396. // offset: [15, 0],
  4397. // positioning: "center-left",
  4398. // });
  4399. // map.addOverlay(helpTooltip);
  4400. // }
  4401. //
  4402. // /**
  4403. // * Creates a new measure tooltip
  4404. // */
  4405. // function createMeasureTooltip() {
  4406. // if (measureTooltipElement) {
  4407. // measureTooltipElement.parentNode.removeChild(measureTooltipElement);
  4408. // }
  4409. // measureTooltipElement = document.createElement("div");
  4410. // measureTooltipElement.className = "ol-tooltip ol-tooltip-measure";
  4411. // measureTooltip = new ol.Overlay({
  4412. // element: measureTooltipElement,
  4413. // offset: [0, -15],
  4414. // positioning: "bottom-center",
  4415. // });
  4416. // map.addOverlay(measureTooltip);
  4417. // }
  4418. //
  4419. // //格式化测量面积
  4420. // var formatArea = function (polygon) {
  4421. // //定义面积变量
  4422. // var area;
  4423. // //获取平面面积
  4424. // area = polygon.getArea();
  4425. // //定义输出变量
  4426. // var output;
  4427. // //当面积大于10000时,转换为平方千米,否则为平方米
  4428. // if (area > 10000) {
  4429. // output =
  4430. // Math.round((area / 1000000) * 100) / 100 + " " + "km<sup>2</sup>";
  4431. // } else {
  4432. // output = Math.round(area * 100) / 100 + " " + "m<sup>2</sup>";
  4433. // }
  4434. // return output;
  4435. // };
  4436. //
  4437. // addInteraction();
  4438. // });
  4439. // //侧面结束-----------------------------------------------------------------end
  4440. //全图展示-----------------start
  4441. $("#mapAllQt").click(function (){
  4442. //定位查询位置
  4443. let param_dw = {
  4444. srsName: "EPSG:3857",
  4445. service: "WFS",
  4446. version: "1.0.0",
  4447. request: "GetFeature",
  4448. typename: "zjd_dc:t_house_survey_border_village",
  4449. //featureNS: 'nsgk_hc',//命名空间 URI
  4450. cql_filter: cql_filter,
  4451. //featurePrefix: 'nationalwater',//工作区名称
  4452. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  4453. outputFormat: "application/json",
  4454. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  4455. };
  4456. let url_dw = that.mapGeoServerUrl+"/geoserver/zjd_dc/wfs"; //wfsurl;
  4457. url_dw = url_dw + "?";
  4458. for (let key in param_dw) {
  4459. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  4460. }
  4461. url_dw = url_dw.substr(0, url_dw.length - 1);
  4462. fetch(url_dw, {
  4463. method: "POST", // *GET, POST, PUT, DELETE, etc.
  4464. })
  4465. .then((res) => {
  4466. var geojsonmap = res.json();
  4467. return geojsonmap;
  4468. })
  4469. .then((data) => {
  4470. let resolution = map.getView().getResolutionForExtent(data.bbox,map.getSize());
  4471. resolution:resolution + Math.random() * 0.00000001,
  4472. map.getView().fit(data.bbox);
  4473. map.getView().setResolution(resolution);
  4474. // var datamap = data.bbox;
  4475. // var center = ol.extent.getCenter(datamap);
  4476. // map.getView().animate({
  4477. // // 只设置需要的属性即可
  4478. // center: center, // 中心点
  4479. // rotation: undefined, // 缩放完成view视图旋转弧度
  4480. // });
  4481. })
  4482. .catch((error) => {
  4483. console.log("【异常】", error);
  4484. });
  4485. });
  4486. //业务图层 wfs服务 属性查询开始 ------------------start
  4487. /**
  4488. * @api wfs服务空间查询
  4489. * @param {*} wfsurl
  4490. * @param {*} srsName
  4491. * @param {*} typeName
  4492. * @param {*} drawType
  4493. * @param {option 可选} geometryField
  4494. */
  4495. //查询全部图层 -------查询叠加图层出现覆盖问题
  4496. var wmsSource = new ol.source.TileWMS({
  4497. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4498. params: {
  4499. LAYERS: "zjd_dc:t_house_survey_all",
  4500. TILED: true,
  4501. SRID: 3857,
  4502. serverType: "geoserver",
  4503. crossOrigin: "anonymous",
  4504. },
  4505. resolution:Math.random() * 0.00000001,
  4506. });
  4507. //查询宅基地图层
  4508. var ZjdwmsSource = new ol.source.TileWMS({
  4509. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4510. params: {
  4511. LAYERS: "zjd_dc:t_house_survey_zjdzd",
  4512. TILED: true,
  4513. SRID: 3857,
  4514. serverType: "geoserver",
  4515. crossOrigin: "anonymous",
  4516. },
  4517. resolution:Math.random() * 0.00000001,
  4518. });
  4519. //查询自然幢图层
  4520. var ZrzwmsSource = new ol.source.TileWMS({
  4521. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4522. params: {
  4523. LAYERS: "zjd_dc:t_house_survey_zrz",
  4524. TILED: true,
  4525. SRID: 3857,
  4526. serverType: "geoserver",
  4527. crossOrigin: "anonymous",
  4528. },
  4529. resolution:Math.random() * 0.00000001,
  4530. });
  4531. //查询附属设施图层
  4532. var FssswmsSource = new ol.source.TileWMS({
  4533. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4534. params: {
  4535. LAYERS: "zjd_dc:t_house_survey_fsss",
  4536. TILED: true,
  4537. SRID: 3857,
  4538. serverType: "geoserver",
  4539. crossOrigin: "anonymous",
  4540. },
  4541. resolution:Math.random() * 0.00000001,
  4542. });
  4543. map.on("pointermove", function (evt) {
  4544. if (evt.dragging) {
  4545. return;
  4546. }
  4547. var pixel = map.getEventPixel(evt.originalEvent);
  4548. var hit = map.forEachLayerAtPixel(pixel, function () {
  4549. return true;
  4550. });
  4551. map.getTargetElement().style.cursor = hit ? "pointer" : "";
  4552. });
  4553. //属性查询结束 ------------------end
  4554. //点击查询详细信息
  4555. map.on("singleclick", function (evt) {
  4556. console.log(evt);
  4557. let feature = map.forEachFeatureAtPixel(
  4558. evt.pixel,
  4559. (feature) => feature
  4560. );
  4561. var viewResolution = map.getView().getResolution(); ///** @type {number} */ (view.getResolution());
  4562. var zb = evt.coordinate;
  4563. var url;
  4564. var url_bbox;
  4565. that.clickBbox ="";
  4566. that.textMjAll = "";
  4567. if(that.drawingClick) {
  4568. //点击空白删除之前图层
  4569. map.removeLayer(hc_land_on);
  4570. //map.removeLayer(hc_land_query);
  4571. //for(var i=0;hc_land_query>i;i++){
  4572. //map.removeLayer(hc_land_query);
  4573. for(var i=0;hc_land_queryList.length>i;i++){
  4574. map.removeLayer(hc_land_queryList[i]);
  4575. }
  4576. //}c
  4577. if (that.fsssSx && that.zjdSx && that.zrzSx) {
  4578. url = wmsSource.getFeatureInfoUrl(
  4579. evt.coordinate,
  4580. viewResolution,
  4581. "EPSG:3857",
  4582. {INFO_FORMAT: "text/html"}
  4583. );
  4584. url_bbox = wmsSource.getFeatureInfoUrl(
  4585. evt.coordinate,
  4586. viewResolution,
  4587. "EPSG:3857",
  4588. {INFO_FORMAT: "application/json"}
  4589. );
  4590. } else {
  4591. if (that.zjdSx) {
  4592. url = ZjdwmsSource.getFeatureInfoUrl(
  4593. evt.coordinate,
  4594. viewResolution,
  4595. "EPSG:3857",
  4596. {INFO_FORMAT: "text/html"}
  4597. );
  4598. url_bbox = ZjdwmsSource.getFeatureInfoUrl(
  4599. evt.coordinate,
  4600. viewResolution,
  4601. "EPSG:3857",
  4602. {INFO_FORMAT: "application/json"}
  4603. );
  4604. } else if (that.fsssSx) {
  4605. url = FssswmsSource.getFeatureInfoUrl(
  4606. evt.coordinate,
  4607. viewResolution,
  4608. "EPSG:3857",
  4609. {INFO_FORMAT: "text/html"}
  4610. );
  4611. url_bbox = FssswmsSource.getFeatureInfoUrl(
  4612. evt.coordinate,
  4613. viewResolution,
  4614. "EPSG:3857",
  4615. {INFO_FORMAT: "application/json"}
  4616. );
  4617. } else if (that.zrzSx) {
  4618. url = ZrzwmsSource.getFeatureInfoUrl(
  4619. evt.coordinate,
  4620. viewResolution,
  4621. "EPSG:3857",
  4622. {INFO_FORMAT: "text/html"}
  4623. );
  4624. url_bbox = ZrzwmsSource.getFeatureInfoUrl(
  4625. evt.coordinate,
  4626. viewResolution,
  4627. "EPSG:3857",
  4628. {INFO_FORMAT: "application/json"}
  4629. );
  4630. } else {
  4631. url = wmsSource.getFeatureInfoUrl(
  4632. evt.coordinate,
  4633. viewResolution,
  4634. "EPSG:3857",
  4635. {INFO_FORMAT: "text/html"}
  4636. );
  4637. url_bbox = wmsSource.getFeatureInfoUrl(
  4638. evt.coordinate,
  4639. viewResolution,
  4640. "EPSG:3857",
  4641. {INFO_FORMAT: "application/json"}
  4642. );
  4643. }
  4644. }
  4645. if (url_bbox) {
  4646. fetch(url_bbox).then((res) => {
  4647. var geojsonmap = res.json();
  4648. return geojsonmap;
  4649. })
  4650. .then((data) => {
  4651. var center = ol.extent.getCenter(data.bbox); //获取边界区域的中心位置
  4652. center = [center[0], center[1] - 16];
  4653. that.clickBbox = center;
  4654. })
  4655. .catch((error) => {
  4656. that.mapZjdData = "";
  4657. that.mapZrzData = "";
  4658. that.mapFsssData = "";
  4659. //that.mapZjdTeAll.active ="1";
  4660. that.mapZjdTeAll.mapZjdAData = {};
  4661. that.mapZjdTeAll.mapZrzAData = {};
  4662. that.mapZjdTeAll.mapFsssAData = {};
  4663. that.mapZjdDataTure = "";
  4664. console.log("【异常】", error);
  4665. });
  4666. }
  4667. if (url) {
  4668. fetch(url)
  4669. .then(function (response) {
  4670. return response.text();
  4671. })
  4672. .then(function (html) {
  4673. document.getElementById("info").innerHTML = html;
  4674. if (html.indexOf("<table") != -1) {
  4675. that.mapZjdData = "";
  4676. that.mapZrzData = "";
  4677. that.mapFsssData = "";
  4678. //that.mapZjdTeAll.active ="1";
  4679. that.mapZjdTeAll.mapZjdAData = {};
  4680. that.mapZjdTeAll.mapZrzAData = {};
  4681. that.mapZjdTeAll.mapFsssAData = {};
  4682. that.mapZjdDataTure = "";
  4683. setTimeout(() => {
  4684. if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_zjdzd") {
  4685. map.removeLayer(hc_land_on);
  4686. that.mapHasDateStatus = 2;
  4687. let obj = {};
  4688. let trs = $("#info .featureInfo").find("tr:eq(1)");
  4689. let zjdXq = trs.find("td").eq(0).text();
  4690. let zjdIdNum = zjdXq.replace("t_house_survey_zjdzd.", "");
  4691. obj.id = zjdIdNum; // 主键id
  4692. obj.deptName = trs.find("td").eq(3).text();//行政区划名称
  4693. obj.zjddm = trs.find("td").eq(6).text();//宅基地代码
  4694. obj.zdmj = trs.find("td").eq(11).text();//宗地面积
  4695. obj.active = 1;
  4696. var vector_drawing_map;
  4697. let params = {
  4698. "deptId": that.$cookies.get("item").deptId,
  4699. "zjddm": obj.zjddm,
  4700. }
  4701. //点击查看自然幢
  4702. //自然幢图层查询开始 ------------------start
  4703. var cql_filter_map = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + obj.zjddm + "'";
  4704. var zrzTcMapOn = new ol.layer.Image({
  4705. source: new ol.source.ImageWMS({
  4706. url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
  4707. params: {
  4708. LAYERS: 'zjd_dc:t_house_survey_zrz',
  4709. TILED: true,
  4710. cql_filter: cql_filter_map,
  4711. SRID: 3857,
  4712. TIMESTAMP: new Date().getTime(),
  4713. },
  4714. }),
  4715. });
  4716. map.addLayer(zrzTcMapOn);
  4717. //自然幢图层查询开始 ------------------start
  4718. //附属设施图层查询开始 ------------------start
  4719. //var cql_filter_map = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + obj.zjddm + "'";
  4720. var fsssTcMapOn = new ol.layer.Image({
  4721. source: new ol.source.ImageWMS({
  4722. url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
  4723. params: {
  4724. LAYERS: 'zjd_dc:t_house_survey_fsss',
  4725. TILED: true,
  4726. cql_filter: cql_filter_map,
  4727. SRID: 3857,
  4728. TIMESTAMP: new Date().getTime(),
  4729. },
  4730. }),
  4731. });
  4732. map.addLayer(fsssTcMapOn);
  4733. //附属设施图层查询开始 ------------------end
  4734. that.$cookies.set("search", "")
  4735. //that.$cookies.set("map", "")
  4736. console.log(document.cookie.split(';').length)
  4737. console.log(params);
  4738. listZjdzd(params).then((response) => {
  4739. if (response.rows[0].zdmj != "") {
  4740. that.textMjAll = response.rows[0].zdmj;
  4741. } else {
  4742. that.textMjAllNum = "1";
  4743. }
  4744. that.mapZjdData = response.rows[0];
  4745. that.mapZjdData.active = 1;
  4746. that.mapZjdTeAll.mapZjdAData = that.mapZjdData;
  4747. that.mapZjdDataTure = 1;
  4748. that.zjdHcDy = obj.zjddm;
  4749. var styleZjd = new ol.style.Style({
  4750. stroke: new ol.style.Stroke({
  4751. //边界样式
  4752. color: "#CCFF66",
  4753. width: 6,
  4754. }),
  4755. });
  4756. hc_land_on = new ol.layer.Vector({
  4757. title: "add Layer",
  4758. source: new ol.source.Vector({
  4759. projection: projection,
  4760. features: new ol.format.GeoJSON().readFeatures("{\n" +
  4761. " \"type\": \"Feature\",\n" +
  4762. " \"geometry\":" + that.mapZjdData.theGeom + ", \"properties\":" + JSON.stringify(that.mapZjdData) + "}"),
  4763. }),
  4764. style: styleZjd
  4765. });
  4766. map.addLayer(hc_land_on);
  4767. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  4768. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  4769. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  4770. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  4771. //定位查询位置
  4772. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  4773. map.getView().animate({
  4774. // 只设置需要的属性即可
  4775. center: center, // 中心点
  4776. zoom: 17.8, // 缩放级别
  4777. rotation: undefined, // 缩放完成view视图旋转弧度
  4778. duration: 1000, // 缩放持续时间,默认不需要设置
  4779. resolution:Math.random() * 0.00000001,
  4780. });
  4781. function createLabelStyleMap() {
  4782. return new ol.style.Style({
  4783. text: new ol.style.Text({
  4784. text: that.mapZjdData.syqr,
  4785. textAlign: "center", //位置
  4786. textBaseline: "middle", //基准线
  4787. font: "normal 16px 微软雅黑", //文字样式
  4788. //text: "标注点", //文本内容
  4789. fill: new ol.style.Fill({
  4790. //文本填充样式(即文字颜色)
  4791. color: "#09DDCE",
  4792. width: 10,
  4793. }),
  4794. overflow: false //超出面的部分不显示
  4795. }),
  4796. zIndex: 9999,
  4797. });
  4798. }
  4799. var newcenterFeatureMap = new ol.Feature({
  4800. geometry: new ol.geom.Point(center), //几何信息
  4801. //name: "标注点",
  4802. });
  4803. var sourceMapLookMap = new ol.source.Vector({wrapX: false});
  4804. vector_drawing_map = new ol.layer.Vector({
  4805. source: sourceMapLookMap,
  4806. });
  4807. map.addLayer(vector_drawing_map);
  4808. newcenterFeatureMap.setStyle(createLabelStyleMap()); //设置要素样式
  4809. sourceMapLookMap.addFeature(newcenterFeatureMap);
  4810. });
  4811. //let cloneObj = JSON.parse(JSON.stringify(obj));
  4812. //that.mapZjdData = cloneObj;
  4813. } else if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_zrz") {
  4814. //that.mapZjdTeAll.mapZjdAData ={};
  4815. that.mapZjdDataTure = "";
  4816. that.mapZjdTeAll.mapFsssAData = {};
  4817. map.removeLayer(hc_land_on);
  4818. let obj = {};
  4819. that.mapHasDateStatus = 1;
  4820. let trs = $("#info .featureInfo").find("tr:eq(1)");
  4821. let zrzXq = trs.find("td").eq(0).text();
  4822. let zrzIdNum = zrzXq.replace("t_house_survey_zrz.", "");
  4823. obj.id = zrzIdNum; // 主键id
  4824. obj.deptName = trs.find("td").eq(3).text();//行政区划名称
  4825. obj.zjddm = trs.find("td").eq(4).text();//宅基地代码
  4826. obj.scjzmj = trs.find("td").eq(12).text();//实测建筑面积
  4827. let params = {
  4828. "deptId": that.$cookies.get("item").deptId,
  4829. "zjddm": obj.zjddm,
  4830. }
  4831. that.$cookies.set("search", "")
  4832. //that.$cookies.set("map", "")
  4833. listZjdzd(params).then((response) => {
  4834. that.mapZjdData = response.rows[0];
  4835. //that.mapZjdAData.active = 1;
  4836. that.mapZjdTeAll.mapZjdAData = that.mapZjdData;
  4837. getZrz(obj.id).then((response) => {
  4838. if (response.data.scjzmj != "") {
  4839. that.textMjAll = response.data.scjzmj;
  4840. } else {
  4841. that.textMjAllNum = "1";
  4842. }
  4843. that.mapZrzData = response.data;
  4844. that.mapZrzData.active = 3;
  4845. that.mapZjdTeAll.mapZrzAData = that.mapZrzData;
  4846. that.zjdHcDy = obj.zjddm;
  4847. var styleZjd = new ol.style.Style({
  4848. stroke: new ol.style.Stroke({
  4849. //边界样式
  4850. color: "#CCFF66",
  4851. width: 6,
  4852. }),
  4853. });
  4854. hc_land_on = new ol.layer.Vector({
  4855. title: "add Layer",
  4856. source: new ol.source.Vector({
  4857. projection: projection,
  4858. features: new ol.format.GeoJSON().readFeatures("{\n" +
  4859. " \"type\": \"Feature\",\n" +
  4860. " \"geometry\":" + that.mapZrzData.theGeom + ", \"properties\":" + JSON.stringify(that.mapZrzData) + "}"),
  4861. }),
  4862. style: styleZjd
  4863. });
  4864. map.addLayer(hc_land_on);
  4865. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  4866. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  4867. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  4868. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  4869. //定位查询位置
  4870. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  4871. map.getView().animate({
  4872. // 只设置需要的属性即可
  4873. center: center, // 中心点
  4874. zoom: 17.8, // 缩放级别
  4875. rotation: undefined, // 缩放完成view视图旋转弧度
  4876. duration: 1000, // 缩放持续时间,默认不需要设置
  4877. resolution:Math.random() * 0.00000001,
  4878. });
  4879. });
  4880. });
  4881. } else if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_fsss") {
  4882. that.mapZjdTeAll.mapZrzAData = {};
  4883. that.mapZjdDataTure = "";
  4884. //that.mapZjdTeAll.mapZjdAData ={};
  4885. map.removeLayer(hc_land_on);
  4886. let obj = {};
  4887. that.mapHasDateStatus = 0;
  4888. let trs = $("#info .featureInfo").find("tr:eq(1)");
  4889. let fsssXq = trs.find("td").eq(0).text();
  4890. let fsssIdNum = fsssXq.replace("t_house_survey_fsss.", "");
  4891. obj.id = fsssIdNum; // 主键id
  4892. obj.deptName = trs.find("td").eq(4).text();//行政区划名称
  4893. obj.zjddm = trs.find("td").eq(1).text();//宅基地代码
  4894. // obj.houseDataConfirmStatus = trs.find("td").eq(6).text(); //状态
  4895. // obj.fssslx = trs.find("td").eq(7).text(); //附属设施类型
  4896. obj.jzmj = trs.find("td").eq(8).text(); //建筑面积
  4897. let params = {
  4898. "deptId": that.$cookies.get("item").deptId,
  4899. "zjddm": obj.zjddm,
  4900. "pageSize": 20,
  4901. }
  4902. that.$cookies.remove("search")
  4903. //that.$cookies.set("map", "")
  4904. listZjdzd(params).then((response) => {
  4905. that.mapZjdData = response.rows[0];
  4906. that.mapZjdData.active = 1;
  4907. that.mapZjdTeAll.mapZjdAData = that.mapZjdData;
  4908. getFsss(obj.id).then((response) => {
  4909. if (response.data.jzmj != "") {
  4910. that.textMjAll = response.data.jzmj;
  4911. } else {
  4912. that.textMjAllNum = "1";
  4913. }
  4914. //that.mapfsssData.active = 4;
  4915. that.mapfsssData = response.data;
  4916. console.log(that.mapfsssData);
  4917. that.mapZjdTeAll.mapFsssAData = that.mapfsssData;
  4918. that.zjdHcDy = obj.zjddm;
  4919. var styleZjd = new ol.style.Style({
  4920. stroke: new ol.style.Stroke({
  4921. //边界样式
  4922. color: "#CCFF66",
  4923. width: 6,
  4924. }),
  4925. });
  4926. hc_land_on = new ol.layer.Vector({
  4927. title: "add Layer",
  4928. source: new ol.source.Vector({
  4929. projection: projection,
  4930. features: new ol.format.GeoJSON().readFeatures("{\n" +
  4931. " \"type\": \"Feature\",\n" +
  4932. " \"geometry\":" + that.mapfsssData.theGeom + ", \"properties\":" + JSON.stringify(that.mapfsssData) + "}"),
  4933. }),
  4934. style: styleZjd
  4935. });
  4936. map.addLayer(hc_land_on);
  4937. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  4938. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  4939. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  4940. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  4941. //定位查询位置
  4942. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  4943. map.getView().animate({
  4944. // 只设置需要的属性即可
  4945. center: center, // 中心点
  4946. zoom: 17.8, // 缩放级别
  4947. rotation: undefined, // 缩放完成view视图旋转弧度
  4948. duration: 1000, // 缩放持续时间,默认不需要设置
  4949. resolution:Math.random() * 0.00000001,
  4950. });
  4951. });
  4952. });
  4953. // if(obj.jzmj != ""){
  4954. // that.textMjAll = obj.jzmj;
  4955. // } else {
  4956. // that.textMjAllNum = "1";
  4957. // }
  4958. } else {
  4959. }
  4960. }, 300);
  4961. } else {
  4962. }
  4963. });
  4964. }
  4965. }
  4966. //数据库查询详情时使用----------------------------------------start
  4967. // if(feature) {
  4968. // //document.getElementById("info").innerHTML = "";
  4969. // that.mapHaDataValue = true;
  4970. // var ifConsole = feature.values_.createBy;
  4971. // if (ifConsole =="mapTheGeomFsssId") {
  4972. // let obj = {};
  4973. // that.mapHasDateStatus = 0;
  4974. // obj.deptName = feature.values_.deptName;//行政区划名称
  4975. // obj.zjddm = feature.values_.zjddm;//宅基地代码
  4976. // obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus; //状态
  4977. // obj.fssslx = feature.values_.fssslx; //附属设施类型
  4978. // obj.jzmj = feature.values_.jzmj; //建筑面积
  4979. // obj.qsly = feature.values_.qsly;//权属来源
  4980. // obj.fwzt = feature.values_.fwzt; //房屋状态
  4981. // obj.sfsp = feature.values_.sfsp; //是否审批
  4982. // obj.sffz = feature.values_.sffz; //是否发证
  4983. // obj.jglx = feature.values_.jglx; //结构类型
  4984. // obj.sfzzsy = feature.values_.sfzzsy; //是否正在使用
  4985. // obj.jzwqk = feature.values_.jzwqk; //建筑物情况
  4986. // obj.tdzk = feature.values_.tdzk; //审批或建设前土地状况
  4987. // obj.sfsgcf = feature.values_.sfsgcf; //是否受过处罚
  4988. // obj.sysNormalDisable = feature.values_.sysNormalDisable; //是否停用
  4989. // //附属设施类型字典项
  4990. // that.getDicts("fsss_type").then((response) => {
  4991. // var assetTypeOptions = response.data;
  4992. // if(obj.fssslx !=null && obj.fssslx !=""){
  4993. // for(var i=0;assetTypeOptions.length >i; i++){
  4994. // if(obj.fssslx == assetTypeOptions[i].dictValue) {
  4995. // obj.fssslx = assetTypeOptions[i].dictLabel;
  4996. // break;
  4997. // }
  4998. // }
  4999. // }
  5000. // });
  5001. // //权属类型字典项
  5002. // that.getDicts("acquisition_method").then((response) => {
  5003. // var assetTypeOptions = response.data;
  5004. // if(obj.qsly !=null && obj.qsly !=""){
  5005. // for(var i=0;assetTypeOptions.length >i; i++){
  5006. // if(obj.qsly == assetTypeOptions[i].dictValue) {
  5007. // obj.qsly = assetTypeOptions[i].dictLabel;
  5008. // break;
  5009. // }
  5010. // }
  5011. // }
  5012. // });
  5013. // //房屋状态字典项
  5014. // that.getDicts("fwzt").then((response) => {
  5015. // var assetTypeOptions = response.data;
  5016. // if(obj.fwzt !=null && obj.fwzt !=""){
  5017. // for(var i=0;assetTypeOptions.length >i; i++){
  5018. // if(obj.fwzt == assetTypeOptions[i].dictValue) {
  5019. // obj.fwzt = assetTypeOptions[i].dictLabel;
  5020. // break;
  5021. // }
  5022. // }
  5023. // }
  5024. // });
  5025. // //是否审批字典项
  5026. // that.getDicts("sys_yes_no").then((response) => {
  5027. // var assetTypeOptions = response.data;
  5028. // if(obj.sfsp !=null && obj.sfsp !=""){
  5029. // for(var i=0;assetTypeOptions.length >i; i++){
  5030. // if(obj.sfsp == assetTypeOptions[i].dictValue) {
  5031. // obj.sfsp = assetTypeOptions[i].dictLabel;
  5032. // break;
  5033. // }
  5034. // }
  5035. // }
  5036. // });
  5037. // //是否发证字典项
  5038. // that.getDicts("sys_yes_no").then((response) => {
  5039. // var assetTypeOptions = response.data;
  5040. // if(obj.sffz !=null && obj.sffz !=""){
  5041. // for(var i=0;assetTypeOptions.length >i; i++){
  5042. // if(obj.sffz == assetTypeOptions[i].dictValue) {
  5043. // obj.sffz = assetTypeOptions[i].dictLabel;
  5044. // break;
  5045. // }
  5046. // }
  5047. // }
  5048. // });
  5049. // //结构类型字典项
  5050. // that.getDicts("house_jglx").then((response) => {
  5051. // var assetTypeOptions = response.data;
  5052. // if(obj.jglx !=null && obj.jglx !=""){
  5053. // for(var i=0;assetTypeOptions.length >i; i++){
  5054. // if(obj.jglx == assetTypeOptions[i].dictValue) {
  5055. // obj.jglx = assetTypeOptions[i].dictLabel;
  5056. // break;
  5057. // }
  5058. // }
  5059. // }
  5060. // });
  5061. // //是否正在使用字典项
  5062. // that.getDicts("sys_yes_no").then((response) => {
  5063. // var assetTypeOptions = response.data;
  5064. // if(obj.sfzzsy !=null && obj.sfzzsy !=""){
  5065. // for(var i=0;assetTypeOptions.length >i; i++){
  5066. // if(obj.sfzzsy == assetTypeOptions[i].dictValue) {
  5067. // obj.sfzzsy = assetTypeOptions[i].dictLabel;
  5068. // break;
  5069. // }
  5070. // }
  5071. // }
  5072. // });
  5073. // //房屋状态字典项
  5074. // that.getDicts("fwzt").then((response) => {
  5075. // var assetTypeOptions = response.data;
  5076. // if(obj.fwzt !=null && obj.fwzt !=""){
  5077. // for(var i=0;assetTypeOptions.length >i; i++){
  5078. // if(obj.fwzt == assetTypeOptions[i].dictValue) {
  5079. // obj.fwzt = assetTypeOptions[i].dictLabel;
  5080. // break;
  5081. // }
  5082. // }
  5083. // }
  5084. // });
  5085. // //土地状况字典项
  5086. // that.getDicts("land_state").then((response) => {
  5087. // var assetTypeOptions = response.data;
  5088. // if(obj.tdzk !=null && obj.tdzk !=""){
  5089. // for(var i=0;assetTypeOptions.length >i; i++){
  5090. // if(obj.tdzk == assetTypeOptions[i].dictValue) {
  5091. // obj.tdzk = assetTypeOptions[i].dictLabel;
  5092. // break;
  5093. // }
  5094. // }
  5095. // }
  5096. // });
  5097. // //是否受过处罚字典项
  5098. // that.getDicts("land_state").then((response) => {
  5099. // var assetTypeOptions = response.data;
  5100. // if(obj.sfsgcf !=null && obj.sfsgcf !=""){
  5101. // for(var i=0;assetTypeOptions.length >i; i++){
  5102. // if(obj.sfsgcf == assetTypeOptions[i].dictValue) {
  5103. // obj.sfsgcf = assetTypeOptions[i].dictLabel;
  5104. // break;
  5105. // }
  5106. // }
  5107. // }
  5108. // });
  5109. // that.mapFsssData = obj;
  5110. // } else if(ifConsole =="mapTheGeomZrzId"){
  5111. // let obj = {};
  5112. // that.mapHasDateStatus = 1;
  5113. // obj.deptName = feature.values_.deptName;//部门名称
  5114. // obj.zjddm = feature.values_.zjddm;//宅基地代码
  5115. // obj.nmfwzh = feature.values_.nmfwzh;//农民房屋幢号
  5116. // obj.zrzh = feature.values_.zrzh;//自然幢号
  5117. // obj.jgrq = feature.values_.jgrq;//竣工日期
  5118. // obj.jzwgd = feature.values_.jzwgd;//建筑物高度
  5119. // obj.zzdmj = feature.values_.zzdmj;//幢占地面积
  5120. // obj.zydmj = feature.values_.zydmj;//幢用地面积
  5121. // obj.scjzmj = feature.values_.scjzmj;//实测建筑面积
  5122. // obj.zcs = feature.values_.zcs;//总层数
  5123. // obj.dscs = feature.values_.dscs;//地上层数
  5124. // obj.dxcs = feature.values_.dxcs;//地下层数
  5125. // obj.fwjg = feature.values_.fwjg;//房屋结构
  5126. // obj.sjly = feature.values_.sjly;//数据来源
  5127. // obj.status = feature.values_.status;//状态
  5128. // obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus;//数据调查确认状态
  5129. // //字典项转化
  5130. // //房屋结构字典项
  5131. // that.getDicts("housing_structure").then((response) => {
  5132. // var assetTypeOptions = response.data;
  5133. // if(obj.fwjg !=null && obj.fwjg !=""){
  5134. // for(var i=0;assetTypeOptions.length >i; i++){
  5135. // if(obj.fwjg == assetTypeOptions[i].dictValue) {
  5136. // obj.fwjg = assetTypeOptions[i].dictLabel;
  5137. // break;
  5138. // }
  5139. // }
  5140. // }
  5141. // });
  5142. // //房屋结构字典项
  5143. // that.getDicts("sjly").then((response) => {
  5144. // var assetTypeOptions = response.data;
  5145. // if(obj.sjly !=null && obj.sjly !=""){
  5146. // for(var i=0;assetTypeOptions.length >i; i++){
  5147. // if(obj.sjly == assetTypeOptions[i].dictValue) {
  5148. // obj.sjly = assetTypeOptions[i].dictLabel;
  5149. // break;
  5150. // }
  5151. // }
  5152. // }
  5153. // });
  5154. // that.mapZrzData = obj;
  5155. // } else if(ifConsole =="mapTheGeomZjdId"){
  5156. // let obj = {};
  5157. // that.mapHasDateStatus = 2;
  5158. // obj.deptName = feature.values_.deptName;//行政区划名称
  5159. // obj.suyqrdm = feature.values_.suyqrdm;//所有权人代码
  5160. // obj.nhdm = feature.values_.nhdm;//农户代码
  5161. // obj.zjddm = feature.values_.zjddm;//宅基地代码
  5162. // obj.zdbh = feature.values_.zdbh;//宗地编号
  5163. // obj.zddm = feature.values_.zddm;//宗地代码
  5164. // obj.zl = feature.values_.zl;//坐落
  5165. // obj.zldwdm = feature.values_.zldwdm;//坐落单位代码
  5166. // obj.zdmj = feature.values_.zdmj;//宗地面积
  5167. // obj.yt = feature.values_.yt;//用途
  5168. // obj.ytmc = feature.values_.ytmc;//用途名称
  5169. // obj.dj = feature.values_.dj;//宗地编号
  5170. // obj.jg = feature.values_.jg;//价格万元
  5171. // obj.qllx = feature.values_.qllx;//权利类型
  5172. // obj.qlxz = feature.values_.qlxz;//权利性质
  5173. // obj.qlsdfs = feature.values_.qlsdfs;//权利设定方式
  5174. // obj.rjl = feature.values_.rjl;//容积率
  5175. // obj.jzmd = feature.values_.jzmd;//建筑密度
  5176. // obj.jzxg = feature.values_.jzxg;//建筑限高
  5177. // obj.zdszd = feature.values_.zdszd;//宗地四至-东
  5178. // obj.zdszn = feature.values_.zdszn;//宗地四至-南
  5179. // obj.zdszx = feature.values_.zdszx;//宗地四至-西
  5180. // obj.zdszb = feature.values_.zdszb;//宗地四至-北
  5181. // obj.zdt = feature.values_.zdt;//宗地图
  5182. // obj.tfh = feature.values_.tfh;//图幅号
  5183. // obj.djh = feature.values_.djh;//地籍号
  5184. // obj.sjly = feature.values_.sjly;//数据来源
  5185. // obj.lyzk = feature.values_.lyzk;//当前利用状况
  5186. // obj.xzkssj = feature.values_.xzkssj;//闲置开始时间
  5187. // obj.sffz = feature.values_.sffz;//是否发证
  5188. // obj.zjdzsh = feature.values_.zjdzsh;//宅基地证书号
  5189. // obj.zjdxctp = feature.values_.zjdxctp;//宅基地现场图片
  5190. // obj.zjdqdfs = feature.values_.zjdqdfs;//宅基地取得方式
  5191. // obj.bccjl = feature.values_.bccjl;//被惩处经历
  5192. // obj.bccbz = feature.values_.bccbz;//被惩处备注
  5193. // obj.yctcyx = feature.values_.yctcyx;//有偿退出意向
  5194. // obj.zjdpzmj = feature.values_.zjdpzmj;//宅基地批准面积
  5195. // obj.zjdxzyy = feature.values_.zjdxzyy;//宅基地闲置原因
  5196. // obj.lzyx = feature.values_.lzyx;//流转意向
  5197. // obj.sysNormalDisable = feature.values_.sysNormalDisable;//是否停用
  5198. // obj.active = 1;
  5199. // //字典项转化
  5200. // //是否发证字典项
  5201. // that.getDicts("sys_yes_no").then((response) => {
  5202. // var assetTypeOptions = response.data;
  5203. // if(obj.sffz !=null && obj.sffz !=""){
  5204. // for(var i=0;assetTypeOptions.length >i; i++){
  5205. // if(obj.sffz == assetTypeOptions[i].dictValue) {
  5206. // obj.sffz = assetTypeOptions[i].dictLabel;
  5207. // break;
  5208. // }
  5209. // }
  5210. // }
  5211. // });
  5212. // //利用状态字典项
  5213. // that.getDicts("zjdlyzk").then((response) => {
  5214. // var assetTypeOptions = response.data;
  5215. // if(obj.lyzk !=null && obj.lyzk !=""){
  5216. // for(var i=0;assetTypeOptions.length >i; i++){
  5217. // if(obj.lyzk == assetTypeOptions[i].dictValue) {
  5218. // obj.lyzk = assetTypeOptions[i].dictLabel;
  5219. // break;
  5220. // }
  5221. // }
  5222. // }
  5223. // });
  5224. // //流转意向字典项
  5225. // that.getDicts("is_have").then((response) => {
  5226. // var assetTypeOptions = response.data;
  5227. // if(obj.lzyx !=null && obj.lzyx !=""){
  5228. // for(var i=0;assetTypeOptions.length >i; i++){
  5229. // if(obj.lzyx == assetTypeOptions[i].dictValue) {
  5230. // obj.lzyx = assetTypeOptions[i].dictLabel;
  5231. // break;
  5232. // }
  5233. // }
  5234. // }
  5235. // });
  5236. // //有偿退出意向字典项
  5237. // that.getDicts("is_have").then((response) => {
  5238. // var assetTypeOptions = response.data;
  5239. // if(obj.yctcyx !=null && obj.yctcyx !=""){
  5240. // for(var i=0;assetTypeOptions.length >i; i++){
  5241. // if(obj.yctcyx == assetTypeOptions[i].dictValue) {
  5242. // obj.yctcyx = assetTypeOptions[i].dictLabel;
  5243. // break;
  5244. // }
  5245. // }
  5246. // }
  5247. // });
  5248. // //被惩处经历字典项
  5249. // that.getDicts("is_have").then((response) => {
  5250. // var assetTypeOptions = response.data;
  5251. // if(obj.bccjl !=null && obj.bccjl !=""){
  5252. // for(var i=0;assetTypeOptions.length >i; i++){
  5253. // if(obj.bccjl == assetTypeOptions[i].dictValue) {
  5254. // obj.bccjl = assetTypeOptions[i].dictLabel;
  5255. // break;
  5256. // }
  5257. // }
  5258. // }
  5259. // });
  5260. // //宅基地取得方式字典项
  5261. // that.getDicts("acquisition_method").then((response) => {
  5262. // var assetTypeOptions = response.data;
  5263. // if(obj.zjdqdfs !=null && obj.zjdqdfs !=""){
  5264. // for(var i=0;assetTypeOptions.length >i; i++){
  5265. // if(obj.zjdqdfs == assetTypeOptions[i].dictValue) {
  5266. // obj.zjdqdfs = assetTypeOptions[i].dictLabel;
  5267. // break;
  5268. // }
  5269. // }
  5270. // }
  5271. // });
  5272. // //权利设定方式字典项
  5273. // that.getDicts("right_setting_mode").then((response) => {
  5274. // var assetTypeOptions = response.data;
  5275. // if(obj.qlsdfs !=null && obj.qlsdfs !=""){
  5276. // for(var i=0;assetTypeOptions.length >i; i++){
  5277. // if(obj.qlsdfs == assetTypeOptions[i].dictValue) {
  5278. // obj.qlsdfs = assetTypeOptions[i].dictLabel;
  5279. // break;
  5280. // }
  5281. // }
  5282. // }
  5283. // });
  5284. // //数据来源字典项
  5285. // that.getDicts("sjly").then((response) => {
  5286. // var assetTypeOptions = response.data;
  5287. // if(obj.sjly !=null && obj.sjly !=""){
  5288. // for(var i=0;assetTypeOptions.length >i; i++){
  5289. // if(obj.sjly == assetTypeOptions[i].dictValue) {
  5290. // obj.sjly = assetTypeOptions[i].dictLabel;
  5291. // break;
  5292. // }
  5293. // }
  5294. // }
  5295. // });
  5296. // that.mapZjdData = obj;
  5297. // console.log(obj.zjddm);
  5298. // that.zjdHcDy = obj.zjddm;
  5299. // } else {
  5300. // that.mapHaDataValue = false;
  5301. // }
  5302. // }else {
  5303. // that.mapHaDataValue = false;
  5304. // }
  5305. //数据库查询详情时使用----------------------------------------end
  5306. });
  5307. //数据库循环加载时使用 --------------------加载较慢 ------start
  5308. //当前账套没有任何空间数据
  5309. // if(mapTalkAbout){
  5310. // let deptName = this.$store.state.user.loginDeptId + "";
  5311. // getQueryLand(deptName).then((response) => {
  5312. // if (response.code == 200) {
  5313. // let InsertCode = response.data;
  5314. // if (InsertCode != null) {
  5315. // var lat = InsertCode.lat;
  5316. // var lng = InsertCode.lng;
  5317. // var center;
  5318. // if(lat !=null && lng !=null && lat !="" && lng !=""){
  5319. // center = [lng,lat];
  5320. // }else {
  5321. // center =[115.452752, 31.789033];
  5322. // }
  5323. // map.getView().animate({
  5324. // // 只设置需要的属性即可
  5325. // center: ol.proj.fromLonLat(center), // 中心点
  5326. // zoom: 17.9, // 缩放级别
  5327. // rotation: undefined, // 缩放完成view视图旋转弧度
  5328. // duration: 1000, // 缩放持续时间,默认不需要设置
  5329. // });
  5330. // }
  5331. // }
  5332. // });
  5333. // }
  5334. //数据库循环加载时使用 --------------------加载较慢 ------start
  5335. },
  5336. /*右侧列表 --展开收缩*/
  5337. selectionPushMap() {
  5338. this.selectionIconShow = true;
  5339. this.homesteadListStatus = true;
  5340. $(".homesteadList_wrap").animate(
  5341. {
  5342. right: "0",
  5343. },
  5344. 300
  5345. );
  5346. },
  5347. homesteadListShrink() {
  5348. this.selectionIconShow = false;
  5349. // this.checked =["zjdSx","zrzSx","fsssSx"];
  5350. $(".homesteadList_wrap").animate(
  5351. {
  5352. right: "-300px",
  5353. },
  5354. 300
  5355. );
  5356. setTimeout(() => {
  5357. this.homesteadListStatus = false;
  5358. }, 300);
  5359. },
  5360. checkClick(res){
  5361. // 1、全选与不全选模块
  5362. $(".checkall").change(function() {
  5363. $(".item-list-checkbox .checkitem").prop("checked", $(this).prop("checked"));
  5364. if($(this).prop("checked")){
  5365. }else {
  5366. }
  5367. });
  5368. // 2、小复选框模块
  5369. $(".checkitem").change(function() {
  5370. if ($(".checkitem:checked").length === $(".checkitem").length) {
  5371. $(".checkall").prop("checked", true);
  5372. } else {
  5373. $(".checkall").prop("checked", false);
  5374. }
  5375. })
  5376. },
  5377. //绘制多边形地图
  5378. drawMapPolygonFun() {
  5379. },
  5380. guidProduct(){
  5381. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  5382. var r = Math.random() * 16 | 0,
  5383. v = c == 'x' ? r : (r & 0x3 | 0x8);
  5384. return v.toString(16);
  5385. });
  5386. },
  5387. //宅基地点击地图核查
  5388. zjdHc(){
  5389. if(this.zjdHcDy != "" && this.zjdHcDy != "undefined"){
  5390. if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
  5391. this.mapZjdTeAll.active =1;
  5392. //this.$cookies.set("search",this.mapZjdTeAll);
  5393. this.$cookies.set("search","")
  5394. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5395. //this.$router.push({path:'/homesteadSurvey/add'});
  5396. }else if(this.mapZrzData !=undefined && this.mapZrzData !=""){
  5397. if(this.mapZjdTeAll.mapZjdAData !=""){
  5398. this.mapZjdTeAll.active = 3;
  5399. //this.$cookies.set("search",this.mapZjdTeAll);
  5400. this.$cookies.set("search","")
  5401. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5402. } else {
  5403. this.$toast("必须有宅基地数据才能进入自然幢核查");
  5404. }
  5405. }else {
  5406. if(this.mapZjdTeAll.mapZjdAData !="") {
  5407. this.mapZjdTeAll.active = 4;
  5408. //this.$cookies.set("search", this.mapZjdTeAll);
  5409. this.$cookies.set("search","")
  5410. this.$router.push({path: '/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5411. } else {
  5412. this.$toast("必须有宅基地数据才能进入附属设施核查");
  5413. }
  5414. }
  5415. } else {
  5416. this.$dialog.alert({
  5417. title: '宅基地核查',
  5418. message: "请从地图中选择图层并点击核查",
  5419. theme: 'round-button',
  5420. }).then(() => {
  5421. // on close
  5422. });
  5423. }
  5424. },
  5425. //搜索详情跳转
  5426. zjdSs(item){
  5427. this.mapZjdTeAll.mapZjdAData ={};
  5428. this.mapZjdTeAll.mapZrzAData ={};
  5429. this.mapZjdTeAll.mapFsssAData ={};
  5430. //this.mapZjdTeAll.active =1;
  5431. if(item.typeTc =="宅基地"){
  5432. getZjdzd(item.id).then((response) => {
  5433. this.mapZjdData = response.data;
  5434. this.mapZjdTeAll.active = 1;
  5435. this.mapZjdTeAll.mapZjdAData = this.mapZjdData;
  5436. //this.$cookies.set("search",this.mapZjdTeAll);
  5437. this.$cookies.set("search","")
  5438. setTimeout(() => {
  5439. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5440. }, 500);
  5441. });
  5442. }else if(item.typeTc =="自然幢"){
  5443. //let =
  5444. getZjdzd(item.id).then((response) => {
  5445. this.mapZrzData = response.data;
  5446. this.mapZjdTeAll.active = 3;
  5447. this.mapZjdTeAll.mapZrzAData = this.mapZrzData;
  5448. //this.$cookies.set("search",this.mapZjdTeAll);
  5449. this.$cookies.set("search","")
  5450. setTimeout(() => {
  5451. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5452. }, 500);
  5453. });
  5454. }else if(item.typeTc =="附属设施"){
  5455. getFsss(item.id).then((response) => {
  5456. this.mapFsssData = response.data;
  5457. this.mapZjdTeAll.active = 4;
  5458. this.mapZjdTeAll.mapFsssAData = this.mapFsssData;
  5459. //this.$cookies.set("search",this.mapZjdTeAll);
  5460. this.$cookies.set("search","")
  5461. setTimeout(() => {
  5462. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5463. }, 500);
  5464. });
  5465. }else{
  5466. this.$toast("无数据请检查后进入核查页面");
  5467. }
  5468. },
  5469. //地图查询
  5470. toggleSearch() {
  5471. $("#query").trigger("click");
  5472. },
  5473. //
  5474. checkAllArray(value){
  5475. if(this.checked.length<3){
  5476. this.$refs.checkboxGroup.toggleAll(true);
  5477. }else{
  5478. this.$refs.checkboxGroup.toggleAll(false);
  5479. }
  5480. },
  5481. //筛选//全选
  5482. checkAll(val) {
  5483. this.$refs.checkboxGroup.value.toggleAll(true);
  5484. return;
  5485. let checkedCount = this.CheckedAllArr.length
  5486. if (val) {
  5487. //全选
  5488. this.CheckedAllArr = this.dataList.map(item => item.id)
  5489. } else{
  5490. //取消全选
  5491. if (checkedCount === this.dataList.length) {
  5492. //如果不增加这个条件判断点击某一项时会全部取消
  5493. this.CheckedAllArr = []
  5494. }
  5495. }
  5496. },
  5497. //单选
  5498. handleChecked(value) {
  5499. // this.checkAllFlag = this.CheckedAllArr.length == this.dataList.length;
  5500. if (value.length<3){
  5501. this.checkAllFlag = false;
  5502. }else{
  5503. this.checkAllFlag = true;
  5504. }
  5505. value.indexOf('zjdSx') == -1 ? this.zjdSx = false : this.zjdSx = true;
  5506. value.indexOf('zrzSx') == -1 ? this.zrzSx = false : this.zrzSx = true;
  5507. value.indexOf('fsssSx') == -1 ? this.fsssSx = false : this.fsssSx = true;
  5508. },
  5509. closeSearchBox(){
  5510. this.showSearch = false ;
  5511. var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true)
  5512. document.styleSheets[0].insertRule(
  5513. "@keyframes test2" +
  5514. "{" +
  5515. "0%{bottom: 0px}" +
  5516. "100%{bottom: -" + height + "px;}" +
  5517. "}"
  5518. )
  5519. $('.searchBar_wrap').css({'animation':'test2 0.5s ease-in-out 0s 1 alternate forwards','-webkit-animation':'test2 0.5s ease-in-out 0s 1 alternate forwards'});
  5520. },
  5521. zjdTz(){
  5522. if(this.mapZjdData =="" && this.mapZjdDataTure =="" && this.mapZjdData !=undefined){
  5523. this.mapZjdTeAll.active =1;
  5524. this.mapZjdTeAll.mapZjdAData.deptId =this.$cookies.get("item").deptId;
  5525. this.mapZjdTeAll.mapZjdAData.theGeom =this.htZjdZrzFsss;
  5526. //this.mapZjdTeAll.mapZjdAData.deptId = this.$cookies.get("item").deptId;
  5527. //this.$cookies.set("search",this.mapZjdTeAll);
  5528. this.$cookies.set("search","")
  5529. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5530. }else {
  5531. this.$toast("已选择宅基地,请选择自然幢或附属设施按钮");
  5532. }
  5533. },
  5534. zrzTz(){
  5535. if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
  5536. this.mapZjdTeAll.active =3;
  5537. this.mapZjdTeAll.mapZrzAData.theGeom =this.htZjdZrzFsss;
  5538. this.mapZjdTeAll.mapZrzAData.deptId =this.$cookies.get("item").deptId;
  5539. //this.mapZjdTeAll.mapZrzAData.deptId = this.$cookies.get("item").deptId;
  5540. //this.$cookies.set("search",this.mapZjdTeAll);
  5541. this.$cookies.set("search","")
  5542. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5543. }else {
  5544. this.$toast("请先在地图上选择宅基地后,再选择自然幢按钮");
  5545. }
  5546. },
  5547. fsssTz(){
  5548. if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
  5549. this.mapZjdTeAll.active =4;
  5550. this.mapZjdTeAll.mapFsssAData.theGeom =this.htZjdZrzFsss;
  5551. this.mapZjdTeAll.mapFsssAData.deptId =this.$cookies.get("item").deptId;
  5552. //this.mapZjdTeAll.mapFsssAData.deptId = this.$cookies.get("item").deptId;
  5553. //this.$cookies.set("search",this.mapZjdTeAll);
  5554. this.$cookies.set("search","")
  5555. this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
  5556. }else {
  5557. this.$toast("请先在地图上选择宅基地后,再选择附属设施按钮");
  5558. }
  5559. },
  5560. //绘图重置清除之前图层
  5561. deleteHistory(){
  5562. $("#deleteHistory").trigger("click");
  5563. }
  5564. },
  5565. }
  5566. </script>
  5567. <style scoped lang="scss">
  5568. /deep/ .van-swipe-cell__wrapper{
  5569. margin-right:-3px;
  5570. }
  5571. .hzlxBtn{
  5572. font-size: 0.3rem;
  5573. display: inline-block;
  5574. padding: 2% 0;
  5575. border-radius: 30PX;
  5576. color: #FFF;
  5577. margin-right: 2%;
  5578. width: 30%;
  5579. &:last-child{
  5580. margin: 0;
  5581. }
  5582. }
  5583. .van-cell__title{
  5584. flex:2
  5585. }
  5586. .bannerBg{
  5587. width: 100%;
  5588. color:#fff;
  5589. /*padding:10px;*/
  5590. background: linear-gradient(134deg,#7ac943 1%, #22b7f2);
  5591. }
  5592. .van-hairline--bottom::after {
  5593. border-bottom-width: 0;
  5594. }
  5595. .activeBtn{
  5596. background:#fff;
  5597. height:50px;
  5598. border-radius:25px;
  5599. color:#7AC943;
  5600. line-height:50px;
  5601. text-align:center;
  5602. font-size:20px;
  5603. width: 26%;
  5604. margin:0 10px;
  5605. box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16);
  5606. }
  5607. .disactiveBtn{
  5608. background:rgba(255,255,255,.4);
  5609. height:50px;
  5610. border-radius:25px;
  5611. color:#fff;
  5612. line-height:50px;
  5613. text-align:center;
  5614. font-size:20px;
  5615. width: 26%;
  5616. margin:0 10px;
  5617. box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16);
  5618. }
  5619. /*.van-cell__label{*/
  5620. /* color: #969799;*/
  5621. /* font-size: 12px;*/
  5622. /* line-height: 20px;*/
  5623. /* margin:0*/
  5624. /*}*/
  5625. .map_area {
  5626. width: 50vw;
  5627. height: 50vh;
  5628. z-index:1;
  5629. background:#000;
  5630. position: fixed;
  5631. left: 0;
  5632. top: 0;
  5633. }
  5634. .van-field__label{
  5635. width:50%;
  5636. }
  5637. .rightZoom_wrap {
  5638. position: absolute;
  5639. right: 3%;
  5640. top: 35%;
  5641. margin-top: -200px;
  5642. background: #fff;
  5643. margin-bottom: 16px;
  5644. border-radius: 10px;
  5645. text-align: center;
  5646. padding: 15px 20px;
  5647. img{
  5648. margin: 0 auto;
  5649. }
  5650. .amplification {
  5651. line-height: 1;
  5652. font-size: 18px;
  5653. text-align: center;
  5654. margin-top: 5px;
  5655. }
  5656. }
  5657. .mapZoom_wrap {
  5658. position: absolute;
  5659. right: 3%;
  5660. top: 50%;
  5661. margin-top: -200px;
  5662. background: #fff;
  5663. margin-bottom: 16px;
  5664. border-radius: 10px;
  5665. padding: 0px 20px;
  5666. div{
  5667. padding: 15px 0;
  5668. border-bottom: 1px solid #C9C9C9;
  5669. &:last-child{
  5670. border: none;
  5671. }
  5672. p{
  5673. margin-top: 5px;
  5674. }
  5675. }
  5676. .qtMap {
  5677. font-size: 18px;
  5678. text-align: center;
  5679. line-height: 1;
  5680. }
  5681. .clMap {
  5682. font-size: 18px;
  5683. text-align: center;
  5684. line-height: 1;
  5685. }
  5686. .hcMap {
  5687. font-size: 18px;
  5688. text-align: center;
  5689. line-height: 1;
  5690. }
  5691. .htMap {
  5692. font-size: 18px;
  5693. text-align: center;
  5694. line-height: 1;
  5695. }
  5696. .dwMap {
  5697. font-size: 18px;
  5698. text-align: center;
  5699. line-height: 1;
  5700. }
  5701. }
  5702. .rightIcon_wrap {
  5703. position: absolute;
  5704. right: 16px;
  5705. bottom: 160px;
  5706. .selectionIcon_wrap {
  5707. width: 74px;
  5708. background: #fff;
  5709. border-radius: 10px;
  5710. padding: 14px 0;
  5711. .icon {
  5712. width: 38px;
  5713. height: 38px;
  5714. background: url("../../assets/images/homestead/selection_icon.png")
  5715. no-repeat;
  5716. background-size: 100% 100%;
  5717. margin: 0 auto 4px;
  5718. }
  5719. .text {
  5720. font-size: 24px;
  5721. text-align: center;
  5722. }
  5723. }
  5724. .positioning_wrap {
  5725. width: 74px;
  5726. background: #fff;
  5727. margin-bottom: 16px;
  5728. border-radius: 10px;
  5729. height: 74px;
  5730. display: flex;
  5731. justify-content: center; /* 相对父元素水平居中 */
  5732. align-items: center; /* 子元素相对父元素垂直居中*/
  5733. .icon {
  5734. width: 38px;
  5735. height: 38px;
  5736. background: url("../../assets/images/homestead/positioning_icon.png")
  5737. no-repeat;
  5738. background-size: 100% 100%;
  5739. margin: 0 auto;
  5740. }
  5741. }
  5742. }
  5743. .homesteadList_wrap {
  5744. // display: none;
  5745. display: flex;
  5746. position: absolute;
  5747. right: -200px;
  5748. top: 0px;
  5749. bottom: 0px;
  5750. width: 300px;
  5751. background: #fff;
  5752. z-index: 999;
  5753. border-top-left-radius: 15px;
  5754. border-bottom-left-radius: 15px;
  5755. flex-direction: column;
  5756. .noInfo_data {
  5757. font-size: 28px;
  5758. text-align: center;
  5759. height: 300px;
  5760. line-height: 300px;
  5761. color: #666;
  5762. }
  5763. .title_m {
  5764. color: #333;
  5765. line-height: 36px;
  5766. padding: 20px 40px 22px;
  5767. .name {
  5768. font-size: 36px;
  5769. line-height: 42px;
  5770. height: 42px;
  5771. }
  5772. .more_icon {
  5773. width: 38px;
  5774. height: 38px;
  5775. background: url("../../assets/images/homestead/selectionNext_icon.png")
  5776. no-repeat;
  5777. float: right;
  5778. margin-top: 2px;
  5779. }
  5780. }
  5781. .main_m {
  5782. overflow-y: auto;
  5783. padding: 10px 0;
  5784. // height: 300px;
  5785. flex: 1;
  5786. .flex_block {
  5787. height: 70px;
  5788. display: flex;
  5789. // justify-content: center; /* 相对父元素水平居中 */
  5790. align-items: center; /* 子元素相对父元素垂直居中 */
  5791. padding: 0 40px;
  5792. &.active {
  5793. box-shadow: 0px 0px 10px rgba(24, 45, 51, 0.5);
  5794. }
  5795. .name_text {
  5796. font-size: 28px;
  5797. flex: 0.5;
  5798. overflow: hidden; /*超出部分隐藏*/
  5799. white-space: nowrap; /*不换行*/
  5800. text-overflow: ellipsis; /*超出部分文字以...显示*/
  5801. }
  5802. .square_text {
  5803. font-size: 28px;
  5804. flex: 0.4;
  5805. }
  5806. .operation_mian {
  5807. flex: 0 0 150px;
  5808. .describe {
  5809. font-size: 20px;
  5810. padding: 6px 5px;
  5811. float: right;
  5812. color: #fff;
  5813. border-radius: 30px;
  5814. overflow: hidden;
  5815. text-overflow: ellipsis;
  5816. white-space: nowrap;
  5817. max-width: 150px;
  5818. &.yph {
  5819. background: #b026ff;
  5820. }
  5821. &.dlzdph {
  5822. background: #ff6f36;
  5823. }
  5824. &.ylz {
  5825. background: #7fff4c;
  5826. }
  5827. &.dlz {
  5828. background: rgb(255, 232, 76);
  5829. }
  5830. &.ylzdph {
  5831. background: #ff7dd0;
  5832. }
  5833. &.zy {
  5834. background: rgb(100, 30, 100);
  5835. }
  5836. &.xz {
  5837. background: rgb(60, 100, 180);
  5838. }
  5839. &.chdb {
  5840. background: #fe0303;
  5841. }
  5842. }
  5843. }
  5844. }
  5845. }
  5846. .footerBtn_wrap {
  5847. flex: 0 0 90px;
  5848. display: flex;
  5849. justify-content: center; /* 相对父元素水平居中 */
  5850. align-items: center; /* 子元素相对父元素垂直居中 */
  5851. .options {
  5852. flex: 1;
  5853. font-size: 38px;
  5854. display: flex;
  5855. justify-content: center; /* 相对父元素水平居中 */
  5856. align-items: center; /* 子元素相对父元素垂直居中 */
  5857. height: 90px;
  5858. &:first-child {
  5859. border-bottom-left-radius: 15px;
  5860. }
  5861. &.active {
  5862. background: #3cbf5b;
  5863. color: #fff;
  5864. }
  5865. }
  5866. }
  5867. }
  5868. .checkbox {
  5869. width: 200px;
  5870. margin: 30px auto;
  5871. }
  5872. .thead-checkbox {
  5873. background-color: lightgray;
  5874. }
  5875. .item-checkbox {
  5876. border: 1px solid darkgray;
  5877. }
  5878. .van-sticky{position: fixed;top: 0;right: 0; left: 0;z-index: 9999;}
  5879. .searchBar_wrap {
  5880. // display: none;
  5881. position: fixed;
  5882. left: 0;
  5883. bottom: 0;
  5884. width: 100%;
  5885. padding: 0px 16px 0px 13px;
  5886. background: #fff;
  5887. border-top-left-radius: 15px;
  5888. border-top-right-radius: 15px;
  5889. z-index: 9;
  5890. .searchBox{
  5891. height: 40vh;
  5892. overflow-y: scroll;
  5893. .van-cell{
  5894. /*&:first-child{*/
  5895. /* box-shadow: none;*/
  5896. /* margin:0;*/
  5897. /*}*/
  5898. box-shadow: 0px 0px 5px #cccccc;
  5899. border-radius: 15PX;
  5900. width: 98%;
  5901. margin: 0 auto;
  5902. margin-bottom: 0.35rem;
  5903. &:first-child{
  5904. margin-top: 5px;
  5905. }
  5906. }
  5907. .van-cell__title{
  5908. flex: 0.8;
  5909. p{
  5910. color: rgb(34, 183, 242);
  5911. .van-icon{
  5912. vertical-align: middle;
  5913. }
  5914. span{
  5915. vertical-align: middle;
  5916. &:nth-child(2){
  5917. overflow: hidden;
  5918. white-space: nowrap;
  5919. text-overflow: ellipsis;
  5920. display: inline-block;
  5921. width: 60%;
  5922. }
  5923. &:nth-child(3){
  5924. font-size: 0.25rem;
  5925. border-radius: 5PX;
  5926. padding: 5PX 15PX;
  5927. margin-left: 5%;
  5928. }
  5929. }
  5930. }
  5931. }
  5932. .van-cell__value{
  5933. flex: 0.2;
  5934. p{
  5935. font-size: 0.25rem;
  5936. display: inline-block;
  5937. border-radius: 1rem;
  5938. line-height: 1;
  5939. padding: 10%;
  5940. }
  5941. }
  5942. }
  5943. .actionBar_wrap {
  5944. display: flex;
  5945. position: absolute;
  5946. top: 0;
  5947. left: 0;
  5948. width: 100%;
  5949. height: 100%;
  5950. background: #fff;
  5951. border-top-left-radius: 15px;
  5952. border-top-right-radius: 15px;
  5953. .m_list {
  5954. flex: 1;
  5955. display: flex;
  5956. justify-content: center; /* 相对父元素水平居中 */
  5957. align-items: center; /* 子元素相对父元素垂直居中 */
  5958. .tensile,
  5959. .positioning,
  5960. .spacing,
  5961. .scale {
  5962. width: 76px;
  5963. height: 72px;
  5964. background: #ffffff;
  5965. border-radius: 8px;
  5966. box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.16);
  5967. .icon {
  5968. width: 76px;
  5969. height: 72px;
  5970. }
  5971. &.active {
  5972. background: #333;
  5973. &.tensile {
  5974. .icon {
  5975. background: url("../../assets/images/homestead/operation/tensile_active.png")
  5976. center center no-repeat;
  5977. background-size: 38px 50px;
  5978. }
  5979. }
  5980. &.positioning {
  5981. .icon {
  5982. background: url("../../assets/images/homestead/operation/positioning_active.png")
  5983. center center no-repeat;
  5984. background-size: 38px 48px;
  5985. }
  5986. }
  5987. &.spacing {
  5988. .icon {
  5989. background: url("../../assets/images/homestead/operation/spacing_active.png")
  5990. center center no-repeat;
  5991. background-size: 46px 46px;
  5992. }
  5993. }
  5994. &.scale {
  5995. .icon {
  5996. background: url("../../assets/images/homestead/operation/scale_active.png")
  5997. center center no-repeat;
  5998. background-size: 48px 48px;
  5999. }
  6000. }
  6001. }
  6002. }
  6003. .tensile {
  6004. .icon {
  6005. background: url("../../assets/images/homestead/operation/tensile.png")
  6006. center center no-repeat;
  6007. background-size: 38px 50px;
  6008. }
  6009. }
  6010. .positioning {
  6011. .icon {
  6012. background: url("../../assets/images/homestead/operation/positioning.png")
  6013. center center no-repeat;
  6014. background-size: 38px 48px;
  6015. }
  6016. }
  6017. .spacing {
  6018. .icon {
  6019. background: url("../../assets/images/homestead/operation/spacing.png")
  6020. center center no-repeat;
  6021. background-size: 46px 46px;
  6022. }
  6023. }
  6024. .scale {
  6025. .icon {
  6026. background: url("../../assets/images/homestead/operation/scale.png")
  6027. center center no-repeat;
  6028. background-size: 48px 48px;
  6029. }
  6030. }
  6031. .closes {
  6032. background: url("../../assets/images/homestead/searchBar_close.png")
  6033. no-repeat;
  6034. background-size: 100% 100%;
  6035. width: 72px;
  6036. height: 72px;
  6037. &.gray {
  6038. background: url("../../assets/images/homestead/searchBar_close_gray.png")
  6039. no-repeat;
  6040. background-size: 100% 100%;
  6041. }
  6042. }
  6043. .correct {
  6044. background: url("../../assets/images/homestead/searchBar_save.png")
  6045. no-repeat;
  6046. background-size: 100% 100%;
  6047. width: 72px;
  6048. height: 72px;
  6049. }
  6050. }
  6051. }
  6052. .searchBar_area {
  6053. flex: 1;
  6054. height: 80px;
  6055. background: #f1f1f1;
  6056. border: 1px solid #dfdfdf;
  6057. border-radius: 10px;
  6058. padding: 0 28px;
  6059. display: flex;
  6060. .bar_icon {
  6061. width: 50px;
  6062. height: 50px;
  6063. background: url("../../assets/images/homestead/searchBar_bar.png")
  6064. center center no-repeat;
  6065. background-size: 100% 100%;
  6066. margin-top: 14px;
  6067. margin-right: 15px;
  6068. }
  6069. .bar_ipt {
  6070. flex: 1;
  6071. input {
  6072. width: 100%;
  6073. height: 100%;
  6074. background: none;
  6075. border: 0 none;
  6076. font-size: 32px;
  6077. }
  6078. }
  6079. .bar_text {
  6080. flex: 0 0 80px;
  6081. font-size: 32px;
  6082. color: #333333;
  6083. font-family: PingFang SC, PingFang SC-Regular;
  6084. font-weight: 400;
  6085. display: flex;
  6086. justify-content: center; /* 相对父元素水平居中 */
  6087. align-items: center; /* 子元素相对父元素垂直居中 */
  6088. }
  6089. }
  6090. .searchBar_more {
  6091. flex: 0 0 80px;
  6092. background: url("../../assets/images/homestead/searchBar_add.png") center
  6093. center no-repeat;
  6094. background-size: 80% 80%;
  6095. margin-left: 15px;
  6096. }
  6097. }
  6098. </style>