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

修改元模型

parent b1c91f41
<template> <template>
<BasicTable @register="registerTable4" class="height3"> <BasicTable @register="registerTable4" class="height3">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px; margin-right: auto" default-value="分区信息" allowClear /> <a-input style="width: 200px; margin-right: auto" default-value="文件信息" allowClear />
<Radio.Group v-model:value="show"> <Radio.Group v-model:value="show">
<Radio.Button value="true">展示</Radio.Button> <Radio.Button value="true">展示</Radio.Button>
<Radio.Button value="false">不展示</Radio.Button> <Radio.Button value="false">不展示</Radio.Button>
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
</div> </div>
</template> </template>
<Table @register="registerTableModal" @success="handleSuccess" /> <Table @register="registerTableModal" @success="handleSuccess" />
<AreaTable @register="registerAreaTableModal" @success="handleSuccess" />
<ColumnTable @register="registerColumnTableModal" @success="handleSuccess" /> <ColumnTable @register="registerColumnTableModal" @success="handleSuccess" />
<BucketTable @register="registerBucketTableModal" @success="handleSuccess" /> <BucketTable @register="registerBucketTableModal" @success="handleSuccess" />
<AddTypeModal @register="registerModal" @success="handleSuccess" /> <AddTypeModal @register="registerModal" @success="handleSuccess" />
...@@ -45,7 +44,6 @@ ...@@ -45,7 +44,6 @@
import { useFilterStore } from '@/store/modules/filterData'; import { useFilterStore } from '@/store/modules/filterData';
import AddTypeModal from './addTypeModal.vue'; import AddTypeModal from './addTypeModal.vue';
import ColumnTable from './ColumnTable.vue'; import ColumnTable from './ColumnTable.vue';
import AreaTable from './AreaTable.vue';
import Table from './Table.vue'; import Table from './Table.vue';
import BucketTable from './BucketTable.vue'; import BucketTable from './BucketTable.vue';
...@@ -56,7 +54,6 @@ ...@@ -56,7 +54,6 @@
const go = useGo(); const go = useGo();
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerTableModal, { openModal: openTableModal }] = useModal(); const [registerTableModal, { openModal: openTableModal }] = useModal();
const [registerAreaTableModal, { openModal: openAreaTableModal }] = useModal();
const [registerColumnTableModal, { openModal: openColumnTableModal }] = useModal(); const [registerColumnTableModal, { openModal: openColumnTableModal }] = useModal();
const [registerBucketTableModal, { openModal: openBucketTableModal }] = useModal(); const [registerBucketTableModal, { openModal: openBucketTableModal }] = useModal();
const [registerAddUserModal, { openModal: addUserModal }] = useModal(); const [registerAddUserModal, { openModal: addUserModal }] = useModal();
......
<template> <template>
<BasicTable @register="registerTable4" class="height1"> <BasicTable @register="registerTable4" class="height1">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px; margin-right: auto" default-value="文件信息" allowClear /> <a-input style="width: 200px; margin-right: auto" default-value="系统字段" allowClear />
<Radio.Group v-model:value="show"> <Radio.Group v-model:value="show">
<Radio.Button value="true">展示</Radio.Button> <Radio.Button value="true">展示</Radio.Button>
<Radio.Button value="false">不展示</Radio.Button> <Radio.Button value="false">不展示</Radio.Button>
......
...@@ -62,7 +62,7 @@ export const TreeData: any[] = [ ...@@ -62,7 +62,7 @@ export const TreeData: any[] = [
businessId: 103, businessId: 103,
modelName: '知识库模型文件夹3', modelName: '知识库模型文件夹3',
parentId: 100, parentId: 100,
code:'002', code: '002',
ancestors: '0,100', ancestors: '0,100',
orderNum: 1, orderNum: 1,
selectType: null, selectType: null,
...@@ -78,7 +78,7 @@ export const TreeData: any[] = [ ...@@ -78,7 +78,7 @@ export const TreeData: any[] = [
businessId: 201, businessId: 201,
modelName: 'argodb元模型', modelName: 'argodb元模型',
parentId: 101, parentId: 101,
code:'002', code: '002',
ancestors: '0,100,101', ancestors: '0,100,101',
orderNum: 1, orderNum: 1,
selectType: null, selectType: null,
...@@ -279,60 +279,6 @@ export const editTableData: any[] = [ ...@@ -279,60 +279,6 @@ export const editTableData: any[] = [
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
{
businessId: 1,
name: '资产类型',
description: '无',
englishName: 'MD_DS_TYPE',
isWrite: '0',
isShow: '0',
type: '1',
},
{
businessId: 1,
name: '表类型',
description: '无',
englishName: 'MD_TAB_TYPE',
isWrite: '0',
isShow: '0',
type: '1',
},
{
businessId: 1,
name: '表注释',
description: '无',
englishName: 'MD_TAB_COMMENT',
isWrite: '0',
isShow: '0',
type: '1',
},
{
businessId: 1,
name: '表中文名',
description: '无',
englishName: 'MD_TAB_DESC',
isWrite: '0',
isShow: '0',
type: '1',
},
{
businessId: 1,
name: '存储类型',
description: '无',
englishName: 'MD_STORE_TYPE',
isWrite: '0',
isShow: '0',
type: '1',
},
{
businessId: 1,
name: '是否为事务表',
description: '无',
englishName: 'MD_TAB_IS_TRANS',
isWrite: '0',
isShow: '0',
type: '1',
},
{ {
businessId: 1, businessId: 1,
name: '创建时间', name: '创建时间',
...@@ -373,7 +319,7 @@ export const editTableData: any[] = [ ...@@ -373,7 +319,7 @@ export const editTableData: any[] = [
export const editColumnData: any[] = [ export const editColumnData: any[] = [
{ {
businessId: 1, businessId: 1,
name: '名', name: '文件名',
description: '无', description: '无',
englishName: 'MD_COL_NAME', englishName: 'MD_COL_NAME',
isWrite: '0', isWrite: '0',
...@@ -382,7 +328,7 @@ export const editColumnData: any[] = [ ...@@ -382,7 +328,7 @@ export const editColumnData: any[] = [
}, },
{ {
businessId: 1, businessId: 1,
name: '字段类型', name: '文件类型',
description: '无', description: '无',
englishName: 'MD_COL_TYPE', englishName: 'MD_COL_TYPE',
isWrite: '0', isWrite: '0',
...@@ -391,72 +337,72 @@ export const editColumnData: any[] = [ ...@@ -391,72 +337,72 @@ export const editColumnData: any[] = [
}, },
{ {
businessId: 1, businessId: 1,
name: '字段类型参数', name: '文件路径',
description: '无', description: '无',
englishName: 'MD_COL_TYPE_PARAM', englishName: 'MD_COL_TYPE_PARAM',
isWrite: '0', isWrite: '0',
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
];
export const editBucketData: any[] = [
{ {
businessId: 1, businessId: 1,
name: '长度', name: '知识名称',
description: '无', description: '无',
englishName: 'MD_COL_LENGTH', englishName: 'MD_BUCKET_NUM',
isWrite: '0', isWrite: '0',
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
{ {
businessId: 1, businessId: 1,
name: '精度', name: '描述',
description: '无', description: '无',
englishName: 'MD_COL_PRECISION', englishName: 'MD_BUCKET_KEY',
isWrite: '0', isWrite: '0',
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
{ {
businessId: 1, businessId: 1,
name: '是否可为空', name: '文号',
description: '无', description: '无',
englishName: 'MD_COL_IS_BULL', englishName: 'MD_BUCKET_SORTED',
isWrite: '0', isWrite: '0',
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
{ {
businessId: 1, businessId: 1,
name: '字段注释', name: '权属机构',
description: '无', description: '无',
englishName: 'MD_COL_COMMENT', englishName: 'MD_BUCKET_SORTED',
isWrite: '0', isWrite: '0',
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
];
export const editBucketData: any[] = [
{ {
businessId: 1, businessId: 1,
name: '分桶数', name: '创建者',
description: '无', description: '无',
englishName: 'MD_BUCKET_NUM', englishName: 'MD_BUCKET_SORTED',
isWrite: '0', isWrite: '0',
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
{ {
businessId: 1, businessId: 1,
name: '分桶字段', name: '更新者',
description: '无', description: '无',
englishName: 'MD_BUCKET_KEY', englishName: 'MD_BUCKET_SORTED',
isWrite: '0', isWrite: '0',
isShow: '0', isShow: '0',
type: '1', type: '1',
}, },
{ {
businessId: 1, businessId: 1,
name: '排序字段', name: '创建时间',
description: '无', description: '无',
englishName: 'MD_BUCKET_SORTED', englishName: 'MD_BUCKET_SORTED',
isWrite: '0', isWrite: '0',
...@@ -465,7 +411,7 @@ export const editBucketData: any[] = [ ...@@ -465,7 +411,7 @@ export const editBucketData: any[] = [
}, },
{ {
businessId: 1, businessId: 1,
name: '排序方式', name: '更新时间',
description: '无', description: '无',
englishName: 'MD_BUCKET_SORTED', englishName: 'MD_BUCKET_SORTED',
isWrite: '0', isWrite: '0',
...@@ -514,26 +460,25 @@ export const editAreaData: any[] = [ ...@@ -514,26 +460,25 @@ export const editAreaData: any[] = [
export const setTableData: any[] = [ export const setTableData: any[] = [
{ {
"businessId" : 1, businessId: 1,
"orginalData" : "表名", orginalData: '表名',
"physicsModel": "表名", physicsModel: '表名',
}, },
{ {
"businessId" : 1, businessId: 1,
"orginalData" : "表注释", orginalData: '表注释',
"physicsModel": "2", physicsModel: '2',
}, },
]; ];
export const setColumnData: any[] = [ export const setColumnData: any[] = [
{ {
"businessId" : 1, businessId: 1,
"orginalData" : "列名", orginalData: '列名',
"physicsModel": "列名", physicsModel: '列名',
}, },
{ {
"businessId" : 1, businessId: 1,
"orginalData" : "列注释", orginalData: '列注释',
"physicsModel": "4", physicsModel: '4',
}, },
]; ];
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
</template> </template>
<Table @register="registerTableModal" @success="handleSuccess" /> <Table @register="registerTableModal" @success="handleSuccess" />
<AreaTable @register="registerAreaTableModal" @success="handleSuccess" /> <AreaTable @register="registerAreaTableModal" @success="handleSuccess" />
<ColumnTable @register="registerColumnTableModal" @success="handleSuccess" />
<BucketTable @register="registerBucketTableModal" @success="handleSuccess" /> <BucketTable @register="registerBucketTableModal" @success="handleSuccess" />
<AddTypeModal @register="registerModal" @success="handleSuccess" /> <AddTypeModal @register="registerModal" @success="handleSuccess" />
</PageWrapper> </PageWrapper>
...@@ -43,7 +42,6 @@ ...@@ -43,7 +42,6 @@
import { useGo } from '@/hooks/web/usePage'; import { useGo } from '@/hooks/web/usePage';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import AddTypeModal from './addTypeModal.vue'; import AddTypeModal from './addTypeModal.vue';
import ColumnTable from './ColumnTable.vue';
import AreaTable from './AreaTable.vue'; import AreaTable from './AreaTable.vue';
import Table from './Table.vue'; import Table from './Table.vue';
import BucketTable from './BucketTable.vue'; import BucketTable from './BucketTable.vue';
...@@ -55,7 +53,6 @@ ...@@ -55,7 +53,6 @@
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerTableModal, { openModal: openTableModal }] = useModal(); const [registerTableModal, { openModal: openTableModal }] = useModal();
const [registerAreaTableModal, { openModal: openAreaTableModal }] = useModal(); const [registerAreaTableModal, { openModal: openAreaTableModal }] = useModal();
const [registerColumnTableModal, { openModal: openColumnTableModal }] = useModal();
const [registerBucketTableModal, { openModal: openBucketTableModal }] = useModal(); const [registerBucketTableModal, { openModal: openBucketTableModal }] = useModal();
const [registerAddUserModal, { openModal: addUserModal }] = useModal(); const [registerAddUserModal, { openModal: addUserModal }] = useModal();
const [registerMoveUser, { openModal: openMoveUserModal }] = useModal(); const [registerMoveUser, { openModal: openMoveUserModal }] = useModal();
...@@ -115,32 +112,32 @@ ...@@ -115,32 +112,32 @@
</script> </script>
<style> <style>
.height1 { .height1 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 500px; min-height: 500px;
} }
} }
} }
.height2 { .height2 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 300px; min-height: 300px;
} }
} }
} }
.height3 { .height3 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 500px; min-height: 500px;
} }
} }
} }
.height4 { .height4 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 400px; min-height: 400px;
} }
} }
} }
</style> </style>
...@@ -431,7 +431,7 @@ export const editBucketData: any[] = [ ...@@ -431,7 +431,7 @@ export const editBucketData: any[] = [
export const editAreaData: any[] = [ export const editAreaData: any[] = [
{ {
businessId: 1, businessId: 1,
name: '分区类型', name: '属性名称',
description: '无', description: '无',
englishName: 'MD_TAB_PARTITION_TYPE', englishName: 'MD_TAB_PARTITION_TYPE',
isWrite: '0', isWrite: '0',
...@@ -440,7 +440,7 @@ export const editAreaData: any[] = [ ...@@ -440,7 +440,7 @@ export const editAreaData: any[] = [
}, },
{ {
businessId: 1, businessId: 1,
name: '分区字段', name: '创建人',
description: '无', description: '无',
englishName: 'MD_PARTITION_COL_KEY', englishName: 'MD_PARTITION_COL_KEY',
isWrite: '0', isWrite: '0',
...@@ -449,7 +449,7 @@ export const editAreaData: any[] = [ ...@@ -449,7 +449,7 @@ export const editAreaData: any[] = [
}, },
{ {
businessId: 1, businessId: 1,
name: '分区名', name: '创建时间',
description: '无', description: '无',
englishName: 'MD_TAB_PARTITION_NAME', englishName: 'MD_TAB_PARTITION_NAME',
isWrite: '0', isWrite: '0',
...@@ -458,7 +458,7 @@ export const editAreaData: any[] = [ ...@@ -458,7 +458,7 @@ export const editAreaData: any[] = [
}, },
{ {
businessId: 1, businessId: 1,
name: '分区值', name: '关联实体',
description: '无', description: '无',
englishName: 'MD_TAB_PARTITION_VALUE', englishName: 'MD_TAB_PARTITION_VALUE',
isWrite: '0', isWrite: '0',
......
<template> <template>
<BasicTable @register="registerTable4" class="height3"> <BasicTable @register="registerTable4" class="height3">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px; margin-right: auto" default-value="业务属性" allowClear /> <a-input style="width: 200px; margin-right: auto" default-value="管理属性" allowClear />
<Radio.Group v-model:value="show"> <Radio.Group v-model:value="show">
<Radio.Button value="true">展示</Radio.Button> <Radio.Button value="true">展示</Radio.Button>
<Radio.Button value="false">不展示</Radio.Button> <Radio.Button value="false">不展示</Radio.Button>
......
<template> <template>
<BasicTable @register="registerTable4" class="height4"> <BasicTable @register="registerTable4" class="height4">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px; margin-right: auto" default-value="管理属性" allowClear /> <a-input style="width: 200px; margin-right: auto" default-value="技术属性" allowClear />
<Radio.Group v-model:value="show"> <Radio.Group v-model:value="show">
<Radio.Button value="true">展示</Radio.Button> <Radio.Button value="true">展示</Radio.Button>
<Radio.Button value="false">不展示</Radio.Button> <Radio.Button value="false">不展示</Radio.Button>
......
...@@ -29,120 +29,117 @@ ...@@ -29,120 +29,117 @@
</div> </div>
</template> </template>
<Table @register="registerTableModal" @success="handleSuccess" /> <Table @register="registerTableModal" @success="handleSuccess" />
<AreaTable @register="registerAreaTableModal" @success="handleSuccess" />
<ColumnTable @register="registerColumnTableModal" @success="handleSuccess" /> <ColumnTable @register="registerColumnTableModal" @success="handleSuccess" />
<BucketTable @register="registerBucketTableModal" @success="handleSuccess" /> <BucketTable @register="registerBucketTableModal" @success="handleSuccess" />
<AddTypeModal @register="registerModal" @success="handleSuccess" /> <AddTypeModal @register="registerModal" @success="handleSuccess" />
</PageWrapper> </PageWrapper>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, onMounted } from 'vue'; import { reactive, onMounted } from 'vue';
import { PageWrapper } from '@/components/Page'; import { PageWrapper } from '@/components/Page';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
import { useGo } from '@/hooks/web/usePage'; import { useGo } from '@/hooks/web/usePage';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useFilterStore } from '@/store/modules/filterData'; import { useFilterStore } from '@/store/modules/filterData';
import AddTypeModal from './addTypeModal.vue'; import AddTypeModal from './addTypeModal.vue';
import ColumnTable from './ColumnTable.vue'; import ColumnTable from './ColumnTable.vue';
import AreaTable from './AreaTable.vue'; import Table from './Table.vue';
import Table from './Table.vue'; import BucketTable from './BucketTable.vue';
import BucketTable from './BucketTable.vue';
defineOptions({ name: 'AccountManagement' }); defineOptions({ name: 'AccountManagement' });
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const filterStore = useFilterStore(); const filterStore = useFilterStore();
const route = useRoute(); const route = useRoute();
const go = useGo(); const go = useGo();
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerTableModal, { openModal: openTableModal }] = useModal(); const [registerTableModal, { openModal: openTableModal }] = useModal();
const [registerAreaTableModal, { openModal: openAreaTableModal }] = useModal(); const [registerColumnTableModal, { openModal: openColumnTableModal }] = useModal();
const [registerColumnTableModal, { openModal: openColumnTableModal }] = useModal(); const [registerBucketTableModal, { openModal: openBucketTableModal }] = useModal();
const [registerBucketTableModal, { openModal: openBucketTableModal }] = useModal(); const [registerAddUserModal, { openModal: addUserModal }] = useModal();
const [registerAddUserModal, { openModal: addUserModal }] = useModal(); const [registerMoveUser, { openModal: openMoveUserModal }] = useModal();
const [registerMoveUser, { openModal: openMoveUserModal }] = useModal(); const searchInfo = reactive<Recordable>({});
const searchInfo = reactive<Recordable>({});
/** 新增元模型*/ /** 新增元模型*/
function handleCreateModel() { function handleCreateModel() {
openModal(true, { openModal(true, {
isUpdate: false, isUpdate: false,
}); });
} }
/** 新增文件夹*/ /** 新增文件夹*/
function handleCreateFile() { function handleCreateFile() {
openModal(true, { openModal(true, {
isUpdate: false, isUpdate: false,
}); });
} }
/** 编辑按钮*/ /** 编辑按钮*/
function handleEdit(record: Recordable) { function handleEdit(record: Recordable) {
openModal(true, { openModal(true, {
record, record,
isUpdate: true, isUpdate: true,
}); });
} }
/** 保存*/ /** 保存*/
function save() { function save() {
createMessage.success('保存成功!'); createMessage.success('保存成功!');
} }
/** 添加类别*/ /** 添加类别*/
function handleCreateType() { function handleCreateType() {
openModal(true, {}); openModal(true, {});
} }
/** 取消*/ /** 取消*/
function cancel() { function cancel() {
go('/metaModel/standardModel/index'); go('/metaModel/standardModel/index');
} }
/** 删除按钮*/ /** 删除按钮*/
function handleDelete(record: Recordable) { function handleDelete(record: Recordable) {
createMessage.success('删除成功!'); createMessage.success('删除成功!');
} }
/** 新增/编辑成功*/ /** 新增/编辑成功*/
function handleSuccess({ isUpdate, values }) {} function handleSuccess({ isUpdate, values }) {}
onMounted(() => {}); onMounted(() => {});
// 页面左侧点击返回链接时的操作 // 页面左侧点击返回链接时的操作
function goBack() { function goBack() {
// 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页 // 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页
go('/metaModel/standardModel/index'); go('/metaModel/standardModel/index');
} }
</script> </script>
<style> <style>
.height1 { .height1 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 750px; min-height: 750px;
} }
} }
} }
.height2 { .height2 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 300px; min-height: 300px;
} }
} }
} }
.height3 { .height3 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 500px; min-height: 500px;
} }
} }
} }
.height4 { .height4 {
.ant-table-container { .ant-table-container {
.ant-table-body { .ant-table-body {
min-height: 400px; min-height: 400px;
} }
} }
} }
</style> </style>
<template> <template>
<BasicTable @register="registerTable4" class="height1"> <BasicTable @register="registerTable4" class="height1">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px; margin-right: auto" default-value="技术属性" allowClear /> <a-input style="width: 200px; margin-right: auto" default-value="业务属性" allowClear />
<Radio.Group v-model:value="show"> <Radio.Group v-model:value="show">
<Radio.Button value="true">展示</Radio.Button> <Radio.Button value="true">展示</Radio.Button>
<Radio.Button value="false">不展示</Radio.Button> <Radio.Button value="false">不展示</Radio.Button>
......
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