reloaded 4 anni fa
parent
commit
0fb7b5da28

+ 2 - 2
src/layout/layout-part/menus.vue

@@ -61,9 +61,9 @@ export default {
     search() {
       let menu = [];
       if (this.user.role == '1') {
-        menu.push(index, user, role, room);
+        menu.push(index, user, role, room, question);
       } else {
-        menu.push(index, live);
+        menu.push(index, live, question);
       }
       this.$set(this, `menu`, menu);
     },

+ 5 - 0
src/router/index.js

@@ -81,6 +81,11 @@ const routes = [
     meta: { title: '添加' },
     component: () => import('../views/test/detail.vue'),
   },
+  {
+    path: '/question/index',
+    meta: { title: '问卷管理' },
+    component: () => import('../views/question/index.vue'),
+  },
   {
     path: '/login',
     name: 'login',

+ 5 - 0
src/util/role_menu.js

@@ -33,3 +33,8 @@ export const test = {
   path: '/test/index',
   icon: 'iconfont icontongji',
 };
+export const question = {
+  name: '问卷管理',
+  path: '/question/index',
+  icon: 'iconfont icontongji',
+};

+ 19 - 0
src/views/question/index.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="index">
+    <p>index</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'index',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>