From f8cc8c423332d8158ca9879f12c6a3b26006e119 Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Mon, 25 Sep 2023 00:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orion-ops-ui/src/components/message-box/index.vue | 3 +-- .../host-identity/components/host-identity-form-modal.vue | 2 +- .../views/asset/host-key/components/host-key-form-drawer.vue | 2 +- .../src/views/asset/host/components/host-config-drawer.vue | 1 - .../src/views/asset/host/components/host-config-ssh-form.vue | 2 +- .../src/views/asset/host/components/host-form-modal.vue | 2 +- .../src/views/system/menu/components/menu-form-modal.vue | 2 +- orion-ops-ui/src/views/system/menu/components/menu-table.vue | 4 ++-- orion-ops-ui/src/views/system/menu/index.vue | 4 ++-- .../src/views/user/role/components/role-form-modal.vue | 2 +- .../src/views/user/role/components/role-menu-grant-modal.vue | 2 +- orion-ops-ui/src/views/user/role/components/role-table.vue | 2 ++ .../src/views/user/user/components/user-form-modal.vue | 2 +- .../user/user/components/user-grant-roles-form-modal.vue | 2 +- .../user/user/components/user-reset-password-form-modal.vue | 2 +- orion-ops-ui/src/views/user/user/components/user-table.vue | 1 + 16 files changed, 18 insertions(+), 17 deletions(-) diff --git a/orion-ops-ui/src/components/message-box/index.vue b/orion-ops-ui/src/components/message-box/index.vue index 5c62cc85..9f312d98 100644 --- a/orion-ops-ui/src/components/message-box/index.vue +++ b/orion-ops-ui/src/components/message-box/index.vue @@ -101,8 +101,7 @@ }; const formatUnreadLength = (type: string) => { const list = getUnreadList(type); - // FIXME - return list.length ? `(${list.length})` : ``; + return list.length ? `(${list.length})` : ''; }; const handleItemClick = (items: MessageListType) => { if (renderList.value.length) readMessage([...items]); diff --git a/orion-ops-ui/src/views/asset/host-identity/components/host-identity-form-modal.vue b/orion-ops-ui/src/views/asset/host-identity/components/host-identity-form-modal.vue index 6883f7a4..8a6cc563 100644 --- a/orion-ops-ui/src/views/asset/host-identity/components/host-identity-form-modal.vue +++ b/orion-ops-ui/src/views/asset/host-identity/components/host-identity-form-modal.vue @@ -85,7 +85,7 @@ }; }; - const formRef = ref(); + const formRef = ref(); const formModel = reactive>(defaultForm()); const emits = defineEmits(['added', 'updated']); diff --git a/orion-ops-ui/src/views/asset/host-key/components/host-key-form-drawer.vue b/orion-ops-ui/src/views/asset/host-key/components/host-key-form-drawer.vue index ff9374e2..3d7de052 100644 --- a/orion-ops-ui/src/views/asset/host-key/components/host-key-form-drawer.vue +++ b/orion-ops-ui/src/views/asset/host-key/components/host-key-form-drawer.vue @@ -116,7 +116,7 @@ }; }; - const formRef = ref(); + const formRef = ref(); const formModel = reactive>(defaultForm()); const emits = defineEmits(['added', 'updated']); diff --git a/orion-ops-ui/src/views/asset/host/components/host-config-drawer.vue b/orion-ops-ui/src/views/asset/host/components/host-config-drawer.vue index 46272a5e..bb507cc4 100644 --- a/orion-ops-ui/src/views/asset/host/components/host-config-drawer.vue +++ b/orion-ops-ui/src/views/asset/host/components/host-config-drawer.vue @@ -60,7 +60,6 @@ config.value[s.type] = s; }); } catch ({ message }) { - // FIXME Message.error(`配置加载失败 ${message}`); setVisible(false); } finally { diff --git a/orion-ops-ui/src/views/asset/host/components/host-config-ssh-form.vue b/orion-ops-ui/src/views/asset/host/components/host-config-ssh-form.vue index c6ffedf8..a15e03c6 100644 --- a/orion-ops-ui/src/views/asset/host/components/host-config-ssh-form.vue +++ b/orion-ops-ui/src/views/asset/host/components/host-config-ssh-form.vue @@ -158,7 +158,7 @@ version: undefined, }); - const formRef = ref(); + const formRef = ref(); const formModel = reactive>({ username: undefined, port: undefined, diff --git a/orion-ops-ui/src/views/asset/host/components/host-form-modal.vue b/orion-ops-ui/src/views/asset/host/components/host-form-modal.vue index 46fe08e6..4914723f 100644 --- a/orion-ops-ui/src/views/asset/host/components/host-form-modal.vue +++ b/orion-ops-ui/src/views/asset/host/components/host-form-modal.vue @@ -76,7 +76,7 @@ }; }; - const formRef = ref(); + const formRef = ref(); const formModel = reactive>(defaultForm()); const emits = defineEmits(['added', 'updated']); diff --git a/orion-ops-ui/src/views/system/menu/components/menu-form-modal.vue b/orion-ops-ui/src/views/system/menu/components/menu-form-modal.vue index 0d8011ee..3c7bac43 100644 --- a/orion-ops-ui/src/views/system/menu/components/menu-form-modal.vue +++ b/orion-ops-ui/src/views/system/menu/components/menu-form-modal.vue @@ -151,7 +151,7 @@ }; }; - const formRef = ref(); + const formRef = ref(); const formModel = reactive>(defaultForm()); const emits = defineEmits(['added', 'updated']); diff --git a/orion-ops-ui/src/views/system/menu/components/menu-table.vue b/orion-ops-ui/src/views/system/menu/components/menu-table.vue index fd3c0d6b..c52ee0c8 100644 --- a/orion-ops-ui/src/views/system/menu/components/menu-table.vue +++ b/orion-ops-ui/src/views/system/menu/components/menu-table.vue @@ -181,13 +181,13 @@ const cacheStore = useCacheStore(); - const formRef = ref(); + const formRef = ref(); const formModel = reactive({ name: undefined, status: undefined }); - const tableRef = ref(); + const tableRef = ref(); const expandStatus = ref(false); const tableRenderData = ref([]); diff --git a/orion-ops-ui/src/views/system/menu/index.vue b/orion-ops-ui/src/views/system/menu/index.vue index 1105fb45..2ee3e7b6 100644 --- a/orion-ops-ui/src/views/system/menu/index.vue +++ b/orion-ops-ui/src/views/system/menu/index.vue @@ -24,8 +24,8 @@ import { onUnmounted, ref } from 'vue'; import { useCacheStore } from '@/store'; - const table = ref(); - const modal = ref(); + const table = ref(); + const modal = ref(); // 卸载时清除 menu cache onUnmounted(() => { diff --git a/orion-ops-ui/src/views/user/role/components/role-form-modal.vue b/orion-ops-ui/src/views/user/role/components/role-form-modal.vue index 5290d0b0..983e6347 100644 --- a/orion-ops-ui/src/views/user/role/components/role-form-modal.vue +++ b/orion-ops-ui/src/views/user/role/components/role-form-modal.vue @@ -61,7 +61,7 @@ }; }; - const formRef = ref(); + const formRef = ref(); const formModel = reactive>(defaultForm()); const emits = defineEmits(['added', 'updated']); diff --git a/orion-ops-ui/src/views/user/role/components/role-menu-grant-modal.vue b/orion-ops-ui/src/views/user/role/components/role-menu-grant-modal.vue index ada0433f..6a04d09c 100644 --- a/orion-ops-ui/src/views/user/role/components/role-menu-grant-modal.vue +++ b/orion-ops-ui/src/views/user/role/components/role-menu-grant-modal.vue @@ -56,7 +56,7 @@ const { visible, setVisible } = useVisible(); const { loading, setLoading } = useLoading(); - const tree = ref(); + const tree = ref(); const roleRecord = reactive>({ id: undefined, name: undefined, diff --git a/orion-ops-ui/src/views/user/role/components/role-table.vue b/orion-ops-ui/src/views/user/role/components/role-table.vue index 86ea0c2e..401493b7 100644 --- a/orion-ops-ui/src/views/user/role/components/role-table.vue +++ b/orion-ops-ui/src/views/user/role/components/role-table.vue @@ -62,6 +62,8 @@