forked from github/dataease
fix: 保存数据集无法搜索到指定目录
This commit is contained in:
parent
ef9f84670e
commit
7d1d453146
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineProps, toRefs } from 'vue'
|
import { toRefs } from 'vue'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
start: {
|
start: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineEmits, reactive, ref, toRefs, watch } from 'vue'
|
import { reactive, ref, toRefs, watch } from 'vue'
|
||||||
import { dvMainStoreWithOut } from '../../store/modules/data-visualization/dvMain'
|
import { dvMainStoreWithOut } from '../../store/modules/data-visualization/dvMain'
|
||||||
import { storeToRefs } from 'pinia/dist/pinia'
|
import { storeToRefs } from 'pinia/dist/pinia'
|
||||||
import { checkAddHttp, deepCopy } from '../../utils/utils'
|
import { checkAddHttp, deepCopy } from '../../utils/utils'
|
||||||
|
@ -21,7 +21,7 @@ import 'tinymce/plugins/code' // 源码
|
|||||||
|
|
||||||
//接下来定义编辑器所需要的插件数据
|
//接下来定义编辑器所需要的插件数据
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import { onMounted, defineEmits, watch } from 'vue'
|
import { onMounted, watch } from 'vue'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
// import { updateImg } from '@/api/order/order'
|
// import { updateImg } from '@/api/order/order'
|
||||||
const emits = defineEmits(['getContent'])
|
const emits = defineEmits(['getContent'])
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="tsx" setup>
|
<script lang="tsx" setup>
|
||||||
import { defineEmits, reactive } from 'vue'
|
import { reactive } from 'vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import { COLOR_PANEL } from '../../../util/chart'
|
import { COLOR_PANEL } from '../../../util/chart'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="tsx" setup>
|
<script lang="tsx" setup>
|
||||||
import { defineEmits, reactive } from 'vue'
|
import { reactive } from 'vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import { COLOR_PANEL } from '../../../util/chart'
|
import { COLOR_PANEL } from '../../../util/chart'
|
||||||
|
|
||||||
|
@ -113,10 +113,7 @@ const showAll = ref(true)
|
|||||||
const dataset = ref()
|
const dataset = ref()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const createDataset = ref(false)
|
const createDataset = ref(false)
|
||||||
let tData = []
|
const filterMethod = (value, data) => data.name.includes(value)
|
||||||
const filterMethod = value => {
|
|
||||||
state.tData = [...tData].filter(item => item.name.includes(value))
|
|
||||||
}
|
|
||||||
const resetForm = () => {
|
const resetForm = () => {
|
||||||
createDataset.value = false
|
createDataset.value = false
|
||||||
}
|
}
|
||||||
@ -160,7 +157,6 @@ const createInit = (type, data: Tree, exec, name: string) => {
|
|||||||
state.tData[0].name = '数据集'
|
state.tData[0].name = '数据集'
|
||||||
}
|
}
|
||||||
data.id = formatRootMiss(data.id, state.tData)
|
data.id = formatRootMiss(data.id, state.tData)
|
||||||
tData = [...state.tData]
|
|
||||||
if (exec) {
|
if (exec) {
|
||||||
pid.value = data.pid
|
pid.value = data.pid
|
||||||
id.value = data.id
|
id.value = data.id
|
||||||
@ -322,7 +318,7 @@ const emits = defineEmits(['finish'])
|
|||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:props="props"
|
:props="props"
|
||||||
@node-click="nodeClick"
|
@node-click="nodeClick"
|
||||||
:filter-method="filterMethod"
|
:filter-node-method="filterMethod"
|
||||||
filterable
|
filterable
|
||||||
>
|
>
|
||||||
<template #default="{ data: { name } }">
|
<template #default="{ data: { name } }">
|
||||||
|
@ -107,11 +107,7 @@ const showAll = ref(true)
|
|||||||
const datasource = ref()
|
const datasource = ref()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const createDataset = ref(false)
|
const createDataset = ref(false)
|
||||||
let tData = []
|
const filterMethod = (value, data) => data.name.includes(value)
|
||||||
|
|
||||||
const filterMethod = value => {
|
|
||||||
state.tData = [...tData].filter(item => item.name.includes(value))
|
|
||||||
}
|
|
||||||
const resetForm = () => {
|
const resetForm = () => {
|
||||||
createDataset.value = false
|
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') {
|
if (state.tData.length && state.tData[0].name === 'root' && state.tData[0].id === '0') {
|
||||||
state.tData[0].name = '数据源'
|
state.tData[0].name = '数据源'
|
||||||
}
|
}
|
||||||
tData = [...state.tData]
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (exec) {
|
if (exec) {
|
||||||
|
Loading…
Reference in New Issue
Block a user