Files
klp-oa/klp-ui/src/App.vue
砂糖 0f92560e62 feat(组件): 重构产品和原材料选择器为卡片布局
- 将产品和原材料选择器的表格布局替换为卡片布局,提升用户体验
- 添加卡片选中状态样式和交互逻辑
- 优化多选功能,使用复选框代替表格选择列
- 增加空数据提示和加载状态
- 移除未使用的分类数据初始化代码
2025-11-17 16:24:28 +08:00

40 lines
1.0 KiB
Vue

<template>
<div id="app">
<router-view />
<theme-picker />
</div>
</template>
<script>
import ThemePicker from "@/components/ThemePicker";
export default {
name: "App",
components: { ThemePicker },
created() {
// 应用启动时全局初始化分类数据
if (this.$store.getters.token) {
// this.$store.dispatch('category/getCategoryList');
// this.$store.dispatch('category/getProductMap');
// this.$store.dispatch('category/getRawMaterialMap');
// this.$store.dispatch('category/getBomMap');
// this.$store.dispatch('finance/getFinancialAccounts');
// this.$store.dispatch('craft/getProcessList');
}
},
metaInfo() {
return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
titleTemplate: title => {
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
}
}
}
};
</script>
<style scoped>
#app .theme-picker {
display: none;
}
</style>