This commit is contained in:
闫晓茹 2024-06-17 18:17:07 +08:00
parent 709b339cae
commit 873fb323bd

View File

@ -193,10 +193,9 @@ export default {
); );
this.$refs.cascaderAddr.getCheckedNodes().map((e) => { this.$refs.cascaderAddr.getCheckedNodes().map((e) => {
console.log(e, "55555555555"); console.log(e, "55555555555");
if(e.children.length == 0){ if (e.children.length == 0) {
this.add.push(e.label); this.add.push(e.label);
} }
}); });
}, },
@ -263,24 +262,27 @@ export default {
}, 100); }, 100);
}, },
fieldclick() { fieldclick() {
var aaa = document.querySelectorAll(".divBox"); var aaa = document.querySelectorAll(".divBox");
// console.log(this.html, "this.html--before"); // console.log(this.html, "this.html--before");
console.log(aaa, "打印dom"); console.log(aaa, "打印dom");
// if (aaa.length != 0) { // if (aaa.length != 0) {
// console.log(this.html, "this.html111"); // console.log(this.html, "this.html111");
// aaa.remove(); // aaa.remove();
// } // }
// else // else
if(aaa.length==0){ if (aaa.length == 0) {
// aaa.innerHTML = ""; // aaa.innerHTML = "";
this.html += `<span>${this.add}</span>`; this.html += `<div>${this.add}</div>`;
console.log(this.html, "this.html2222"); var abc = new RegExp("<p><br></p>", "g");
var bbb = this.html.replace(abc, "");
console.log(bbb, "bbb");
this.html = bbb;
} }
this.fieldshow = false; this.fieldshow = false;
setTimeout(() => { setTimeout(() => {
this.editor.focus(); this.editor.focus();
}, 30); }, 30);
// setTimeout(() => { // setTimeout(() => {
// if (this.modify) { // if (this.modify) {