This commit is contained in:
Fine 2022-08-30 12:05:07 +08:00
parent 7158d9f6f5
commit 282c5f406d
2 changed files with 16 additions and 17 deletions

View File

@ -15,17 +15,16 @@ limitations under the License. -->
<template>
<div class="flex-h content">
<Tasks />
<div
class="vis-graph ml-5"
<div class="vis-graph ml-5" v-loading="networkProfilingStore.loadNodes">
<process-topology
v-if="networkProfilingStore.nodes.length"
v-loading="networkProfilingStore.loadNodes"
>
<process-topology :config="config" />
</div>
<div class="text" v-else v-loading="networkProfilingStore.loadNodes">
:config="config"
/>
<div class="text" v-else>
{{ t("noData") }}
</div>
</div>
</div>
</template>
<script lang="ts" setup>
import type { PropType } from "vue";
@ -60,7 +59,7 @@ const { t } = useI18n();
}
.text {
width: calc(100% - 330px);
width: 100%;
text-align: center;
margin-top: 30px;
}

View File

@ -14,14 +14,14 @@ See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div ref="chart" class="process-topo"></div>
<el-popover placement="bottom" :width="295" trigger="click">
<template #reference>
<div
class="switch-icon-edit ml-5"
title="Settings"
@click="setConfig"
<el-popover
placement="bottom"
:width="295"
trigger="click"
v-if="dashboardStore.editMode"
>
<template #reference>
<div class="switch-icon-edit ml-5" title="Settings" @click="setConfig">
<Icon size="middle" iconName="setting_empty" />
</div>
</template>