feat(Banner管理): 轮播图新增跳转方式与跳转链接字段

- 列表新增"跳转方式"、"跳转链接"两列
- 表单新增跳转方式单选(不跳转/链接/app内),选"链接"时跳转链接必填

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-09-01 11:47:01 +08:00
co-authored by Claude
parent 141cf2b856
commit 8152c4c559
5 changed files with 60 additions and 13 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ VITE_GLOB_APP_TITLE_JD = 健康干预后台
VITE_GLOB_APP_SHORT_NAME = CqytHealthAdmin
# 单点登录服务端地址
VITE_GLOB_APP_CAS_BASE_URL=http://cas.test.com:8443/cas
VITE_GLOB_APP_CAS_BASE_URL=
# 是否开启单点登录
VITE_GLOB_APP_OPEN_SSO = false
@@ -19,6 +19,6 @@ VITE_GLOB_APP_OPEN_SSO = false
VITE_GLOB_APP_OPEN_QIANKUN=true
# 文件预览地址
VITE_GLOB_ONLINE_VIEW_URL=http://fileview.jeecg.com/onlinePreview
VITE_GLOB_ONLINE_VIEW_URL=
+2 -2
View File
@@ -16,10 +16,10 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
#后台接口父地址(必填)
VITE_GLOB_API_URL=http://cqyt.dev.yg.dt.io
VITE_GLOB_API_URL=http://10.8.0.4:29990
#后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=http://cqyt.dev.yg.dt.io
VITE_GLOB_DOMAIN_URL=http://10.8.0.4:29990
#食堂接口前缀
VITE_GLOB_ST_DOMAIN_URL=http://113.200.64.105:9002
+6 -6
View File
@@ -16,14 +16,14 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
#后台接口父地址(必填)
VITE_GLOB_API_URL=https://xj-api.mcrm.vip:8888
VITE_GLOB_API_URL=https://test.xjygjk.com
#后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=https://xj-api.mcrm.vip:8888
VITE_GLOB_DOMAIN_URL=https://test.xjygjk.com
#食堂接口前缀
VITE_GLOB_ST_DOMAIN_URL=https://yyjk.cqygjk.com/gateway
VITE_GLOB_ST_DOMAIN_URL=
#西安、银川应急大屏
VITE_EMERGENCY_SCREEN=https://screen.cqygjk.com/
VITE_EMERGENCY_SCREEN=
# 接口父路径前缀
VITE_GLOB_API_URL_PREFIX=
@@ -37,8 +37,8 @@ VITE_USE_PWA = false
# 是否兼容旧浏览器
VITE_LEGACY = false
# 油田平台CODE
# 平台CODE
VITE_PLATFORM = 'YT'
# 跳转外部链接
VITE_GLOB_OUT_URL=https://console-jkglpt.iosp.ydpt.tech/hb/healthadmin/index.html?param=
VITE_GLOB_OUT_URL=https://test.com
+7 -3
View File
@@ -3,9 +3,9 @@ MAINTAINER jeecgos@163.com
VOLUME /tmp
ENV LANG en_US.UTF-8
ENV VITE_GLOB_API_URL https://xj-api.mcrm.vip:8888
ENV VITE_GLOB_DOMAIN_URL https://xj-api.mcrm.vip:8888
ENV VITE_GLOB_OUT_URL https://gstest.superwx.cn/healthapiadmin/index.html?param=
ENV VITE_GLOB_API_URL http://10.10.10.228:19996
ENV VITE_GLOB_DOMAIN_URL http://10.10.10.228:19996
ENV VITE_GLOB_OUT_URL https://gstest.superwx.cn/healthcheckadmin/index.html?param=
RUN echo "server { \
#解决Router(mode: 'history')模式下,刷新路由地址不能找到页面的问题 \
@@ -17,6 +17,10 @@ RUN echo "server { \
break; \
} \
} \
location = /.well-known/apple-app-site-association { \
root /var/www/html; \
default_type application/json; \
} \
access_log /var/log/nginx/access.log ; \
} " > /etc/nginx/conf.d/default.conf \
&& mkdir -p /var/www \
@@ -48,6 +48,22 @@ export const columns: BasicColumn[] = [
align: 'center',
dataIndex: 'isLongTermEffective_dictText',
},
{
title: '跳转方式',
align: 'center',
dataIndex: 'tfJump',
customRender: ({ text }) => {
// 跳转方式文案映射:0-不跳转 1-链接 2-app内
const map = { '0': '不跳转', '1': '链接', '2': 'app内' };
return map[text] ?? '';
},
},
{
title: '跳转链接',
align: 'center',
dataIndex: 'jumpUrl',
ellipsis: true,
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
@@ -108,6 +124,33 @@ export const formSchema: FormSchema[] = [
},
rules: [{ required: true }],
},
{
label: '跳转方式',
field: 'tfJump',
component: 'RadioButtonGroup',
defaultValue: '0',
componentProps: {
options: [
{ label: '不跳转', value: '0' },
{ label: '链接', value: '1' },
{ label: 'app内', value: '2' },
],
},
rules: [{ required: true, message: '请选择跳转方式' }],
},
{
label: '跳转链接',
field: 'jumpUrl',
component: 'Input',
componentProps: {
placeholder: '请输入跳转链接',
},
// 仅跳转方式为"链接"时显示且必填
ifShow: ({ model }) => model.tfJump === '1',
dynamicRules: ({ model }) => {
return [{ required: model.tfJump === '1', message: '请输入跳转链接' }];
},
},
{
label: '是否有效',
field: 'status',