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

修改bug

parent 3921bfe9
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
/**确定按钮*/ /**确定按钮*/
async function handleSubmit() { async function handleSubmit() {
emit('success');
createMessage.success('获取元数据成功'); createMessage.success('获取元数据成功');
closeModal(); closeModal();
} }
......
...@@ -51,14 +51,14 @@ ...@@ -51,14 +51,14 @@
style="margin-right: 100px" style="margin-right: 100px"
icon="material-symbols:drive-file-move-outline-sharp" icon="material-symbols:drive-file-move-outline-sharp"
:size="40" :size="40"
:color="'#54c8e8'" :color="selectedItem === '5' ? '#19ee02' : '#54c8e8'"
@click="handleChangeTab('5')" @click="handleChangeTab('5')"
/> />
<Icon <Icon
style="margin-right: 10px" style="margin-right: 10px"
icon="tabler:database-export" icon="tabler:database-export"
:size="40" :size="40"
:color="'#54c8e8'" :color="selectedItem === '1' ? '#19ee02' : '#54c8e8'"
@click="handleChangeTab('1')" @click="handleChangeTab('1')"
/> />
<Icon style="margin-right: 10px" icon="quill:arrow-right" :size="35" :color="'#000000'" /> <Icon style="margin-right: 10px" icon="quill:arrow-right" :size="35" :color="'#000000'" />
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
style="margin-right: 10px" style="margin-right: 10px"
icon="simple-icons:apachekafka" icon="simple-icons:apachekafka"
:size="40" :size="40"
:color="'#54c8e8'" :color="selectedItem === '2' ? '#19ee02' : '#54c8e8'"
@click="handleChangeTab('2')" @click="handleChangeTab('2')"
/> />
<Icon style="margin-right: 10px" icon="quill:arrow-right" :size="35" :color="'#2f3031'" /> <Icon style="margin-right: 10px" icon="quill:arrow-right" :size="35" :color="'#2f3031'" />
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
style="margin-right: 10px" style="margin-right: 10px"
icon="tabler:database-export" icon="tabler:database-export"
:size="40" :size="40"
:color="'#54c8e8'" :color="selectedItem === '3' ? '#19ee02' : '#54c8e8'"
@click="handleChangeTab('3')" @click="handleChangeTab('3')"
/> />
<Icon style="margin-right: 10px" icon="quill:arrow-right" :size="35" :color="'#2f3031'" /> <Icon style="margin-right: 10px" icon="quill:arrow-right" :size="35" :color="'#2f3031'" />
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
style="margin-right: 10px" style="margin-right: 10px"
icon="grommet-icons:settings-option" icon="grommet-icons:settings-option"
:size="40" :size="40"
:color="'#54c8e8'" :color="selectedItem === '4' ? '#19ee02' : '#54c8e8'"
@click="handleChangeTab('4')" @click="handleChangeTab('4')"
/> />
</div> </div>
...@@ -583,7 +583,7 @@ ...@@ -583,7 +583,7 @@
</TabPane> </TabPane>
</Tabs> </Tabs>
</div> </div>
<GetMetadataModal @register="registerGetMetadataModal" /> <GetMetadataModal @register="registerGetMetadataModal" @success="successGetMetadata" />
<SaveModal @register="registerSaveModal" /> <SaveModal @register="registerSaveModal" />
<VersionManageModal @register="registerVersionManageModal" /> <VersionManageModal @register="registerVersionManageModal" />
<AddBaseRulesModal @register="registerAddBaseRulesModal" /> <AddBaseRulesModal @register="registerAddBaseRulesModal" />
...@@ -659,6 +659,7 @@ ...@@ -659,6 +659,7 @@
const isEdit = ref(true); const isEdit = ref(true);
const version = ref('V1'); const version = ref('V1');
const isStart = ref('false'); const isStart = ref('false');
const selectedItem = ref();
const versionOptions = [ const versionOptions = [
{ {
label: 'V1', label: 'V1',
...@@ -1015,6 +1016,8 @@ ...@@ -1015,6 +1016,8 @@
if (type === 'get') { if (type === 'get') {
openGetMetadataModal(true); openGetMetadataModal(true);
} }
}
function successGetMetadata() {
tableDetail.value = true; tableDetail.value = true;
} }
...@@ -1068,6 +1071,7 @@ ...@@ -1068,6 +1071,7 @@
reloadServerTopicOptionsTable(); reloadServerTopicOptionsTable();
} }
function handleChangeTab(key) { function handleChangeTab(key) {
selectedItem.value = key;
tabKey.value = key; tabKey.value = key;
} }
......
<template> <template>
<BasicModal width="40%" v-bind="$attrs" @register="registerModal" title="场景选择"> <BasicModal
width="40%"
:showOkBtn="false"
:showCancelBtn="false"
v-bind="$attrs"
@register="registerModal"
title="选择场景类型"
>
<List> <List>
<Row :gutter="16"> <Row :gutter="16">
<template v-for="item in cardList" :key="item.title"> <template v-for="item in cardList" :key="item.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