wuhongyu 5 năm trước cách đây
mục cha
commit
adeac027ad

+ 11 - 19
src/router/index.js

@@ -49,21 +49,6 @@ const routes = [
     meta: { title: '发布产品', isleftarrow: true },
     meta: { title: '发布产品', isleftarrow: true },
     component: () => import('../views/market/detail.vue'),
     component: () => import('../views/market/detail.vue'),
   },
   },
-  // 科技超市-发布产品
-  {
-    path: '/myfabu/detail',
-    name: 'myfabu_detail',
-    meta: { title: '我的发布', isleftarrow: true },
-    component: () => import('../views/myfabu/detail.vue'),
-  },
-
-  // // 我的发布
-  // {
-  //   path: "/myfabu/index",
-  //   name: "myfabu_index",
-  //   meta: { title: "我的发布", isleftarrow: true },
-  //   component: () => import("../views/myfabu/index.vue"),
-  // },
 
 
   // 我的发布
   // 我的发布
   {
   {
@@ -73,14 +58,22 @@ const routes = [
     component: () => import('../views/userCenter/myProduct/index.vue'),
     component: () => import('../views/userCenter/myProduct/index.vue'),
   },
   },
 
 
+  // 发布产品
+  {
+    path: '/detail',
+    name: 'myfabu_detail',
+    meta: { title: '我的发布', isleftarrow: true },
+    component: () => import('../views/myfabu/detail.vue'),
+  },
+
   // 事项管理
   // 事项管理
+  // 用户-事项管理
   {
   {
-    path: '/matter/index',
+    path: '/userCenter/matter/index',
     name: 'matter_index',
     name: 'matter_index',
     meta: { title: '事项管理', isleftarrow: true },
     meta: { title: '事项管理', isleftarrow: true },
-    component: () => import('../views/matter/index.vue'),
+    component: () => import('../views/userCenter/matter/index.vue'),
   },
   },
-
   // // 个人中心
   // // 个人中心
   // {
   // {
   //   path: '/user/index',
   //   path: '/user/index',
@@ -88,7 +81,6 @@ const routes = [
   //   meta: { title: '个人中心', isleftarrow: true },
   //   meta: { title: '个人中心', isleftarrow: true },
   //   component: () => import('../views/user/index.vue'),
   //   component: () => import('../views/user/index.vue'),
   // },
   // },
-
   ,
   ,
 ];
 ];
 
 

+ 1 - 1
src/views/home/parts/clickBtn.vue

@@ -24,7 +24,7 @@
           :span="11"
           :span="11"
           class="btn"
           class="btn"
           v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
           v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
-          @click.native="$router.push({ path: '/myfabu/matter' })"
+          @click.native="$router.push({ path: '/userCenter/matter/index' })"
         >
         >
           <p><i class="el-icon-notebook-1"></i></p>
           <p><i class="el-icon-notebook-1"></i></p>
           <el-button type="primary" round>事项管理</el-button>
           <el-button type="primary" round>事项管理</el-button>

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

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

+ 0 - 19
src/views/matter/parts/Negotiation.vue

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

+ 0 - 19
src/views/matter/parts/auditList.vue

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

+ 0 - 19
src/views/matter/parts/jiaoyilist.vue

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

+ 0 - 19
src/views/matter/parts/myallList.vue

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

+ 30 - 0
src/views/userCenter/matter/index.vue

@@ -0,0 +1,30 @@
+<template>
+  <div id="index">
+    <p>事项管理</p>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'index',
+  props: {},
+  components: {},
+  data: function() {
+    return {};
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped></style>