From ec162ea3dac90eca29068e9fe08c597b3a3607d7 Mon Sep 17 00:00:00 2001
From: hongawen <83944980@qq.com>
Date: Thu, 27 Jun 2024 15:31:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/bpm/form/editor/index.vue | 1 -
src/views/system/bpm/form/index.vue | 47 ++-
.../detail/ProcessInstanceTaskList.vue | 381 +++++++++---------
.../system/bpm/task/myInstance/index.vue | 3 -
4 files changed, 217 insertions(+), 215 deletions(-)
diff --git a/src/views/system/bpm/form/editor/index.vue b/src/views/system/bpm/form/editor/index.vue
index a472f4a1..49a5e077 100644
--- a/src/views/system/bpm/form/editor/index.vue
+++ b/src/views/system/bpm/form/editor/index.vue
@@ -51,7 +51,6 @@
import { onMounted, ref, reactive } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import FcDesigner from '@form-create/designer'
-import { useI18n } from '@/hooks/web/useI18n'
import { encodeConf, encodeFields, setConfAndFields } from '@/utils/formCreate'
import { useTagsViewStore } from '@/stores/modules/tagsView'
import { useFormCreateDesigner } from '@/components/FormCreate'
diff --git a/src/views/system/bpm/form/index.vue b/src/views/system/bpm/form/index.vue
index 67203068..7c7a4f8b 100644
--- a/src/views/system/bpm/form/index.vue
+++ b/src/views/system/bpm/form/index.vue
@@ -17,8 +17,8 @@
-
-
+
+
@@ -31,6 +31,7 @@ import { ElMessage } from 'element-plus'
import { onMounted, provide, ref, reactive,nextTick } from 'vue'
import { useRouter } from 'vue-router'
import { deleteForm, getById } from '@/api/bpm-boot/form'
+import { setConfAndFields2 } from '@/utils/formCreate'
const { push } = useRouter()
@@ -46,6 +47,12 @@ const render = reactive({
title: ''
})
+const detailVisible = ref(false)
+const detailData = ref({
+ rule: [],
+ option: {}
+})
+
const tableStore = new TableStore({
url: '/bpm-boot/bpm/form/list',
method: 'POST',
@@ -72,24 +79,24 @@ const tableStore = new TableStore({
minWidth: '230',
fixed: 'right',
buttons: [
- // {
- // name: 'view',
- // title: '预览',
- // type: 'primary',
- // icon: 'el-icon-EditPen',
- // render: 'basicButton',
- // click: row => {
- // //首先根据id查询出详细数据,然后渲染json
- // getById(row.id).then(res => {
- // render.visible = true;
- // render.title = '查看表单详情';
- // nextTick(async () => {
- // vfRenderRef.value.setFormJson(res.data.content || {formConfig: {}, widgetList: []});
- // });
- //
- // })
- // }
- // },
+ {
+ name: 'view',
+ title: '预览',
+ type: 'primary',
+ icon: 'el-icon-EditPen',
+ render: 'basicButton',
+ click: row => {
+ //首先根据id查询出详细数据,然后渲染json
+ getById(row.id).then(res => {
+ nextTick(async () => {
+ setConfAndFields2(detailData, res.data.conf, res.data.fields)
+ // 弹窗打开
+ detailVisible.value = true
+ });
+
+ })
+ }
+ },
{
name: 'update',
title: '设计表单',
diff --git a/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue b/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue
index 233ebaf7..a3ec23f5 100644
--- a/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue
+++ b/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue
@@ -1,98 +1,97 @@
-
-
-
-
-
-
-
-
- 结束流程:在 {{ formatDate(processInstance?.endTime) }} 结束
-
- {{ getTaskNameItemType(processInstance.status) }}
-
-
-
-
-
-
-
-
-
- 重新发起:【{{ item.processInstance.startUser?.name }}】在
- {{ formatDate(item?.createTime) }} 重新发起【 {{ item.processInstance.name }} 】流程
-
-
-
-
- 审批任务:{{ item.name }}
-
- {{ getTaskNameItemType(item.status) }}
-
-
-
- 子任务
-
-
-
- 查看表单
-
-
-
-
-
-
-
-
-
-
- 审批建议:{{ item.reason }}
-
-
-
-
-
- 发起流程:【{{ tasksList[tasksList.length - 1]?.processInstance.startUser?.name }}】在
- {{ formatDate(tasksList[tasksList.length - 1]?.createTime) }} 发起【
- {{ tasksList[tasksList.length - 1]?.processInstance.name }} 】流程
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 结束流程:在 {{ formatDate(processInstance?.endTime) }} 结束
+
+ {{ getTaskNameItemType(processInstance.status) }}
+
+
+
+
+
+
+
+
+
+ 重新发起:【{{ item.processInstance.startUser?.name }}】在
+ {{ formatDate(item?.createTime) }} 重新发起【 {{ item.processInstance.name }} 】流程
+
+
+
+
+ 审批任务:{{ item.name }}
+
+ {{ getTaskNameItemType(item.status) }}
+
+
+
+ 子任务
+
+
+
+ 查看表单
+
+
+
+
+
+
+
+
+
+
+ 审批建议:{{ item.reason }}
+
+
+
+
+
+ 发起流程:【{{ tasksList[tasksList.length - 1]?.processInstance.startUser?.name }}】在
+ {{ formatDate(tasksList[tasksList.length - 1]?.createTime) }} 发起【
+ {{ tasksList[tasksList.length - 1]?.processInstance.name }} 】流程
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/bpm/task/myInstance/index.vue b/src/views/system/bpm/task/myInstance/index.vue
index 60c892c4..3d6d9bf4 100644
--- a/src/views/system/bpm/task/myInstance/index.vue
+++ b/src/views/system/bpm/task/myInstance/index.vue
@@ -111,9 +111,6 @@ const tableStore = new TableStore({
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
- disabled: row => {
- return !row.processInstanceId
- },
click: row => {
flag.value = true
handleAudit(row.id, row.historyInstanceId)