| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <template>
- <div class="lakala-container">
- <el-container>
- <el-header height="60px">
- <el-menu
- :default-active="activeMenu"
- mode="horizontal"
- @select="handleMenuSelect"
- class="el-menu-horizontal"
- >
- <el-menu-item index="profitShareReceiver">
- <span>分账接收方申请</span>
- </el-menu-item>
- <el-menu-item index="profitShareApply">
- <span>分帐申请</span>
- </el-menu-item>
- </el-menu>
- </el-header>
-
- <el-main>
- <component
- :is="currentComponent"
- :axios-instance="axiosInstance"
- />
- </el-main>
- </el-container>
- </div>
- </template>
- <script>
- import ProfitShareReceiver from './ProfitShareReceiver.vue'
- import ProfitShareApply from './ProfitShareApply.vue'
- export default {
- name: 'LakalaAdmin',
- components: {
- ProfitShareReceiver,
- ProfitShareApply
- },
- props: {
- axiosInstance: {
- type: Object,
- default: null
- }
- },
- data() {
- return {
- activeMenu: 'profitShareReceiver'
- }
- },
- computed: {
- currentComponent() {
- if (this.activeMenu === 'profitShareReceiver') {
- return 'ProfitShareReceiver'
- } else if (this.activeMenu === 'profitShareApply') {
- return 'ProfitShareApply'
- }
- return 'ProfitShareReceiver'
- }
- },
- methods: {
- handleMenuSelect(key) {
- this.activeMenu = key
- }
- }
- }
- </script>
- <style scoped>
- .lakala-container {
- padding: 0;
- height: calc(100vh - 120px);
- }
- .el-menu-horizontal {
- height: 60px;
- font-size: 16px;
- }
- .el-header {
- padding: 0;
- background-color: #fff;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- }
- .el-main {
- padding: 30px;
- background: #fff;
- margin: 20px;
- border-radius: 8px;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- flex: 1;
- }
- </style>
|