diff --git a/src/i18n/lang/en-US.js b/src/i18n/lang/en-US.js index 07dde3a..63c2ae8 100644 --- a/src/i18n/lang/en-US.js +++ b/src/i18n/lang/en-US.js @@ -76,6 +76,9 @@ export default { specifyStart: 'Start', enterRoomIds: 'Enter room IDs, separate multiple IDs with Enter key', enterRoomId: 'Please enter room ID', + currentCount: 'Current', + countSeparator: '/', + countUnit: 'items', // 网络问题弹窗 networkFailed: diff --git a/src/i18n/lang/zh-CN.js b/src/i18n/lang/zh-CN.js index 1c03026..979b577 100644 --- a/src/i18n/lang/zh-CN.js +++ b/src/i18n/lang/zh-CN.js @@ -59,6 +59,9 @@ export default { specifyStart: '开始', networkFailed: '网络连接失败,无法访问网络,请查看网络设置。', enterRoomIds: '请输入直播间id,多个id用回车键隔开', + currentCount: '当前', + countSeparator: '条 / 最大', + countUnit: '条', // ==== 新增:表格列、排序使用 ==== userId: '用户id', diff --git a/src/static/css/cyber-design.less b/src/static/css/cyber-design.less index 228e97d..6e20ccd 100644 --- a/src/static/css/cyber-design.less +++ b/src/static/css/cyber-design.less @@ -69,15 +69,13 @@ // 玻璃态组件 Glass Components // ============================================ -// 玻璃态头部卡片 +// 玻璃态头部卡片 - 简化版(移除 backdrop-filter 提升性能) .glass-header { - background: rgba(255, 255, 255, 0.85); - backdrop-filter: blur(12px); - -webkit-backdrop-filter: blur(12px); - border: 1px solid rgba(255, 255, 255, 0.9); + background: #ffffff; + border: 1px solid #e8ecf0; border-radius: @radius-3xl; padding: 28px 32px; - box-shadow: @shadow-glass; + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); } // 玻璃态内容卡片 @@ -111,20 +109,11 @@ gap: 8px; &:hover { - filter: brightness(1.1); - box-shadow: @shadow-cyber-glow; - transform: translateY(-1px); + filter: brightness(1.05); } &:active { - transform: translateY(0); - } - - &:disabled { - opacity: 0.6; - cursor: not-allowed; - filter: none; - transform: none; + opacity: 0.9; } } @@ -147,12 +136,6 @@ &:hover { background: @tech-gray-50; border-color: @tech-gray-300; - transform: translateY(-1px); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); - } - - &:active { - transform: translateY(0); } } @@ -473,9 +456,7 @@ padding: 0 24px !important; &:hover { - filter: brightness(1.1); - box-shadow: @shadow-cyber-glow !important; - transform: translateY(-1px); + filter: brightness(1.05); } &:active { @@ -505,7 +486,6 @@ &:hover { background: @tech-gray-50 !important; border-color: @tech-gray-300 !important; - transform: translateY(-1px); } } } diff --git a/src/utils/tenantConfig.js b/src/utils/tenantConfig.js new file mode 100644 index 0000000..d61eeb9 --- /dev/null +++ b/src/utils/tenantConfig.js @@ -0,0 +1,26 @@ +/** + * 租户配置管理 + * 用于统一管理特定租户的差异化配置 + */ + +// 直播间ID限制配置 +// key: tenantId (租户ID) +// value: limit (最大行数限制) +export const TENANT_LIMIT_CONFIG = { + '12741': 5000, + '12348': 5000, + // 在此处添加更多租户ID和对应的限制 + // '10001': 1000, +} + +export const DEFAULT_LIMIT = 50 + +/** + * 获取租户的直播间ID限制数量 + * @param {string|number} tenantId 租户ID + * @returns {number} 限制数量 + */ +export const getTenantLimit = (tenantId) => { + if (!tenantId) return DEFAULT_LIMIT + return TENANT_LIMIT_CONFIG[String(tenantId)] || DEFAULT_LIMIT +} diff --git a/src/views/hosts/Home.vue b/src/views/hosts/Home.vue deleted file mode 100644 index 5b7f867..0000000 --- a/src/views/hosts/Home.vue +++ /dev/null @@ -1,77 +0,0 @@ - - -// - - diff --git a/src/views/hosts/hostsList.vue b/src/views/hosts/hostsList.vue index 3ba5e84..810ef56 100644 --- a/src/views/hosts/hostsList.vue +++ b/src/views/hosts/hostsList.vue @@ -6,34 +6,20 @@
- - + +
- + / - +
@@ -43,33 +29,32 @@ {{ t('hostsList.level') }}
- + / - +
- +
+ {{ t('hostsList.runningTime') }}: + + {{ String(hourstuo).padStart(2, '0') }}:{{ + String(minutestuo).padStart(2, '0') + }}:{{ String(secondstuo).padStart(2, '0') }} + + + {{ t('hostsList.total') }}: + {{ getBrotherInfodata.total }} + + {{ t('hostsList.valid') }}: + {{ getBrotherInfodata.valid }} +
- + 📍 {{ streamdialogVisibletext @@ -78,21 +63,11 @@ }} - + {{ t('hostsList.start') }} - + {{ t('hostsList.end') }}
@@ -104,28 +79,13 @@
- - + + - + @@ -141,27 +101,17 @@ {{ t('hostsList.reset') }} - + 📥 {{ t('hostsList.exportExcel') }} - + ⚙️ {{ t('hostsList.moreFilters') }} - + 🎵 {{ t('hostsList.openTikTok') }} @@ -172,20 +122,10 @@
{{ t('hostsList.currentNetwork') }}: {{ countryData }} - - {{ t('hostsList.runningTime') }}: - - {{ String(hourstuo).padStart(2, '0') }}:{{ - String(minutestuo).padStart(2, '0') - }}:{{ String(secondstuo).padStart(2, '0') }} - - - {{ t('hostsList.total') }}: - {{ getBrotherInfodata.total }} - - {{ t('hostsList.valid') }}: - {{ getBrotherInfodata.valid }}
+ + +
@@ -193,57 +133,27 @@
- - + + - + - -