diff --git a/src/views/workflow/design/ImportFlow.vue b/src/views/workflow/design/ImportFlow.vue index aed656a..f1b9ce3 100644 --- a/src/views/workflow/design/ImportFlow.vue +++ b/src/views/workflow/design/ImportFlow.vue @@ -49,10 +49,15 @@ action: '', headers: { Authorization: '' }, }); + const props = defineProps({ + coverType: { + type: Boolean + }, + }); async function open() { data.visible = true; - data.action = getAppEnvConfig().VITE_GLOB_API_URL + '/workflow/schema/import'; + data.action = getAppEnvConfig().VITE_GLOB_API_URL + '/workflow/schema/import?cover='+props.coverType; data.headers.Authorization = `Bearer ${getToken()}`; } function close() { @@ -68,7 +73,7 @@ message.success(t(`{name}导入成功!`, { name: info.file.name })); close(); } else { - message.error(t('导入流程失败!')); + message.error(t('导入流程失败!'+ info.file.response.msg)); } } else if (info.file.status === 'error') { message.error(t(`{name}上传失败.`, { name: info.file.name })); diff --git a/src/views/workflow/design/index.vue b/src/views/workflow/design/index.vue index 9e86b0f..4a42bef 100644 --- a/src/views/workflow/design/index.vue +++ b/src/views/workflow/design/index.vue @@ -27,8 +27,11 @@ {{ t('历史记录') }} - {{ t('导入流程') }}{{ t('增量导入流程') }} + {{ t('覆盖导入流程') }} {{ t('导出流程')