修改
This commit is contained in:
parent
709b339cae
commit
873fb323bd
@ -193,10 +193,9 @@ export default {
|
||||
);
|
||||
this.$refs.cascaderAddr.getCheckedNodes().map((e) => {
|
||||
console.log(e, "55555555555");
|
||||
if(e.children.length == 0){
|
||||
if (e.children.length == 0) {
|
||||
this.add.push(e.label);
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
@ -263,25 +262,28 @@ export default {
|
||||
}, 100);
|
||||
},
|
||||
fieldclick() {
|
||||
|
||||
var aaa = document.querySelectorAll(".divBox");
|
||||
// console.log(this.html, "this.html--before");
|
||||
console.log(aaa, "打印dom");
|
||||
|
||||
// if (aaa.length != 0) {
|
||||
// console.log(this.html, "this.html111");
|
||||
// aaa.remove();
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
if(aaa.length==0){
|
||||
if (aaa.length == 0) {
|
||||
// aaa.innerHTML = "";
|
||||
this.html += `<span>${this.add}</span>`;
|
||||
console.log(this.html, "this.html2222");
|
||||
this.html += `<div>${this.add}</div>`;
|
||||
var abc = new RegExp("<p><br></p>", "g");
|
||||
var bbb = this.html.replace(abc, "");
|
||||
console.log(bbb, "bbb");
|
||||
this.html = bbb;
|
||||
}
|
||||
this.fieldshow = false;
|
||||
setTimeout(() => {
|
||||
this.editor.focus();
|
||||
}, 30);
|
||||
|
||||
setTimeout(() => {
|
||||
this.editor.focus();
|
||||
}, 30);
|
||||
|
||||
// setTimeout(() => {
|
||||
// if (this.modify) {
|
||||
// this.modify = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user