使用权利人
@@ -2936,16 +2936,11 @@ showdcsh:false, zjdAudit:'1', auditRemark:"", - ycms:"", isyc:'Y', ycms:"", showycbj:false, shownh:false, showhzzjlx:false, - showhzoccupation:false, - showhzjzqk:false, - showhzjzhcssfyzf:false, - showhzsjly:false, minDate:new Date(1950,1,1), maxDate:new Date(2030,1,1), nhdmValue:null, @@ -3092,8 +3087,6 @@ yctcyxOptions: [], // 被惩处经历字典 bccjlOptions: [], - // 审批或建设前土地状况字典 - tdzkOptions: [], // 批准时间字典 pzsjOptions: [], // 共有方式字典 @@ -3796,8 +3789,8 @@ img.onload = () => { const h = img.height const w = img.width - let ch = img.height/6 - let cw = img.width/6 + let ch = img.height/1 + let cw = img.width/1 let canvas = document.createElement('canvas') let ctx = canvas.getContext('2d') canvas.height = ch @@ -3812,14 +3805,17 @@ } const data2 = new FormData(); data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'})); - this.saveBlobAsFile(new Blob([new Uint8Array(d)],{type:'image/jpeg'}),this.form.zjddm) - uploadFile(data2).then(res => { + if(this.$cookies.get("upload")==null||this.$cookies.get("upload")==0){ + uploadFile(data2).then(res => { if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){ this.form.zjdxctp = this.form.zjdxctp + "," + res.fileName }else{ this.form.zjdxctp = res.fileName } }) + }else{ + this.saveBlobAsFile(new Blob([new Uint8Array(d)],{type:'image/jpeg'}),this.form.zjddm) + } } }, blobToBase64(blob) { @@ -3836,16 +3832,15 @@ }); }, saveBlobAsFile(blob, fileName) { - /* var reader = new FileReader(blob); + var reader = new FileReader(blob); reader.onloadend = function () { var base64 = reader.result ; var link = document.createElement("a"); link.setAttribute("href", base64); link.setAttribute("download", fileName); link.click(); - /!**!/ }; - reader.readAsDataURL(blob);*/ + reader.readAsDataURL(blob); let link = document.createElement("a"); link.href = window.URL.createObjectURL(blob); @@ -3979,12 +3974,6 @@ this.form5.sjly = value.dictValue this.showhncysjly= false }, - // 户主数据来源弹出框 - onConfirmhzsjly(value){ - this.nhform.sjlyName = value.dictLabel - this.nhform.sjly = value.dictValue - this.showhzsjly= false - }, // 宅基地等级弹出框 onConfirmdj(value){ this.form.djName = value.dictLabel @@ -4528,10 +4517,29 @@ } this.fileListzjd = [] if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""&&this.form.zjdxctp.length>0){ - let li = this.form.zjdxctp.split(","); - li.map(res => { - this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res}) - }) + if(this.baseUrl==""){ + let tt = setInterval( function () + { + if(this.baseUrl!=""){ + clearInterval(tt) + if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){ + let li = this.form.zjdxctp.split(","); + li.map(res => { + this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res}) + console.log({"url":this.baseUrl+res,"baseUrl":res}) + }) + } + } + },1000); + }else{ + if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){ + let li = this.form.zjdxctp.split(","); + li.map(res => { + this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res}) + console.log({"url":this.baseUrl+res,"baseUrl":res}) + }) + } + } } this.lyzkOptions.map(res => { @@ -5581,6 +5589,7 @@ 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==""){ @@ -6120,7 +6129,7 @@ border-radius: 3px; position:absolute; left:0; - bottom:0; + bottom:10px; } >>> .delete-button { height: 100%; diff --git a/src/views/homesteadSurvey/index.vue b/src/views/homesteadSurvey/index.vue index 75e66486..7f810d83 100644 --- a/src/views/homesteadSurvey/index.vue +++ b/src/views/homesteadSurvey/index.vue @@ -66,7 +66,7 @@{{item.deptName}} @@ -132,7 +132,7 @@
{{item.deptName}}
图片上传
+