guhongwei 5 年之前
父節點
當前提交
5f9d52ddc9
共有 2 個文件被更改,包括 55 次插入0 次删除
  1. 6 0
      src/router/index.js
  2. 49 0
      src/views/user/detail.vue

+ 6 - 0
src/router/index.js

@@ -24,6 +24,12 @@ const routes = [
     meta: { title: '个人&企业用户管理' },
     component: () => import('../views/user/index.vue'),
   },
+  // 添加+修改
+  {
+    path: '/user/detail',
+    meta: { title: '个人&企业用户信息管理' },
+    component: () => import('../views/user/detail.vue'),
+  },
   // 专家
   {
     path: '/user/exportIndex',

+ 49 - 0
src/views/user/detail.vue

@@ -0,0 +1,49 @@
+<template>
+  <div id="detail">
+    <el-row>
+      <el-col :span="24" class="info">
+        <el-col :span="24" class="top">
+          <topInfo :topTitle="pageTitle"></topInfo>
+        </el-col>
+        <el-col :span="24" class="main">
+          注冊
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import topInfo from '@/layout/public/top.vue';
+export default {
+  name: 'detail',
+  props: {},
+  components: {
+    topInfo, //头部标题
+  },
+  data: () => ({
+    topTitle: '用户添加',
+  }),
+  created() {},
+  methods: {},
+  computed: {
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.top {
+  height: 40px;
+  background-color: #f5f5f5;
+}
+.main {
+  width: 97%;
+  margin: 0 15px;
+}
+</style>