Commit d36860b1 authored by liwei's avatar liwei

物理模型页面

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