Commit a4a7ea6d authored by 罗林杰's avatar 罗林杰

修改数据加载

parent ae121f9e
......@@ -90,6 +90,8 @@
<SceneSelectionModal @register="registerSceneSelectionModal" />
<NewFolder @register="registerNewFolder" />
<ResetName @register="registerResetNameModal" @success="handleAddSuccess" />
<SaveModal @register="registerSaveModal" />
<RunOptionsModal @register="registerRunOptionsModal" />
</PageWrapper>
</template>
<script lang="ts" setup>
......@@ -109,6 +111,8 @@
import SceneSelectionModal from './sceneSelectionModal.vue';
import ImportModal from './importModal.vue';
import ResetName from './resetName.vue';
import SaveModal from '@/views/dataIntegration/dataLoading/dataEntryLake/saveModal.vue';
import RunOptionsModal from '@/views/dataIntegration/dataLoading/dataEntryLake/runOptionsModal.vue';
const { createMessage, createConfirm } = useMessage();
const filterStore = useFilterStore();
......@@ -116,8 +120,10 @@
const [registerResetNameModal, { openModal: openResetNameModal }] = useModal();
const [registerImport, { openModal: openImportModal }] = useModal();
const [registerMoveFile, { openModal: openMoveFileModal }] = useModal();
const [registerSaveModal, { openModal: openSaveModal }] = useModal();
const [registerSceneSelectionModal, { openModal: openSceneSelectionModal }] = useModal();
const [registerNewFolder, { openModal: openNewFolderModal }] = useModal();
const [registerRunOptionsModal, { openModal: openRunOptionsModal }] = useModal();
const [
registerTable,
{ reload, updateTableDataRecord, getSearchInfo, getForm, getRowSelection },
......@@ -207,8 +213,9 @@
title: '确认下线',
content: '确认批量下线选中数据?',
onOk() {
createMessage.success('批量下线选中数据成功!');
reload();
openSaveModal(true, {
title: '下线版本',
});
},
});
}
......@@ -219,8 +226,9 @@
title: '确认发布',
content: '确认发布选中数据?',
onOk() {
createMessage.success('发布成功!');
reload();
openSaveModal(true, {
title: '发布新版本',
});
},
});
}
......@@ -238,8 +246,9 @@
title: '运行',
content: '是否批量运行选中数据?',
onOk() {
createMessage.success('批量运行选中数据成功!');
reload();
openRunOptionsModal(true, {
title: '参数列表',
});
},
});
}
......
......@@ -42,7 +42,7 @@
async function handleSubmit() {
closeModal();
emit('success');
createMessage.success('发布成功');
createMessage.success('提交成功');
await resetFields();
}
</script>
......@@ -11,11 +11,11 @@
<a-button :disabled="isDebug" type="primary" @click="handleSave">保存</a-button>
<a-button v-if="!isDebug" type="primary" @click="handleDebug">调试</a-button>
<a-button v-else type="primary" @click="handleExitDebug">退出调试</a-button>
<a-button :disabled="isDebug || !isUpload" type="primary">运行</a-button>
<a-button :disabled="isDebug || !isUpload" type="primary" @click="handleRun">运行</a-button>
<a-button :disabled="!isSave || isDebug" type="primary" @click="handlePublish">发布</a-button>
<a-button type="primary" @click="handleGobalDeply">全局配置</a-button>
<a-button type="primary" @click="handleParameterConfiguration">参数配置</a-button>
<a-button type="primary">版本管理</a-button>
<a-button type="primary" @click="handleVersionManagement">版本管理</a-button>
<!-- <a-button type="primary" @click="handleVersionManagement">版本管理</a-button>-->
</template>
<template #footer>
......@@ -385,6 +385,7 @@
<GlobalOptionsModal @register="registerGlobalOptionsModal" />
<DataOptionsModal @register="registerDataOptionsModal" />
<VersionManageModal @register="registerVersionManageModal" />
<RunOptionsModal @register="registerRunOptionsModal" />
</PageWrapper>
</template>
......@@ -466,12 +467,14 @@
import DataOptionsModal from '@/views/dataIntegration/dataLoading/dataEntryLake/dataOptionsModal.vue';
import VersionManageModal from '@/views/dataIntegration/dataLoading/dataEntryLake/versionManageModal.vue';
import PartitionDataHandleModal from '@/views/dataIntegration/dataLoading/fileLoading/partitionDataHandleModal.vue';
import RunOptionsModal from '@/views/dataIntegration/dataLoading/dataEntryLake/runOptionsModal.vue';
const [registerSaveModal, { openModal: openSaveModal }] = useModal();
const [registerGlobalOptionsModal, { openModal: openGlobalOptionsModal }] = useModal();
const [registerDataOptionsModal, { openModal: openDataOptionsModal }] = useModal();
const [registerVersionManageModal, { openModal: openVersionManageModal }] = useModal();
const [partitionDataHandleModal, { openModal: openPartitionDataHandleModal }] = useModal();
const [registerRunOptionsModal, { openModal: openRunOptionsModal }] = useModal();
const isSave = ref(false);
async function handleSave() {
createMessage.success('保存成功');
......@@ -545,6 +548,11 @@
title: '数据加载全局配置',
});
}
function handleRun() {
openRunOptionsModal(true, {
title: '参数列表',
});
}
function handleParameterConfiguration() {
openDataOptionsModal(true, {
title: '数据加载参数配置',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment