Commit 6e1026bc authored by hubaoshan's avatar hubaoshan

商城管理-资源管理

parent 9e792693
......@@ -955,7 +955,7 @@ export const ResourceRoute: AppRouteRecordRaw = {
children: [
{
path: 'dataSharingAndExchange/resourceManagement/detail',
name: 'detail',
name: 'detail123',
component: () => import('@/views/dataSharingAndExchange/resourceManagement/detail/index.vue'),
},
],
......
<template>
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex">
<!-- <DeptTree class="w-1/4 xl:w-1/5" @select="handleSelect" class="w-3/4 xl:w-4/5" />-->
<BasicTable @register="registerTable" :searchInfo="searchInfo">
<template #toolbar>
</template>
<template #name="{ text, record }">
<a @click="showDetails(record)"> {{ text }}</a>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
// 详情按钮
{
// icon: 'clarity:note-edit-line',
icon: 'clarity:note-edit-line',
label: '详情',
onClick: handleDetails.bind(null, record),
},
// {
// // icon: 'clarity:note-edit-line',
// label: '新建',
// onClick: handleAdd.bind(null, record),
// },
// {
// // icon: 'clarity:note-edit-line',
// label: '编辑',
// onClick: handleEdit.bind(null, record),
// },
// {
// color: 'error',
// label: '删除',
// popConfirm: {
// title: '是否确认删除',
// placement: 'left',
// confirm: handleDelete.bind(null, record),
// },
// },
// {
// label: '移动',
// onClick: handleMove.bind(null, record),
// },
]"
/>
</template>
......@@ -177,11 +150,14 @@
});
}/** 详情按钮*/
function handleDetails(record: Recordable) {
push({
path: '/dataSharingAndExchange/resourceManagement/detail',
// path: '/dataSharingAndExchange/resourceManagement/detail/index',
// path: '/dataWarehousePlanning/physicalModel/detail',
query: record,
});
console.log('path',record)
}
......
......@@ -232,3 +232,118 @@ export const AddTreeSchema: any[] = [
// },
]
export const editFormSchema: any[] = [
{
field: 'table1',
slot: 'table1',
colProps: { lg: 24, md: 24 },
},
{
field: 'dataBase',
label: '数据源:',
slot: 'dataBase',
colProps: { lg: 12, md: 12 },
},
{
field: 'libraryName',
label: '库名:',
slot: 'libraryName',
component: 'Input',
colProps: { lg: 12, md: 12 },
required: true,
},
{
field: 'tableName',
label: '表名:',
slot: 'tableName',
component: 'Input',
colProps: { lg: 12, md: 12 },
required: true,
},
{
field: 'tableType',
label: '表类型:',
slot: 'tableType',
component: 'Select',
colProps: { lg: 12, md: 12 },
},
{
field: 'tableExplain',
label: '表注释:',
slot: 'tableExplain',
component: 'Select',
colProps: { lg: 12, md: 12 },
},
{
field: 'storeType',
label: '存储类型:',
slot: 'storeType',
component: 'Select',
colProps: { lg: 12, md: 12 },
required: true,
},
{
field: 'isTransaction',
label: '是否为事务表:',
slot: 'isTransaction',
component: 'Select',
colProps: { lg: 12, md: 12 },
},
{
field: 'table2',
slot: 'table2',
colProps: { lg: 24, md: 24 },
},
{
field: 'mainDept',
label: '主责部门:',
slot: 'mainDept',
component: 'Input',
colProps: { lg: 12, md: 12 },
},
{
field: 'isEncrypt',
label: '是否为事务表:',
slot: 'isEncrypt',
component: 'RadioGroup',
componentProps: {
options: [
{ label: '是', value: '是' },
{ label: '否', value: '否' },
],
},
colProps: { lg: 12, md: 12 },
},
{
field: 'table3',
slot: 'table3',
colProps: { lg: 24, md: 24 },
},
{
field: 'taskName',
label: '业务定义:',
slot: 'taskName',
component: 'Input',
colProps: { lg: 12, md: 12 },
},
{
field: 'chineseName',
label: '表中文名:',
slot: 'chineseName',
component: 'Input',
colProps: { lg: 12, md: 12 },
},
{
field: 'isSensitive',
label: '是否为敏感信息:',
slot: 'isSensitive',
component: 'RadioGroup',
componentProps: {
options: [
{ label: '是', value: '是' },
{ label: '否', value: '否' },
],
},
colProps: { lg: 12, md: 12 },
},
];
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