From da25d91ba760181383dfbda0c85a85c4d6949711 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Sat, 8 Aug 2026 12:35:59 +0330 Subject: [PATCH] Add cross-panel tenant shortcuts with live status colors and values. Co-authored-by: Cursor --- src/components/TenantPanelShortcuts.vue | 250 ++++++++++++++++++++++++ src/pages/PluginTenantPage.vue | 3 + src/pages/ServerTenantPage.vue | 3 + src/pages/SmsTenantPage.vue | 3 + src/pages/SupportTenantPage.vue | 3 + src/styles.css | 92 +++++++++ 6 files changed, 354 insertions(+) create mode 100644 src/components/TenantPanelShortcuts.vue diff --git a/src/components/TenantPanelShortcuts.vue b/src/components/TenantPanelShortcuts.vue new file mode 100644 index 0000000..b8affd1 --- /dev/null +++ b/src/components/TenantPanelShortcuts.vue @@ -0,0 +1,250 @@ + + + diff --git a/src/pages/PluginTenantPage.vue b/src/pages/PluginTenantPage.vue index fe72fdc..a913232 100644 --- a/src/pages/PluginTenantPage.vue +++ b/src/pages/PluginTenantPage.vue @@ -6,6 +6,7 @@ import { ArrowRightOutlined, PlusOutlined, DeleteOutlined } from '@ant-design/ic import api from '@/api/http' import JalaliDatePicker from '@/components/JalaliDatePicker.vue' import MoneyInput from '@/components/MoneyInput.vue' +import TenantPanelShortcuts from '@/components/TenantPanelShortcuts.vue' import { formatIranDate, todayIranDateInput, iranDateInputToIso } from '@/utils/datetime' import { formatMoney } from '@/utils/money' @@ -276,6 +277,8 @@ onMounted(loadDetail) + +
+ +
diff --git a/src/pages/SmsTenantPage.vue b/src/pages/SmsTenantPage.vue index 0cbade3..f760ab6 100644 --- a/src/pages/SmsTenantPage.vue +++ b/src/pages/SmsTenantPage.vue @@ -7,6 +7,7 @@ import type { TableColumnsType } from 'ant-design-vue' import api from '@/api/http' import JalaliDatePicker from '@/components/JalaliDatePicker.vue' import MoneyInput from '@/components/MoneyInput.vue' +import TenantPanelShortcuts from '@/components/TenantPanelShortcuts.vue' import { formatIranDateTime, todayIranDateInput } from '@/utils/datetime' import { formatMoney, formatNumber } from '@/utils/money' @@ -411,6 +412,8 @@ onMounted(async () => {
+ +