Commit d36860b1 authored by liwei's avatar liwei

物理模型页面

parent 6836ff8e
...@@ -94,16 +94,27 @@ export const detailColumns: BasicColumn[] = [ ...@@ -94,16 +94,27 @@ export const detailColumns: BasicColumn[] = [
title: '是否必填', title: '是否必填',
dataIndex: 'isWrite', dataIndex: 'isWrite',
width: 150, width: 150,
customRender: ({ record }) => (record.isWrite === '1' ? '是' : '否'),
}, },
{ {
title: '是否必填', title: '是否显示',
dataIndex: 'isShow', dataIndex: 'isShow',
width: 150, width: 150,
customRender: ({ record }) => (record.isShow === '1' ? '是' : '否'),
}, },
{ {
title: '类型', title: '类型',
dataIndex: 'type', dataIndex: 'type',
width: 200, width: 200,
customRender: ({ record }) => {
const typeMap = {
'1': '字符串',
'2': '布尔',
'3': '整型',
'4': '浮点型',
};
return typeMap[record.type];
},
}, },
]; ];
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
......
...@@ -246,7 +246,7 @@ export const editTableData: any[] = [ ...@@ -246,7 +246,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "数据源", "name" : "数据源",
"description": '', "description": '',
"englishName": 'MD_DATASOURCE', "englishName": 'MD_DATASOURCE',
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -255,7 +255,7 @@ export const editTableData: any[] = [ ...@@ -255,7 +255,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "库名", "name" : "库名",
"description": "", "description": "",
"englishName":"MD_DB_NAME", "englishName":"MD_DB_NAME",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -264,7 +264,7 @@ export const editTableData: any[] = [ ...@@ -264,7 +264,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "表名", "name" : "表名",
"description": "", "description": '无',
"englishName":"MD_TAB_NAME", "englishName":"MD_TAB_NAME",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -273,7 +273,7 @@ export const editTableData: any[] = [ ...@@ -273,7 +273,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "资产类型", "name" : "资产类型",
"description": "", "description": '无',
"englishName":"MD_DS_TYPE", "englishName":"MD_DS_TYPE",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -282,7 +282,7 @@ export const editTableData: any[] = [ ...@@ -282,7 +282,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "表类型", "name" : "表类型",
"description": "", "description": '无',
"englishName":"MD_TAB_TYPE", "englishName":"MD_TAB_TYPE",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -290,7 +290,7 @@ export const editTableData: any[] = [ ...@@ -290,7 +290,7 @@ export const editTableData: any[] = [
}, { }, {
"businessId" : 1, "businessId" : 1,
"name" : "表注释", "name" : "表注释",
"description": "", "description": '无',
"englishName":"MD_TAB_COMMENT", "englishName":"MD_TAB_COMMENT",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -298,7 +298,7 @@ export const editTableData: any[] = [ ...@@ -298,7 +298,7 @@ export const editTableData: any[] = [
},{ },{
"businessId" : 1, "businessId" : 1,
"name" : "表中文名", "name" : "表中文名",
"description": "", "description": '无',
"englishName":"MD_TAB_DESC", "englishName":"MD_TAB_DESC",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -307,7 +307,7 @@ export const editTableData: any[] = [ ...@@ -307,7 +307,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "存储类型", "name" : "存储类型",
"description": "", "description": '无',
"englishName":"MD_STORE_TYPE", "englishName":"MD_STORE_TYPE",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -316,7 +316,7 @@ export const editTableData: any[] = [ ...@@ -316,7 +316,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "是否为事务表", "name" : "是否为事务表",
"description": "", "description": '无',
"englishName":"MD_TAB_IS_TRANS", "englishName":"MD_TAB_IS_TRANS",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -325,7 +325,7 @@ export const editTableData: any[] = [ ...@@ -325,7 +325,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "创建时间", "name" : "创建时间",
"description": "", "description": '无',
"englishName":"MR_CREATE_TIME", "englishName":"MR_CREATE_TIME",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -334,7 +334,7 @@ export const editTableData: any[] = [ ...@@ -334,7 +334,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "创建者", "name" : "创建者",
"description": "", "description": '无',
"englishName":"MR_CREATE_USER", "englishName":"MR_CREATE_USER",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -343,7 +343,7 @@ export const editTableData: any[] = [ ...@@ -343,7 +343,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "发布时间", "name" : "发布时间",
"description": "", "description": '无',
"englishName":"MR_PUBLISH_TIME", "englishName":"MR_PUBLISH_TIME",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -352,7 +352,7 @@ export const editTableData: any[] = [ ...@@ -352,7 +352,7 @@ export const editTableData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "发布者", "name" : "发布者",
"description": "", "description": '无',
"englishName":"MR_PUBLISH_USER", "englishName":"MR_PUBLISH_USER",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -365,7 +365,7 @@ export const editColumnData: any[] = [ ...@@ -365,7 +365,7 @@ export const editColumnData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "列名", "name" : "列名",
"description": "", "description": '无',
"englishName":"MD_COL_NAME", "englishName":"MD_COL_NAME",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -374,7 +374,7 @@ export const editColumnData: any[] = [ ...@@ -374,7 +374,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',
"isShow": '0', "isShow": '0',
...@@ -383,7 +383,7 @@ export const editColumnData: any[] = [ ...@@ -383,7 +383,7 @@ 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',
...@@ -392,7 +392,7 @@ export const editColumnData: any[] = [ ...@@ -392,7 +392,7 @@ export const editColumnData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "长度", "name" : "长度",
"description": "", "description": '无',
"englishName":"MD_COL_LENGTH", "englishName":"MD_COL_LENGTH",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -401,7 +401,7 @@ export const editColumnData: any[] = [ ...@@ -401,7 +401,7 @@ export const editColumnData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "精度", "name" : "精度",
"description": "", "description": '无',
"englishName":"MD_COL_PRECISION", "englishName":"MD_COL_PRECISION",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -410,7 +410,7 @@ export const editColumnData: any[] = [ ...@@ -410,7 +410,7 @@ export const editColumnData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "是否可为空", "name" : "是否可为空",
"description": "", "description": '无',
"englishName":"MD_COL_IS_BULL", "englishName":"MD_COL_IS_BULL",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -419,7 +419,7 @@ export const editColumnData: any[] = [ ...@@ -419,7 +419,7 @@ export const editColumnData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "字段注释", "name" : "字段注释",
"description": "", "description": '无',
"englishName":"MD_COL_COMMENT", "englishName":"MD_COL_COMMENT",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -430,7 +430,7 @@ export const editBucketData: any[] = [ ...@@ -430,7 +430,7 @@ export const editBucketData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "分桶数", "name" : "分桶数",
"description": "", "description": '无',
"englishName":"MD_BUCKET_NUM", "englishName":"MD_BUCKET_NUM",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -439,7 +439,7 @@ export const editBucketData: any[] = [ ...@@ -439,7 +439,7 @@ export const editBucketData: any[] = [
{ {
"businessId" : 1, "businessId" : 1,
"name" : "分桶字段", "name" : "分桶字段",
"description": "", "description": '无',
"englishName":"MD_BUCKET_KEY", "englishName":"MD_BUCKET_KEY",
"isWrite": '0', "isWrite": '0',
"isShow": '0', "isShow": '0',
...@@ -448,7 +448,7 @@ export const editBucketData: any[] = [ ...@@ -448,7 +448,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',
"isShow": '0', "isShow": '0',
...@@ -457,7 +457,7 @@ export const editBucketData: any[] = [ ...@@ -457,7 +457,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',
"isShow": '0', "isShow": '0',
...@@ -468,7 +468,7 @@ export const editAreaData: any[] = [ ...@@ -468,7 +468,7 @@ 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',
"isShow": '0', "isShow": '0',
...@@ -477,7 +477,7 @@ export const editAreaData: any[] = [ ...@@ -477,7 +477,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',
"isShow": '0', "isShow": '0',
...@@ -486,7 +486,7 @@ export const editAreaData: any[] = [ ...@@ -486,7 +486,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',
"isShow": '0', "isShow": '0',
...@@ -495,7 +495,7 @@ export const editAreaData: any[] = [ ...@@ -495,7 +495,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',
"isShow": '0', "isShow": '0',
......
...@@ -22,89 +22,21 @@ ...@@ -22,89 +22,21 @@
<template #toolbar> <template #toolbar>
<a-input style="width: 200px;margin-right: auto" default-value="表信息" allowClear></a-input> <a-input style="width: 200px;margin-right: auto" default-value="表信息" allowClear></a-input>
</template> </template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
color: 'error',
label: '删除',
popConfirm: {
title: '是否确认删除',
placement: 'left',
confirm: handleDelete.bind(null, record),
},
},
]"
/>
</template>
</template>
</BasicTable> </BasicTable>
<BasicTable @register="registerTable2" class="height"> <BasicTable @register="registerTable2" class="height">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px;margin-right: auto" default-value="分桶信息" allowClear></a-input> <a-input style="width: 200px;margin-right: auto" default-value="分桶信息" allowClear></a-input>
</template> </template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
color: 'error',
label: '删除',
popConfirm: {
title: '是否确认删除',
placement: 'left',
confirm: handleDelete.bind(null, record),
},
},
]"
/>
</template>
</template>
</BasicTable> </BasicTable>
<BasicTable @register="registerTable3" class="height"> <BasicTable @register="registerTable3" class="height">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px;margin-right: auto" default-value="分区信息" allowClear></a-input> <a-input style="width: 200px;margin-right: auto" default-value="分区信息" allowClear></a-input>
</template> </template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
color: 'error',
label: '删除',
popConfirm: {
title: '是否确认删除',
placement: 'left',
confirm: handleDelete.bind(null, record),
},
},
]"
/>
</template>
</template>
</BasicTable> </BasicTable>
<BasicTable @register="registerTable4" class="height"> <BasicTable @register="registerTable4" class="height">
<template #toolbar> <template #toolbar>
<a-input style="width: 200px;margin-right: auto" default-value="列信息" allowClear></a-input> <a-input style="width: 200px;margin-right: auto" default-value="列信息" allowClear></a-input>
</template> </template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
color: 'error',
label: '删除',
popConfirm: {
title: '是否确认删除',
placement: 'left',
confirm: handleDelete.bind(null, record),
},
},
]"
/>
</template>
</template>
</BasicTable> </BasicTable>
</PageWrapper> </PageWrapper>
<DetailSetModal @register="registerSetModal" @success="handleSuccess" /> <DetailSetModal @register="registerSetModal" @success="handleSuccess" />
...@@ -160,11 +92,6 @@ const [registerTable1, { reload1,getForm1 }] = useTable({ ...@@ -160,11 +92,6 @@ const [registerTable1, { reload1,getForm1 }] = useTable({
showIndexColumn: false, showIndexColumn: false,
pagination: false, pagination: false,
bordered: true, bordered: true,
actionColumn: {
width: 150,
title: '操作',
dataIndex: 'action',
},
}); });
const [registerTable2, { reload2,getForm2 }] = useTable({ const [registerTable2, { reload2,getForm2 }] = useTable({
title: '', title: '',
...@@ -185,11 +112,6 @@ const [registerTable2, { reload2,getForm2 }] = useTable({ ...@@ -185,11 +112,6 @@ const [registerTable2, { reload2,getForm2 }] = useTable({
showIndexColumn: false, showIndexColumn: false,
pagination: false, pagination: false,
bordered: true, bordered: true,
actionColumn: {
width: 150,
title: '操作',
dataIndex: 'action',
},
}); });
const [registerTable3, { reload3,getForm3 }] = useTable({ const [registerTable3, { reload3,getForm3 }] = useTable({
title: '', title: '',
...@@ -210,11 +132,6 @@ const [registerTable3, { reload3,getForm3 }] = useTable({ ...@@ -210,11 +132,6 @@ const [registerTable3, { reload3,getForm3 }] = useTable({
showIndexColumn: false, showIndexColumn: false,
pagination: false, pagination: false,
bordered: true, bordered: true,
actionColumn: {
width: 150,
title: '操作',
dataIndex: 'action',
},
}); });
const [registerTable4, { reload4,getForm4 }] = useTable({ const [registerTable4, { reload4,getForm4 }] = useTable({
title: '', title: '',
...@@ -235,11 +152,6 @@ const [registerTable4, { reload4,getForm4 }] = useTable({ ...@@ -235,11 +152,6 @@ const [registerTable4, { reload4,getForm4 }] = useTable({
showIndexColumn: false, showIndexColumn: false,
pagination: false, pagination: false,
bordered: true, bordered: true,
actionColumn: {
width: 150,
title: '操作',
dataIndex: 'action',
},
}); });
//初始化弹框 //初始化弹框
......
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