fix: repair platform admin navigation UI
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<a-space class="brand">
|
<a-space class="brand">
|
||||||
<img src="@/assets/logo.svg" alt="和气平台" />
|
<img :src="logoUrl" alt="和气平台" />
|
||||||
<a-typography-title :heading="5" :style="{ margin: 0 }">和气平台总后台</a-typography-title>
|
<a-typography-title :heading="5" :style="{ margin: 0 }">和气平台总后台</a-typography-title>
|
||||||
<icon-menu-fold v-if="!topMenu && appStore.device === 'mobile'" class="menu-trigger" @click="toggleDrawerMenu" />
|
<icon-menu-fold v-if="!topMenu && appStore.device === 'mobile'" class="menu-trigger" @click="toggleDrawerMenu" />
|
||||||
</a-space>
|
</a-space>
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useDark, useFullscreen, useToggle } from '@vueuse/core';
|
import { useDark, useFullscreen, useToggle } from '@vueuse/core';
|
||||||
import { computed, inject } from 'vue';
|
import { computed, inject } from 'vue';
|
||||||
|
import logoUrl from '@/assets/logo.svg?url';
|
||||||
import { resolveAvatarUrl } from '@/constants/avatar';
|
import { resolveAvatarUrl } from '@/constants/avatar';
|
||||||
import useUser from '@/hooks/user';
|
import useUser from '@/hooks/user';
|
||||||
import { useAppStore, useUserStore } from '@/store';
|
import { useAppStore, useUserStore } from '@/store';
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view v-slot="{ Component, route }">
|
<router-view v-slot="{ Component, route }">
|
||||||
<transition name="fade" mode="out-in" appear>
|
|
||||||
<component
|
<component
|
||||||
:is="Component"
|
:is="Component"
|
||||||
v-if="route.meta.ignoreCache"
|
v-if="route.meta.ignoreCache"
|
||||||
@@ -9,7 +8,6 @@
|
|||||||
<keep-alive v-else :include="cacheList">
|
<keep-alive v-else :include="cacheList">
|
||||||
<component :is="Component" :key="route.fullPath" />
|
<component :is="Component" :key="route.fullPath" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</transition>
|
|
||||||
</router-view>
|
</router-view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ const routes: AppRouteRecordRaw[] = [
|
|||||||
child('gasorder', 'confirms', 'confirms', '确认记录', '/gasorder_confirm', 'delivery', true, 'gasorder-orders'),
|
child('gasorder', 'confirms', 'confirms', '确认记录', '/gasorder_confirm', 'delivery', true, 'gasorder-orders'),
|
||||||
child('gasorder', 'payments', 'payments', '订单支付记录', '/gasorder_payment', 'delivery', true, 'gasorder-orders'),
|
child('gasorder', 'payments', 'payments', '订单支付记录', '/gasorder_payment', 'delivery', true, 'gasorder-orders'),
|
||||||
], 'delivery'),
|
], 'delivery'),
|
||||||
group('ec', 'ec', '商城管理', 'icon-shopping-cart', 70, [
|
group('ec', 'ec', '商城管理', 'icon-gift', 70, [
|
||||||
child('ec', 'categories', 'categories', '商品分类', '/ec_category'),
|
child('ec', 'categories', 'categories', '商品分类', '/ec_category'),
|
||||||
child('ec', 'products', 'products', '商品', '/ec_product'),
|
child('ec', 'products', 'products', '商品', '/ec_product'),
|
||||||
child('ec', 'attributes', 'attributes', '商品属性', '/ec_product_attribute', 'ec', true, 'ec-products'),
|
child('ec', 'attributes', 'attributes', '商品属性', '/ec_product_attribute', 'ec', true, 'ec-products'),
|
||||||
@@ -114,7 +114,7 @@ const routes: AppRouteRecordRaw[] = [
|
|||||||
child('wallet', 'refunds', 'refunds', '退款记录', '/wallet_refund'),
|
child('wallet', 'refunds', 'refunds', '退款记录', '/wallet_refund'),
|
||||||
child('wallet', 'apply-cash', 'apply-cash', '提现申请', '/wallet_apply_cash'),
|
child('wallet', 'apply-cash', 'apply-cash', '提现申请', '/wallet_apply_cash'),
|
||||||
]),
|
]),
|
||||||
group('finance', 'finance', '财务管理', 'icon-fund', 90, [
|
group('finance', 'finance', '财务管理', 'icon-bar-chart', 90, [
|
||||||
child('finance', 'payments', 'payments', '支付记录', '/fin_payment'),
|
child('finance', 'payments', 'payments', '支付记录', '/fin_payment'),
|
||||||
child('finance', 'settlements', 'settlements', '财务结算', '/fin_settlement'),
|
child('finance', 'settlements', 'settlements', '财务结算', '/fin_settlement'),
|
||||||
child('finance', 'reconciliations', 'reconciliations', '财务对账', '/fin_reconciliation'),
|
child('finance', 'reconciliations', 'reconciliations', '财务对账', '/fin_reconciliation'),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img alt="和气平台" src="@/assets/logo.svg" />
|
<img alt="和气平台" :src="logoUrl" />
|
||||||
<div class="logo-text">和气平台总后台</div>
|
<div class="logo-text">和气平台总后台</div>
|
||||||
</div>
|
</div>
|
||||||
<LoginBanner />
|
<LoginBanner />
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import logoUrl from '@/assets/logo.svg?url';
|
||||||
import Footer from '@/components/footer/index.vue';
|
import Footer from '@/components/footer/index.vue';
|
||||||
import LoginBanner from './components/login-banner.vue';
|
import LoginBanner from './components/login-banner.vue';
|
||||||
import LoginForm from './components/login-form.vue';
|
import LoginForm from './components/login-form.vue';
|
||||||
|
|||||||
@@ -46,7 +46,6 @@
|
|||||||
</a-table-column>
|
</a-table-column>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
<a-empty v-if="!loading && list.length === 0" description="暂无符合条件的数据" />
|
|
||||||
<div class="pagination"><a-pagination :total="total" :current="page" :page-size="pageSize" show-total show-jumper @change="changePage" /></div>
|
<div class="pagination"><a-pagination :total="total" :current="page" :page-size="pageSize" show-total show-jumper @change="changePage" /></div>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<TreePage v-if="definition.pageKind === 'tree'" :definition="definition" />
|
<TreePage
|
||||||
<CrudListPage v-else :definition="definition" />
|
v-if="definition.pageKind === 'tree'"
|
||||||
|
:key="definition.resource"
|
||||||
|
:definition="definition"
|
||||||
|
/>
|
||||||
|
<CrudListPage
|
||||||
|
v-else
|
||||||
|
:key="definition.resource"
|
||||||
|
:definition="definition"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
Reference in New Issue
Block a user