mirror of
https://github.com/dataease/dataease.git
synced 2026-05-22 21:38:32 +08:00
fix: 保存数据集无法搜索到指定目录
This commit is contained in:
@@ -113,10 +113,7 @@ const showAll = ref(true)
|
||||
const dataset = ref()
|
||||
const loading = ref(false)
|
||||
const createDataset = ref(false)
|
||||
let tData = []
|
||||
const filterMethod = value => {
|
||||
state.tData = [...tData].filter(item => item.name.includes(value))
|
||||
}
|
||||
const filterMethod = (value, data) => data.name.includes(value)
|
||||
const resetForm = () => {
|
||||
createDataset.value = false
|
||||
}
|
||||
@@ -160,7 +157,6 @@ const createInit = (type, data: Tree, exec, name: string) => {
|
||||
state.tData[0].name = '数据集'
|
||||
}
|
||||
data.id = formatRootMiss(data.id, state.tData)
|
||||
tData = [...state.tData]
|
||||
if (exec) {
|
||||
pid.value = data.pid
|
||||
id.value = data.id
|
||||
@@ -322,7 +318,7 @@ const emits = defineEmits(['finish'])
|
||||
style="width: 100%"
|
||||
:props="props"
|
||||
@node-click="nodeClick"
|
||||
:filter-method="filterMethod"
|
||||
:filter-node-method="filterMethod"
|
||||
filterable
|
||||
>
|
||||
<template #default="{ data: { name } }">
|
||||
|
||||
@@ -107,11 +107,7 @@ const showAll = ref(true)
|
||||
const datasource = ref()
|
||||
const loading = ref(false)
|
||||
const createDataset = ref(false)
|
||||
let tData = []
|
||||
|
||||
const filterMethod = value => {
|
||||
state.tData = [...tData].filter(item => item.name.includes(value))
|
||||
}
|
||||
const filterMethod = (value, data) => data.name.includes(value)
|
||||
const resetForm = () => {
|
||||
createDataset.value = false
|
||||
}
|
||||
@@ -147,7 +143,6 @@ const createInit = (type, data: Tree, exec, name: string) => {
|
||||
if (state.tData.length && state.tData[0].name === 'root' && state.tData[0].id === '0') {
|
||||
state.tData[0].name = '数据源'
|
||||
}
|
||||
tData = [...state.tData]
|
||||
})
|
||||
}
|
||||
if (exec) {
|
||||
|
||||
Reference in New Issue
Block a user