|
@@ -63,6 +63,8 @@ const ChildNodeSearch = defineComponent({
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ } else {
|
|
|
+ selectItem.value = {};
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -214,10 +216,26 @@ export default defineComponent({
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ const formatParentresetValue = (list: any) => {
|
|
|
+ for (const item of list) {
|
|
|
+ if (item.children && item.children.length > 0) {
|
|
|
+ // item.children.forEach(() => {
|
|
|
+ // item.activeIndex = '';
|
|
|
+ // });
|
|
|
+ }
|
|
|
+ item.activeIndex = '';
|
|
|
+
|
|
|
+ if (item.children && item.children.length > 0) {
|
|
|
+ formatParentresetValue(item.children);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
const changeTag = (item: any) => {
|
|
|
if (data.loading) return;
|
|
|
data.tagActiveId = item.id;
|
|
|
data.childSelectId = null;
|
|
|
+ // formatParentresetValue(data.tags);
|
|
|
let children: any;
|
|
|
let columnName = '';
|
|
|
if (item.children) {
|