guhongwei 5 lat temu
rodzic
commit
46df866e3b

+ 17 - 2
src/layout/layout-part/newmenu.vue

@@ -32,7 +32,22 @@
 </template>
 
 <script>
-import { index, personnel, government, record, policy, serve, enterprise, duijiehui, site, user, links, defaultMenu, vip } from '@/util/role_menu.js';
+import {
+  index,
+  personnel,
+  government,
+  record,
+  policy,
+  serve,
+  enterprise,
+  duijiehui,
+  site,
+  user,
+  links,
+  defaultMenu,
+  vip,
+  technical,
+} from '@/util/role_menu.js';
 import * as menus from '@/util/role_menu.js';
 import { mapState, createNamespacedHelpers } from 'vuex';
 const { mapActions } = createNamespacedHelpers('login');
@@ -54,7 +69,7 @@ export default {
     async search() {
       if (!this.user.uid) return;
       if (this.user.role == '1') {
-        this.menu.push(index, ...defaultMenu, vip, personnel, government, record, policy, serve, enterprise, duijiehui, site, user, links);
+        this.menu.push(index, ...defaultMenu, user, vip, personnel, government, record, policy, serve, technical, enterprise, duijiehui, site, links);
         return;
       }
       const res = await this.toGetMenu({ id: this.user.uid });

+ 6 - 0
src/router/index.js

@@ -256,6 +256,12 @@ const routes = [
     meta: { title: 'vip管理' },
     component: () => import('../views/vip-user/index.vue'),
   },
+  // 5-12新增
+  // 技术培训
+  {
+    path: '/technical/index',
+    component: () => import('../views/technical/index.vue'),
+  },
 ];
 
 const router = new VueRouter({

+ 4 - 1
src/util/role_menu.js

@@ -85,7 +85,10 @@ export const links = {
   name: '友情链接管理',
   path: '/links/index',
 };
-
+export const technical = {
+  name: '技术培训',
+  path: '/technical/index',
+};
 export const defaultMenu = [
   { name: '权限管理', path: '/permission/index' },
   { name: '菜单管理', path: '/menu' },

+ 31 - 0
src/views/technical/index.vue

@@ -0,0 +1,31 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="top">
+        <topInfo :topTitle="topTitle"></topInfo>
+      </el-col>
+      <el-col :span="24" class="main">
+        主体
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import topInfo from '@/layout/public/top.vue';
+export default {
+  name: 'index',
+  props: {},
+  components: {
+    topInfo, //头部信息
+  },
+  data: () => ({
+    topTitle: '技术培训',
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>