diff --git a/src/views/workflow/design/ImportFlow.vue b/src/views/workflow/design/ImportFlow.vue index aed656a..a69ce9d 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 + (getAppEnvConfig().VITE_GLOB_API_URL_PREFIX|| '') + '/workflow/schema/import?cover='+props.coverType; data.headers.Authorization = `Bearer ${getToken()}`; } function close() { @@ -65,13 +70,13 @@ } if (info.file.status === 'done') { if (info.file && info.file.response && info.file.response.code == 0) { - message.success(t(`{name}导入成功!`, { name: info.file.name })); + message.success(`${info.file.name}导入成功!`); close(); } else { - message.error(t('导入流程失败!')); + message.error('导入流程失败!'+ info.file.response.msg); } } else if (info.file.status === 'error') { - message.error(t(`{name}上传失败.`, { name: info.file.name })); + message.error(`${info.file.name}上传失败.`); } } diff --git a/src/views/workflow/design/index.vue b/src/views/workflow/design/index.vue index 9e86b0f..3ed3c49 100644 --- a/src/views/workflow/design/index.vue +++ b/src/views/workflow/design/index.vue @@ -27,9 +27,22 @@ {{ t('历史记录') }} - {{ t('导入流程') }} + + + + {{ t('新增导入流程') }} + + + + + + {{ t('覆盖导入流程') }} + + {{ t('导出流程') }}