feat(admin): 升级后台主题并增加本机只读预览
This commit is contained in:
+3
-1
@@ -6,13 +6,15 @@ import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||
|
||||
import { ScreenEnum } from './enums/appEnums'
|
||||
import useAppStore from './stores/modules/app'
|
||||
import useSettingStore from './stores/modules/setting'
|
||||
import useSettingStore, { useAdminAppearanceStore } from './stores/modules/setting'
|
||||
import useUserStore from './stores/modules/user'
|
||||
import ChatNotifyToast from './components/chat-notify-toast/index.vue'
|
||||
import RevisitDueToast from './components/revisit-due-toast/index.vue'
|
||||
|
||||
const appStore = useAppStore()
|
||||
const settingStore = useSettingStore()
|
||||
// Resolve the saved appearance before the first route (including login) renders.
|
||||
useAdminAppearanceStore()
|
||||
const userStore = useUserStore()
|
||||
const route = useRoute()
|
||||
|
||||
|
||||
@@ -21,7 +21,22 @@
|
||||
<breadcrumb />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="flex items-center">
|
||||
<button
|
||||
class="admin-ui-toggle"
|
||||
type="button"
|
||||
data-admin-ui-toggle
|
||||
aria-label="新版界面"
|
||||
:aria-pressed="settingStore.adminUi === 'v2'"
|
||||
:title="settingStore.adminUi === 'v2' ? '切回旧版界面' : '切换至新版界面'"
|
||||
@click="settingStore.toggleAdminUi()"
|
||||
>
|
||||
<svg aria-hidden="true" viewBox="0 0 16 16" fill="none" width="15" height="15">
|
||||
<rect x="2" y="3" width="12" height="10" rx="2" stroke="currentColor" stroke-width="1.4" />
|
||||
<path d="M6 3v10m2-7h4" stroke="currentColor" stroke-width="1.4" />
|
||||
</svg>
|
||||
{{ settingStore.adminUi === 'v2' ? '切回旧版' : '体验新版' }}
|
||||
</button>
|
||||
<div class="navbar-item" v-if="!isMobile">
|
||||
<el-tooltip
|
||||
class="box-item"
|
||||
@@ -80,4 +95,23 @@ const { isFullscreen } = useFullscreen()
|
||||
@apply h-full flex justify-center items-center hover:bg-page;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-ui-toggle {
|
||||
height: 30px;
|
||||
padding: 0 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
margin-inline: 4px;
|
||||
white-space: nowrap;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--el-color-primary);
|
||||
border: 1px solid var(--el-color-primary-light-7);
|
||||
background: var(--el-color-primary-light-9);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
&:hover { border-color: var(--el-color-primary); }
|
||||
&:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<main class="main-wrap h-full bg-page">
|
||||
<el-scrollbar>
|
||||
<div class="px-2 py-4">
|
||||
<div class="admin-content px-2 py-4">
|
||||
<router-view v-if="isRouteShow" v-slot="{ Component, route }">
|
||||
<keep-alive :include="includeList" :max="20">
|
||||
<component :is="Component" :key="route.fullPath" />
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<template>
|
||||
<div class="side" :style="sideStyle">
|
||||
<div class="side" :class="{ 'side--dark': sideTheme === 'dark' }" :style="sideStyle">
|
||||
<side-logo v-if="settingStore.showLogo" :show-title="!isCollapsed" :theme="sideTheme" />
|
||||
<div v-else-if="settingStore.adminUi === 'v2'" class="admin-nav-heading" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" width="24" height="24">
|
||||
<path d="M4 6.5h10M4 12h16M4 17.5h10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||
<circle cx="19" cy="6.5" r="2" fill="currentColor"/>
|
||||
</svg>
|
||||
<span v-if="!isCollapsed">工作导航</span>
|
||||
</div>
|
||||
<side-menu
|
||||
:routes="routes"
|
||||
:is-collapsed="isCollapsed"
|
||||
@@ -14,6 +21,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import defaultSetting from '@/config/setting'
|
||||
import useAppStore from '@/stores/modules/app'
|
||||
import useSettingStore from '@/stores/modules/setting'
|
||||
import useUserStore from '@/stores/modules/user'
|
||||
@@ -39,11 +47,16 @@ const routes = computed(() => userStore.routes)
|
||||
const sideStyle = computed(() => {
|
||||
return sideTheme.value == 'dark'
|
||||
? {
|
||||
'--side-dark-color': settingStore.sideDarkColor
|
||||
'--side-dark-color':
|
||||
settingStore.adminUi === 'v2' && settingStore.sideDarkColor === defaultSetting.sideDarkColor
|
||||
? 'var(--zyt-sidebar-dark)'
|
||||
: settingStore.sideDarkColor
|
||||
}
|
||||
: ''
|
||||
})
|
||||
const menuProp = computed(() => {
|
||||
// In v2 the root tokens also style the collapsed menu's teleported popup.
|
||||
if (settingStore.adminUi === 'v2') return {}
|
||||
return {
|
||||
backgroundColor: sideTheme.value == 'dark' ? settingStore.sideDarkColor : '',
|
||||
textColor: sideTheme.value == 'dark' ? 'var(--el-color-white)' : '',
|
||||
|
||||
@@ -11,6 +11,31 @@ import { setTheme } from '@/utils/theme'
|
||||
|
||||
const storageSetting = cache.get(SETTING_KEY)
|
||||
|
||||
type AdminUi = 'legacy' | 'v2'
|
||||
const APPEARANCE_KEY = 'admin_ui'
|
||||
|
||||
// A preview can seed <html data-admin-ui="v2"> before the first store is created.
|
||||
// Its switch is local to that document; it never overwrites the normal entry's preference.
|
||||
function initialAppearance() {
|
||||
const root = document.documentElement
|
||||
const preview = root.dataset.adminUi === 'v2'
|
||||
const mode: AdminUi = preview || cache.get(APPEARANCE_KEY) === 'v2' ? 'v2' : 'legacy'
|
||||
root.dataset.adminUi = mode
|
||||
return { preview, mode }
|
||||
}
|
||||
|
||||
// Keep the new preference separate from the existing, versioned settings object.
|
||||
export const useAdminAppearanceStore = defineStore('adminAppearance', {
|
||||
state: initialAppearance,
|
||||
actions: {
|
||||
select(mode: AdminUi) {
|
||||
this.mode = mode
|
||||
document.documentElement.dataset.adminUi = mode
|
||||
if (!this.preview) cache.set(APPEARANCE_KEY, mode)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function applySettingSchemaMigrations(
|
||||
state: Record<string, any>,
|
||||
storedVersion: number
|
||||
@@ -49,7 +74,15 @@ export const useSettingStore = defineStore({
|
||||
state._settingSchemaVersion = SETTING_SCHEMA_VERSION
|
||||
return state
|
||||
},
|
||||
getters: {
|
||||
adminUi(): AdminUi {
|
||||
return useAdminAppearanceStore().mode
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
toggleAdminUi() {
|
||||
useAdminAppearanceStore().select(this.adminUi === 'v2' ? 'legacy' : 'v2')
|
||||
},
|
||||
// 设置布局设置
|
||||
setSetting(data: Record<string, any>) {
|
||||
const { key, value } = data
|
||||
@@ -64,6 +97,14 @@ export const useSettingStore = defineStore({
|
||||
},
|
||||
// 设置主题色
|
||||
setTheme(isDark: boolean) {
|
||||
// An explicitly chosen accent is shared; the legacy default stays blue,
|
||||
// while the v2 default is jade. Neither switch rewrites the color picker.
|
||||
const rootStyle = document.documentElement.style
|
||||
if (this.theme && this.theme !== defaultSetting.theme) {
|
||||
rootStyle.setProperty('--zyt-user-primary', this.theme)
|
||||
} else {
|
||||
rootStyle.removeProperty('--zyt-user-primary')
|
||||
}
|
||||
setTheme(
|
||||
{
|
||||
primary: this.theme,
|
||||
@@ -83,6 +124,7 @@ export const useSettingStore = defineStore({
|
||||
}
|
||||
this._settingSchemaVersion = SETTING_SCHEMA_VERSION
|
||||
cache.remove(SETTING_KEY)
|
||||
useAdminAppearanceStore().select('legacy')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -0,0 +1,195 @@
|
||||
// Only the new appearance opts into these rules. Root scope also reaches
|
||||
// Element Plus dialogs, selectors and collapsed menus teleported to <body>.
|
||||
:root[data-admin-ui='v2'] {
|
||||
--zyt-canvas: #f3f6f6;
|
||||
--zyt-surface: #fff;
|
||||
--zyt-surface-subtle: #f6f8f8;
|
||||
--zyt-ink: #1c3037;
|
||||
--zyt-text: #3f555d;
|
||||
--zyt-muted: #60747b;
|
||||
--zyt-border: #dce5e5;
|
||||
--zyt-primary: var(--zyt-user-primary, #146e60);
|
||||
--zyt-accent: var(--zyt-primary);
|
||||
--zyt-accent-soft: #e5f3ef;
|
||||
--zyt-accent-border: #b9dcd2;
|
||||
--zyt-sidebar-dark: #193339;
|
||||
--zyt-radius: 12px;
|
||||
--zyt-shadow: 0 2px 5px rgba(28, 52, 57, .045);
|
||||
|
||||
--el-color-primary: var(--zyt-accent);
|
||||
--el-color-primary-light-3: #398c7d;
|
||||
--el-color-primary-light-5: #77b1a4;
|
||||
--el-color-primary-light-7: #a8cec3;
|
||||
--el-color-primary-light-8: var(--zyt-accent-border);
|
||||
--el-color-primary-light-9: var(--zyt-accent-soft);
|
||||
--el-color-primary-dark-2: #0e594d;
|
||||
--el-bg-color: var(--zyt-surface);
|
||||
--el-bg-color-page: var(--zyt-canvas);
|
||||
--el-bg-color-overlay: var(--zyt-surface);
|
||||
--el-fill-color-blank: var(--zyt-surface);
|
||||
--el-fill-color-light: var(--zyt-surface-subtle);
|
||||
--el-fill-color-lighter: var(--zyt-surface-subtle);
|
||||
--el-text-color-primary: var(--zyt-ink);
|
||||
--el-text-color-regular: var(--zyt-text);
|
||||
--el-text-color-secondary: var(--zyt-muted);
|
||||
--el-border-color: var(--zyt-border);
|
||||
--el-border-color-light: var(--zyt-border);
|
||||
--el-border-color-lighter: var(--zyt-border);
|
||||
--el-border-radius-base: 7px;
|
||||
--el-box-shadow-lighter: var(--zyt-shadow);
|
||||
--table-header-bg-color: var(--zyt-surface-subtle);
|
||||
--navbar-height: 54px;
|
||||
--el-menu-item-height: 40px;
|
||||
--el-menu-sub-item-height: 36px;
|
||||
--el-menu-level-padding: 15px;
|
||||
|
||||
&.dark {
|
||||
--zyt-canvas: #142126;
|
||||
--zyt-surface: #1d2d32;
|
||||
--zyt-surface-subtle: #24363b;
|
||||
--zyt-ink: #e2eeee;
|
||||
--zyt-text: #c5d4d7;
|
||||
--zyt-muted: #a4b8bd;
|
||||
--zyt-border: #3b5055;
|
||||
--zyt-primary: var(--zyt-user-primary, #63bcaa);
|
||||
--zyt-accent-soft: #24453f;
|
||||
--zyt-accent-border: #3a6159;
|
||||
--zyt-sidebar-dark: #15292e;
|
||||
--zyt-shadow: 0 2px 5px rgba(0, 0, 0, .16);
|
||||
--el-color-primary-light-3: #509e8e;
|
||||
--el-color-primary-light-5: #478777;
|
||||
--el-color-primary-light-7: #396457;
|
||||
--el-color-primary-dark-2: #8acdbf;
|
||||
}
|
||||
|
||||
@supports (color: color-mix(in srgb, red, blue)) {
|
||||
&, &.dark {
|
||||
--zyt-accent-soft: color-mix(in srgb, var(--zyt-primary) 10%, var(--zyt-surface));
|
||||
--zyt-accent-border: color-mix(in srgb, var(--zyt-primary) 25%, var(--zyt-surface));
|
||||
--el-color-primary-light-3: color-mix(in srgb, var(--zyt-primary) 83%, var(--zyt-surface));
|
||||
--el-color-primary-light-5: color-mix(in srgb, var(--zyt-primary) 56%, var(--zyt-surface));
|
||||
--el-color-primary-light-7: color-mix(in srgb, var(--zyt-primary) 35%, var(--zyt-surface));
|
||||
--el-color-primary-dark-2: color-mix(in srgb, var(--zyt-primary) 78%, var(--zyt-ink));
|
||||
}
|
||||
}
|
||||
|
||||
&.dark .el-button--primary:not(.is-plain, .is-text, .is-link, .is-disabled) {
|
||||
--el-button-text-color: var(--zyt-on-primary, #112823);
|
||||
--el-button-active-text-color: var(--zyt-on-primary, #112823);
|
||||
--el-button-hover-text-color: var(--zyt-on-primary, #112823);
|
||||
}
|
||||
|
||||
.layout-default { background: var(--zyt-canvas); }
|
||||
.app-header {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
border-bottom: 1px solid var(--zyt-border);
|
||||
background: var(--zyt-surface);
|
||||
}
|
||||
.navbar { padding-inline: clamp(8px, 1.25vw, 22px); }
|
||||
.navbar .navbar-item {
|
||||
border-radius: 7px;
|
||||
color: var(--zyt-text);
|
||||
}
|
||||
.app-header .app-breadcrumb .el-breadcrumb__item .el-breadcrumb__inner,
|
||||
.app-header .app-breadcrumb .el-breadcrumb__separator { color: var(--zyt-muted); }
|
||||
.app-header .app-breadcrumb .el-breadcrumb__item:last-child .el-breadcrumb__inner {
|
||||
color: var(--zyt-ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
.app-header .app-tabs {
|
||||
padding-block: 4px;
|
||||
border-color: var(--zyt-border);
|
||||
.el-tabs { height: 30px; --el-tabs-header-height: 30px; }
|
||||
.el-tabs__item {
|
||||
height: 30px;
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
&.is-active { background: var(--zyt-accent-soft); color: var(--zyt-primary); font-weight: 600; }
|
||||
&.is-active::after { display: none; }
|
||||
}
|
||||
}
|
||||
|
||||
.admin-content { padding: clamp(12px, 1.45vw, 24px); }
|
||||
.admin-nav-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: var(--navbar-height);
|
||||
padding: 0 18px;
|
||||
white-space: nowrap;
|
||||
color: var(--zyt-ink);
|
||||
font-size: 15px;
|
||||
font-weight: 650;
|
||||
svg { color: var(--zyt-accent); }
|
||||
}
|
||||
.side .logo, .side .admin-nav-heading { border-bottom: 1px solid var(--zyt-border); }
|
||||
.side--dark {
|
||||
border-right-color: var(--side-dark-color);
|
||||
.admin-nav-heading, .logo { color: #f0f7f5; border-bottom-color: rgba(255,255,255,.12); }
|
||||
.admin-nav-heading svg { color: #86ceba; }
|
||||
}
|
||||
.side .menu { padding-block: 8px; }
|
||||
.side .menu, .el-menu--popup-container {
|
||||
--zyt-nav-bg: var(--zyt-surface);
|
||||
--zyt-nav-text: var(--zyt-text);
|
||||
--zyt-nav-hover: var(--zyt-surface-subtle);
|
||||
--zyt-nav-active: var(--zyt-accent-soft);
|
||||
--zyt-nav-selected: var(--zyt-accent);
|
||||
&.theme-dark {
|
||||
--zyt-nav-bg: var(--side-dark-color, var(--zyt-sidebar-dark));
|
||||
--zyt-nav-text: #cbdedc;
|
||||
--zyt-nav-hover: rgba(255,255,255,.09);
|
||||
--zyt-nav-active: #2b514e;
|
||||
--zyt-nav-selected: #d2faea;
|
||||
}
|
||||
.el-menu {
|
||||
--el-menu-bg-color: var(--zyt-nav-bg);
|
||||
--el-menu-text-color: var(--zyt-nav-text);
|
||||
--el-menu-hover-text-color: var(--zyt-nav-selected);
|
||||
--el-menu-hover-bg-color: var(--zyt-nav-hover);
|
||||
--el-menu-active-color: var(--zyt-nav-selected);
|
||||
}
|
||||
.el-menu-item, .el-sub-menu__title {
|
||||
margin: 2px 5px;
|
||||
border-radius: 7px;
|
||||
font-size: 13px;
|
||||
&:hover { background: var(--zyt-nav-hover); color: var(--zyt-nav-selected); }
|
||||
}
|
||||
.el-menu .el-menu-item.is-active,
|
||||
.el-menu.el-menu--collapse .el-sub-menu.is-active > .el-sub-menu__title {
|
||||
border-right: none;
|
||||
background: var(--zyt-nav-active);
|
||||
color: var(--zyt-nav-selected);
|
||||
font-weight: 650;
|
||||
}
|
||||
}
|
||||
|
||||
.el-card {
|
||||
--el-card-border-radius: var(--zyt-radius);
|
||||
--el-card-border-color: var(--zyt-border);
|
||||
&.is-always-shadow { box-shadow: var(--zyt-shadow); }
|
||||
}
|
||||
.el-table {
|
||||
--el-table-header-text-color: var(--zyt-text);
|
||||
--el-table-header-bg-color: var(--zyt-surface-subtle);
|
||||
--el-table-row-hover-bg-color: var(--zyt-surface-subtle);
|
||||
font-variant-numeric: tabular-nums;
|
||||
thead th { font-weight: 600; font-size: 13px; }
|
||||
}
|
||||
.el-overlay-dialog .el-dialog, .el-message-box {
|
||||
border-radius: var(--zyt-radius);
|
||||
border: 1px solid var(--zyt-border);
|
||||
}
|
||||
.el-dialog__title, .el-drawer__title { font-weight: 650; }
|
||||
.el-tag { border-radius: 5px; }
|
||||
.el-pagination { --el-pagination-button-bg-color: var(--zyt-surface-subtle); }
|
||||
:focus-visible:is(button, a, [role='button']) {
|
||||
outline: 2px solid var(--zyt-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.admin-content { padding: 10px; }
|
||||
.navbar { padding-inline: 4px; }
|
||||
}
|
||||
}
|
||||
@@ -3,3 +3,4 @@
|
||||
@import 'var.css';
|
||||
@import 'tailwind.css';
|
||||
@import 'public.scss';
|
||||
@import 'admin-v2.scss';
|
||||
|
||||
+108
-11
@@ -1,7 +1,12 @@
|
||||
<!-- 订单列表 -->
|
||||
<template>
|
||||
<div class="order-list">
|
||||
<el-card class="!border-none" shadow="never">
|
||||
<header class="zyt-order-heading" hidden>
|
||||
<h1>订单管理</h1>
|
||||
<p>查询支付订单,跟进患者关联与收款状态。</p>
|
||||
</header>
|
||||
<el-card class="!border-none zyt-order-filter" shadow="never">
|
||||
<h2 class="zyt-order-title" hidden>筛选条件</h2>
|
||||
<!-- 搜索表单 -->
|
||||
<el-form class="ls-form" :model="queryParams" inline>
|
||||
<el-form-item class="w-[280px]" label="订单号">
|
||||
@@ -64,14 +69,14 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="创建时间">
|
||||
<el-form-item class="zyt-order-date" label="创建时间">
|
||||
<daterange-picker
|
||||
v-model:startTime="queryParams.create_time_start"
|
||||
v-model:endTime="queryParams.create_time_end"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-form-item class="zyt-order-tools">
|
||||
<el-button type="primary" @click="handleSearch">查询</el-button>
|
||||
<el-button @click="handleReset">重置</el-button>
|
||||
<el-button
|
||||
@@ -109,14 +114,14 @@
|
||||
</el-card>
|
||||
|
||||
<!-- Tab 筛选 + 今日收益 -->
|
||||
<el-card class="!border-none mt-4" shadow="never">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<el-card class="!border-none mt-4 zyt-order-association" shadow="never">
|
||||
<div class="flex items-center justify-between mb-4 zyt-order-association-row">
|
||||
<el-tabs v-model="patientAssociationTab" @tab-change="handleTabChange">
|
||||
<el-tab-pane label="全部" name="" />
|
||||
<el-tab-pane label="待关联" name="pending" />
|
||||
<el-tab-pane label="已关联" name="associated" />
|
||||
</el-tabs>
|
||||
<div class="flex items-center gap-4 text-sm">
|
||||
<div class="flex items-center gap-4 text-sm zyt-order-revenue">
|
||||
<span class="text-gray-500">今日收益:</span>
|
||||
<span class="text-red-500 font-semibold text-lg">¥{{ todayRevenue.amount }}</span>
|
||||
<span class="text-gray-400">({{ todayRevenue.count }} 笔)</span>
|
||||
@@ -125,7 +130,11 @@
|
||||
</el-card>
|
||||
|
||||
<!-- 数据表格 -->
|
||||
<el-card class="!border-none mt-4" shadow="never">
|
||||
<el-card class="!border-none mt-4 zyt-order-records" shadow="never">
|
||||
<div class="zyt-order-record-heading" hidden>
|
||||
<h2>订单明细</h2>
|
||||
<span>共 {{ pager.count }} 条</span>
|
||||
</div>
|
||||
<div v-perms="['order.order/zhipai']" class="mb-3 flex items-center gap-3">
|
||||
<el-button type="primary" :disabled="!selectedOrderIds.length" @click="openAssignDialog">
|
||||
将创建人指给医助
|
||||
@@ -143,7 +152,7 @@
|
||||
@selection-change="handleOrderSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="48" />
|
||||
<el-table-column label="订单号" prop="order_no" min-width="150" />
|
||||
<el-table-column label="订单号" prop="order_no" class-name="zyt-order-id" min-width="150" />
|
||||
|
||||
<el-table-column label="处方业务订单号" min-width="210">
|
||||
<template #default="{ row }">
|
||||
@@ -179,7 +188,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="金额" width="100">
|
||||
<el-table-column label="金额" class-name="zyt-order-amount" width="100">
|
||||
<template #default="{ row }">
|
||||
<span class="text-red-500 font-semibold">¥{{ row.amount }}</span>
|
||||
</template>
|
||||
@@ -212,7 +221,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" width="340" fixed="right">
|
||||
<el-table-column label="操作" class-name="zyt-order-ops" label-class-name="zyt-order-ops" :width="actionsWidth" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
v-perms="['order.order/detail']"
|
||||
@@ -294,7 +303,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<div class="flex justify-end mt-4">
|
||||
<div class="flex justify-end mt-4 zyt-order-pager">
|
||||
<pagination v-model="pager" @change="getLists" />
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -828,6 +837,7 @@
|
||||
import { computed } from 'vue'
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { hasPermission } from '@/utils/perm'
|
||||
import useSettingStore from '@/stores/modules/setting'
|
||||
import {
|
||||
orderLists,
|
||||
orderDetail,
|
||||
@@ -856,6 +866,12 @@ import { generateOrderQrcode } from '@/api/tcm'
|
||||
import { Loading } from '@element-plus/icons-vue'
|
||||
import feedback from '@/utils/feedback'
|
||||
|
||||
// A viewer with only the detail action does not need the full 340px sticky column.
|
||||
const appearance = useSettingStore()
|
||||
const actionsWidth = computed(() => appearance.adminUi === 'v2' &&
|
||||
!['edit', 'split', 'wxQrcode', 'pay', 'refund', 'cancel', 'delete', 'setExempt']
|
||||
.some(action => hasPermission(['order.order/' + action])) ? 82 : 340)
|
||||
|
||||
const queryParams = reactive({
|
||||
order_no: '',
|
||||
patient_keyword: '',
|
||||
@@ -1718,3 +1734,84 @@ onMounted(() => {
|
||||
padding: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
html[data-admin-ui="v2"] .order-list {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
background: var(--zyt-canvas);
|
||||
color: var(--zyt-text);
|
||||
.zyt-order-heading { display: block; margin-bottom: 20px; }
|
||||
.zyt-order-heading h1 {
|
||||
margin: 0 0 6px; color: var(--zyt-ink); font-size: clamp(22px, 2vw, 28px);
|
||||
font-weight: 700; line-height: 1.25;
|
||||
}
|
||||
.zyt-order-heading p { margin: 0; font-size: 13px; color: var(--zyt-muted); }
|
||||
> .el-card { border-radius: var(--zyt-radius); background: var(--zyt-surface); box-shadow: var(--zyt-shadow); }
|
||||
> .el-card > .el-card__body { padding: 16px 20px; }
|
||||
.zyt-order-title, .zyt-order-record-heading h2 {
|
||||
margin: 0; color: var(--zyt-ink); font-size: 16px; line-height: 24px; font-weight: 600;
|
||||
}
|
||||
.zyt-order-title { display: block; margin-bottom: 14px; }
|
||||
.zyt-order-record-heading {
|
||||
display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
|
||||
span { font-size: 12px; color: var(--zyt-muted); font-variant-numeric: tabular-nums; }
|
||||
}
|
||||
.zyt-order-filter .ls-form {
|
||||
display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
|
||||
align-items: end; gap: 12px 16px;
|
||||
}
|
||||
.zyt-order-filter .el-form-item {
|
||||
display: flex; flex-direction: column; align-items: stretch; width: auto; min-width: 0; margin: 0;
|
||||
}
|
||||
.zyt-order-filter .el-form-item__label {
|
||||
justify-content: start; height: auto; padding: 0 0 5px; line-height: 18px;
|
||||
font-size: 12px; color: var(--zyt-text);
|
||||
}
|
||||
.zyt-order-filter .el-form-item__content,
|
||||
.zyt-order-filter .el-date-editor { width: 100%; min-width: 0; }
|
||||
.zyt-order-tools {
|
||||
grid-column: 1 / -1; border-top: 1px solid var(--zyt-border); padding-top: 12px;
|
||||
> .el-form-item__content { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
> .el-form-item__content > * { margin: 0; }
|
||||
}
|
||||
> .zyt-order-association > .el-card__body { padding-block: 8px; }
|
||||
.zyt-order-association-row { flex-wrap: wrap; gap: 4px 16px; margin: 0; }
|
||||
.zyt-order-association .el-tabs__header { margin: 0; }
|
||||
.zyt-order-association .el-tabs__nav-wrap::after { display: none; }
|
||||
.zyt-order-revenue {
|
||||
flex-wrap: wrap; gap: 5px; padding: 4px 10px; border-radius: 7px;
|
||||
background: var(--zyt-accent-soft); font-variant-numeric: tabular-nums;
|
||||
.text-red-500 { color: var(--zyt-primary); }
|
||||
.text-gray-400, .text-gray-500 { color: var(--zyt-text); }
|
||||
}
|
||||
.zyt-order-records .el-table {
|
||||
--el-table-header-bg-color: var(--zyt-surface-subtle);
|
||||
--el-table-header-text-color: var(--zyt-text);
|
||||
--el-table-border-color: var(--zyt-border);
|
||||
--el-table-row-hover-bg-color: var(--zyt-accent-soft);
|
||||
.el-table__cell { padding-block: 9px; }
|
||||
th.el-table__cell { font-size: 12px; font-weight: 600; }
|
||||
.zyt-order-id .cell, .zyt-order-amount .cell { font-variant-numeric: tabular-nums; }
|
||||
td.zyt-order-id { color: var(--zyt-ink); }
|
||||
.zyt-order-amount span { color: var(--zyt-primary); }
|
||||
td.zyt-order-ops .cell { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
|
||||
td.zyt-order-ops .el-button { margin: 0; padding-block: 3px; }
|
||||
.text-gray-400 { color: var(--zyt-muted); }
|
||||
}
|
||||
.zyt-order-pager { max-width: 100%; overflow-x: auto; }
|
||||
.zyt-order-pager .pagination { min-width: 0; }
|
||||
.zyt-order-pager .el-pagination { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
|
||||
@media (min-width: 1024px) {
|
||||
.zyt-order-date { grid-column: span 2; }
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.zyt-order-heading { margin-bottom: 14px; }
|
||||
> .el-card > .el-card__body { padding: 12px; }
|
||||
.zyt-order-association .el-tabs { max-width: 100%; }
|
||||
// A fixed 340px actions column would obscure the scrollable data on phones.
|
||||
.zyt-order-records .el-table .zyt-order-ops { position: static !important; box-shadow: none; }
|
||||
.zyt-order-records .el-table .zyt-order-ops::before { display: none; }
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<el-option label="最近7天" :value="7" />
|
||||
<el-option label="最近30天" :value="30" />
|
||||
</el-select>
|
||||
<el-button :icon="Refresh" circle @click="loadOrderStats" />
|
||||
<el-button aria-label="刷新订单统计" :icon="Refresh" circle @click="loadOrderStats" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="wb-section-body">
|
||||
@@ -87,6 +87,7 @@
|
||||
class="wb-chart"
|
||||
style="height: 300px"
|
||||
:option="orderDeptCountPieOption"
|
||||
:theme="chartTheme"
|
||||
:autoresize="true"
|
||||
/>
|
||||
<el-empty v-else class="wb-chart-empty" description="暂无数据" />
|
||||
@@ -104,6 +105,7 @@
|
||||
class="wb-chart"
|
||||
style="height: 300px"
|
||||
:option="orderChartOption"
|
||||
:theme="chartTheme"
|
||||
:autoresize="true"
|
||||
/>
|
||||
<el-empty v-else class="wb-chart-empty" description="暂无图表数据" />
|
||||
@@ -122,6 +124,7 @@
|
||||
class="wb-chart"
|
||||
style="height: 300px"
|
||||
:option="orderDeptAmountPieOption"
|
||||
:theme="chartTheme"
|
||||
:autoresize="true"
|
||||
/>
|
||||
<el-empty v-else class="wb-chart-empty" description="暂无数据" />
|
||||
@@ -205,7 +208,7 @@
|
||||
<el-option label="最近14天" :value="14" />
|
||||
<el-option label="最近30天" :value="30" />
|
||||
</el-select>
|
||||
<el-button :icon="Refresh" circle @click="loadAssistantStats" />
|
||||
<el-button aria-label="刷新诊单统计" :icon="Refresh" circle @click="loadAssistantStats" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="wb-section-body">
|
||||
@@ -249,6 +252,7 @@
|
||||
class="wb-chart"
|
||||
style="height: 340px"
|
||||
:option="assistantChartOption"
|
||||
:theme="chartTheme"
|
||||
:autoresize="true"
|
||||
/>
|
||||
<el-empty v-else class="wb-chart-empty" description="暂无图表数据" />
|
||||
@@ -265,6 +269,7 @@
|
||||
class="wb-chart"
|
||||
style="height: 340px"
|
||||
:option="assistantDeptPieOption"
|
||||
:theme="chartTheme"
|
||||
:autoresize="true"
|
||||
/>
|
||||
<el-empty v-else class="wb-chart-empty" description="暂无部门数据" />
|
||||
@@ -332,6 +337,7 @@
|
||||
class="wb-chart"
|
||||
style="height: 320px"
|
||||
:option="workbenchData.visitorOption"
|
||||
:theme="chartTheme"
|
||||
:autoresize="true"
|
||||
/>
|
||||
</div>
|
||||
@@ -347,6 +353,7 @@
|
||||
class="wb-chart"
|
||||
style="height: 320px"
|
||||
:option="workbenchData.saleOption"
|
||||
:theme="chartTheme"
|
||||
:autoresize="true"
|
||||
/>
|
||||
</div>
|
||||
@@ -359,6 +366,7 @@
|
||||
|
||||
<script lang="ts" setup name="workbench">
|
||||
import { computed, onMounted, reactive, ref, watch } from 'vue'
|
||||
import { useMutationObserver } from '@vueuse/core'
|
||||
import vCharts from 'vue-echarts'
|
||||
import { DataAnalysis, Histogram, Refresh, TrendCharts } from '@element-plus/icons-vue'
|
||||
|
||||
@@ -374,6 +382,40 @@ const saleChart = useComponentRef(vCharts)
|
||||
const visitorChart = useComponentRef(vCharts)
|
||||
const assistantChart = useComponentRef(vCharts)
|
||||
|
||||
// ECharts paints on canvas, so resolve the active shell colors before passing them in.
|
||||
const root = document.documentElement
|
||||
function readChartSkin() {
|
||||
if (root.dataset.adminUi !== 'v2') return null
|
||||
const css = getComputedStyle(root)
|
||||
const token = (key: string, fallback: string) => css.getPropertyValue('--zyt-' + key).trim() || fallback
|
||||
return {
|
||||
primary: token('primary', '#15775e'),
|
||||
text: token('muted', '#667b71'),
|
||||
surface: token('surface', '#ffffff'),
|
||||
border: token('border', '#dce6e1'),
|
||||
dark: root.classList.contains('dark')
|
||||
}
|
||||
}
|
||||
const skin = ref(readChartSkin())
|
||||
useMutationObserver(root, () => { skin.value = readChartSkin() }, {
|
||||
attributes: true, attributeFilter: ['data-admin-ui', 'class']
|
||||
})
|
||||
const chartPrimary = computed(() => skin.value?.primary ?? settingStore.theme)
|
||||
const chartTheme = computed(() => {
|
||||
const s = skin.value
|
||||
if (!s) return undefined
|
||||
const axis = {
|
||||
axisLabel: { color: s.text }, nameTextStyle: { color: s.text },
|
||||
axisLine: { lineStyle: { color: s.border } }, splitLine: { lineStyle: { color: s.border } }
|
||||
}
|
||||
return {
|
||||
darkMode: s.dark, backgroundColor: 'transparent',
|
||||
textStyle: { color: s.text }, legend: { textStyle: { color: s.text } },
|
||||
categoryAxis: axis, valueAxis: axis,
|
||||
tooltip: { backgroundColor: s.surface, borderColor: s.border, textStyle: { color: s.text } }
|
||||
}
|
||||
})
|
||||
const jadePieColors = ['#168364', '#5987b0', '#d09b50', '#8779ad', '#58aa9a', '#bd7787', '#96994c', '#617282']
|
||||
const pieColors = ['#5b7cfa', '#36cfc9', '#ffc53d', '#ff7a45', '#b37feb', '#597ef7', '#73d13d', '#ff85c0']
|
||||
|
||||
function parseAmount(v: unknown): number {
|
||||
@@ -407,7 +449,7 @@ const assistantDeptPieOption = computed(() => {
|
||||
.filter((d: any) => Number(d.total) > 0)
|
||||
.map((d: any) => ({ name: d.dept_name || '—', value: Number(d.total) }))
|
||||
return {
|
||||
color: pieColors,
|
||||
color: skin.value ? jadePieColors : pieColors,
|
||||
tooltip: { trigger: 'item', formatter: '{b}<br/>{c} 单 ({d}%)' },
|
||||
legend: { type: 'scroll', bottom: 0, textStyle: { fontSize: 11 } },
|
||||
series: [
|
||||
@@ -417,7 +459,7 @@ const assistantDeptPieOption = computed(() => {
|
||||
radius: ['46%', '72%'],
|
||||
center: ['50%', '46%'],
|
||||
avoidLabelOverlap: true,
|
||||
itemStyle: { borderRadius: 6, borderColor: '#fff', borderWidth: 2 },
|
||||
itemStyle: { borderRadius: 6, borderColor: skin.value?.surface ?? '#fff', borderWidth: 2 },
|
||||
label: { formatter: '{b}\n{c}' },
|
||||
data
|
||||
}
|
||||
@@ -426,7 +468,7 @@ const assistantDeptPieOption = computed(() => {
|
||||
})
|
||||
|
||||
const assistantChartOption = computed(() => {
|
||||
const theme = settingStore.theme
|
||||
const theme = chartPrimary.value
|
||||
const barSeries = (assistantStats.chart.series || []).map((s: any) => ({
|
||||
...s,
|
||||
name: s.name || '诊单数',
|
||||
@@ -455,12 +497,12 @@ const assistantChartOption = computed(() => {
|
||||
type: 'category',
|
||||
data: assistantStats.chart.xAxis || [],
|
||||
axisLabel: { rotate: 28, fontSize: 11 },
|
||||
axisLine: { lineStyle: { color: '#e4e7ec' } }
|
||||
axisLine: { lineStyle: { color: skin.value?.border ?? '#e4e7ec' } }
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
name: '诊单数',
|
||||
splitLine: { lineStyle: { type: 'dashed', color: '#eef0f4' } }
|
||||
splitLine: { lineStyle: { type: 'dashed', color: skin.value?.border ?? '#eef0f4' } }
|
||||
},
|
||||
tooltip: { trigger: 'axis' },
|
||||
grid: { left: '2%', right: '2%', bottom: '12%', top: 48, containLabel: true },
|
||||
@@ -518,7 +560,7 @@ const orderDeptCountPieOption = computed(() => {
|
||||
.filter((d: any) => Number(d.total) > 0)
|
||||
.map((d: any) => ({ name: d.dept_name || '—', value: Number(d.total) }))
|
||||
return {
|
||||
color: pieColors,
|
||||
color: skin.value ? jadePieColors : pieColors,
|
||||
tooltip: { trigger: 'item', formatter: '{b}<br/>{c} 单 ({d}%)' },
|
||||
legend: { type: 'scroll', bottom: 0, textStyle: { fontSize: 11 } },
|
||||
series: [
|
||||
@@ -527,7 +569,7 @@ const orderDeptCountPieOption = computed(() => {
|
||||
type: 'pie',
|
||||
radius: ['44%', '70%'],
|
||||
center: ['50%', '46%'],
|
||||
itemStyle: { borderRadius: 6, borderColor: '#fff', borderWidth: 2 },
|
||||
itemStyle: { borderRadius: 6, borderColor: skin.value?.surface ?? '#fff', borderWidth: 2 },
|
||||
label: { formatter: '{b}\n{c}' },
|
||||
data
|
||||
}
|
||||
@@ -540,7 +582,7 @@ const orderDeptAmountPieOption = computed(() => {
|
||||
.map((d: any) => ({ name: d.dept_name || '—', value: parseAmount(d.amount) }))
|
||||
.filter((d) => d.value > 0)
|
||||
return {
|
||||
color: pieColors,
|
||||
color: skin.value ? jadePieColors : pieColors,
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
formatter: (p: any) => {
|
||||
@@ -555,7 +597,7 @@ const orderDeptAmountPieOption = computed(() => {
|
||||
type: 'pie',
|
||||
radius: ['44%', '70%'],
|
||||
center: ['50%', '46%'],
|
||||
itemStyle: { borderRadius: 6, borderColor: '#fff', borderWidth: 2 },
|
||||
itemStyle: { borderRadius: 6, borderColor: skin.value?.surface ?? '#fff', borderWidth: 2 },
|
||||
label: { formatter: (p: any) => `${p.name}\n¥${Number(p.value).toFixed(0)}` },
|
||||
data
|
||||
}
|
||||
@@ -582,7 +624,7 @@ function formatDate(d: Date) {
|
||||
}
|
||||
|
||||
const orderChartOption = computed(() => {
|
||||
const theme = settingStore.theme
|
||||
const theme = chartPrimary.value
|
||||
const barSeries = (orderStatsData.chart?.series || []).map((s: any) => ({
|
||||
...s,
|
||||
name: s.name || '单数',
|
||||
@@ -611,12 +653,12 @@ const orderChartOption = computed(() => {
|
||||
type: 'category',
|
||||
data: orderStatsData.chart?.xAxis || [],
|
||||
axisLabel: { rotate: 28, fontSize: 11 },
|
||||
axisLine: { lineStyle: { color: '#e4e7ec' } }
|
||||
axisLine: { lineStyle: { color: skin.value?.border ?? '#e4e7ec' } }
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
name: '单数',
|
||||
splitLine: { lineStyle: { type: 'dashed', color: '#eef0f4' } }
|
||||
splitLine: { lineStyle: { type: 'dashed', color: skin.value?.border ?? '#eef0f4' } }
|
||||
},
|
||||
tooltip: { trigger: 'axis' },
|
||||
grid: { left: '2%', right: '2%', bottom: '12%', top: 48, containLabel: true },
|
||||
@@ -660,7 +702,7 @@ const refreshAll = () => {
|
||||
}
|
||||
|
||||
watch(
|
||||
() => settingStore.theme,
|
||||
chartPrimary,
|
||||
() => {
|
||||
updateColor()
|
||||
}
|
||||
@@ -690,8 +732,8 @@ const workbenchData: any = reactive({
|
||||
data: [],
|
||||
type: 'line',
|
||||
smooth: true,
|
||||
color: settingStore.theme,
|
||||
lineStyle: { color: settingStore.theme, width: 2 },
|
||||
color: chartPrimary.value,
|
||||
lineStyle: { color: chartPrimary.value, width: 2 },
|
||||
areaStyle: {
|
||||
color: {
|
||||
type: 'linear',
|
||||
@@ -700,8 +742,8 @@ const workbenchData: any = reactive({
|
||||
x2: 0,
|
||||
y2: 1,
|
||||
colorStops: [
|
||||
{ offset: 0, color: settingStore.theme },
|
||||
{ offset: 1, color: settingStore.theme }
|
||||
{ offset: 0, color: chartPrimary.value },
|
||||
{ offset: 1, color: chartPrimary.value }
|
||||
]
|
||||
},
|
||||
opacity: 0.12
|
||||
@@ -731,8 +773,8 @@ const workbenchData: any = reactive({
|
||||
x2: 0,
|
||||
y2: 1,
|
||||
colorStops: [
|
||||
{ offset: 0, color: calcColor(settingStore.theme, 0.65) },
|
||||
{ offset: 1, color: settingStore.theme }
|
||||
{ offset: 0, color: calcColor(chartPrimary.value, 0.65) },
|
||||
{ offset: 1, color: chartPrimary.value }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -793,7 +835,7 @@ const getData = () => {
|
||||
}
|
||||
|
||||
const updateColor = () => {
|
||||
const t = settingStore.theme
|
||||
const t = chartPrimary.value
|
||||
workbenchData.visitorOption.series[0].color = t
|
||||
workbenchData.visitorOption.series[0].lineStyle.color = t
|
||||
workbenchData.visitorOption.series[0].areaStyle.color.colorStops = [
|
||||
@@ -1243,3 +1285,89 @@ onMounted(() => {
|
||||
background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
html[data-admin-ui="v2"] .workbench-page {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
background: var(--zyt-canvas);
|
||||
color: var(--zyt-text);
|
||||
.wb-hero {
|
||||
padding: 0;
|
||||
margin: 0 0 20px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wb-hero-title { color: var(--zyt-ink); font-size: clamp(22px, 2vw, 28px); letter-spacing: 0; }
|
||||
.wb-hero-desc { color: var(--zyt-muted); font-size: 13px; }
|
||||
.wb-refresh-btn { box-shadow: none; border-radius: 8px; }
|
||||
.wb-section {
|
||||
margin-bottom: 16px;
|
||||
border: 1px solid var(--zyt-border);
|
||||
border-image: none;
|
||||
border-radius: var(--zyt-radius);
|
||||
background: var(--zyt-surface);
|
||||
box-shadow: var(--zyt-shadow);
|
||||
backdrop-filter: none;
|
||||
}
|
||||
.wb-section-head {
|
||||
padding: 14px 20px;
|
||||
background: none;
|
||||
border-color: var(--zyt-border);
|
||||
}
|
||||
.wb-section-title { gap: 10px; }
|
||||
.wb-section-icon {
|
||||
width: 36px; height: 36px; border-radius: 10px; font-size: 19px;
|
||||
color: var(--zyt-primary); background: var(--zyt-accent-soft); box-shadow: none;
|
||||
}
|
||||
.wb-section-name, .wb-chart-title, .wb-dept-title, .wb-ranking-name,
|
||||
.wb-dept-card-head, .wb-dept-num, .wb-ranking-money { color: var(--zyt-ink); }
|
||||
.wb-section-name { font-size: 16px; }
|
||||
.wb-section-sub, .wb-chart-hint, .wb-rank-strip-label, .wb-rank-empty, .wb-kpi-hint,
|
||||
.wb-dept-total, .wb-dept-num small, .wb-dept-empty, .wb-ranking-meta,
|
||||
.wb-rank-chip--dense small { color: var(--zyt-muted); }
|
||||
.wb-toolbar { gap: 8px; }
|
||||
.wb-section-body { padding: 16px 20px 20px; }
|
||||
.wb-kpi-row, .wb-chart-row, .wb-trend-body > .el-row { row-gap: 12px; }
|
||||
.wb-kpi, .wb-rank-strip {
|
||||
min-height: 100px; padding: 15px 18px; border-radius: 10px;
|
||||
background: var(--zyt-surface-subtle); border: 1px solid var(--zyt-border);
|
||||
}
|
||||
.wb-kpi { display: flex; flex-direction: column; justify-content: center; }
|
||||
.wb-kpi-label { color: var(--zyt-text); }
|
||||
.wb-kpi-value { color: var(--zyt-ink); font-weight: 650; overflow-wrap: anywhere; }
|
||||
.wb-kpi--amber { background: var(--zyt-accent-soft); }
|
||||
.wb-kpi--amber .wb-kpi-value { color: var(--zyt-primary); }
|
||||
.wb-rank-chip {
|
||||
color: var(--zyt-text); border-color: var(--zyt-border); background: var(--zyt-surface); box-shadow: none;
|
||||
em, strong { color: var(--zyt-primary); }
|
||||
}
|
||||
.wb-chart-card {
|
||||
border: 1px solid var(--zyt-border); border-radius: 10px;
|
||||
padding: 12px 14px 6px; background: var(--zyt-surface);
|
||||
}
|
||||
.wb-chart-card-head { align-items: center; gap: 8px; margin-bottom: 8px; }
|
||||
.wb-chart-title { font-size: 14px; }
|
||||
.wb-dept-block { border-color: var(--zyt-border); }
|
||||
.wb-dept-card, .wb-ranking-item {
|
||||
background: var(--zyt-surface-subtle); border-color: var(--zyt-border); box-shadow: none;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.wb-ranking-item { margin-bottom: 5px; padding: 7px 10px; }
|
||||
.wb-ranking-rank { background: var(--zyt-accent-soft); color: var(--zyt-primary); }
|
||||
.wb-dept-row { color: var(--zyt-text); border-color: var(--zyt-border); }
|
||||
@media (max-width: 640px) {
|
||||
.wb-hero { gap: 10px; margin-bottom: 14px; }
|
||||
.wb-section-head, .wb-section-body { padding: 12px; }
|
||||
.wb-toolbar { width: 100%; }
|
||||
.wb-toolbar .wb-select { min-width: 0; flex: 1; }
|
||||
.wb-toolbar .wb-select--wide { flex: 1.5; }
|
||||
.wb-kpi, .wb-rank-strip { min-height: 75px; padding: 12px 14px; }
|
||||
.wb-chart-card { padding-inline: 9px; }
|
||||
.wb-chart { max-height: 270px; }
|
||||
.wb-chart-empty { min-height: 180px; }
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user