diff --git a/src/api/system/process.ts b/src/api/system/process.ts index 2ad4b03..ebd6e56 100644 --- a/src/api/system/process.ts +++ b/src/api/system/process.ts @@ -64,3 +64,16 @@ data: param, }) } + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + diff --git a/src/api/system/process.ts b/src/api/system/process.ts index 2ad4b03..ebd6e56 100644 --- a/src/api/system/process.ts +++ b/src/api/system/process.ts @@ -64,3 +64,16 @@ data: param, }) } + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + diff --git a/src/views/setting.vue b/src/views/setting.vue index 8dec235..ae3492b 100644 --- a/src/views/setting.vue +++ b/src/views/setting.vue @@ -1,6 +1,6 @@ diff --git a/src/api/system/process.ts b/src/api/system/process.ts index 2ad4b03..ebd6e56 100644 --- a/src/api/system/process.ts +++ b/src/api/system/process.ts @@ -64,3 +64,16 @@ data: param, }) } + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + diff --git a/src/views/setting.vue b/src/views/setting.vue index 8dec235..ae3492b 100644 --- a/src/views/setting.vue +++ b/src/views/setting.vue @@ -1,6 +1,6 @@ diff --git a/src/views/system/process/editProcess.vue b/src/views/system/process/editProcess.vue index 5943c06..ec793e0 100644 --- a/src/views/system/process/editProcess.vue +++ b/src/views/system/process/editProcess.vue @@ -9,6 +9,7 @@ import WorkFlow from '@/components/workFlow/workFlow.vue' const emits = defineEmits(['close']) const processSetting = ref() +const selectFormId = ref('') // formid const $route = useRoute() const getRowData = ref({}) const ruleFormRef = ref() @@ -134,6 +135,7 @@ const rowData: any = $route.query.rowData console.log('111111', JSON.parse(rowData)) getRowData.value = JSON.parse(rowData) + selectFormId.value = getRowData.value.formId form.value.number = getRowData.value.number form.value.name = getRowData.value.name form.value.business = getRowData.value.business @@ -219,7 +221,7 @@ - +