diff --git a/yudao-ui-admin-vue3/src/api/bpm/processInstance/index.ts b/yudao-ui-admin-vue3/src/api/bpm/processInstance/index.ts
index 17b232fb5..d48253c3a 100644
--- a/yudao-ui-admin-vue3/src/api/bpm/processInstance/index.ts
+++ b/yudao-ui-admin-vue3/src/api/bpm/processInstance/index.ts
@@ -1,5 +1,24 @@
import request from '@/config/axios'
+export type Task = {
+ id: string
+ name: string
+}
+export type ProcessInstanceVO = {
+ id: number
+ name: string
+ processDefinitionId: string
+ category: string
+ result: number
+ tasks: Task[]
+ fields: string[]
+ status: number
+ remark: string
+ businessKey: string
+ createTime: string
+ endTime: string
+}
+
export const getMyProcessInstancePageApi = async (params) => {
return await request.get({ url: '/bpm/process-instance/my-page', params })
}
diff --git a/yudao-ui-admin-vue3/src/api/bpm/processInstance/types.ts b/yudao-ui-admin-vue3/src/api/bpm/processInstance/types.ts
deleted file mode 100644
index 3ab506389..000000000
--- a/yudao-ui-admin-vue3/src/api/bpm/processInstance/types.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-export type task = {
- id: string
- name: string
-}
-export type ProcessInstanceVO = {
- id: number
- name: string
- processDefinitionId: string
- category: string
- result: number
- tasks: task[]
- fields: string[]
- status: number
- remark: string
- businessKey: string
- createTime: string
- endTime: string
-}
diff --git a/yudao-ui-admin-vue3/src/utils/formCreate.ts b/yudao-ui-admin-vue3/src/utils/formCreate.ts
index e70ae39e9..fccc0dc75 100644
--- a/yudao-ui-admin-vue3/src/utils/formCreate.ts
+++ b/yudao-ui-admin-vue3/src/utils/formCreate.ts
@@ -37,9 +37,18 @@ export const setConfAndFields = (designerRef: object, conf: string, fields: stri
}
// 设置表单的 Conf 和 Fields
-export const setConfAndFields2 = (detailPreview: object, conf: string, fields: string) => {
+export const setConfAndFields2 = (
+ detailPreview: object,
+ conf: string,
+ fields: string,
+ value: object
+) => {
// @ts-ignore
detailPreview.value.option = JSON.parse(conf)
// @ts-ignore
detailPreview.value.rule = decodeFields(fields)
+ if (value) {
+ // @ts-ignore
+ detailPreview.value.value = value
+ }
}
diff --git a/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue b/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue
index 787709cb4..555920b95 100644
--- a/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue
+++ b/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue
@@ -9,9 +9,12 @@