修改数据集数据源
This commit is contained in:
parent
6b238144a8
commit
00251d1cbe
@ -90,6 +90,7 @@ onMounted(() => {
|
|||||||
if (route.query.id) {
|
if (route.query.id) {
|
||||||
applicationId.value = route.query.id
|
applicationId.value = route.query.id
|
||||||
findApplicationById(applicationId.value).then(res => {
|
findApplicationById(applicationId.value).then(res => {
|
||||||
|
res.data.data.typename = '数据集'
|
||||||
projectInfo.value = res.data.data
|
projectInfo.value = res.data.data
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
|
@ -93,7 +93,7 @@ import { iconDatasourceMap } from '@/components/icon-group/datasource-list'
|
|||||||
import { querySymmetricKey } from '@/api/login'
|
import { querySymmetricKey } from '@/api/login'
|
||||||
import { symmetricDecrypt } from '@/utils/encryption'
|
import { symmetricDecrypt } from '@/utils/encryption'
|
||||||
import { isFreeFolder } from '@/utils/utils'
|
import { isFreeFolder } from '@/utils/utils'
|
||||||
const applicationId =ref("")
|
const applicationId:any =ref("")
|
||||||
const projectInfo:any =ref({})
|
const projectInfo:any =ref({})
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const interactiveStore = interactiveStoreWithOut()
|
const interactiveStore = interactiveStoreWithOut()
|
||||||
@ -1033,6 +1033,7 @@ onMounted(() => {
|
|||||||
if (route.query.id) {
|
if (route.query.id) {
|
||||||
applicationId.value = route.query.id
|
applicationId.value = route.query.id
|
||||||
findApplicationById(applicationId.value).then(res => {
|
findApplicationById(applicationId.value).then(res => {
|
||||||
|
res.data.data.typename = '数据源'
|
||||||
projectInfo.value = res.data.data
|
projectInfo.value = res.data.data
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
@ -1106,27 +1107,11 @@ const getMenuList = (val: boolean) => {
|
|||||||
<div class="resource-tree">
|
<div class="resource-tree">
|
||||||
<div class="tree-header">
|
<div class="tree-header">
|
||||||
<div class="icon-methods">
|
<div class="icon-methods">
|
||||||
<span class="title"> {{ t('datasource.datasource') }} </span>
|
<!-- <span class="title" style="color:#ffff"> {{ t('datasource.datasource') }} </span> -->
|
||||||
<div v-if="rootManage" class="flex-align-center">
|
<div v-if="rootManage" class="flex-align-center">
|
||||||
<el-tooltip effect="dark" :content="t('deDataset.new_folder')" placement="top">
|
|
||||||
<!-- <el-icon
|
|
||||||
class="custom-icon btn"
|
|
||||||
:style="{ marginRight: '20px' }"
|
|
||||||
@click="handleDatasourceTree('folder')"
|
|
||||||
>
|
|
||||||
<Icon name="dv-new-folder"><dvNewFolder class="svg-icon" /></Icon>
|
|
||||||
</el-icon> -->
|
|
||||||
<img src="@/assets/newimg/u76.png" alt="" style="margin-right: 20px;cursor: pointer;"
|
|
||||||
@click="handleDatasourceTree('folder',{})">
|
|
||||||
</el-tooltip>
|
|
||||||
<el-tooltip effect="dark" :content="t('datasource.create')" placement="top">
|
<el-tooltip effect="dark" :content="t('datasource.create')" placement="top">
|
||||||
<img src="@/assets/newimg/u43.png" alt="" style="cursor: pointer;"
|
<img src="@/assets/newimg/u43.png" alt="" style="cursor: pointer;"
|
||||||
@click="createDatasource">
|
@click="createDatasource()">
|
||||||
<!-- <el-icon class="custom-icon btn" @click="createDatasource">
|
|
||||||
<Icon name="icon_file-add_outlined"
|
|
||||||
><icon_fileAdd_outlined class="svg-icon"
|
|
||||||
/></Icon>
|
|
||||||
</el-icon> -->
|
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,7 +25,7 @@ onMounted(()=>{
|
|||||||
<img src="@/assets/newimg/u594.png" alt="">
|
<img src="@/assets/newimg/u594.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
<img src="@/assets/newimg/logosmall.png" alt="" style="margin-left: 10px;">
|
<img src="@/assets/newimg/logosmall.png" alt="" style="margin-left: 10px;">
|
||||||
<div class="header-title">{{projectInfo.name }}</div>
|
<div class="header-title">{{projectInfo.name }} - {{ projectInfo.typename }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user