@@ -194,21 +194,15 @@ export default {
},
methods: {
+ // 知识库
handleChange(e) {
- console.log(e, "e");
this.add = [];
- console.log(
- this.$refs.cascaderAddr.getCheckedNodes(),
- "---------------------"
- );
this.$refs.cascaderAddr.getCheckedNodes().map((e) => {
- console.log(e, "55555555555");
if (e.children.length == 0) {
this.add.push(e.label);
}
});
},
-
async handleUpload(file, insertFn) {
let form = new FormData();
form.append("file", file);
@@ -229,19 +223,16 @@ export default {
this.$emit("on-nodeContent", { nodeContent: this.html });
},
panelchange(value) {
- console.log(value, "value");
+ // console.log(value, "value");
this.addlist = [];
value.forEach((e) => {
- console.log(e, "eeeeee");
+ // console.log(e, "eeeeee");
this.labeloptions.forEach((el) => {
el.children.forEach((ele) => {
if (e[1] == ele.value) {
console.log(e[1], "[1]");
- this.addlist.push(el.label + "-" + ele.label);
- // this.hlist.push(el.label)
- // this.handlelist.push(ele.label)
-
+ // this.addlist.push(el.label + "-" + ele.label);
console.log(this.addlist, "this.addlist");
}
});