Commit 93890e5e authored by chenjiahao's avatar chenjiahao

数据加载版本管理&调试&查看版本管理

parent 2c961d1e
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
<PageWrapper class="content-padding" contentBackground @back="goBack"> <PageWrapper class="content-padding" contentBackground @back="goBack">
<template #headerContent> <template #headerContent>
<div class="modal_top"> <div class="modal_top">
<div style="display: flex; gap: 5px; align-items: center">
<span v-if="isEdit === 'false'">查看版本</span>
<Select v-if="isEdit === 'false'" v-model:value="version" style="width: 120px" :options="versionOptions" />
<a-button v-if="isEdit === 'false'">回滚</a-button>
<a-button v-if="isEdit === 'false'" @click="goBack">退出查看</a-button>
</div>
<Icon <Icon
icon="ep:arrow-left-bold" icon="ep:arrow-left-bold"
:size="20" :size="20"
...@@ -17,13 +23,17 @@ ...@@ -17,13 +23,17 @@
<div class="path">数据加载/离线加载</div> <div class="path">数据加载/离线加载</div>
</div> </div>
<div class="buttonGroup"> <div class="buttonGroup">
<a-button v-if="isEdit === 'true'" type="primary" @click="handleOperation" <a-button :disabled="isEdit !== 'true'" type="primary" @click="handleOperation"
>跳转运维</a-button >跳转运维</a-button
> >
<a-button v-if="isEdit === 'true'" type="primary" @click="handleSave">保存</a-button> <a-button :disabled="isEdit !== 'true'" type="primary" @click="handleSave">保存</a-button>
<a-button v-if="isEdit === 'true'" type="primary" @click="handleDebug">调试</a-button> <a-button :disabled="isEdit !== 'true'" type="primary" @click="handleDebug"
<a-button v-if="isEdit === 'true'" type="primary" @click="handleRun">运行</a-button> >调试</a-button
<a-button v-if="isEdit === 'true'" type="primary" @click="handlePublish">发布</a-button> >
<a-button :disabled="isEdit !== 'true'" type="primary" @click="handleRun">运行</a-button>
<a-button :disabled="isEdit !== 'true'" type="primary" @click="handlePublish"
>发布</a-button
>
<a-button type="primary" @click="handleGobalDeply">全局配置</a-button> <a-button type="primary" @click="handleGobalDeply">全局配置</a-button>
<a-button type="primary" @click="handleParameterConfiguration">参数配置</a-button> <a-button type="primary" @click="handleParameterConfiguration">参数配置</a-button>
<a-button type="primary" @click="handleVersionManagement">版本管理</a-button> <a-button type="primary" @click="handleVersionManagement">版本管理</a-button>
...@@ -467,6 +477,7 @@ ...@@ -467,6 +477,7 @@
Modal, Modal,
RadioGroup, RadioGroup,
Radio, Radio,
Select,
CheckboxGroup, CheckboxGroup,
Checkbox, Checkbox,
} from 'ant-design-vue'; } from 'ant-design-vue';
...@@ -556,7 +567,21 @@ ...@@ -556,7 +567,21 @@
let configurationModeFlag = ref(''); let configurationModeFlag = ref('');
let selectAdvancedConfiguration = ref(); let selectAdvancedConfiguration = ref();
const selectKey = ref('0'); const selectKey = ref('0');
const version = ref('V1');
const versionOptions = [
{
label: 'V1',
value: 'V1',
},
{
label: 'V2',
value: 'V2',
},
{
label: 'V3',
value: 'V4',
},
];
const actionList = [ const actionList = [
{ {
//删除 //删除
...@@ -1685,7 +1710,12 @@ ...@@ -1685,7 +1710,12 @@
} }
function handleDebug() { function handleDebug() {
console.log('siteChecked', siteChecked); router.push({
path: '/dataIntegration/dataLoading/dataEntryLake/' + 'databaseOfflineLoading',
query: {
isEdit: 'debug',
},
});
} }
async function handleSave() { async function handleSave() {
......
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