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

修改元模型

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