From 56f967607beb8f85e95df960cfed3a3ea10ab174 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 19 Dec 2025 20:07:06 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Aindex.scss=20=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?.yd-search-form=20=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=BA=94=E7=9A=84=20search?= =?UTF-8?q?-form.vue=20=E4=BB=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apiAccessLog/components/search-form.vue | 16 ++--- .../apiErrorLog/components/search-form.vue | 20 +++--- .../dept/components/search-form.vue | 16 ++--- .../menu/components/search-form.vue | 16 ++--- .../notice/components/search-form.vue | 16 ++--- .../operate-log/modules/search-form.vue | 50 ++++++-------- .../post/components/search-form.vue | 20 +++--- .../role/components/search-form.vue | 20 +++--- .../user/components/search-form.vue | 16 ++--- src/pages/bpm/components/copy-search-form.vue | 32 ++++----- src/pages/bpm/components/done-search-form.vue | 45 ++++++------ src/pages/bpm/components/my-search-form.vue | 45 ++++++------ src/pages/bpm/components/todo-search-form.vue | 45 ++++++------ src/pages/message/components/search-form.vue | 32 ++++----- src/style/index.scss | 68 ++++++++++++++++--- 15 files changed, 240 insertions(+), 217 deletions(-) diff --git a/src/pages-infra/apiAccessLog/components/search-form.vue b/src/pages-infra/apiAccessLog/components/search-form.vue index e8c26d1..1bf67a3 100644 --- a/src/pages-infra/apiAccessLog/components/search-form.vue +++ b/src/pages-infra/apiAccessLog/components/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索日志 - - + + 用户编号 - - + + 应用名 - + 重置 diff --git a/src/pages-infra/apiErrorLog/components/search-form.vue b/src/pages-infra/apiErrorLog/components/search-form.vue index ac4d123..9368303 100644 --- a/src/pages-infra/apiErrorLog/components/search-form.vue +++ b/src/pages-infra/apiErrorLog/components/search-form.vue @@ -10,16 +10,16 @@ - - + + 搜索日志 - - + + 用户编号 - - + + 应用名 - - + + 处理状态 @@ -57,7 +57,7 @@ - + 重置 diff --git a/src/pages-system/dept/components/search-form.vue b/src/pages-system/dept/components/search-form.vue index a96e4d8..edb3d0d 100644 --- a/src/pages-system/dept/components/search-form.vue +++ b/src/pages-system/dept/components/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索部门 - - + + 部门名称 - - + + 状态 @@ -46,7 +46,7 @@ - + 重置 diff --git a/src/pages-system/menu/components/search-form.vue b/src/pages-system/menu/components/search-form.vue index 0b17c6f..8cc9f93 100644 --- a/src/pages-system/menu/components/search-form.vue +++ b/src/pages-system/menu/components/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索菜单 - - + + 菜单名称 - - + + 菜单状态 @@ -39,7 +39,7 @@ - + 重置 diff --git a/src/pages-system/notice/components/search-form.vue b/src/pages-system/notice/components/search-form.vue index 1b19417..c23a36b 100644 --- a/src/pages-system/notice/components/search-form.vue +++ b/src/pages-system/notice/components/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索通知公告 - - + + 公告标题 - - + + 公告状态 @@ -46,7 +46,7 @@ - + 重置 diff --git a/src/pages-system/operate-log/modules/search-form.vue b/src/pages-system/operate-log/modules/search-form.vue index e9eaf9d..83ec2bc 100644 --- a/src/pages-system/operate-log/modules/search-form.vue +++ b/src/pages-system/operate-log/modules/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索操作日志 - - + + 操作人 - - + + 操作模块 - - + + 操作名 - - + + 操作内容 - - + + 操作时间 - + - + {{ formatDate(formData.createTime?.[0]) || '开始日期' }} - + - - + {{ formatDate(formData.createTime?.[1]) || '结束日期' }} @@ -87,7 +83,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -101,7 +97,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -110,8 +106,8 @@ - - + + 业务编号 - + 重置 @@ -224,6 +220,4 @@ function handleReset() { visible.value = false emit('reset') } - - diff --git a/src/pages-system/post/components/search-form.vue b/src/pages-system/post/components/search-form.vue index 6fd73fc..462ff8d 100644 --- a/src/pages-system/post/components/search-form.vue +++ b/src/pages-system/post/components/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索岗位 - - + + 岗位名称 - - + + 岗位编码 - - + + 状态 @@ -56,7 +56,7 @@ - + 重置 diff --git a/src/pages-system/role/components/search-form.vue b/src/pages-system/role/components/search-form.vue index eaaa798..c03e2d4 100644 --- a/src/pages-system/role/components/search-form.vue +++ b/src/pages-system/role/components/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索角色 - - + + 角色名称 - - + + 角色标识 - - + + 状态 @@ -56,7 +56,7 @@ - + 重置 diff --git a/src/pages-system/user/components/search-form.vue b/src/pages-system/user/components/search-form.vue index f295658..3a7745d 100644 --- a/src/pages-system/user/components/search-form.vue +++ b/src/pages-system/user/components/search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索用户 - - + + 用户名称 - - + + 用户昵称 - + 重置 diff --git a/src/pages/bpm/components/copy-search-form.vue b/src/pages/bpm/components/copy-search-form.vue index 838b75a..49a7aeb 100644 --- a/src/pages/bpm/components/copy-search-form.vue +++ b/src/pages/bpm/components/copy-search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索流程 - - + + 流程名称 - - + + 抄送时间 - + - + {{ formatDate(formData.createTime?.[0]) || '开始日期' }} - + - - + {{ formatDate(formData.createTime?.[1]) || '结束日期' }} @@ -56,7 +52,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -70,7 +66,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -79,7 +75,7 @@ - + 重置 diff --git a/src/pages/bpm/components/done-search-form.vue b/src/pages/bpm/components/done-search-form.vue index b2b6c5b..4a1ab05 100644 --- a/src/pages/bpm/components/done-search-form.vue +++ b/src/pages/bpm/components/done-search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索任务 - - + + 任务名称 - - + + 所属流程 - - + + 流程分类 - - + + 审批状态 @@ -66,24 +66,19 @@ - - - + + 发起时间 - + - + {{ formatDate(formData.createTime?.[0]) || '开始日期' }} - + - - + {{ formatDate(formData.createTime?.[1]) || '结束日期' }} @@ -94,7 +89,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -108,7 +103,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -117,7 +112,7 @@ - + 重置 diff --git a/src/pages/bpm/components/my-search-form.vue b/src/pages/bpm/components/my-search-form.vue index a7b20f9..54276dc 100644 --- a/src/pages/bpm/components/my-search-form.vue +++ b/src/pages/bpm/components/my-search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索流程 - - + + 流程名称 - - + + 所属流程 - - - + + 发起时间 - + - + {{ formatDate(formData.createTime?.[0]) || '开始日期' }} - + - - + {{ formatDate(formData.createTime?.[1]) || '结束日期' }} @@ -69,7 +64,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -83,7 +78,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -92,8 +87,8 @@ - - + + 流程状态 @@ -105,8 +100,8 @@ - - + + 流程分类 - + 重置 diff --git a/src/pages/bpm/components/todo-search-form.vue b/src/pages/bpm/components/todo-search-form.vue index f7c0b5b..2c283d5 100644 --- a/src/pages/bpm/components/todo-search-form.vue +++ b/src/pages/bpm/components/todo-search-form.vue @@ -11,16 +11,16 @@ - - + + 搜索任务 - - + + 任务名称 - - + + 所属流程 - - + + 流程分类 - - + + 流程状态 @@ -66,24 +66,19 @@ - - - + + 发起时间 - + - + {{ formatDate(formData.createTime?.[0]) || '开始日期' }} - + - - + {{ formatDate(formData.createTime?.[1]) || '结束日期' }} @@ -94,7 +89,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -108,7 +103,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -117,7 +112,7 @@ - + 重置 diff --git a/src/pages/message/components/search-form.vue b/src/pages/message/components/search-form.vue index afa3ce9..84def60 100644 --- a/src/pages/message/components/search-form.vue +++ b/src/pages/message/components/search-form.vue @@ -18,16 +18,16 @@ - - + + 搜索消息 - - + + 已读状态 @@ -42,23 +42,19 @@ - - + + 发送时间 - + - + {{ formatDate(formData.createTime?.[0]) || '开始日期' }} - + - - + {{ formatDate(formData.createTime?.[1]) || '结束日期' }} @@ -69,7 +65,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -83,7 +79,7 @@ type="date" :columns-height="200" /> - + 取消 @@ -92,7 +88,7 @@ - + 重置 diff --git a/src/style/index.scss b/src/style/index.scss index 7e1a9c7..4f17354 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -9,14 +9,6 @@ color: red; } -// ==================== 全局公共样式 ==================== - -// 页面容器:灰色背景 + 最小全屏高度 -.page-container { - @apply min-h-screen; - background-color: #f5f5f5; -} - :root, page { // 修改按主题色 @@ -24,6 +16,9 @@ page { // 修改按钮背景色 // --wot-button-primary-bg-color: green; + + // yd-search-form:搜索表单弹窗圆角 + --yd-search-form-popup-radius: 0 0 24rpx 24rpx; } /* @@ -42,3 +37,60 @@ border-t-1 // border-style: solid; /* 2 */ // border-color: var(--un-default-border-color, #e5e7eb); /* 3 */ // } + +// ==================== 全局公共样式 ==================== + +// 页面容器:灰色背景 + 最小全屏高度 +.page-container { + @apply min-h-screen; + background-color: #f5f5f5; +} + +// ==================== 搜索表单弹窗样式 ==================== +.yd-search-form { + // 弹窗容器 + &-container { + @apply p-32rpx; + } + + // 弹窗标题 + &-title { + @apply mb-24rpx text-32rpx font-semibold; + color: #333; + } + + // 表单项 + &-item { + @apply mb-24rpx; + } + + // 表单项标签 + &-label { + @apply mb-12rpx text-28rpx; + color: #666; + } + + // 底部按钮组 + &-actions { + @apply w-full flex justify-center gap-24rpx; + } + + // 日期范围选择器 + &-date-range { + // 容器 + &-container { + @apply flex items-center gap-16rpx; + } + + // 日期选择框 + &-picker { + @apply h-72rpx flex flex-1 items-center justify-center rounded-8rpx px-24rpx text-28rpx; + background-color: #f5f5f5; + } + + // 确认按钮组 + &-actions { + @apply mt-16rpx flex justify-end gap-16rpx; + } + } +} \ No newline at end of file