From b20326e079adda8f427d9849a47010abb8ed862c Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Mon, 7 Mar 2022 11:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Map/MapGisDrawing.vue | 2 +- src/views/homesteadSurvey/add.vue | 74 +++++++++++++++++++--------- src/views/homesteadSurvey/list.vue | 9 +++- src/views/homesteadSurvey/settle.vue | 5 +- 4 files changed, 63 insertions(+), 27 deletions(-) diff --git a/src/components/Map/MapGisDrawing.vue b/src/components/Map/MapGisDrawing.vue index 4f264e6e..686f780b 100644 --- a/src/components/Map/MapGisDrawing.vue +++ b/src/components/Map/MapGisDrawing.vue @@ -62,7 +62,7 @@ export default { }, //地图查看 drawingPaceCountryDarw() { - console.log(this.message); +/* console.log(this.message);*/ //加载地图编辑 var that = this; var map; diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 9ed7b7fe..3135e4e9 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -248,6 +248,8 @@ type="date" @confirm="onConfirmxzkssj" @cancel="showPickerxzkssj = false" + :min-date="minDate" + :max-date="maxDate" /> @@ -468,8 +470,8 @@

{{item.nhdm}}

- 查看使用权人 查看户主 + 查看使用权人 查看成员
@@ -1981,6 +1983,8 @@ type="date" @confirm="onConfirmdjsj" @cancel="showPickerdjsj = false" + :min-date="minDate" + :max-date="maxDate" /> @@ -1988,6 +1992,8 @@ type="date" @confirm="onConfirmdjsj" @cancel="showPickerdjsj = false" + :min-date="minDate" + :max-date="maxDate" /> @@ -1995,6 +2001,8 @@ type="date" @confirm="onConfirmcfqssj" @cancel="showPickercfqssj = false" + :min-date="minDate" + :max-date="maxDate" /> @@ -2002,6 +2010,8 @@ type="date" @confirm="onConfirmcfjssj" @cancel="showPickercfjssj = false" + :min-date="minDate" + :max-date="maxDate" /> @@ -2009,6 +2019,8 @@ type="date" @confirm="onConfirmzwlxsj1" @cancel="showPickerzwlxsj1 = false" + :min-date="minDate" + :max-date="maxDate" /> @@ -2016,6 +2028,8 @@ type="date" @confirm="onConfirmzwlxsj2" @cancel="showPickerzwlxsj2 = false" + :min-date="minDate" + :max-date="maxDate" /> @@ -2542,6 +2556,7 @@ label="成员备注" placeholder="成员备注" @click="showhncycybz = true" + readonly /> { this.hyzkOptions = response.data; }); - this.getDicts("cybz").then(response => { + this.getDicts("member_remark").then(response => { this.cybzOptions = response.data; }); this.getDicts("living_condition").then(response => { @@ -3243,6 +3258,7 @@ this.getZjd(); } + let a = document.cookie.split(';'); }, mounted(){ if(this.active ==1){ @@ -3275,7 +3291,6 @@ }, // 验证 validator(val){ - console.log(val.length) if(val>1||val<0||val.length>4){ return false }else{ @@ -3283,7 +3298,6 @@ } }, validator1(val){ - console.log(val) if(val>=1000||val<0||val.length>6){ return false }else{ @@ -3456,7 +3470,6 @@ const data2 = new FormData(); data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'})); uploadFile(data2).then(res => { - console.log(res) if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){ this.form.zjdxctp = this.form.zjdxctp + "," + res.fileName }else{ @@ -3467,7 +3480,6 @@ }, // 图片删除 deleteFilezjd(file){ - console.log(this.form.zjdxctp,file.baseUrl) let url = ","+file.baseUrl let url1 = file.baseUrl+"," this.form.zjdxctp = this.form.zjdxctp.replaceAll(url,"") @@ -3506,10 +3518,10 @@ const data2 = new FormData(); data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'})); uploadFile(data2).then(res => { - if(this.form5.zjdxctp!=null&&this.form5.zjdxctp!=""){ - this.form5.zjdxctp = this.form5.zjdxctp + "," + res.fileName + if(this.nmfwform.zjdxctp!=null&&this.nmfwform.zjdxctp!=""){ + this.nmfwform.zjdxctp = this.nmfwform.zjdxctp + "," + res.fileName }else{ - this.form5.zjdxctp = res.fileName + this.nmfwform.zjdxctp = res.fileName } }) } @@ -3519,8 +3531,8 @@ deleteFilefw(file){ let url = ","+file.baseUrl let url1 = file.baseUrl+"," - this.form5.zjdxctp = this.form5.zjdxctp.replaceAll(url,"") - this.form5.zjdxctp = this.form5.zjdxctp.replaceAll(url1,"") + this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url,"") + this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url1,"") }, onConfirmhzsjly(value){ this.nhform.sjlyName = value.dictLabel @@ -3559,6 +3571,8 @@ this.form1.shyqrdbxm = value.hzxm this.form1.shyqrdbzjhm = value.hzzjhm this.form1.shyqrdbzjlx = value.hzzjlx + this.form1.dh = value.phone + this.form1.dz = value.TXDZ this.zjlxOptions.map(res => { if(res.dictValue == this.form1.shyqrdbzjlx){ this.form1.shyqrdbzjlxName = res.dictLabel @@ -3657,7 +3671,6 @@ }, // 户内成员与户主关系弹出框 onConfirmyhzgx(value){ - console.log(value) this.form5.yhzgxName = value.dictLabel this.form5.yhzgx = value.dictValue this.showyhzgx = false @@ -3914,9 +3927,10 @@ let pnh = { deptId : item.deptId, nhdm : item.nhdm, - hzxm:item.xm, - hzzjlx :item.zjlx, - hzzjhm :item.zjhm + hzxm : item.xm, + hzzjlx : item.zjlx, + hzzjhm : item.zjhm, + phone : item.lxdh } setNhInfo(pnh).then(res => { }) @@ -3927,7 +3941,8 @@ shyqrdbxm : item.xm, shyqrdbzjlx : item.zjlx, shyqrdbzjhm : item.zjhm, - xb : item.xb + xb : item.xb, + dh : item.lxdh } setSyqrInfo(psyqr).then(res => { }) @@ -4067,7 +4082,6 @@ } listZjdzd(params).then(response => { this.form = response.rows[0]; - console.log(this.form) if(this.form.sffz==null||this.form.sffz==""){ this.form.sffz = "Y" } @@ -4111,7 +4125,6 @@ this.form.sjly = "04" this.form.sjlyName = "农村宅基地使用权确权登记发证" }else{ - console.log(this.form.sjly) this.sjlyOptions.map(res => { if(res.dictValue == this.form.sjly){ this.form.sjlyName = res.dictLabel @@ -4440,6 +4453,7 @@ duration:"1000", onClose:function(){ _this.active = 2 + _this.getSyqrList() } }) }); @@ -4454,6 +4468,7 @@ duration:"1000", onClose:function(){ _this.active = 2 + _this.getSyqrList() } }) }); @@ -4538,6 +4553,11 @@ this.form1.gyfsName = res.dictLabel } }) + this.hjszssOptions.map(res => { + if(res.dictValue == this.form1.hjszss){ + this.form1.hjszssName = res.dictLabel + } + }) } this.showsyqr = true; } @@ -4564,6 +4584,8 @@ "sfwbh":'N', "sjly":'07', "sjlyName":'农村集体产权制度改革', + "cybz":'9', + "cybzName":'其他备注' } }else{ this.form5 = item @@ -4614,6 +4636,10 @@ this.form5.sjly = "07" this.form5.sjlyName = "农村集体产权制度改革" } + if(this.form5.cybz==null||this.form5.cybz==""){ + this.form5.cybz = "9" + this.form5.cybzName = "其他备注" + } this.jzhcssfyzfOptions.map(res => { if(res.dictValue == item.jzhcssfyzf){ this.form5.jzhcssfyzfName = res.dictLabel @@ -4653,7 +4679,6 @@ this.showhncy = true }, showPopupzrz(item) { - console.log(item) if(this.form.id==null||this.form.id==""){ Notify({ type: 'danger', message: '请先保存宅基地信息' }); }else{ @@ -4711,6 +4736,7 @@ } }, showPopupfw(item) { + this.fileListfw = [] if(this.form.id==null||this.form.id==""){ Notify({ type: 'danger', message: '请先保存宅基地信息' }); }else{ @@ -4755,6 +4781,12 @@ } }else{ this.nmfwform = item + if(this.nmfwform.zjdxctp!=null&&this.nmfwform.zjdxctp!=""&&this.nmfwform.zjdxctp.length>0){ + let li = this.nmfwform.zjdxctp.split(","); + li.map(res => { + this.fileListfw.push({"url":this.baseUrl+res,"baseUrl":res}) + }) + } if(this.nmfwform.sfkjgj==null||this.nmfwform.sfkjgj==""){ this.nmfwform.sfkjgj = "N" } @@ -4905,6 +4937,7 @@ this.nmfwform.qslyName = res.dictLabel } }) + }} }, showPopuphncylist(item){ @@ -5035,7 +5068,6 @@ this.mapClickLoading(); }, onSubmit(values) { - console.log('submit', values); }, changeActive(){ if(this.active<4){ @@ -5209,8 +5241,6 @@ }, //地图加载js------start mapClickLoading(){ - console.log(1) - console.log(this.form); setTimeout(() => { this.$refs.drewingClickLoading.drawingPaceCountryDarw(); }, 500); diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue index 44f50ac1..0aec4188 100644 --- a/src/views/homesteadSurvey/list.vue +++ b/src/views/homesteadSurvey/list.vue @@ -1401,11 +1401,10 @@ /*this.yhzgxOptions = response.data;*/ }); - this.getDicts("cybz").then(response => { + this.getDicts("member_remark").then(response => { this.cybzOptions = response.data; }); if(this.$cookies.get("item")){ - console.log(this.$cookies.get("item")); if(this.$cookies.get("item").activeBtn !=null){ if(this.$cookies.get("item").activeBtn == 4){ this.activeBtn = this.$cookies.get("item").activeBtn; @@ -1991,6 +1990,8 @@ "sfwbh":'N', "sjly":'07', "sjlyName":'农村集体产权制度改革', + "cybz":'9', + "cybzName":'其他备注' } }else{ let _this = this @@ -2042,6 +2043,10 @@ this.form5.sjly = "07" this.form5.sjlyName = "农村集体产权制度改革" } + if(this.form5.cybz==null||this.form5.cybz==""){ + this.form5.cybz = "9" + this.form5.cybzName = "其他备注" + } this.jzhcssfyzfOptions.map(res => { if(res.dictValue == item.jzhcssfyzf){ this.form5.jzhcssfyzfName = res.dictLabel diff --git a/src/views/homesteadSurvey/settle.vue b/src/views/homesteadSurvey/settle.vue index e32f01f6..25ef262c 100644 --- a/src/views/homesteadSurvey/settle.vue +++ b/src/views/homesteadSurvey/settle.vue @@ -19,7 +19,7 @@ --> - + @@ -54,7 +54,8 @@ newPassword: "", confirmPassword: "", }}, - methods:{ + + methods:{ submit() { if(this.confirmPassword !=this.newPassword){