Browse Source

更新菜单不同状态显示列表

guhongwei 5 years ago
parent
commit
e4c600e2af

+ 5 - 1
src/layout/companyidentify/newsInfo.vue

@@ -33,7 +33,11 @@ export default {
   components: {},
   data: () => ({}),
   created() {},
-  computed: {},
+  computed: {
+    status() {
+      return this.$route.params.status;
+    },
+  },
   methods: {
     handleClick(id) {
       this.$emit('handleClick', id);

+ 5 - 1
src/layout/companyup/newsInfo.vue

@@ -31,7 +31,11 @@ export default {
   components: {},
   data: () => ({}),
   created() {},
-  computed: {},
+  computed: {
+    status() {
+      return this.$route.params.status;
+    },
+  },
   methods: {
     handleClick(id) {
       this.$emit('handleClick', id);

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

@@ -18,8 +18,8 @@
           <span>金融机构</span>
         </template>
         <el-menu-item-group>
-          <el-menu-item index="/institution/index">银行</el-menu-item>
-          <el-menu-item index="/institution/index">非银行</el-menu-item>
+          <el-menu-item index="/institution/index/0">银行</el-menu-item>
+          <el-menu-item index="/institution/index/1">非银行</el-menu-item>
         </el-menu-item-group>
       </el-submenu>
       <el-submenu index="3">
@@ -38,9 +38,9 @@
           <span>企业信息管理</span>
         </template>
         <el-menu-item-group>
-          <el-menu-item index="/companyup/index">待审核</el-menu-item>
-          <el-menu-item index="/companyup/index">审核通过</el-menu-item>
-          <el-menu-item index="/companyup/index">审核拒绝</el-menu-item>
+          <el-menu-item index="/companyup/index/0">待审核</el-menu-item>
+          <el-menu-item index="/companyup/index/1">审核通过</el-menu-item>
+          <el-menu-item index="/companyup/index/2">审核拒绝</el-menu-item>
         </el-menu-item-group>
       </el-submenu>
       <el-submenu index="5">
@@ -49,9 +49,9 @@
           <span>企业认证管理</span>
         </template>
         <el-menu-item-group>
-          <el-menu-item index="/companyidentify/index">待审核</el-menu-item>
-          <el-menu-item index="/companyidentify/index">审核通过</el-menu-item>
-          <el-menu-item index="/companyidentify/index">审核拒绝</el-menu-item>
+          <el-menu-item index="/companyidentify/index/0">待审核</el-menu-item>
+          <el-menu-item index="/companyidentify/index/1">审核通过</el-menu-item>
+          <el-menu-item index="/companyidentify/index/2">审核拒绝</el-menu-item>
         </el-menu-item-group>
       </el-submenu>
     </el-menu>

+ 3 - 3
src/router/index.js

@@ -20,7 +20,7 @@ const routes = [
   },
   // 金融机构
   {
-    path: '/institution/index',
+    path: '/institution/index/:status',
     component: () => import('../views/institution/index.vue'),
   },
   // 金融机构添加
@@ -45,7 +45,7 @@ const routes = [
   },
   // 企业信息管理-列表
   {
-    path: '/companyup/index',
+    path: '/companyup/index/:status',
     component: () => import('../views/companyup/index.vue'),
   },
   // 企业信息管理-详情
@@ -55,7 +55,7 @@ const routes = [
   },
   // 企业认证管理
   {
-    path: '/companyidentify/index',
+    path: '/companyidentify/index/:status',
     component: () => import('../views/companyidentify/index.vue'),
   },
   // 企业认证管理-审核

+ 5 - 1
src/views/institution/index.vue

@@ -40,7 +40,11 @@ export default {
     ],
   }),
   created() {},
-  computed: {},
+  computed: {
+    status() {
+      return this.$route.params.status;
+    },
+  },
   methods: {
     // 修改
     handleClick(id) {