lrf402788946 %!s(int64=5) %!d(string=hai) anos
pai
achega
87f373c9f7
Modificáronse 2 ficheiros con 24 adicións e 1 borrados
  1. 19 0
      config/menu-config.js
  2. 5 1
      layout/admin/list-frame.vue

+ 19 - 0
config/menu-config.js

@@ -14,4 +14,23 @@ export const devMenu = [
       },
     ],
   },
+  {
+    path: '/teacher/index',
+    name: '教师管理',
+    module: 'center',
+  },
+  {
+    path: '/work/index',
+    name: '作业管理',
+    module: 'center',
+  },
+  {
+    path: '',
+    name: '调查问卷',
+    module: 'center',
+    children: [
+      { path: '/questionnaire/index', name: '问卷管理' },
+      { path: '/itembank/index', name: '题库管理' },
+    ],
+  },
 ];

+ 5 - 1
layout/admin/list-frame.vue

@@ -3,7 +3,7 @@
     <el-scrollbar style="height:100%">
       <el-card style="background:rgb(231, 224, 235);border-radius: 60px;" shadow="hover">
         <el-row>
-          <el-col :span="24" class="title">
+          <el-col :span="20" class="title">
             <span v-if="returns">
               <el-button
                 size="mini"
@@ -19,6 +19,9 @@
               {{ title }}
             </slot>
           </el-col>
+          <el-col :span="4" class="title" v-if="needAdd">
+            <el-button type="primary" icon="el-icon-plus" size="mini" @click="$emit('add')">新增</el-button>
+          </el-col>
         </el-row>
         <slot name="filter" v-if="needFilter">
           <el-form :inline="true">
@@ -70,6 +73,7 @@ export default {
     needPag: { type: Boolean, default: true },
     returns: { type: null, default: null },
     needFilter: { type: Boolean, default: true },
+    needAdd: { type: Boolean, default: true },
   },
   components: {},
   data: () => ({