Commit f4c12bc8 authored by 罗林杰's avatar 罗林杰

修改元数据

parent 9cefbde2
<template> <template>
<PageWrapper title="血缘解析" class="content-padding" contentBackground> <PageWrapper title="血缘解析" class="content-padding" contentBackground @back="goBack">
<div class="step-form-form"> <div class="step-form-form">
<Steps :current="current"> <Steps :current="current">
<Steps.Step title="上传解析文件" /> <Steps.Step title="上传解析文件" />
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
import { Steps } from 'ant-design-vue'; import { Steps } from 'ant-design-vue';
import Step1 from './Step1.vue'; import Step1 from './Step1.vue';
import Step2 from './Step2.vue'; import Step2 from './Step2.vue';
import { useGo } from '@/hooks/web/usePage';
defineOptions({ name: 'AccountDetail' }); defineOptions({ name: 'AccountDetail' });
...@@ -24,6 +25,8 @@ ...@@ -24,6 +25,8 @@
const state = reactive({ const state = reactive({
initStep2: false, initStep2: false,
}); });
const go = useGo();
function handleStep1Next(step1Values: any) { function handleStep1Next(step1Values: any) {
current.value++; current.value++;
state.initStep2 = true; state.initStep2 = true;
...@@ -33,6 +36,11 @@ ...@@ -33,6 +36,11 @@
function handleStepPrev() { function handleStepPrev() {
current.value--; current.value--;
} }
// 页面左侧点击返回链接时的操作
function goBack() {
// 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页
go('/kinship/kinshipParse/index');
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.step-form-content { .step-form-content {
......
...@@ -32,7 +32,7 @@ export const TreeData: any[] = [ ...@@ -32,7 +32,7 @@ export const TreeData: any[] = [
{ {
delFlag: '0', delFlag: '0',
flag: '1', flag: '1',
businessId: 107, businessId: 102,
workSpaceName: '共享工作区', workSpaceName: '共享工作区',
parentId: 100, parentId: 100,
'code:': '003', 'code:': '003',
...@@ -46,7 +46,7 @@ export const TreeData: any[] = [ ...@@ -46,7 +46,7 @@ export const TreeData: any[] = [
{ {
delFlag: '0', delFlag: '0',
flag: '0', flag: '0',
businessId: 203, businessId: 103,
workSpaceName: '高级工作区', workSpaceName: '高级工作区',
parentId: 100, parentId: 100,
'code:': '010', 'code:': '010',
...@@ -57,6 +57,132 @@ export const TreeData: any[] = [ ...@@ -57,6 +57,132 @@ export const TreeData: any[] = [
createTime: '2024-10-24 10:04:04', createTime: '2024-10-24 10:04:04',
createBy: 'admin', createBy: 'admin',
}, },
{
delFlag: '0',
flag: '1',
businessId: 201,
workSpaceName: '数据源1',
parentId: 101,
'code:': '002',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 202,
workSpaceName: '数据源2',
parentId: 102,
'code:': '003',
ancestors: '0,100',
orderNum: 2,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '0',
businessId: 203,
workSpaceName: '数据源3',
parentId: 103,
'code:': '010',
ancestors: '0,100,107',
orderNum: 2,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 301,
workSpaceName: '数据库1',
parentId: 201,
'code:': '002',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 302,
workSpaceName: '数据库2',
parentId: 202,
'code:': '003',
ancestors: '0,100',
orderNum: 2,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '0',
businessId: 303,
workSpaceName: '数据库3',
parentId: 203,
'code:': '010',
ancestors: '0,100,107',
orderNum: 2,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 401,
workSpaceName: '数据表1',
parentId: 301,
'code:': '002',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 402,
workSpaceName: '数据表2',
parentId: 302,
'code:': '003',
ancestors: '0,100',
orderNum: 2,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '0',
businessId: 403,
workSpaceName: '数据表3',
parentId: 303,
'code:': '010',
ancestors: '0,100,107',
orderNum: 2,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
]; ];
export const metadataData: any[] = [ export const metadataData: any[] = [
...@@ -918,22 +1044,6 @@ export const physicsData: any[] = [ ...@@ -918,22 +1044,6 @@ export const physicsData: any[] = [
date: '2024-05-01T12:00:00Z', date: '2024-05-01T12:00:00Z',
user: '张三', user: '张三',
}, },
{
name: '文件B',
dataBase: '元模型Y',
path: '/modelY/files',
connectTime: '2024-06-15T11:00:00Z',
date: '2024-06-15T13:00:00Z',
user: '李四',
},
{
name: '文件C',
dataBase: '元模型Z',
path: '/modelZ/files',
connectTime: '2024-07-20T09:00:00Z',
date: '2024-07-20T11:00:00Z',
user: '王五',
},
]; ];
export const versionData: any[] = [ export const versionData: any[] = [
{ {
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
:schema="bucketingSchema" :schema="bucketingSchema"
/> />
<BasicTable @register="registerSampleDataTable" /> <BasicTable @register="registerSampleDataTable" />
<Description size="middle" title="建表语句" :bordered="false" />
<img src="../../assets/images/DDL.png" style="width: 100%" alt="Logo" />
</div> </div>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="2" tab="列信息"> <a-tab-pane key="2" tab="列信息">
...@@ -267,7 +269,7 @@ ...@@ -267,7 +269,7 @@
}, },
}); });
const [registerDbModal, { closeModal }] = useModalInner(async (data) => { const [registerDbModal, { closeModal }] = useModalInner(async (data) => {
title.value = data.workSpaceName; title.value = data.tbName;
tableTitle.value = data.name; tableTitle.value = data.name;
tableData.value = dbData; tableData.value = dbData;
await reload(); await reload();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment