Merge branch 'devlopment' of http://pms.dtyx.net:3000/wuxueyu/Industrial-image-management-system---web into devlopment
This commit is contained in:
commit
f1faa6df05
|
@ -125,6 +125,58 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
// },
|
||||
],
|
||||
},
|
||||
/* 任务管理中心路由 */
|
||||
{
|
||||
path: '/task',
|
||||
name: 'TaskManagement',
|
||||
component: Layout,
|
||||
redirect: '/task/publish', // 默认跳转至发布任务页面
|
||||
meta: {
|
||||
title: '任务管理',
|
||||
icon: 'quote', // 任务相关图标
|
||||
hidden: false,
|
||||
sort: 3 // 排序值,控制菜单显示顺序
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/task/publish',
|
||||
name: 'TaskPublish',
|
||||
component: () => import('@/views/task/task-publish/TaskPublish.vue'),
|
||||
meta: {
|
||||
title: '发布任务',
|
||||
icon: 'plus-circle', // 发布相关图标
|
||||
hidden: false,
|
||||
sort: 3.25
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/task/progress',
|
||||
name: 'TaskProgress',
|
||||
component: () => import('@/views/task/task-progress/TaskProgress.vue'),
|
||||
meta: {
|
||||
title: '任务跟踪',
|
||||
icon: 'redo', // 进度相关图标
|
||||
hidden: false,
|
||||
sort: 3.5
|
||||
}
|
||||
}
|
||||
,
|
||||
{
|
||||
path: '/task/approval',
|
||||
name: 'TaskApproval',
|
||||
component: () => import('@/views/task/task-approval/TaskApproval.vue'),
|
||||
meta: {
|
||||
title: '任务审批',
|
||||
icon: 'plus-circle', // 发布相关图标
|
||||
hidden: false,
|
||||
sort: 3.75
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
|
||||
// {
|
||||
// path: '/organization',
|
||||
// name: 'Organization',
|
||||
|
@ -831,7 +883,7 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
],
|
||||
},
|
||||
|
||||
//项目中控台
|
||||
// 项目中控台
|
||||
{
|
||||
path: '/project-management/projects/personnel-dispatch',
|
||||
name: 'PersonnelDispatch',
|
||||
|
@ -842,7 +894,6 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
hidden: false,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
path: '/project-management/personnel-dispatch/construction-personnel',
|
||||
name: 'ConstructionPersonnel',
|
||||
|
@ -855,13 +906,133 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
},
|
||||
],
|
||||
},
|
||||
// start
|
||||
// 数据管理
|
||||
{
|
||||
path: '/data-management',
|
||||
name: 'DataManagement',
|
||||
component: Layout,
|
||||
redirect: '/data-management/project-management/project-template',
|
||||
meta: { title: '数据管理', icon: 'database', hidden: false, sort: 4 },
|
||||
children: [
|
||||
{
|
||||
// path: '/construction-operation-platform/implementation-workflow/data-processing',
|
||||
// name: 'DataProcessing',
|
||||
// component: () => import('@/components/ParentView/index.vue'),
|
||||
// redirect: '/construction-operation-platform/implementation-workflow/data-processing/data-storage',
|
||||
// meta: { title: '我的业务数据', icon: 'filter', hidden: false },
|
||||
// children: [
|
||||
// {
|
||||
// path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage',
|
||||
// name: 'DataStorage',
|
||||
// component: () => import('@/components/ParentView/index.vue'),
|
||||
// redirect: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/raw-data',
|
||||
// meta: { title: '原数据管理', icon: 'database', hidden: false },
|
||||
// children: [
|
||||
// {
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/raw-data',
|
||||
name: 'RawData',
|
||||
component: () => import('@/views/operation-platform/data-processing/data-storage/index.vue'),
|
||||
meta: { title: '原数据管理', icon: 'file', hidden: false },
|
||||
},
|
||||
// {
|
||||
// path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/attachment',
|
||||
// name: 'AttachmentManagement',
|
||||
// component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/data-storage/index.vue'),
|
||||
// meta: { title: '附件管理', icon: 'attachment', hidden: false },
|
||||
// },
|
||||
// {
|
||||
// path: '/construction-operation-platform/implementation-workflow/data-processing/model-config',
|
||||
// name: 'ModelConfig',
|
||||
// component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/model-config/index.vue'),
|
||||
// meta: { title: '模型配置', icon: 'robot', hidden: false },
|
||||
// },
|
||||
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/preprocessed-data',
|
||||
name: 'PreprocessedData',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
redirect: '/construction-operation-platform/implementation-workflow/data-processing/data-storage',
|
||||
meta: { title: '数据预处理', icon: 'filter', hidden: false },
|
||||
children: [
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/preprocessed-data/ImageBatchUpload',
|
||||
name: 'ImageBatchUpload',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/data-preprocessing/index.vue'),
|
||||
meta: { title: '批量上传', icon: 'file', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/preprocessed-data/ImageSorting',
|
||||
name: 'ImageSorting',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/image-sorting/index.vue'),
|
||||
meta: { title: '图像分拣', icon: 'attachment', hidden: false },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection',
|
||||
name: 'IntelligentInspection',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
redirect: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm',
|
||||
meta: { title: '数据分析与图像检测', icon: 'scan', hidden: false },
|
||||
children: [
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm',
|
||||
name: 'DefectAlgorithm',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/index.vue'),
|
||||
meta: { title: '缺陷检测', icon: 'code', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/report-generation',
|
||||
name: 'ReportGeneration',
|
||||
component: () => import('@/views/project-operation-platform/data-processing/report-generation/index.vue'),
|
||||
meta: { title: '报告生成', icon: 'file-add', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/standard-info',
|
||||
name: 'StandardInfo',
|
||||
component: () => import('@/views/project-operation-platform/data-processing/standard-info/index.vue'),
|
||||
meta: { title: '标准信息库', icon: 'book', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/report-review',
|
||||
name: 'ReportReview',
|
||||
component: () => import('@/views/project-operation-platform/data-processing/report-review/index.vue'),
|
||||
meta: { title: '报告修改审核', icon: 'audit', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/lifecycle-management',
|
||||
name: 'LifecycleManagement',
|
||||
component: () => import('@/views/project-operation-platform/lifecycle-management/index.vue'),
|
||||
meta: { title: '全生命周期管理', icon: 'reload', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/drone-services',
|
||||
name: 'DroneServices',
|
||||
component: () => import('@/views/project-operation-platform/route-planning/index.vue'),
|
||||
meta: { title: '无人机云服务', icon: 'cloud-server', hidden: false },
|
||||
},
|
||||
// {
|
||||
// path: '/construction-operation-platform/implementation-workflow/airport-management',
|
||||
// name: 'AirportManagement',
|
||||
// component: () => import('@/views/construction-operation-platform/airport-management/index.vue'),
|
||||
// meta: { title: '机场管理', icon: 'rocket', hidden: false },
|
||||
// },
|
||||
],
|
||||
// },
|
||||
// ],
|
||||
},
|
||||
],
|
||||
},
|
||||
// end
|
||||
{
|
||||
path: '/construction-operation-platform',
|
||||
name: 'ConstructionOperationPlatform',
|
||||
component: Layout,
|
||||
redirect: '/construction-operation-platform/implementation-workflow/field-construction',
|
||||
meta: { title: '施工操作台', icon: 'tool', hidden: false, sort: 5 },
|
||||
meta: { title: '我的工作台', icon: 'tool', hidden: false, sort: 5 },
|
||||
children: [
|
||||
// {
|
||||
// path: '/construction-operation-platform/implementation-workflow',
|
||||
|
@ -870,6 +1041,18 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
// redirect: '/construction-operation-platform/implementation-workflow/field-construction',
|
||||
// meta: { title: '项目实施工作流程', icon: 'fork', hidden: false },
|
||||
// children: [
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/attachment',
|
||||
name: 'AttachmentManagement',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/data-storage/index.vue'),
|
||||
meta: { title: '附件管理', icon: 'attachment', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/model-config',
|
||||
name: 'ModelConfig',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/model-config/index.vue'),
|
||||
meta: { title: '模型配置', icon: 'robot', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/field-construction',
|
||||
name: 'FieldConstruction',
|
||||
|
@ -893,115 +1076,6 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
component: () => import('@/views/project-operation-platform/implementation-workflow/field-construction/project-list/index.vue'),
|
||||
meta: { title: '我的施工', icon: 'tool', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing',
|
||||
name: 'DataProcessing',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
redirect: '/construction-operation-platform/implementation-workflow/data-processing/data-storage',
|
||||
meta: { title: '我的业务数据', icon: 'filter', hidden: false },
|
||||
children: [
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage',
|
||||
name: 'DataStorage',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
redirect: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/raw-data',
|
||||
meta: { title: '原数据管理', icon: 'database', hidden: false },
|
||||
children: [
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/raw-data',
|
||||
name: 'RawData',
|
||||
component: () => import('@/views/operation-platform/data-processing/data-storage/index.vue'),
|
||||
meta: { title: '原数据管理', icon: 'file', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/attachment',
|
||||
name: 'AttachmentManagement',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/data-storage/index.vue'),
|
||||
meta: { title: '附件管理', icon: 'attachment', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/model-config',
|
||||
name: 'ModelConfig',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/model-config/index.vue'),
|
||||
meta: { title: '模型配置', icon: 'robot', hidden: false },
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/preprocessed-data',
|
||||
name: 'PreprocessedData',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
redirect: '/construction-operation-platform/implementation-workflow/data-processing/data-storage',
|
||||
meta: { title: '数据预处理', icon: 'filter', hidden: false },
|
||||
children: [
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/preprocessed-data/ImageBatchUpload',
|
||||
name: 'ImageBatchUpload',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/data-preprocessing/index.vue'),
|
||||
meta: { title: '批量上传', icon: 'file', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/data-storage/preprocessed-data/ImageSorting',
|
||||
name: 'ImageSorting',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/image-sorting/index.vue'),
|
||||
meta: { title: '图像分拣', icon: 'attachment', hidden: false },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection',
|
||||
name: 'IntelligentInspection',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
redirect: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm',
|
||||
meta: { title: '数据分析与图像检测', icon: 'scan', hidden: false },
|
||||
children: [
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm',
|
||||
name: 'DefectAlgorithm',
|
||||
component: () => import('@/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/index.vue'),
|
||||
meta: { title: '缺陷检测', icon: 'code', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/report-generation',
|
||||
name: 'ReportGeneration',
|
||||
component: () => import('@/views/project-operation-platform/data-processing/report-generation/index.vue'),
|
||||
meta: { title: '报告生成', icon: 'file-add', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/standard-info',
|
||||
name: 'StandardInfo',
|
||||
component: () => import('@/views/project-operation-platform/data-processing/standard-info/index.vue'),
|
||||
meta: { title: '标准信息库', icon: 'book', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/report-review',
|
||||
name: 'ReportReview',
|
||||
component: () => import('@/views/project-operation-platform/data-processing/report-review/index.vue'),
|
||||
meta: { title: '报告修改审核', icon: 'audit', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/lifecycle-management',
|
||||
name: 'LifecycleManagement',
|
||||
component: () => import('@/views/project-operation-platform/lifecycle-management/index.vue'),
|
||||
meta: { title: '全生命周期管理', icon: 'reload', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/drone-services',
|
||||
name: 'DroneServices',
|
||||
component: () => import('@/views/project-operation-platform/route-planning/index.vue'),
|
||||
meta: { title: '无人机云服务', icon: 'cloud-server', hidden: false },
|
||||
},
|
||||
// {
|
||||
// path: '/construction-operation-platform/implementation-workflow/airport-management',
|
||||
// name: 'AirportManagement',
|
||||
// component: () => import('@/views/construction-operation-platform/airport-management/index.vue'),
|
||||
// meta: { title: '机场管理', icon: 'rocket', hidden: false },
|
||||
// },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/construction-operation-platform/implementation-workflow/project-delivery',
|
||||
name: 'ProjectDelivery',
|
||||
|
|
|
@ -7,8 +7,70 @@ export {}
|
|||
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
ApprovalAssistant: typeof import('./../components/ApprovalAssistant/index.vue')['default']
|
||||
ApprovalMessageItem: typeof import('./../components/NotificationCenter/ApprovalMessageItem.vue')['default']
|
||||
Avatar: typeof import('./../components/Avatar/index.vue')['default']
|
||||
Breadcrumb: typeof import('./../components/Breadcrumb/index.vue')['default']
|
||||
CellCopy: typeof import('./../components/CellCopy/index.vue')['default']
|
||||
Chart: typeof import('./../components/Chart/index.vue')['default']
|
||||
CircularProgress: typeof import('./../components/CircularProgress/index.vue')['default']
|
||||
ColumnSetting: typeof import('./../components/GiTable/src/components/ColumnSetting.vue')['default']
|
||||
CronForm: typeof import('./../components/GenCron/CronForm/index.vue')['default']
|
||||
CronModal: typeof import('./../components/GenCron/CronModal/index.vue')['default']
|
||||
DateRangePicker: typeof import('./../components/DateRangePicker/index.vue')['default']
|
||||
DayForm: typeof import('./../components/GenCron/CronForm/component/day-form.vue')['default']
|
||||
FilePreview: typeof import('./../components/FilePreview/index.vue')['default']
|
||||
GiCellAvatar: typeof import('./../components/GiCell/GiCellAvatar.vue')['default']
|
||||
GiCellGender: typeof import('./../components/GiCell/GiCellGender.vue')['default']
|
||||
GiCellStatus: typeof import('./../components/GiCell/GiCellStatus.vue')['default']
|
||||
GiCellTag: typeof import('./../components/GiCell/GiCellTag.vue')['default']
|
||||
GiCellTags: typeof import('./../components/GiCell/GiCellTags.vue')['default']
|
||||
GiCodeView: typeof import('./../components/GiCodeView/index.vue')['default']
|
||||
GiDot: typeof import('./../components/GiDot/index.tsx')['default']
|
||||
GiEditTable: typeof import('./../components/GiEditTable/GiEditTable.vue')['default']
|
||||
GiFooter: typeof import('./../components/GiFooter/index.vue')['default']
|
||||
GiForm: typeof import('./../components/GiForm/src/GiForm.vue')['default']
|
||||
GiIconBox: typeof import('./../components/GiIconBox/index.vue')['default']
|
||||
GiIconSelector: typeof import('./../components/GiIconSelector/index.vue')['default']
|
||||
GiIframe: typeof import('./../components/GiIframe/index.vue')['default']
|
||||
GiOption: typeof import('./../components/GiOption/index.vue')['default']
|
||||
GiOptionItem: typeof import('./../components/GiOptionItem/index.vue')['default']
|
||||
GiPageLayout: typeof import('./../components/GiPageLayout/index.vue')['default']
|
||||
GiSpace: typeof import('./../components/GiSpace/index.vue')['default']
|
||||
GiSplitButton: typeof import('./../components/GiSplitButton/index.vue')['default']
|
||||
GiSplitPane: typeof import('./../components/GiSplitPane/index.vue')['default']
|
||||
GiSplitPaneFlexibleBox: typeof import('./../components/GiSplitPane/components/GiSplitPaneFlexibleBox.vue')['default']
|
||||
GiSvgIcon: typeof import('./../components/GiSvgIcon/index.vue')['default']
|
||||
GiTable: typeof import('./../components/GiTable/src/GiTable.vue')['default']
|
||||
GiTag: typeof import('./../components/GiTag/index.tsx')['default']
|
||||
GiThemeBtn: typeof import('./../components/GiThemeBtn/index.vue')['default']
|
||||
HourForm: typeof import('./../components/GenCron/CronForm/component/hour-form.vue')['default']
|
||||
Icon403: typeof import('./../components/icons/Icon403.vue')['default']
|
||||
Icon404: typeof import('./../components/icons/Icon404.vue')['default']
|
||||
Icon500: typeof import('./../components/icons/Icon500.vue')['default']
|
||||
IconBorders: typeof import('./../components/icons/IconBorders.vue')['default']
|
||||
IconTableSize: typeof import('./../components/icons/IconTableSize.vue')['default']
|
||||
IconTreeAdd: typeof import('./../components/icons/IconTreeAdd.vue')['default']
|
||||
IconTreeReduce: typeof import('./../components/icons/IconTreeReduce.vue')['default']
|
||||
ImageImport: typeof import('./../components/ImageImport/index.vue')['default']
|
||||
ImageImportWizard: typeof import('./../components/ImageImportWizard/index.vue')['default']
|
||||
IndustrialImageList: typeof import('./../components/IndustrialImageList/index.vue')['default']
|
||||
JsonPretty: typeof import('./../components/JsonPretty/index.vue')['default']
|
||||
MinuteForm: typeof import('./../components/GenCron/CronForm/component/minute-form.vue')['default']
|
||||
MonthForm: typeof import('./../components/GenCron/CronForm/component/month-form.vue')['default']
|
||||
NotificationCenter: typeof import('./../components/NotificationCenter/index.vue')['default']
|
||||
ParentView: typeof import('./../components/ParentView/index.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
SecondForm: typeof import('./../components/GenCron/CronForm/component/second-form.vue')['default']
|
||||
SplitPanel: typeof import('./../components/SplitPanel/index.vue')['default']
|
||||
TextCopy: typeof import('./../components/TextCopy/index.vue')['default']
|
||||
TurbineGrid: typeof import('./../components/TurbineGrid/index.vue')['default']
|
||||
UserSelect: typeof import('./../components/UserSelect/index.vue')['default']
|
||||
Verify: typeof import('./../components/Verify/index.vue')['default']
|
||||
VerifyPoints: typeof import('./../components/Verify/Verify/VerifyPoints.vue')['default']
|
||||
VerifySlide: typeof import('./../components/Verify/Verify/VerifySlide.vue')['default']
|
||||
WeekForm: typeof import('./../components/GenCron/CronForm/component/week-form.vue')['default']
|
||||
YearForm: typeof import('./../components/GenCron/CronForm/component/year-form.vue')['default']
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,350 @@
|
|||
<template>
|
||||
<GiPageLayout>
|
||||
<div class="task-approval-page">
|
||||
<div class="page-header">
|
||||
<h2>任务审批</h2>
|
||||
<p class="page-description">审批转交的任务</p>
|
||||
</div>
|
||||
|
||||
<!-- 状态汇总,改为左边文字、右边数字布局。 -->
|
||||
<div class="status-summary">
|
||||
<div
|
||||
class="status-item pending"
|
||||
@click="activeTab = 'pending'"
|
||||
:class="{ active: activeTab === 'pending' }"
|
||||
>
|
||||
<span class="status-text">待审批</span>
|
||||
<span class="count">{{ pendingCount }}</span>
|
||||
</div>
|
||||
<div
|
||||
class="status-item approved"
|
||||
@click="activeTab = 'approved'"
|
||||
:class="{ active: activeTab === 'approved' }"
|
||||
>
|
||||
<span class="status-text">已通过</span>
|
||||
<span class="count">{{ approvedCount }}</span>
|
||||
</div>
|
||||
<div
|
||||
class="status-item rejected"
|
||||
@click="activeTab = 'rejected'"
|
||||
:class="{ active: activeTab === 'rejected' }"
|
||||
>
|
||||
<span class="status-text">已拒绝</span>
|
||||
<span class="count">{{ rejectedCount }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="task-list">
|
||||
<!-- 根据激活的标签,渲染对应状态的任务 -->
|
||||
<div
|
||||
class="task-item"
|
||||
v-for="task in filteredTasks"
|
||||
:key="task.id"
|
||||
>
|
||||
<div class="task-header">
|
||||
<h3>{{ task.title }}</h3>
|
||||
<span
|
||||
class="task-status"
|
||||
:class="task.status"
|
||||
>
|
||||
{{
|
||||
task.status === 'pending' ? '待审批' :
|
||||
task.status === 'approved' ? '已通过' : '已拒绝'
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<p class="task-description">{{ task.description }}</p>
|
||||
|
||||
<div class="transfer-info">
|
||||
<div class="info-item">
|
||||
<span class="label">转交人:</span>
|
||||
<span>{{ task.from }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">接收人:</span>
|
||||
<span>{{ task.to }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">部门:</span>
|
||||
<span>{{ task.department }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">转交日期:</span>
|
||||
<span>{{ task.transferDate }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">转交原因:</span>
|
||||
<span>{{ task.reason }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="action-buttons" v-if="task.status === 'pending'">
|
||||
<button class="approve-btn" @click="handleApprove(task.id)">通过</button>
|
||||
<button class="reject-btn" @click="handleReject(task.id)">拒绝</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</GiPageLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue';
|
||||
|
||||
// 模拟所有任务数据
|
||||
const allTasks = ref([
|
||||
{
|
||||
id: '1',
|
||||
title: '前端页面重构',
|
||||
description: '重构用户管理页面,优化交互体验',
|
||||
from: '张三',
|
||||
to: '李四',
|
||||
department: '前端开发部',
|
||||
transferDate: '2025-08-10',
|
||||
reason: '原负责人工作负荷过大',
|
||||
status: 'pending'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
title: 'API接口开发',
|
||||
description: '开发用户管理相关API接口',
|
||||
from: '王五',
|
||||
to: '赵六',
|
||||
department: '后端开发部',
|
||||
transferDate: '2025-08-11',
|
||||
reason: '技术栈更匹配',
|
||||
status: 'pending'
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
title: '数据库设计',
|
||||
description: '设计用户管理模块的数据库表结构',
|
||||
from: '钱七',
|
||||
to: '孙八',
|
||||
department: '数据库组',
|
||||
transferDate: '2025-08-12',
|
||||
reason: '专业领域更对口',
|
||||
status: 'pending'
|
||||
}
|
||||
]);
|
||||
|
||||
// 激活的标签,默认待审批
|
||||
const activeTab = ref('pending');
|
||||
|
||||
// 计算各状态任务数量
|
||||
const pendingCount = computed(() => allTasks.value.filter(t => t.status === 'pending').length);
|
||||
const approvedCount = computed(() => allTasks.value.filter(t => t.status === 'approved').length);
|
||||
const rejectedCount = computed(() => allTasks.value.filter(t => t.status === 'rejected').length);
|
||||
|
||||
// 根据激活标签筛选任务
|
||||
const filteredTasks = computed(() => {
|
||||
return allTasks.value.filter(task => task.status === activeTab.value);
|
||||
});
|
||||
|
||||
// 审批操作
|
||||
const handleApprove = (taskId: string) => {
|
||||
const task = allTasks.value.find(t => t.id === taskId);
|
||||
if (task) {
|
||||
task.status = 'approved';
|
||||
}
|
||||
};
|
||||
|
||||
// 拒绝操作
|
||||
const handleReject = (taskId: string) => {
|
||||
const task = allTasks.value.find(t => t.id === taskId);
|
||||
if (task) {
|
||||
task.status = 'rejected';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.task-approval-page {
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.page-description {
|
||||
color: #666;
|
||||
margin-top: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 状态汇总区域 */
|
||||
.status-summary {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.status-item {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: space-between; /* 让文字居左、数字居右 */
|
||||
align-items: center;
|
||||
padding: 16px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer; /* 鼠标悬浮变手型,提示可点击 */
|
||||
transition: all 0.2s ease;
|
||||
border-top: 4px solid transparent; /* 预留顶部边框位置 */
|
||||
}
|
||||
|
||||
/* 待审批状态样式 */
|
||||
.status-item.pending {
|
||||
border-top-color: #f59e0b;
|
||||
background-color: rgba(245, 158, 11, 0.1); /* 浅橙色背景 */
|
||||
}
|
||||
.status-item.pending .count {
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
/* 已通过状态样式 */
|
||||
.status-item.approved {
|
||||
border-top-color: #10b981;
|
||||
background-color: rgba(16, 185, 129, 0.1); /* 浅绿色背景 */
|
||||
}
|
||||
.status-item.approved .count {
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
/* 已拒绝状态样式 */
|
||||
.status-item.rejected {
|
||||
border-top-color: #ef4444;
|
||||
background-color: rgba(239, 68, 68, 0.1); /* 浅红色背景 */
|
||||
}
|
||||
.status-item.rejected .count {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
/* 状态文字样式 */
|
||||
.status-text {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 数字样式 */
|
||||
.count {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* 激活态样式(可选,点击后高亮) */
|
||||
.status-item.active {
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
padding: 20px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.task-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.task-item {
|
||||
padding: 16px;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 8px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.task-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.task-header h3 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
.task-status {
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.task-status.pending {
|
||||
background-color: #fef3c7;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.task-status.approved {
|
||||
background-color: #d1fae5;
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
.task-status.rejected {
|
||||
background-color: #fee2e2;
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
.task-description {
|
||||
margin: 0 0 12px 0;
|
||||
color: #6b7280;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.transfer-info {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.info-item .label {
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.approve-btn, .reject-btn {
|
||||
padding: 6px 12px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.approve-btn {
|
||||
background-color: #10b981;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.reject-btn {
|
||||
background-color: #ef4444;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,38 @@
|
|||
<template>
|
||||
<GiPageLayout>
|
||||
<div class="task-progress-page">
|
||||
<!-- 页面标题 dwadw-->
|
||||
<div class="page-header">
|
||||
<h2>任务跟踪</h2>
|
||||
<p class="page-description">跟踪、监控和评估任务的完成情况</p>
|
||||
</div>
|
||||
</div>
|
||||
</GiPageLayout>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.task-progress-page {
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.page-description {
|
||||
color: #666;
|
||||
margin-top: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
|
@ -0,0 +1,790 @@
|
|||
<template>
|
||||
<GiPageLayout>
|
||||
<div class="task-publish-container">
|
||||
<!-- 页面头部 -->
|
||||
<div class="page-header">
|
||||
<div class="header-actions">
|
||||
<h1>任务管理</h1>
|
||||
<button class="new-task-btn" @click="showPublishModal = true">
|
||||
<i class="icon-plus"></i> 发布新任务
|
||||
</button>
|
||||
</div>
|
||||
<p class="page-description">查看历史任务或发布新任务</p>
|
||||
</div>
|
||||
|
||||
<!-- 任务优先级统计方框(可点击触发搜索) -->
|
||||
<div class="stats-container">
|
||||
<div
|
||||
class="stat-box low"
|
||||
@click="handleStatClick('low')"
|
||||
:class="{ 'active': searchForm.priority === 'low' }"
|
||||
>
|
||||
<div class="stat-text">低优先级</div>
|
||||
<div class="stat-number">{{ priorityStats.low }}</div>
|
||||
</div>
|
||||
<div
|
||||
class="stat-box medium"
|
||||
@click="handleStatClick('medium')"
|
||||
:class="{ 'active': searchForm.priority === 'medium' }"
|
||||
>
|
||||
<div class="stat-text">中优先级</div>
|
||||
<div class="stat-number">{{ priorityStats.medium }}</div>
|
||||
</div>
|
||||
<div
|
||||
class="stat-box high"
|
||||
@click="handleStatClick('high')"
|
||||
:class="{ 'active': searchForm.priority === 'high' }"
|
||||
>
|
||||
<div class="stat-text">高优先级</div>
|
||||
<div class="stat-number">{{ priorityStats.high }}</div>
|
||||
</div>
|
||||
<div
|
||||
class="stat-box urgent"
|
||||
@click="handleStatClick('urgent')"
|
||||
:class="{ 'active': searchForm.priority === 'urgent' }"
|
||||
>
|
||||
<div class="stat-text">紧急</div>
|
||||
<div class="stat-number">{{ priorityStats.urgent }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 历史任务列表(表格形式) -->
|
||||
<div class="history-tasks">
|
||||
<div class="table-controls">
|
||||
<h3>历史任务</h3>
|
||||
<!-- <div class="table-actions">
|
||||
<button class="refresh-btn" @click="resetSearch">刷新</button>
|
||||
<button class="export-btn">导出</button>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<!-- 搜索区域 -->
|
||||
<div class="search-container">
|
||||
<div class="search-row">
|
||||
<div class="search-item">
|
||||
<label>任务名称:</label>
|
||||
<input
|
||||
type="text"
|
||||
v-model="searchForm.name"
|
||||
placeholder="请输入任务名称"
|
||||
class="search-input"
|
||||
>
|
||||
</div>
|
||||
<div class="search-item">
|
||||
<label>优先级:</label>
|
||||
<select v-model="searchForm.priority" class="search-select">
|
||||
<option value="">全部</option>
|
||||
<option value="low">低</option>
|
||||
<option value="medium">中</option>
|
||||
<option value="high">高</option>
|
||||
<option value="urgent">紧急</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="search-item">
|
||||
<label>发布人:</label>
|
||||
<select v-model="searchForm.publisher" class="search-select">
|
||||
<option value="">全部</option>
|
||||
<option v-for="user in allPublishers" :key="user" :value="user">{{ user }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-row">
|
||||
<div class="search-item">
|
||||
<label>负责人:</label>
|
||||
<select v-model="searchForm.assignee" class="search-select">
|
||||
<option value="">全部</option>
|
||||
<option v-for="user in allAssignees" :key="user" :value="user">{{ user }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="search-item">
|
||||
<label>发布日期从:</label>
|
||||
<input type="date" v-model="searchForm.startDate" class="search-input">
|
||||
</div>
|
||||
<div class="search-item">
|
||||
<label>到:</label>
|
||||
<input type="date" v-model="searchForm.endDate" class="search-input">
|
||||
</div>
|
||||
<div class="search-actions">
|
||||
<button class="search-btn" @click="handleSearch">搜索</button>
|
||||
<button class="reset-btn" @click="resetSearch">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="task-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>任务名称</th>
|
||||
<th>发布日期</th>
|
||||
<th>发布人</th>
|
||||
<th>负责人</th>
|
||||
<th>截止日期</th>
|
||||
<th>优先级</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="task in filteredTasks" :key="task.id" class="task-row">
|
||||
<td class="task-title">{{ task.title }}</td>
|
||||
<td>{{ task.publishDate }}</td>
|
||||
<td>{{ task.publisher }}</td>
|
||||
<td>{{ task.assignee }}</td>
|
||||
<td>{{ task.dueDate }}</td>
|
||||
<td><span class="priority-tag" :class="task.priority">{{ getPriorityText(task.priority) }}</span></td>
|
||||
<td><span class="task-status" :class="task.status">{{ task.statusText }}</span></td>
|
||||
<td class="operation-btns">
|
||||
<button class="operate-btn">查看</button>
|
||||
<button class="operate-btn">编辑</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="filteredTasks.length === 0">
|
||||
<td colspan="8" class="no-data">没有找到匹配的任务</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="pagination">
|
||||
<span>共 {{ filteredTasks.length }} 条</span>
|
||||
<span>10条/页</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 发布任务弹窗 -->
|
||||
<div class="modal-overlay" v-if="showPublishModal" @click.self="showPublishModal = false">
|
||||
<div class="publish-modal">
|
||||
<button class="modal-close" @click="showPublishModal = false">
|
||||
<i class="icon-close"></i>
|
||||
</button>
|
||||
<h3>发布新任务</h3>
|
||||
<div class="modal-content">
|
||||
<TaskForm ref="taskFormRef" />
|
||||
<AssigneeSelector ref="assigneeRef" />
|
||||
</div>
|
||||
<div class="modal-actions">
|
||||
<button class="cancel-btn" @click="showPublishModal = false">取消</button>
|
||||
<button class="submit-btn" @click="handleSubmit">发布</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</GiPageLayout>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import TaskForm from './components/TaskForm.vue';
|
||||
import AssigneeSelector from './components/AssigneeSelector.vue';
|
||||
const taskFormRef = ref<InstanceType<typeof TaskForm> | null>(null);
|
||||
const assigneeRef = ref<InstanceType<typeof AssigneeSelector> | null>(null);
|
||||
const router = useRouter();
|
||||
const showPublishModal = ref(false);
|
||||
|
||||
// 模拟历史任务数据
|
||||
const historyTasks = ref([
|
||||
{
|
||||
id: 'task-001',
|
||||
title: '前端页面开发',
|
||||
description: '完成用户管理模块的前端页面开发',
|
||||
publishDate: '2025-10-25',
|
||||
dueDate: '2025-10-30',
|
||||
publisher: '管理员',
|
||||
assignee: '张三',
|
||||
status: 'progress',
|
||||
statusText: '进行中',
|
||||
priority: 'medium'
|
||||
},
|
||||
{
|
||||
id: 'task-002',
|
||||
title: 'API接口开发',
|
||||
description: '完成用户管理模块的后端API开发',
|
||||
publishDate: '2025-10-20',
|
||||
dueDate: '2025-10-28',
|
||||
publisher: '管理员',
|
||||
assignee: '李四',
|
||||
status: 'completed',
|
||||
statusText: '已完成',
|
||||
priority: 'high'
|
||||
},
|
||||
{
|
||||
id: 'task-003',
|
||||
title: '测试用例编写',
|
||||
description: '编写用户管理模块的测试用例',
|
||||
publishDate: '2025-10-18',
|
||||
dueDate: '2025-10-25',
|
||||
publisher: '项目经理',
|
||||
assignee: '王五',
|
||||
status: 'pending',
|
||||
statusText: '未开始',
|
||||
priority: 'low'
|
||||
}
|
||||
]);
|
||||
|
||||
// 搜索表单数据
|
||||
const searchForm = ref({
|
||||
name: '',
|
||||
priority: '',
|
||||
publisher: '',
|
||||
assignee: '',
|
||||
startDate: '',
|
||||
endDate: ''
|
||||
});
|
||||
|
||||
// 计算过滤后的任务列表
|
||||
const filteredTasks = computed(() => {
|
||||
return historyTasks.value.filter(task => {
|
||||
// 任务名称筛选
|
||||
if (searchForm.value.name && !task.title.includes(searchForm.value.name)) {
|
||||
return false;
|
||||
}
|
||||
// 优先级筛选(统计方框点击会设置此值)
|
||||
if (searchForm.value.priority && task.priority !== searchForm.value.priority) {
|
||||
return false;
|
||||
}
|
||||
// 发布人筛选
|
||||
if (searchForm.value.publisher && task.publisher !== searchForm.value.publisher) {
|
||||
return false;
|
||||
}
|
||||
// 负责人筛选
|
||||
if (searchForm.value.assignee && task.assignee !== searchForm.value.assignee) {
|
||||
return false;
|
||||
}
|
||||
// 开始日期筛选
|
||||
if (searchForm.value.startDate && task.publishDate < searchForm.value.startDate) {
|
||||
return false;
|
||||
}
|
||||
// 结束日期筛选
|
||||
if (searchForm.value.endDate && task.publishDate > searchForm.value.endDate) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
});
|
||||
|
||||
// 统计方框点击事件处理
|
||||
const handleStatClick = (priority: string) => {
|
||||
// 如果点击的是当前已选中的优先级,则清除筛选
|
||||
if (searchForm.value.priority === priority) {
|
||||
searchForm.value.priority = '';
|
||||
} else {
|
||||
// 否则设置为对应优先级筛选条件
|
||||
searchForm.value.priority = priority;
|
||||
}
|
||||
// 触发搜索逻辑
|
||||
handleSearch();
|
||||
};
|
||||
|
||||
// 获取所有发布人列表(去重)
|
||||
const allPublishers = computed(() => {
|
||||
const publishers = new Set<string>();
|
||||
historyTasks.value.forEach(task => publishers.add(task.publisher));
|
||||
return Array.from(publishers);
|
||||
});
|
||||
|
||||
// 获取所有负责人列表(去重)
|
||||
const allAssignees = computed(() => {
|
||||
const assignees = new Set<string>();
|
||||
historyTasks.value.forEach(task => assignees.add(task.assignee));
|
||||
return Array.from(assignees);
|
||||
});
|
||||
|
||||
// 计算各优先级任务数量
|
||||
const priorityStats = computed(() => {
|
||||
return {
|
||||
low: historyTasks.value.filter(task => task.priority === 'low').length,
|
||||
medium: historyTasks.value.filter(task => task.priority === 'medium').length,
|
||||
high: historyTasks.value.filter(task => task.priority === 'high').length,
|
||||
urgent: historyTasks.value.filter(task => task.priority === 'urgent').length
|
||||
};
|
||||
});
|
||||
|
||||
// 获取优先级文本
|
||||
const getPriorityText = (priority: string) => {
|
||||
const map: Record<string, string> = {
|
||||
low: '低',
|
||||
medium: '中',
|
||||
high: '高',
|
||||
urgent: '紧急'
|
||||
};
|
||||
return map[priority] || '';
|
||||
};
|
||||
|
||||
// 搜索处理
|
||||
const handleSearch = () => {
|
||||
console.log('搜索条件:', searchForm.value);
|
||||
// 滚动到表格顶部,提升用户体验
|
||||
document.querySelector('.task-table')?.scrollIntoView({ behavior: 'smooth' });
|
||||
};
|
||||
|
||||
// 重置搜索条件
|
||||
const resetSearch = () => {
|
||||
searchForm.value = {
|
||||
name: '',
|
||||
priority: '',
|
||||
publisher: '',
|
||||
assignee: '',
|
||||
startDate: '',
|
||||
endDate: ''
|
||||
};
|
||||
};
|
||||
|
||||
const handleSubmit = () => {
|
||||
if (!taskFormRef.value?.form.taskName) {
|
||||
alert('请填写任务名称');
|
||||
return;
|
||||
}
|
||||
if (!taskFormRef.value?.form.dueDate) {
|
||||
alert('请设置截止日期');
|
||||
return;
|
||||
}
|
||||
if (!assigneeRef.value?.assignees.leader) {
|
||||
alert('请选择任务负责人');
|
||||
return;
|
||||
}
|
||||
const taskData = {
|
||||
...taskFormRef.value?.form,
|
||||
...assigneeRef.value?.assignees,
|
||||
publishDate: new Date().toISOString().split('T')[0],
|
||||
publisher: '当前用户' // 实际应用中应从登录信息获取
|
||||
};
|
||||
|
||||
historyTasks.value.unshift({
|
||||
id: `task-${Date.now()}`,
|
||||
title: taskData.taskName,
|
||||
description: taskData.taskDescription || '无描述',
|
||||
publishDate: taskData.publishDate,
|
||||
dueDate: taskData.dueDate,
|
||||
publisher: taskData.publisher,
|
||||
assignee: taskData.leader,
|
||||
status: 'pending',
|
||||
statusText: '未开始',
|
||||
priority: taskData.priority || 'medium'
|
||||
});
|
||||
console.log('发布任务数据:', taskData);
|
||||
alert('任务发布成功!');
|
||||
showPublishModal.value = false;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 新增统计方框点击样式 */
|
||||
.stat-box {
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.stat-box.active {
|
||||
transform: scale(1.03);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.stat-box:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* 搜索区域样式 */
|
||||
.search-container {
|
||||
background-color: #f8fafc;
|
||||
padding: 16px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 16px;
|
||||
border: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.search-row {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-bottom: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.search-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.search-item label {
|
||||
font-size: 14px;
|
||||
color: #4b5563;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.search-input, .search-select {
|
||||
padding: 6px 10px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 3px;
|
||||
font-size: 14px;
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.search-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.search-btn, .reset-btn {
|
||||
padding: 6px 16px;
|
||||
border-radius: 3px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
background-color: #3b82f6;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.search-btn:hover {
|
||||
background-color: #2563eb;
|
||||
}
|
||||
|
||||
.reset-btn {
|
||||
background-color: #f3f4f6;
|
||||
color: #4b5563;
|
||||
}
|
||||
|
||||
.reset-btn:hover {
|
||||
background-color: #e5e7eb;
|
||||
}
|
||||
|
||||
.no-data {
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
color: #6b7280;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 原有样式保持不变 */
|
||||
.task-publish-container {
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
/* background-color: #f9fafb; */
|
||||
}
|
||||
|
||||
/* 页面头部样式 */
|
||||
.page-header {
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 21px;
|
||||
color: #1f2937;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-description {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.new-task-btn {
|
||||
padding: 6px 12px;
|
||||
background-color: #3989f8;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.new-task-btn:hover {
|
||||
background-color: #0077fe;
|
||||
}
|
||||
|
||||
/* 优先级统计方框样式 */
|
||||
.stats-container {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.stat-box {
|
||||
flex: 1;
|
||||
border-radius: 6px;
|
||||
padding: 18px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.stat-box.low {
|
||||
background-color: #4ade80;
|
||||
background-image: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
|
||||
}
|
||||
|
||||
.stat-box.medium {
|
||||
background-color: #3b82f6;
|
||||
background-image: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
||||
}
|
||||
|
||||
.stat-box.high {
|
||||
background-color: #f59e0b;
|
||||
background-image: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
|
||||
}
|
||||
|
||||
.stat-box.urgent {
|
||||
background-color: #ef4444;
|
||||
background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
||||
}
|
||||
|
||||
.stat-text {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
/* 历史任务表格样式 */
|
||||
.history-tasks {
|
||||
background-color: #fff;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 4px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.table-controls {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
color: #1f2937;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* .table-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.refresh-btn, .export-btn {
|
||||
padding: 4px 10px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.refresh-btn:hover, .export-btn:hover {
|
||||
background-color: #f3f4f6;
|
||||
} */
|
||||
|
||||
.task-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.task-table th, .task-table td {
|
||||
padding: 10px 8px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.task-table th {
|
||||
color: #4b5563;
|
||||
font-weight: 500;
|
||||
background-color: #f9fafb;
|
||||
}
|
||||
|
||||
.task-row:hover {
|
||||
background-color: #f9fafb;
|
||||
}
|
||||
|
||||
.task-title {
|
||||
color: #1f2937;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 优先级标签样式 */
|
||||
.priority-tag {
|
||||
display: inline-block;
|
||||
padding: 2px 6px;
|
||||
font-size: 12px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.priority-tag.low {
|
||||
background-color: #e2e8f0;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.priority-tag.medium {
|
||||
background-color: #dbeafe;
|
||||
color: #1e40af;
|
||||
}
|
||||
|
||||
.priority-tag.high {
|
||||
background-color: #fef3c7;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.priority-tag.urgent {
|
||||
background-color: #fee2e2;
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
/* 状态标签样式 */
|
||||
.task-status {
|
||||
display: inline-block;
|
||||
padding: 2px 6px;
|
||||
font-size: 12px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.task-status.pending {
|
||||
background-color: #e5e7eb;
|
||||
color: #4b5563;
|
||||
}
|
||||
|
||||
.task-status.progress {
|
||||
background-color: #fde68a;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.task-status.completed {
|
||||
background-color: #a7f3d0;
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
/* 操作按钮样式 */
|
||||
.operation-btns {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.operate-btn {
|
||||
padding: 2px 8px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.operate-btn:hover {
|
||||
background-color: #f3f4f6;
|
||||
}
|
||||
|
||||
/* 分页样式 */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 16px;
|
||||
font-size: 13px;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
/* 模态框样式 */
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.publish-modal {
|
||||
background: #fff;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 4px;
|
||||
width: 800px;
|
||||
max-width: 90%;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.modal-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.cancel-btn, .submit-btn {
|
||||
padding: 6px 14px;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.cancel-btn {
|
||||
background-color: #fff;
|
||||
border: 1px solid #d1d5db;
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
.cancel-btn:hover {
|
||||
background-color: #f3f4f6;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
background-color: #3e84e6;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.submit-btn:hover {
|
||||
background-color: #0663f8;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,134 @@
|
|||
<template>
|
||||
<div class="assignee-selector">
|
||||
<h3>任务分配</h3>
|
||||
<p>请选择任务负责人、参与人和相关部门。</p>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="department">部门 <span class="required">*</span></label>
|
||||
<select
|
||||
id="department"
|
||||
v-model="selectedDepartment"
|
||||
@change="filterUsersByDepartment"
|
||||
>
|
||||
<option value="">请选择部门</option>
|
||||
<option v-for="dept in departments" :key="dept.id" :value="dept.id">
|
||||
{{ dept.name }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="leader">任务负责人 <span class="required">*</span></label>
|
||||
<select
|
||||
id="leader"
|
||||
v-model="assignees.leader"
|
||||
:disabled="!selectedDepartment"
|
||||
>
|
||||
<option value="">请选择负责人</option>
|
||||
<option
|
||||
v-for="user in filteredUsers"
|
||||
:key="user.id"
|
||||
:value="user.id"
|
||||
>
|
||||
{{ user.name }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
|
||||
// 模拟用户数据
|
||||
const users = ref([
|
||||
{ id: 1, name: '张三', departmentId: 1 },
|
||||
{ id: 2, name: '李四', departmentId: 2 },
|
||||
{ id: 3, name: '王五', departmentId: 3 },
|
||||
{ id: 4, name: '赵六', departmentId: 4 }
|
||||
]);
|
||||
|
||||
const selectedDepartment = ref('');
|
||||
const filteredUsers = ref<typeof users.value>([]);
|
||||
|
||||
const filterUsersByDepartment = () => {
|
||||
if (!selectedDepartment.value) {
|
||||
filteredUsers.value = [];
|
||||
assignees.value.leader = '';
|
||||
return;
|
||||
}
|
||||
|
||||
filteredUsers.value = users.value.filter(
|
||||
user => user.departmentId === Number(selectedDepartment.value)
|
||||
);
|
||||
|
||||
// 如果当前选择的负责人不在筛选后的列表中,则清空选择
|
||||
if (assignees.value.leader && !filteredUsers.value.some(u => u.id === assignees.value.leader)) {
|
||||
assignees.value.leader = '';
|
||||
}
|
||||
};
|
||||
|
||||
// 模拟部门数据
|
||||
const departments = ref([
|
||||
{ id: 1, name: '产品部' },
|
||||
{ id: 2, name: '开发部' },
|
||||
{ id: 3, name: '测试部' },
|
||||
{ id: 4, name: '设计部' }
|
||||
]);
|
||||
|
||||
// 分配数据
|
||||
const assignees = ref({
|
||||
leader: ''
|
||||
});
|
||||
|
||||
// 暴露分配数据给父组件
|
||||
defineExpose({
|
||||
assignees
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.assignee-selector {
|
||||
padding: 16px;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 4px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
select {
|
||||
width: 100%;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.checkbox-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.checkbox-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.required {
|
||||
color: #ef4444;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,175 @@
|
|||
<!-- TaskForm.vue 优化后 -->
|
||||
<template>
|
||||
<div class="task-form">
|
||||
<h3>任务基本信息</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="taskName">任务名称 <span class="required">*</span></label>
|
||||
<input
|
||||
type="text"
|
||||
id="taskName"
|
||||
v-model="form.taskName"
|
||||
placeholder="请输入任务名称(1-50字)"
|
||||
:class="{ 'invalid': !isTaskNameValid && isTouched.taskName }"
|
||||
@blur="isTouched.taskName = true"
|
||||
max-length="50"
|
||||
>
|
||||
<p v-if="!isTaskNameValid && isTouched.taskName" class="error-message">
|
||||
任务名称不能为空且长度不超过50字
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="taskType">任务类型</label>
|
||||
<select id="taskType" v-model="form.taskType">
|
||||
<option value="requirement">需求梳理</option>
|
||||
<option value="development">开发实现</option>
|
||||
<option value="testing">测试验证</option>
|
||||
<option value="deployment">部署上线</option>
|
||||
<option value="other">其他</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="taskDescription">任务描述</label>
|
||||
<textarea
|
||||
id="taskDescription"
|
||||
v-model="form.taskDescription"
|
||||
rows="4"
|
||||
placeholder="请详细描述任务内容、预期成果和注意事项"
|
||||
max-length="500"
|
||||
></textarea>
|
||||
<p class="char-count">{{ form.taskDescription.length }}/500</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="dueDate">截止日期 <span class="required">*</span></label>
|
||||
<input
|
||||
type="date"
|
||||
id="dueDate"
|
||||
v-model="form.dueDate"
|
||||
:min="minDate"
|
||||
:class="{ 'invalid': !isDueDateValid && isTouched.dueDate }"
|
||||
@blur="isTouched.dueDate = true"
|
||||
>
|
||||
<p v-if="!isDueDateValid && isTouched.dueDate" class="error-message">
|
||||
截止日期不能为空且不能为过去日期
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="priority">优先级</label>
|
||||
<select id="priority" v-model="form.priority">
|
||||
<option value="low">低</option>
|
||||
<option value="medium" selected>中</option>
|
||||
<option value="high">高</option>
|
||||
<option value="urgent">紧急</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue';
|
||||
|
||||
// 定义表单数据结构
|
||||
const form = ref({
|
||||
taskName: '',
|
||||
taskType: 'development', // 默认开发类型
|
||||
taskDescription: '',
|
||||
dueDate: '',
|
||||
priority: 'medium'
|
||||
});
|
||||
|
||||
// 触摸状态(用于控制错误提示显示时机)
|
||||
const isTouched = ref({
|
||||
taskName: false,
|
||||
dueDate: false
|
||||
});
|
||||
|
||||
// 最小日期(今天)
|
||||
const minDate = computed(() => {
|
||||
const today = new Date();
|
||||
return today.toISOString().split('T')[0];
|
||||
});
|
||||
|
||||
// 验证逻辑
|
||||
const isTaskNameValid = computed(() => {
|
||||
return form.value.taskName.trim().length > 0 && form.value.taskName.length <= 50;
|
||||
});
|
||||
|
||||
const isDueDateValid = computed(() => {
|
||||
return !!form.value.dueDate && form.value.dueDate >= minDate.value;
|
||||
});
|
||||
|
||||
// 对外暴露完整验证方法
|
||||
const validate = () => {
|
||||
// 触发所有验证
|
||||
Object.keys(isTouched.value).forEach(key => {
|
||||
isTouched.value[key as keyof typeof isTouched.value] = true;
|
||||
});
|
||||
return isTaskNameValid.value && isDueDateValid.value;
|
||||
};
|
||||
|
||||
// 暴露表单数据和验证方法给父组件
|
||||
defineExpose({
|
||||
form,
|
||||
validate
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.task-form {
|
||||
padding: 16px;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
input, textarea, select {
|
||||
width: 100%;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
/* 原有样式保持不变,新增以下样式 */
|
||||
.error-message {
|
||||
color: #ef4444;
|
||||
font-size: 12px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.char-count {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
text-align: right;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
input.invalid, textarea.invalid, select.invalid {
|
||||
border-color: #ef4444;
|
||||
}
|
||||
|
||||
input:focus, textarea:focus, select:focus {
|
||||
outline: none;
|
||||
border-color: #165DFF;
|
||||
box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue