修改
This commit is contained in:
@@ -70,7 +70,7 @@ const tableColumns: BasicColumn<BizCompany>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
slot: 'firstColumn',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('公司名称'),
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
|
||||
import { BasicColumn, BasicTableProps, FormProps } from '@jeesite/core/components/Table';
|
||||
import { BizDbConfig, bizDbConfigListData } from '@jeesite/biz/api/biz/dbConfig';
|
||||
|
||||
const { t } = useI18n('biz.dbConfig');
|
||||
|
||||
const modalProps = {
|
||||
title: t('连接信息选择'),
|
||||
};
|
||||
|
||||
const searchForm: FormProps<BizDbConfig> = {
|
||||
baseColProps: { md: 8, lg: 6 },
|
||||
labelWidth: 90,
|
||||
schemas: [
|
||||
{
|
||||
label: t('创建时间起'),
|
||||
field: 'createTime_gte',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
format: 'YYYY-MM-DD HH:mm',
|
||||
showTime: { format: 'HH:mm' },
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('创建时间止'),
|
||||
field: 'createTime_lte',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
format: 'YYYY-MM-DD HH:mm',
|
||||
showTime: { format: 'HH:mm' },
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('数据库类型'),
|
||||
field: 'dbType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: 'db_type',
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('数据库名称'),
|
||||
field: 'dbName',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('数据库IP'),
|
||||
field: 'dbIp',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('数据库描述'),
|
||||
field: 'description',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('是否启用'),
|
||||
field: 'isEnabled',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: 'is_active',
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const tableColumns: BasicColumn<BizDbConfig>[] = [
|
||||
{
|
||||
title: t('创建时间'),
|
||||
dataIndex: 'createTime',
|
||||
key: 'a.create_time',
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
title: t('数据库类型'),
|
||||
dataIndex: 'dbType',
|
||||
key: 'a.db_type',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
dictType: 'db_type',
|
||||
},
|
||||
{
|
||||
title: t('数据库名称'),
|
||||
dataIndex: 'dbName',
|
||||
key: 'a.db_name',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('数据库IP'),
|
||||
dataIndex: 'dbIp',
|
||||
key: 'a.db_ip',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('数据库端口'),
|
||||
dataIndex: 'dbPort',
|
||||
key: 'a.db_port',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('数据库账号'),
|
||||
dataIndex: 'dbUsername',
|
||||
key: 'a.db_username',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('数据库描述'),
|
||||
dataIndex: 'description',
|
||||
key: 'a.description',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('是否启用'),
|
||||
dataIndex: 'isEnabled',
|
||||
key: 'a.is_enabled',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'center',
|
||||
dictType: 'is_active',
|
||||
},
|
||||
{
|
||||
title: t('schema名称'),
|
||||
dataIndex: 'dbSchemaName',
|
||||
key: 'a.db_schema_name',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('更新时间'),
|
||||
dataIndex: 'updateTime',
|
||||
key: 'a.update_time',
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'center',
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: BasicTableProps = {
|
||||
api: bizDbConfigListData,
|
||||
beforeFetch: (params) => {
|
||||
params['isAll'] = true;
|
||||
return params;
|
||||
},
|
||||
columns: tableColumns,
|
||||
formConfig: searchForm,
|
||||
rowKey: 'id',
|
||||
};
|
||||
|
||||
export default {
|
||||
modalProps,
|
||||
tableProps,
|
||||
itemCode: 'id',
|
||||
itemName: 'dbName',
|
||||
isShowCode: true,
|
||||
};
|
||||
@@ -73,7 +73,7 @@ const tableColumns: BasicColumn<BizResumeEmployee>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
slot: 'firstColumn',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('员工姓名'),
|
||||
|
||||
@@ -74,6 +74,7 @@ const tableColumns: BasicColumn<BizMonitorHost>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('主机名称'),
|
||||
|
||||
@@ -42,7 +42,7 @@ const tableColumns: BasicColumn<BizProjectInfo>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
slot: 'firstColumn',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('项目编码'),
|
||||
|
||||
@@ -42,6 +42,7 @@ const tableColumns: BasicColumn<BizProvince>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('省份名称'),
|
||||
|
||||
@@ -82,7 +82,7 @@ const tableColumns: BasicColumn[] = [
|
||||
key: 'a.login_code',
|
||||
sorter: true,
|
||||
width: 100,
|
||||
slot: 'firstColumn',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('用户昵称'),
|
||||
|
||||
@@ -42,6 +42,7 @@ const tableColumns: BasicColumn<ErpAccount>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('账户名称'),
|
||||
|
||||
@@ -46,6 +46,7 @@ const tableColumns: BasicColumn<ErpCategory>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('分类名称'),
|
||||
|
||||
@@ -46,7 +46,7 @@ const tableColumns: BasicColumn<ErpTransactionFlow>[] = [
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
slot: 'firstColumn',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('交易名称'),
|
||||
|
||||
@@ -60,7 +60,7 @@ const tableColumns: BasicColumn[] = [
|
||||
key: 'a.login_code',
|
||||
sorter: true,
|
||||
width: 100,
|
||||
slot: 'firstColumn',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('用户昵称'),
|
||||
|
||||
Reference in New Issue
Block a user