Files
JeecgBoot/jeecgboot-vue3/src/views/system/homeConfig/home.data.ts
JEECG 6c15b45a8c 【合并v3.8.2最新版代码】
Squashed commit of the following:

commit f30a8c658a
Author: JEECG <445654970@qq.com>
Date:   Thu Jul 31 11:35:16 2025 +0800

    数据库缺少openapi微服务网关配置

commit e84d7726d2
Author: JEECG <445654970@qq.com>
Date:   Thu Jul 31 10:20:09 2025 +0800

    后台接口地址修改

commit 0f39802698
Author: JEECG <445654970@qq.com>
Date:   Thu Jul 31 09:56:24 2025 +0800

    docker自动化部署命令

commit a014a3ed0e
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 21:55:16 2025 +0800

    v3.8.2 优化一键docker启动前后端

commit 5720d1a01e
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 19:26:38 2025 +0800

    升级版本号到3.8.2

commit 5eed6ac6d2
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 18:49:29 2025 +0800

    升级版本号到3.8.2

commit 0cfa1e223a
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 18:28:10 2025 +0800

    v3.8.2 系统通知改造支持分类

commit 219869f4c0
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 18:25:58 2025 +0800

    v3.8.2 版本前端代码

commit e6edde963a
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 18:25:46 2025 +0800

    v3.8.2 版本后端代码

commit c44b66128e
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 18:23:09 2025 +0800

    XXL-JOB(2.4.0 及以上)已被移除,分片参数获取方式变更。

commit 9356b04741
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 10:57:52 2025 +0800

    升级online到3.8.2-beta

commit d0a094f9a3
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 10:57:31 2025 +0800

    升级mybatis-plus到3.5.12、升级jsqlparser到4.9

commit 73eb625737
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 09:51:34 2025 +0800

    升级jimureport到v2.1.1

commit 74880705b8
Author: JEECG <445654970@qq.com>
Date:   Wed Jul 30 09:18:46 2025 +0800

    升级online到3.8.2-beta

# Conflicts:
#	jeecg-boot/jeecg-boot-base-core/pom.xml
#	jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger3Config.java
#	jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java
#	jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-sentinel/pom.xml
#	jeecg-boot/pom.xml
2025-07-31 14:23:45 +08:00

130 lines
2.5 KiB
Vue

import { FormSchema } from '/@/components/Table';
//列配置
export const columns = [
{
title: '关联类型(用户/角色)',
dataIndex: 'relationType_dictText',
width: 80,
slots: { customRender: 'relationType' },
},
{
title: '用户/角色编码',
dataIndex: 'roleCode',
width: 80,
slots: { customRender: 'roleCode' },
},
{
title: '首页路由',
dataIndex: 'url',
width: 100,
},
{
title: '组件地址',
dataIndex: 'component',
width: 100,
},
{
title: '是否开启',
dataIndex: 'status',
slots: { customRender: 'status' },
width: 60,
},
];
//查询配置
export const searchFormSchema: FormSchema[] = [
{
field: 'relationType',
label: '关联类型',
component: 'JDictSelectTag',
componentProps: {
dictCode: 'relation_type',
},
},
{
field: 'route',
label: '是否路由菜单',
helpMessage: '非路由菜单设置成首页,需开启',
component: 'Switch',
show: false,
},
];
export const formSchema: FormSchema[] = [
{
field: 'id',
label: '',
component: 'Input',
show: false,
},
{
field: 'relationType',
label: '关联类型',
component: 'JDictSelectTag',
required: true,
defaultValue: 'ROLE',
componentProps: {
dictCode: 'relation_type',
type: 'radioButton',
},
},
{
label: '角色编码',
field: 'roleCode',
component: 'JSelectRole',
required: true,
componentProps: {
rowKey: 'roleCode',
isRadioSelection: true,
},
ifShow: ({ values }) => values.relationType == 'ROLE',
},
{
label: '用户编码',
field: 'userCode',
component: 'JSelectUser',
required: true,
componentProps: {
isRadioSelection: true,
},
ifShow: ({ values }) => values.relationType == 'USER',
},
{
label: '首页路由',
field: 'url',
component: 'Input',
required: true,
},
{
label: '组件地址',
field: 'component',
component: 'Input',
componentProps: {
placeholder: '请输入前端组件',
},
required: true,
},
{
label: '优先级',
field: 'priority',
component: 'InputNumber',
},
{
field: 'route',
label: '是否路由菜单',
helpMessage: '非路由菜单设置成首页,需开启',
component: 'Switch',
defaultValue: true,
show: false,
},
{
label: '是否开启',
field: 'status',
component: 'JSwitch',
defaultValue: '1',
componentProps: {
options: ['1', '0'],
},
},
];