From 256edf264eacd0d6713d5952316b13fe340943b3 Mon Sep 17 00:00:00 2001 From: yang chen Date: Mon, 27 Oct 2025 10:37:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(bpm):=20=E6=B7=BB=E5=8A=A0=E6=8A=84?= =?UTF-8?q?=E9=80=81=E4=BB=BB=E5=8A=A1=E6=B5=81=E7=A8=8B=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在抄送任务列表中增加“流程”按钮,跳转至流程实例详情页 - 调整流程编号字段显示逻辑,默认展示并支持搜索 -优化抄送时间字段格式化方式,并调整搜索类型为时间范围选择 - 禁用规则类型下拉框编辑状态,并默认选中固定值30- 设置任务名称、ID及流程实例名称回填逻辑 --- .../detail/TaskCCDialogForm.vue | 4 +-- src/views/bpm/task/copy/index.vue | 30 ++++++++++++++----- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/views/bpm/processInstance/detail/TaskCCDialogForm.vue b/src/views/bpm/processInstance/detail/TaskCCDialogForm.vue index a3013ea..e7569c3 100644 --- a/src/views/bpm/processInstance/detail/TaskCCDialogForm.vue +++ b/src/views/bpm/processInstance/detail/TaskCCDialogForm.vue @@ -14,7 +14,7 @@ - + { resetForm() // 2. 再设置表单 if (row != null) { - formData.value.type = undefined as unknown as number + formData.value.type = 30 formData.value.taskName = row.name formData.value.taskId = row.id formData.value.processInstanceName = row.processInstance.name diff --git a/src/views/bpm/task/copy/index.vue b/src/views/bpm/task/copy/index.vue index 9dd9ffc..57073b3 100644 --- a/src/views/bpm/task/copy/index.vue +++ b/src/views/bpm/task/copy/index.vue @@ -15,7 +15,9 @@ @size-change="sizeChange" @current-change="currentChange" > - + @@ -58,7 +60,6 @@ const tableOption = reactive({ }, processInstanceId: { label: '流程编号', - display: false, search: true, }, processInstanceName: { @@ -78,14 +79,20 @@ const tableOption = reactive({ label: '抄送时间', type: 'datetime', width: 180, - search: true, - searchType: 'daterange', - valueFormat: 'YYYY-MM-DD HH:mm:ss', - startPlaceholder: '开始时间', - endPlaceholder: '结束时间', formatter: (row: any, value: any, rowv: any, column: any) => { return dateFormatter(row, column, value) } + }, + searchCreateTime: { + label: '抄送时间', + display: false, + hide: true, + search: true, + searchType: 'datetimerange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间', + searchRange: true, } } }) @@ -151,6 +158,15 @@ const currentChange = (currentPage) => { getTableData() } +const handleAudit = (row: any) => { + push({ + name: 'BpmProcessInstanceDetail', + query: { + id: row.processInstanceId + } + }) +} + /** 初始化 **/ onMounted(async () => { await getTableData()