|
@@ -55,9 +55,9 @@
|
|
},
|
|
},
|
|
|
|
|
|
created(){
|
|
created(){
|
|
- setTimeout(()=>{
|
|
|
|
- this.removeActAddress();
|
|
|
|
- },500)
|
|
|
|
|
|
+ // setTimeout(()=>{
|
|
|
|
+ // this.removeActAddress();
|
|
|
|
+ // },500)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
readExcel(event) {
|
|
readExcel(event) {
|
|
@@ -75,7 +75,7 @@
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
this.formatExcel();
|
|
this.formatExcel();
|
|
},500)
|
|
},500)
|
|
- const ws1 = wb.Sheets['权属信息'];
|
|
|
|
|
|
+ const ws1 = wb.Sheets['权属信息(不动产权证)'];
|
|
this.certificatesData = XLSX.utils.sheet_to_html(ws1) + viewTableCss;
|
|
this.certificatesData = XLSX.utils.sheet_to_html(ws1) + viewTableCss;
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
this.formatCertificateDate();
|
|
this.formatCertificateDate();
|
|
@@ -114,8 +114,14 @@
|
|
|
|
|
|
formatExcel(){
|
|
formatExcel(){
|
|
const trs = document.querySelectorAll(".targetTable tr")
|
|
const trs = document.querySelectorAll(".targetTable tr")
|
|
- console.log(trs)
|
|
|
|
|
|
+ trs[0].remove();
|
|
|
|
+ trs[1].remove();
|
|
const td0 = trs[2].childNodes
|
|
const td0 = trs[2].childNodes
|
|
|
|
+ for (let i = 0 ; i<trs.length; i++){
|
|
|
|
+ if (trs[i].childNodes[0].textContent===''){
|
|
|
|
+ trs[i].remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
for (let i =td0.length-1;i>0;i--){
|
|
for (let i =td0.length-1;i>0;i--){
|
|
if (td0[i].textContent===''){
|
|
if (td0[i].textContent===''){
|
|
for (var j = 0 ; j<trs.length;j++){
|
|
for (var j = 0 ; j<trs.length;j++){
|
|
@@ -130,6 +136,11 @@
|
|
for (let i =0;i<2;i++){
|
|
for (let i =0;i<2;i++){
|
|
trs[i].remove();
|
|
trs[i].remove();
|
|
}
|
|
}
|
|
|
|
+ for (let i = 0 ; i<trs.length; i++){
|
|
|
|
+ if (trs[i].childNodes[0].textContent===''){
|
|
|
|
+ trs[i].remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|