数据库,数据库bug
This commit is contained in:
parent
bd4c6e7b7c
commit
f7f39c2d2c
@ -4,6 +4,7 @@ import icon_dataset from '@/assets/svg/icon_dataset.svg'
|
|||||||
import icon_deleteTrash_outlined from '@/assets/svg/icon_delete-trash_outlined.svg'
|
import icon_deleteTrash_outlined from '@/assets/svg/icon_delete-trash_outlined.svg'
|
||||||
import icon_intoItem_outlined from '@/assets/svg/icon_into-item_outlined.svg'
|
import icon_intoItem_outlined from '@/assets/svg/icon_into-item_outlined.svg'
|
||||||
import { debounce } from 'lodash-es'
|
import { debounce } from 'lodash-es'
|
||||||
|
import Header from '../header.vue'
|
||||||
import icon_rename_outlined from '@/assets/svg/icon_rename_outlined.svg'
|
import icon_rename_outlined from '@/assets/svg/icon_rename_outlined.svg'
|
||||||
import dvNewFolder from '@/assets/svg/dv-new-folder.svg'
|
import dvNewFolder from '@/assets/svg/dv-new-folder.svg'
|
||||||
import icon_fileAdd_outlined from '@/assets/svg/icon_file-add_outlined.svg'
|
import icon_fileAdd_outlined from '@/assets/svg/icon_file-add_outlined.svg'
|
||||||
@ -19,12 +20,14 @@ import icon_dashboard_outlined from '@/assets/svg/icon_dashboard_outlined.svg'
|
|||||||
import icon_operationAnalysis_outlined from '@/assets/svg/icon_operation-analysis_outlined.svg'
|
import icon_operationAnalysis_outlined from '@/assets/svg/icon_operation-analysis_outlined.svg'
|
||||||
import icon_download_outlined from '@/assets/svg/icon_download_outlined.svg'
|
import icon_download_outlined from '@/assets/svg/icon_download_outlined.svg'
|
||||||
import icon_edit_outlined from '@/assets/svg/icon_edit_outlined.svg'
|
import icon_edit_outlined from '@/assets/svg/icon_edit_outlined.svg'
|
||||||
|
import { findApplicationById } from "@/api/application/application"
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
shallowRef,
|
shallowRef,
|
||||||
computed,
|
computed,
|
||||||
|
onMounted,
|
||||||
watch,
|
watch,
|
||||||
onBeforeMount,
|
onBeforeMount,
|
||||||
nextTick,
|
nextTick,
|
||||||
@ -152,8 +155,6 @@ const datasetTableFiled = ref([])
|
|||||||
provide('filedList', datasetTableFiled)
|
provide('filedList', datasetTableFiled)
|
||||||
|
|
||||||
const nickName = ref('')
|
const nickName = ref('')
|
||||||
const router = useRouter()
|
|
||||||
const route = useRoute()
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
datasetTree: [] as BusiTreeNode[],
|
datasetTree: [] as BusiTreeNode[],
|
||||||
curSortType: 'time_desc'
|
curSortType: 'time_desc'
|
||||||
@ -887,34 +888,6 @@ const proxyAllowDrop = debounce((arg1, arg2) => {
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-dropdown @command="handleSortTypeChange" trigger="click">
|
|
||||||
<el-icon class="filter-icon-span">
|
|
||||||
<el-tooltip :offset="16" effect="dark" :content="sortTypeTip" placement="top">
|
|
||||||
<Icon name="dv-sort-asc" class="opt-icon"
|
|
||||||
><dvSortAsc v-if="state.curSortType.includes('asc')" class="svg-icon opt-icon"
|
|
||||||
/></Icon>
|
|
||||||
</el-tooltip>
|
|
||||||
<el-tooltip :offset="16" effect="dark" :content="sortTypeTip" placement="top">
|
|
||||||
<Icon name="dv-sort-desc" class="opt-icon"
|
|
||||||
><dvSortDesc v-if="state.curSortType.includes('desc')" class="svg-icon"
|
|
||||||
/></Icon>
|
|
||||||
</el-tooltip>
|
|
||||||
</el-icon>
|
|
||||||
<template #dropdown>
|
|
||||||
<el-dropdown-menu style="width: 246px">
|
|
||||||
<template :key="ele.value" v-for="ele in sortList">
|
|
||||||
<el-dropdown-item
|
|
||||||
class="ed-select-dropdown__item"
|
|
||||||
:class="ele.value === state.curSortType && 'selected'"
|
|
||||||
:command="ele.value"
|
|
||||||
>
|
|
||||||
{{ ele.name }}
|
|
||||||
</el-dropdown-item>
|
|
||||||
<li v-if="ele.divided" class="ed-dropdown-menu__item--divided"></li>
|
|
||||||
</template>
|
|
||||||
</el-dropdown-menu>
|
|
||||||
</template>
|
|
||||||
</el-dropdown>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-scrollbar class="custom-tree">
|
<el-scrollbar class="custom-tree">
|
||||||
@ -1064,11 +1037,12 @@ const proxyAllowDrop = debounce((arg1, arg2) => {
|
|||||||
key="structPreview"
|
key="structPreview"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
v-loading="dataPreviewLoading"
|
v-loading="dataPreviewLoading"
|
||||||
|
header-class="header-cell"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
header-class="excel-header-cell"
|
|
||||||
:width="width"
|
:width="width"
|
||||||
:height="height"
|
:height="height"
|
||||||
fixed
|
fixed
|
||||||
|
border
|
||||||
><template #empty>
|
><template #empty>
|
||||||
<empty-background
|
<empty-background
|
||||||
:description="t('data_set.no_data')"
|
:description="t('data_set.no_data')"
|
||||||
@ -1081,6 +1055,7 @@ const proxyAllowDrop = debounce((arg1, arg2) => {
|
|||||||
<el-table
|
<el-table
|
||||||
v-loading="dataPreviewLoading"
|
v-loading="dataPreviewLoading"
|
||||||
class="dataset-preview_table"
|
class="dataset-preview_table"
|
||||||
|
header-class="header-cell"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
@row-click="rowClick"
|
@row-click="rowClick"
|
||||||
key="dataPreview"
|
key="dataPreview"
|
||||||
@ -1133,6 +1108,9 @@ const proxyAllowDrop = debounce((arg1, arg2) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<div v-if="activeName === 'dataPreview'" class="preview-num">
|
||||||
|
{{ t('data_set.pieces_in_total', { msg: total }) }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="mounted">
|
<template v-else-if="mounted">
|
||||||
@ -1425,6 +1403,11 @@ const proxyAllowDrop = debounce((arg1, arg2) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-tree {
|
||||||
|
height: calc(100vh - 172px);
|
||||||
|
padding: 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.custom-tree-node {
|
.custom-tree-node {
|
||||||
width: calc(100% - 30px);
|
width: calc(100% - 30px);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -22,7 +22,7 @@ import { Base64 } from 'js-base64'
|
|||||||
import type { Param } from './ExcelDetail.vue'
|
import type { Param } from './ExcelDetail.vue'
|
||||||
import type { Configuration, ApiConfiguration, SyncSetting } from './option'
|
import type { Configuration, ApiConfiguration, SyncSetting } from './option'
|
||||||
import { dsTypes, typeList, nameMap } from './option'
|
import { dsTypes, typeList, nameMap } from './option'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter,useRoute } from 'vue-router'
|
||||||
import { uuid } from 'vue-uuid'
|
import { uuid } from 'vue-uuid'
|
||||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||||
import FinishPage from '../FinishPage.vue'
|
import FinishPage from '../FinishPage.vue'
|
||||||
@ -67,7 +67,6 @@ interface Form {
|
|||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const creatDsFolder = ref()
|
const creatDsFolder = ref()
|
||||||
const router = useRouter()
|
|
||||||
const { wsCache } = useCache()
|
const { wsCache } = useCache()
|
||||||
const dsLoading = ref(false)
|
const dsLoading = ref(false)
|
||||||
let isFormUpdate = false
|
let isFormUpdate = false
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<script lang="tsx" setup>
|
<script lang="tsx" setup>
|
||||||
|
import Header from '../header.vue'
|
||||||
|
import { findApplicationById } from "@/api/application/application";
|
||||||
import icon_down_outlined1 from '@/assets/svg/icon_down_outlined-1.svg'
|
import icon_down_outlined1 from '@/assets/svg/icon_down_outlined-1.svg'
|
||||||
import icon_down_outlined from '@/assets/svg/icon_down_outlined.svg'
|
import icon_down_outlined from '@/assets/svg/icon_down_outlined.svg'
|
||||||
import icon_copy_filled from '@/assets/svg/icon_copy_filled.svg'
|
import icon_copy_filled from '@/assets/svg/icon_copy_filled.svg'
|
||||||
@ -1103,6 +1105,7 @@ const getMenuList = (val: boolean) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<Header :projectInfo="projectInfo"/>
|
||||||
<div class="datasource-manage" v-loading="dsLoading">
|
<div class="datasource-manage" v-loading="dsLoading">
|
||||||
<ArrowSide
|
<ArrowSide
|
||||||
:style="{ left: (sideTreeStatus ? width - 12 : 0) + 'px' }"
|
:style="{ left: (sideTreeStatus ? width - 12 : 0) + 'px' }"
|
||||||
@ -1148,34 +1151,7 @@ const getMenuList = (val: boolean) => {
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-dropdown @command="handleSortTypeChange" trigger="click">
|
|
||||||
<el-icon class="filter-icon-span">
|
|
||||||
<el-tooltip :offset="16" effect="dark" :content="sortTypeTip" placement="top">
|
|
||||||
<Icon name="dv-sort-asc" class="opt-icon"
|
|
||||||
><dvSortAsc v-if="state.curSortType.includes('asc')" class="svg-icon opt-icon"
|
|
||||||
/></Icon>
|
|
||||||
</el-tooltip>
|
|
||||||
<el-tooltip :offset="16" effect="dark" :content="sortTypeTip" placement="top">
|
|
||||||
<Icon name="dv-sort-desc" class="opt-icon"
|
|
||||||
><dvSortDesc v-if="state.curSortType.includes('desc')" class="svg-icon opt-icon"
|
|
||||||
/></Icon>
|
|
||||||
</el-tooltip>
|
|
||||||
</el-icon>
|
|
||||||
<template #dropdown>
|
|
||||||
<el-dropdown-menu style="width: 246px">
|
|
||||||
<template :key="ele.value" v-for="ele in sortList">
|
|
||||||
<el-dropdown-item
|
|
||||||
class="ed-select-dropdown__item"
|
|
||||||
:class="ele.value === state.curSortType && 'selected'"
|
|
||||||
:command="ele.value"
|
|
||||||
>
|
|
||||||
{{ ele.name }}
|
|
||||||
</el-dropdown-item>
|
|
||||||
<li v-if="ele.divided" class="ed-dropdown-menu__item--divided"></li>
|
|
||||||
</template>
|
|
||||||
</el-dropdown-menu>
|
|
||||||
</template>
|
|
||||||
</el-dropdown>
|
|
||||||
</div>
|
</div>
|
||||||
<el-scrollbar @scroll="handleScroll" ref="scrollbarRef" class="custom-tree">
|
<el-scrollbar @scroll="handleScroll" ref="scrollbarRef" class="custom-tree">
|
||||||
<el-tree
|
<el-tree
|
||||||
|
Loading…
Reference in New Issue
Block a user