| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template>
- <div class="module-container">
- <el-container>
- <el-header height="60px">
- <el-menu
- :default-active="activeMenu"
- mode="horizontal"
- @select="handleMenuSelect"
- >
- <el-menu-item index="pointsLog">
- <span>积分明细</span>
- </el-menu-item>
- </el-menu>
- </el-header>
-
- <el-main>
- <PointsLogComponent
- :axios-instance="axiosInstance"
- />
- </el-main>
- </el-container>
- </div>
- </template>
- <script>
- import PointsLogComponent from './PointsLog.vue'
- export default {
- name: 'PointsAdmin',
- components: {
- PointsLogComponent
- },
- props: {
- axiosInstance: {
- type: Object,
- default: null
- }
- },
- data() {
- return {
- activeMenu: 'pointsLog'
- }
- },
- methods: {
- handleMenuSelect(key) {
- this.activeMenu = key
- }
- }
- }
- </script>
- <style scoped>
- .module-container {
- padding: 0;
- height: calc(100vh - 120px);
- }
- .el-menu {
- 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>
|