- 后端新增/chart-data接口用于获取图表所需数据 - 实现近6个月出入库金额统计和药品分类占比功能 - 前端集成echarts图表组件展示数据可视化 - 添加月度出入库柱状图和药品分类饼图 - 优化仪表盘界面布局和样式
26 lines
738 B
JavaScript
26 lines
738 B
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import ECharts from 'vue-echarts'
|
|
import 'echarts'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import permission from './directives/permission'
|
|
import './styles/global.scss'
|
|
|
|
const app = createApp(App)
|
|
|
|
// 注册所有 Element Plus 图标
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.component('v-chart', ECharts)
|
|
app.use(createPinia())
|
|
app.use(router)
|
|
app.use(ElementPlus, { size: 'default' })
|
|
app.directive('permission', permission)
|
|
app.mount('#app')
|