Commit 11d85ac4 authored by 罗林杰's avatar 罗林杰

修改数据库到消息队列配置页面

parent 803b4c08
...@@ -31,6 +31,16 @@ ...@@ -31,6 +31,16 @@
<a-button type="primary" :disabled="isEdit" @click="handleOperation">跳转运维</a-button> <a-button type="primary" :disabled="isEdit" @click="handleOperation">跳转运维</a-button>
<a-button type="primary" :disabled="isEdit" @click="handleSave">保存</a-button> <a-button type="primary" :disabled="isEdit" @click="handleSave">保存</a-button>
<a-button type="primary" :disabled="isEdit" @click="handlePublish">发布</a-button> <a-button type="primary" :disabled="isEdit" @click="handlePublish">发布</a-button>
<a-button
type="primary"
v-if="isStart === 'false'"
:disabled="isEdit"
@click="handleStart"
>启动</a-button
>
<a-button type="primary" v-if="isStart === 'true'" :disabled="isEdit" @click="handleStart"
>暂停</a-button
>
<a-button type="primary" @click="handleVersionManagement">版本管理</a-button> <a-button type="primary" @click="handleVersionManagement">版本管理</a-button>
</div> </div>
</div> </div>
...@@ -648,6 +658,7 @@ ...@@ -648,6 +658,7 @@
const scene = ref(); const scene = ref();
const isEdit = ref(true); const isEdit = ref(true);
const version = ref('V1'); const version = ref('V1');
const isStart = ref('false');
const versionOptions = [ const versionOptions = [
{ {
label: 'V1', label: 'V1',
...@@ -1116,6 +1127,13 @@ ...@@ -1116,6 +1127,13 @@
function saveAndPreviewTableMapping() { function saveAndPreviewTableMapping() {
tableMappingRulesTableShow.value = true; tableMappingRulesTableShow.value = true;
} }
function handleStart() {
if (isStart.value === 'false') {
isStart.value = 'true';
} else {
isStart.value = 'false';
}
}
function handleDeleteRules() { function handleDeleteRules() {
const selectedKeys = getRowSelection().selectedRowKeys; const selectedKeys = getRowSelection().selectedRowKeys;
if (selectedKeys !== undefined) { if (selectedKeys !== undefined) {
......
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