diff --git a/src/views/bpm/form/editor/index.vue b/src/views/bpm/form/editor/index.vue index cb7d023f..343081b1 100644 --- a/src/views/bpm/form/editor/index.vue +++ b/src/views/bpm/form/editor/index.vue @@ -79,10 +79,10 @@ const submitForm = async () => { data.conf = encodeConf(designer) // 表单配置 data.fields = encodeFields(designer) // 表单字段 if (!data.id) { - await FormApi.createForm(data) + await FormApi.createFormApi(data) message.success(t('common.createSuccess')) } else { - await FormApi.updateForm(data) + await FormApi.updateFormApi(data) message.success(t('common.updateSuccess')) } modelVisible.value = false @@ -99,7 +99,7 @@ onMounted(async () => { return } // 场景二:修改表单 - const data = await FormApi.getForm(id) + const data = await FormApi.getFormApi(id) formData.value = data setConfAndFields(designer, data.conf, data.fields) }) diff --git a/src/views/bpm/model/ModelForm.vue b/src/views/bpm/model/ModelForm.vue index ac536958..28b64cba 100644 --- a/src/views/bpm/model/ModelForm.vue +++ b/src/views/bpm/model/ModelForm.vue @@ -162,13 +162,13 @@ const open = async (type: string, id?: number) => { if (id) { formLoading.value = true try { - formData.value = await ModelApi.getModel(id) + formData.value = await ModelApi.getModelApi(id) } finally { formLoading.value = false } } // 获得流程表单的下拉框的数据 - formList.value = await FormApi.getSimpleFormList() + formList.value = await FormApi.getSimpleFormsApi() } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 @@ -184,7 +184,7 @@ const submitForm = async () => { try { const data = formData.value as unknown as ModelApi.ModelVO if (formType.value === 'create') { - await ModelApi.createModel(data) + await ModelApi.createModelApi(data) // 提示,引导用户做后续的操作 await ElMessageBox.alert( '新建模型成功!后续需要执行如下 4 个步骤:' + @@ -200,7 +200,7 @@ const submitForm = async () => { } ) } else { - await ModelApi.updateModel(data) + await ModelApi.updateModelApi(data) message.success(t('common.updateSuccess')) } modelVisible.value = false diff --git a/src/views/bpm/model/editor/index.vue b/src/views/bpm/model/editor/index.vue index 7e3d8413..21d90a07 100644 --- a/src/views/bpm/model/editor/index.vue +++ b/src/views/bpm/model/editor/index.vue @@ -62,10 +62,10 @@ const save = async (bpmnXml) => { } as unknown as ModelApi.ModelVO // 提交 if (data.id) { - await ModelApi.updateModel(data) + await ModelApi.updateModelApi(data) message.success('修改成功') } else { - await ModelApi.createModel(data) + await ModelApi.createModelApi(data) message.success('新增成功') } // 跳转回去 @@ -85,7 +85,7 @@ onMounted(async () => { return } // 查询模型 - const data = await ModelApi.getModel(modelId) + const data = await ModelApi.getModelApi(modelId) xmlString.value = data.bpmnXml model.value = { ...data,