style: 页面样式调整

This commit is contained in:
TsMask
2024-11-14 11:33:49 +08:00
parent 348b11e201
commit 101cb70893
3 changed files with 15 additions and 9 deletions

View File

@@ -496,7 +496,7 @@ onMounted(() => {
</a-card> </a-card>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row :gutter="16">
<a-col :lg="12" :md="12" :xs="24"> <a-col :lg="12" :md="12" :xs="24">
<a-card :bordered="false" :body-style="{ marginBottom: '24px' }"> <a-card :bordered="false" :body-style="{ marginBottom: '24px' }">
<!-- 插槽-卡片左侧侧 --> <!-- 插槽-卡片左侧侧 -->
@@ -554,7 +554,7 @@ onMounted(() => {
</a-card> </a-card>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row :gutter="16">
<a-col :lg="12" :md="12" :xs="24"> <a-col :lg="12" :md="12" :xs="24">
<a-card :bordered="false" :body-style="{ marginBottom: '24px' }"> <a-card :bordered="false" :body-style="{ marginBottom: '24px' }">
<!-- 插槽-卡片左侧侧 --> <!-- 插槽-卡片左侧侧 -->

View File

@@ -24,8 +24,9 @@ const graphG6Data = reactive<Record<string, any>>({
/**查询全部网元数据列表 */ /**查询全部网元数据列表 */
function fnRanderData() { function fnRanderData() {
if (!graphG6Dom.value) return; if (!graphG6Dom.value) return false;
graphG6.value = randerGroph(t, graphG6Dom.value, graphG6Data); graphG6.value = randerGroph(t, graphG6Dom.value, graphG6Data);
return true;
} }
/**网元状态调度器 */ /**网元状态调度器 */
@@ -140,18 +141,22 @@ function fnGetList(refresh: boolean = false) {
} }
}) })
.then(hasNeList => { .then(hasNeList => {
if (!hasNeList) return; if (!hasNeList) return false;
if (refresh) { if (refresh) {
// graphG6.value.get('canvas').set('localRefresh', true); // graphG6.value.get('canvas').set('localRefresh', true);
graphG6.value.destroy(); graphG6.value.destroy();
// graphG6.value.clear(); // graphG6.value.clear();
} }
fnRanderData(); return fnRanderData();
fnGetState(); })
.then(randerGroph => {
if (!randerGroph) return;
fnGetState().finally(() => {
interval10s.value = setInterval(() => { interval10s.value = setInterval(() => {
fnGetState(); // 获取网元状态 fnGetState(); // 获取网元状态
}, 10_000); }, 10_000);
}); });
});
} }
onMounted(() => { onMounted(() => {

View File

@@ -98,6 +98,7 @@ let tableColumns: ColumnsType = [
title: t('common.rowId'), title: t('common.rowId'),
dataIndex: 'configId', dataIndex: 'configId',
align: 'left', align: 'left',
width: 100,
}, },
{ {
title: t('views.system.config.configName'), title: t('views.system.config.configName'),