shaogen1995 hace 3 años
commit
ea96e78950

+ 5 - 0
houtai/.editorconfig

@@ -0,0 +1,5 @@
+[*.{js,jsx,ts,tsx,vue}]
+indent_style = space
+indent_size = 2
+trim_trailing_whitespace = true
+insert_final_newline = true

+ 23 - 0
houtai/.gitignore

@@ -0,0 +1,23 @@
+.DS_Store
+node_modules
+/dist
+
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?

+ 24 - 0
houtai/README.md

@@ -0,0 +1,24 @@
+# houtai
+
+## Project setup
+```
+npm install
+```
+
+### Compiles and hot-reloads for development
+```
+npm run serve
+```
+
+### Compiles and minifies for production
+```
+npm run build
+```
+
+### Lints and fixes files
+```
+npm run lint
+```
+
+### Customize configuration
+See [Configuration Reference](https://cli.vuejs.org/config/).

+ 5 - 0
houtai/babel.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  presets: [
+    '@vue/cli-plugin-babel/preset'
+  ]
+}

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 29916 - 0
houtai/package-lock.json


+ 68 - 0
houtai/package.json

@@ -0,0 +1,68 @@
+{
+  "name": "houtai",
+  "version": "0.1.0",
+  "private": true,
+  "scripts": {
+    "serve": "vue-cli-service serve",
+    "build": "vue-cli-service build",
+    "lint": "vue-cli-service lint"
+  },
+  "dependencies": {
+    "axios": "^0.24.0",
+    "Base64": "^1.1.0",
+    "core-js": "^3.6.5",
+    "element-ui": "^2.15.6",
+    "js-base64": "^3.7.2",
+    "moment": "^2.29.1",
+    "vant": "^2.12.45",
+    "vue": "^2.6.11",
+    "vue-router": "^3.2.0",
+    "wangeditor": "^4.7.11"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "~4.5.0",
+    "@vue/cli-plugin-eslint": "~4.5.0",
+    "@vue/cli-plugin-router": "~4.5.0",
+    "@vue/cli-service": "~4.5.0",
+    "@vue/eslint-config-standard": "^5.1.2",
+    "babel-eslint": "^10.1.0",
+    "eslint": "^6.7.2",
+    "eslint-plugin-import": "^2.20.2",
+    "eslint-plugin-node": "^11.1.0",
+    "eslint-plugin-promise": "^4.2.1",
+    "eslint-plugin-standard": "^4.0.0",
+    "eslint-plugin-vue": "^6.2.2",
+    "less": "^3.0.4",
+    "less-loader": "^5.0.0",
+    "lint-staged": "^9.5.0",
+    "vue-template-compiler": "^2.6.11"
+  },
+  "eslintConfig": {
+    "root": true,
+    "env": {
+      "node": true
+    },
+    "extends": [
+      "plugin:vue/essential",
+      "@vue/standard"
+    ],
+    "parserOptions": {
+      "parser": "babel-eslint"
+    },
+    "rules": {}
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not dead"
+  ],
+  "gitHooks": {
+    "pre-commit": "lint-staged"
+  },
+  "lint-staged": {
+    "*.{js,jsx,vue}": [
+      "vue-cli-service lint",
+      "git add"
+    ]
+  }
+}

BIN
houtai/public/favicon.ico


+ 17 - 0
houtai/public/index.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <title>传统村落一张图-管理后台</title>
+  </head>
+  <body>
+    <noscript>
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
+    </noscript>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+</html>

+ 9 - 0
houtai/src/App.vue

@@ -0,0 +1,9 @@
+<template>
+  <div id="app">
+    <Router-view/>
+  </div>
+</template>
+
+<style lang="less">
+
+</style>

+ 17 - 0
houtai/src/apis/login.js

@@ -0,0 +1,17 @@
+import axios from '../utils/request'
+// 用户登录接口
+export const userLogin = (data) => {
+  return axios({
+    method: 'post',
+    url: '/admin/login',
+    data
+  })
+}
+// 修改密码
+export const updatePwd = (data) => {
+  return axios({
+    method: 'post',
+    url: '/sys/user/updatePwd',
+    data
+  })
+}

+ 53 - 0
houtai/src/apis/tab1.js

@@ -0,0 +1,53 @@
+import axios from '../utils/request'
+// 获取列表
+export const goodsList = (data) => {
+  return axios({
+    method: 'post',
+    url: '/cms/goods/list',
+    data
+  })
+}
+// 点击删除
+export const goodsRemove = (id) => {
+  return axios({
+    url: `/cms/goods/remove/${id}`
+  })
+}
+// 新增、编辑
+export const goodsSave = (data) => {
+  return axios({
+    method: 'post',
+    url: '/cms/goods/save',
+    data
+  })
+}
+// 是否显示
+export const goodsDisplay = (id, display) => {
+  return axios({
+    url: `/cms/goods/display/${id}/${display}`
+  })
+}
+// 排序
+export const goodsSort = (id, sort) => {
+  return axios({
+    url: `/cms/goods/sort/${id}/${sort}`
+  })
+}
+// 设为封面
+export const goodsImgIndex = (id, fileId) => {
+  return axios({
+    url: `/cms/goods/imgIndex/${id}/${fileId}`
+  })
+}
+// 通过id获取详情
+export const goodsDetail = (id) => {
+  return axios({
+    url: `/cms/goods/detail/${id}`
+  })
+}
+// 删除图片
+export const goodsimgRemove = (id) => {
+  return axios({
+    url: `/cms/goods/imgRemove/${id}`
+  })
+}

+ 219 - 0
houtai/src/assets/css/base.css

@@ -0,0 +1,219 @@
+* {
+  margin: 0;
+  padding: 0;
+  box-sizing: border-box;
+}
+body {
+  background-color: transparent;
+}
+ul li {
+  list-style: none;
+}
+a {
+  text-decoration:none ;
+  color: #b9412e;
+}
+.insideTop {
+  position: relative;
+  padding-left: 30px;
+  font-weight: 700;
+  height: 40px;
+  margin-bottom: 12px;
+}
+.insideTop .add{
+  position: absolute;
+  top: -10px;
+  right: 30px;
+}
+.obstruct{
+  position: absolute;
+  left: 0px;
+  top: 60px;
+  width: 100%;
+  background-color: #f2ecde;
+  height: 12px;
+}
+.biaoshi{
+  position: relative;
+  font-style:normal
+}
+.biaoshi::before{
+  position: absolute;
+  top: 0px;
+  left: -92px;
+  content: '*';
+  color: #F56C6C;
+}
+
+.el-button--primary{
+  background-color: #b9412e;
+  border-color: #b9412e;
+}
+.el-button--primary:focus, .el-button--primary:hover {
+  background: #a30014;
+  border-color: #a30014;
+}
+.el-input.is-active .el-input__inner, .el-input__inner:focus {
+  border-color: #b9412e;
+}
+.cell{
+  text-align: center !important;
+}
+.table .el-input__inner{
+  text-align: center;
+}
+.el-input__inner{
+  line-height: normal;
+}
+input::-webkit-outer-spin-button,
+input::-webkit-inner-spin-button {
+-webkit-appearance: none;
+}
+input[type="number"] {
+-moz-appearance: textfield;
+}
+.el-dialog{
+  min-width: 652px;
+}
+.el-upload__tip{
+  font-size: 14px;
+}
+.el-range-editor.is-active, .el-range-editor.is-active:hover{
+  border-color: #b9412e;
+}
+.el-date-table td.today span{
+  color: #b9412e;
+}
+.el-date-table td.end-date span, .el-date-table td.start-date span{
+  background-color: #b9412e;
+}
+.el-date-table td.available:hover{
+  color: #b9412e;
+}
+.el-select .el-input__inner:focus{
+  border-color: #b9412e;
+}
+.el-select-dropdown__item.selected{
+  color: #b9412e;
+}
+.el-select .el-input.is-focus .el-input__inner{
+  border-color: #b9412e;
+}
+.el-table--fit{
+  border-top: 1px solid #EBEEF5;
+}
+.table_img{
+  width: 100px;
+  height: 80px;
+  object-fit: cover;
+  border: 3px solid #ccc;
+}
+.table_name{
+  cursor: pointer;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;    
+}
+
+.el-button--text:focus, .el-button--text:hover{
+  color: #e06a58;
+}
+.upHint{
+  color: black;
+  height: 20px;
+}
+.el-radio__input.is-checked+.el-radio__label{
+  color: #964134;
+}
+.el-radio__input.is-checked .el-radio__inner{
+  border-color: #964134;
+  background: #964134;
+}
+.el-image__preview{
+  border: 5px solid #cccccc;
+  object-fit: cover;
+}
+.el-pager li{
+  border-radius: 5px;
+  margin: 0 5px;
+  min-width: 28px;
+  background-color: #f4f4f5;
+}
+.el-pagination .btn-next, .el-pagination .btn-prev{
+  background-color: #f4f4f5;
+  padding: 0;
+  min-width: 28px;
+}
+.el-pagination__sizes .el-input .el-input__inner:hover{
+  border-color: #b9412e;
+}
+.el-pager li:hover{
+  color: #b9412e;
+}
+.el-pager li.active{
+  color: #fff;
+  background-color: #b9412e;
+}
+.el-pagination button:hover{
+  color: #b9412e;
+}
+.el-upload--picture-card:hover, .el-upload:focus{
+  color: #b9412e;
+}
+.w-e-menu {
+	z-index: 2 !important;
+}
+.w-e-text-container {
+	z-index: 1 !important;
+}
+.w-e-toolbar {
+	z-index: 10 !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(18) {
+	display: none !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(19) {
+	display: none !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(13) {
+	display: none !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(14) {
+	display: none !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(16) {
+	display: none !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(20) {
+	display: none !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(21) {
+	display: none !important;
+}
+.w-e-toolbar .w-e-menu:nth-of-type(26) {
+	display: none !important;
+}
+.avatar-uploader .el-upload-list__item-name{
+  display: none;
+}
+.avatar-uploader .el-upload-list__item.is-success .el-upload-list__item-status-label{
+  display: none;
+}
+.el-upload-list__item .el-progress{
+  width: 500px;
+  position: static;
+  margin-bottom: 15px;
+}
+.el-upload-list__item{
+  width: 500px;
+}
+.el-month-table td.end-date .cell, .el-month-table td.start-date .cell{
+  background-color: #b9412e;
+}
+
+.el-month-table td.today .cell{
+  color: #b9412e;
+}
+.el-message-box__title{
+  color: #b9412e;
+}

BIN
houtai/src/assets/img/bg.jpg


BIN
houtai/src/assets/imgAdd/comment.png


BIN
houtai/src/assets/imgAdd/like.png


BIN
houtai/src/assets/imgAdd/likeAc.png


BIN
houtai/src/assets/imgAdd/mesBac.png


BIN
houtai/src/assets/imgAdd/touxiang.png


+ 21 - 0
houtai/src/main.js

@@ -0,0 +1,21 @@
+import Vue from 'vue'
+import ElementUI from 'element-ui'
+import 'element-ui/lib/theme-chalk/index.css'
+import App from './App.vue'
+import router from './router'
+import './assets/css/base.css'
+
+Vue.config.productionTip = false
+// const imgErr = {
+//   data () {
+//     return {
+//       defaultImg: 'this.src="' + require('./assets/img/IMGerror.png') + '"'
+//     }
+//   }
+// }
+// Vue.mixin(imgErr)
+Vue.use(ElementUI)
+new Vue({
+  router,
+  render: h => h(App)
+}).$mount('#app')

+ 71 - 0
houtai/src/router/index.js

@@ -0,0 +1,71 @@
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+// import { Message } from 'element-ui'
+Vue.use(VueRouter)
+
+const routes = [
+  {
+    path: '/',
+    name: 'login',
+    component: () => import('../views/login.vue')
+  },
+  {
+    path: '/layout',
+    name: 'layout',
+    component: () => import('../views/layout/index.vue'),
+    children: [
+      {
+        path: 'tab1',
+        name: 'tab1',
+        meta: { myInd: 1 },
+        component: () => import('../views/tab1/index.vue')
+      },
+      {
+        path: 'tab1Main/:id/:k',
+        name: 'tab1Main',
+        meta: { myInd: 1 },
+        component: () => import('../views/tab1Main/index.vue')
+      },
+      {
+        path: 'tab2',
+        name: 'tab2',
+        meta: { myInd: 2 },
+        component: () => import('../views/tab2/index.vue')
+      },
+      {
+        path: 'tab3',
+        name: 'tab3',
+        meta: { myInd: 3 },
+        component: () => import('../views/tab3/index.vue')
+      },
+      {
+        path: 'tab4',
+        name: 'tab4',
+        meta: { myInd: 4 },
+        component: () => import('../views/tab4/index.vue')
+      }
+    ]
+  }
+]
+
+const router = new VueRouter({
+  // mode: 'history',
+  base: process.env.BASE_URL,
+  routes
+})
+
+// router.beforeEach((to, from, next) => {
+//   // 如果是去登录页,不需要验证,直接下一步
+//   if (to.name === 'login') next()
+//   // 否则要有token值才能下一步,不然就返回登录页
+//   else {
+//     const token = localStorage.getItem('JMYZU_token')
+//     if (token) next()
+//     else {
+//       Message.warning('登录失效,请重新登录')
+//       next({ name: 'login' })
+//     }
+//   }
+// })
+
+export default router

+ 106 - 0
houtai/src/utils/pass.js

@@ -0,0 +1,106 @@
+/* eslint-disable */
+function NoToChinese (num) {
+  num = String(num)
+  var chnNumChar = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十']
+  if (num == 0) {
+    return chnNumChar[0]
+  }
+  let tmp = ''
+  for (let i = 0; i < num.length; i++) {
+    const ele = num.charAt(i)
+    tmp += chnNumChar[ele]
+  }
+
+  return tmp
+}
+
+function randomWord (randomFlag, min, max) {
+  let str = ''
+  let range = min
+  const arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
+  // 随机产生
+  if (randomFlag) {
+    range = Math.round(Math.random() * (max - min)) + min
+  }
+  for (var i = 0; i < range; i++) {
+    const pos = Math.round(Math.random() * (arr.length - 1))
+    str += arr[pos]
+  }
+  return str
+}
+
+module.exports = {
+  formatDate: function (time) {
+    var weekArr = ['日', '一', '二', '三', '四', '五', '六']
+    var date = new Date(time)
+    var year = date.getFullYear()
+    var month = date.getMonth() + 1
+    var day = date.getDate()
+    var week = '星期' + weekArr[date.getDay()]
+    if (window.innerWidth < 1700) {
+      return (
+        year +
+        '年' +
+        (String(month).length > 1 ? month : '0' + month) +
+        '月' +
+        (String(day).length > 1 ? day : '0' + day) +
+        '日' +
+        '<br/>' +
+        week
+      )
+    }
+    return (
+      year +
+      '年' +
+      (String(month).length > 1 ? month : '0' + month) +
+      '月' +
+      (String(day).length > 1 ? day : '0' + day) +
+      '日' +
+      ' ' +
+      week
+    )
+  },
+  smoothscrollpos: function (domName) {
+    if (domName == '/') {
+      return window.scrollTo(0, 0)
+    }
+    const smoothscroll = () => {
+      const dom = document.getElementById(domName)
+      // window.scrollTo({
+      //   top:dom.offsetTop - 100,
+      //   left:0,
+      //   behavior: "smooth"
+      // })
+      dom && window.scrollTo(0, dom.offsetTop - 120)
+    }
+    smoothscroll()
+  },
+
+  formatTime: function (time, fan = false) {
+    let t1 = time.split(' ')[0].split('-')
+    if (fan) {
+      t1 = t1.map((item) => {
+        const t = NoToChinese(item)
+        return t
+      })
+    }
+    return t1
+  },
+  encodeStr: function (str, strv = '') {
+    const NUM = 2
+    const front = randomWord(false, 8)
+    const middle = randomWord(false, 8)
+    const end = randomWord(false, 8)
+
+    const str1 = str.substring(0, NUM)
+    const str2 = str.substring(NUM)
+
+    if (strv) {
+      const strv1 = strv.substring(0, NUM)
+      const strv2 = strv.substring(NUM)
+      return [front + str2 + middle + str1 + end, front + strv2 + middle + strv1 + end]
+    }
+
+    return front + str2 + middle + str1 + end
+  }
+}

+ 38 - 0
houtai/src/utils/request.js

@@ -0,0 +1,38 @@
+import axios from 'axios'
+const service = axios.create({
+  // baseURL: 'http://192.168.0.135:8005/', // 本地调试
+  // baseURL: 'http://192.168.0.245:8005/', // 线上调试
+  baseURL: '', // build
+  timeout: 5000
+})
+// 请求拦截器
+service.interceptors.request.use(function (config) {
+  // console.log('触发拦截器')
+  // 在发送请求之前做些什么:看看有没有token,如果有通过请求头的方式传递token
+  const token = localStorage.getItem('JMYZU_token')
+  if (token) { // 判断是否有token,有,则
+    // config.headers['Authorization'] = token
+    config.headers.token = token
+  }
+
+  return config
+}, function (error) {
+  // 对请求错误做些什么
+  return Promise.reject(error)
+})
+
+// 添加响应拦截器
+service.interceptors.response.use(function (response) {
+  // console.log('触发相应拦截器', response)
+  // 对响应数据做点什么--response就是发送每个请求的返回值
+  if (response.data.code === 5001 || response.data.code === 5002) {
+    // Toast.fail('未登录,请先登录')
+    localStorage.removeItem('JMYZU_token')
+  }
+  return response.data
+}, function (error) {
+  // 对响应错误做点什么
+  return Promise.reject(error)
+})
+
+export default service

+ 340 - 0
houtai/src/views/layout/index.vue

@@ -0,0 +1,340 @@
+<template>
+  <div class="layout">
+    <div class="top">
+      <p>江门市中国传统村落一张图管理后台</p>
+      <div class="top_right" @mouseenter='cut=true' @mouseleave='cut=false'>
+        <div class="user">
+          <span>Admin88</span>
+          <!-- 下箭头 -->
+          <div class="pull_down" v-if="cut"></div>
+          <div class="pull_up" v-else></div>
+        </div>
+        <!-- 点击箭头出来的ul -->
+        <ul class="user_handle" v-show="cut">
+          <li @click="isShow = true">修改密码</li>
+          <li @click="outLogin">退出登录</li>
+        </ul>
+      </div>
+    </div>
+    <div class="con">
+      <div class="left">
+        <div class="biaoji el-icon-message" :class="{biaojiAc: $route.meta.myInd===1}">内容管理</div>
+        <ul>
+          <li
+            v-for="item in tab1"
+            :key="item.id"
+            :class="{ active: $route.meta.myInd === item.id }"
+            @click="push(item.url)"
+          >
+            {{ item.name }}
+          </li>
+        </ul>
+        <div class="biaoji el-icon-setting" :class="{biaojiAc: $route.meta.myInd>1}">系统管理</div>
+        <ul>
+          <li
+            v-for="item in tab2"
+            :key="item.id"
+            :class="{ active: $route.meta.myInd === item.id }"
+            @click="push(item.url)"
+          >
+            {{ item.name }}
+          </li>
+        </ul>
+      </div>
+      <!-- 右侧内容 -->
+      <div class="right" @click="cut = false">
+        <Router-view />
+      </div>
+    </div>
+    <!-- 点击修改密码出现弹窗 -->
+    <el-dialog title="修改密码" :visible.sync="isShow" @close="btnX()">
+      <el-form :model="form" label-width="100px" :rules="rules" ref="ruleForm">
+        <el-form-item label="旧密码:" prop="oldPassword">
+          <el-input
+            v-model="form.oldPassword"
+            placeholder="请输入"
+            show-password
+          ></el-input>
+        </el-form-item>
+        <el-form-item label="新密码:" prop="newPassword">
+          <el-input
+            v-model="form.newPassword"
+            placeholder="请输入"
+            show-password
+          ></el-input>
+        </el-form-item>
+        <el-form-item label="确定新密码:" prop="checkPass">
+          <el-input
+            v-model="form.checkPass"
+            placeholder="请输入"
+            show-password
+          ></el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="btnX">取 消</el-button>
+        <el-button type="primary" @click="btnOk">确 定</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { encodeStr } from '../../utils/pass'
+import { Base64 } from 'js-base64'
+import { updatePwd } from '@/apis/login'
+export default {
+  name: 'layout',
+  components: {},
+  data () {
+    // 这里存放数据
+    const validatePass2 = (rule, value, callback) => {
+      if (value !== this.form.newPassword) {
+        callback(new Error('两次输入密码不一致!'))
+      } else {
+        callback()
+      }
+    }
+    return {
+      // 修改密码
+      form: {
+        oldPassword: '',
+        newPassword: '',
+        checkPass: ''
+      },
+      rules: {
+        checkPass: [{ validator: validatePass2, trigger: 'blur' }],
+        oldPassword: [{ required: true, message: '不能为空', trigger: 'blur' }],
+        newPassword: [
+          { required: true, message: '不能为空', trigger: 'blur' },
+          { max: 15, message: '不能超过15个字', trigger: 'blur' }
+        ]
+      },
+      userName: '',
+      cut: false,
+      isShow: false,
+      tab1: [
+        { name: '资料管理', id: 1, url: '/layout/tab1' }
+      ],
+      tab2: [
+        { name: '用户管理', id: 2, url: '/layout/tab2' },
+        { name: '数据统计', id: 3, url: '/layout/tab3' },
+        { name: '操作日志', id: 4, url: '/layout/tab4' }
+      ]
+    }
+  },
+  // 监听属性 类似于data概念
+  computed: {},
+  // 监控data中的数据变化
+  watch: {},
+  // 方法集合
+  methods: {
+    // 修改密码点击取消
+    btnX () {
+      this.$refs.ruleForm.resetFields()
+      this.cut = false
+      this.isShow = false
+      this.form = {
+        oldPassword: '',
+        newPassword: '',
+        checkPass: ''
+      }
+    },
+    // 修改密码点击确定
+    async btnOk () {
+      await this.$refs.ruleForm.validate()
+      try {
+        const data = {
+          oldPassword: encodeStr(Base64.encode(this.form.oldPassword)),
+          newPassword: encodeStr(Base64.encode(this.form.newPassword))
+        }
+        const res = await updatePwd(data)
+        if (res.code === 0) {
+          this.$message.success('修改成功')
+          localStorage.clear('SWKK_token')
+          localStorage.clear('SWKK_userInfo')
+          this.$router.push('/')
+        } else this.$message.error(res.msg)
+      } catch (error) {
+        console.log(error)
+      }
+    },
+    push (url) {
+      this.$router.push(url).catch(() => {})
+    },
+    // 点击退出登录
+    outLogin () {
+      this.cut = false
+      this.$confirm('确定退出吗?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          localStorage.clear('JMYZU_token')
+          localStorage.clear('JMYZU_userName')
+          this.$router.push('/')
+          this.$message.success('退出成功!')
+        })
+        .catch(() => {
+          this.$message.info('已取消')
+        })
+    }
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+    // 获取用户名
+    const res = localStorage.getItem('JMYZU_userName')
+    this.userName = res
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {},
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.layout {
+  .top {
+    padding-left: 50px;
+    position: relative;
+    width: 100%;
+    min-width: 1860px;
+    box-shadow: 1px 3px 3px 3px rgb(196, 177, 177);
+    height: 70px;
+    background-color: #a30014;
+    display: flex;
+    align-items: center;
+    & > P {
+      color: #fff;
+      font-size: 24px;
+      font-weight: 700;
+    }
+    .top_right {
+      width: 150px;
+      position: absolute;
+      right: 30px;
+      top: 0;
+      height: 100%;
+      display: flex;
+      align-items: center;
+      justify-content: space-between;
+      .user {
+        color: #fff;
+        cursor: pointer;
+        position: relative;
+        display: flex;
+        align-items: center;
+        font-weight: 700;
+        img {
+          margin-right: 15px;
+          width: 34px;
+          height: 34px;
+          border-radius: 50%;
+          overflow: hidden;
+        }
+        .pull_down {
+          position: absolute;
+          right: -25px;
+          bottom: 4px;
+          display: inline-block;
+          width: 0;
+          height: 0;
+          border-left: 8px solid transparent;
+          border-right: 8px solid transparent;
+          border-bottom: 8px solid #fff;
+        }
+        .pull_up {
+          cursor: pointer;
+          position: absolute;
+          right: -25px;
+          bottom: 4px;
+          display: inline-block;
+          width: 0;
+          height: 0;
+          border-left: 8px solid transparent;
+          border-right: 8px solid transparent;
+          border-top: 8px solid #fff;
+        }
+      }
+      .user_handle {
+        z-index: 999;
+        padding: 10px 40px;
+        position: absolute;
+        right: 0;
+        bottom: -90px;
+        background-color: #a30014;
+        li {
+          color: #fff;
+          cursor: pointer;
+          margin: 10px 0;
+        }
+        li:hover {
+          color: orange;
+        }
+      }
+    }
+  }
+  .con {
+    min-width: 1860px;
+    min-height: 807px;
+    background-color: #f2ecde;
+    display: flex;
+    width: 100%;
+    padding: 30px;
+    height: calc(100vh - 70px);
+  }
+  .left {
+    min-width: 180px;
+    width: 180px;
+    height: 100%;
+    min-height: 770px;
+    background-color: #fff;
+    padding-top: 30px;
+    .biaoji {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+      height: 40px;
+      width: 90%;
+      border-radius: 0 40px 40px 0;
+      font-weight: 700;
+      font-size: 20px;
+      padding-left: 20px;
+      padding-right: 30px;
+    }
+    .biaojiAc{
+      background-color: #a30014;
+      color: #fff;
+    }
+    ul {
+      li {
+        cursor: pointer;
+        padding-left: 55px;
+        margin: 30px 0;
+        &:hover {
+          color: #a30014;
+        }
+      }
+      .active {
+        color: #a30014;
+      }
+    }
+  }
+  .right {
+    position: relative;
+    padding: 20px 0 0 0;
+    min-width: 1500px;
+    flex: 1;
+    margin-left: 30px;
+    background-color: #fff;
+    height: 100%;
+    min-height: 770px;
+  }
+}
+</style>

+ 159 - 0
houtai/src/views/login.vue

@@ -0,0 +1,159 @@
+<!--  -->
+<template>
+  <div class="login">
+    <div class="top">江门市中国传统村落一张图</div>
+    <div class="con">
+      <div class="left">
+        <p>江门市中国传统村落</p>
+        <p>一张图管理后台</p>
+      </div>
+      <div class="right">
+        <p>欢迎登录</p>
+        <div class="input">
+          <el-form
+            :model="ruleForm"
+            :rules="rules"
+            ref="ruleForm"
+            class="demo-ruleForm"
+          >
+            <el-form-item prop="userName">
+              <el-input
+                v-model="ruleForm.userName"
+                placeholder="账号"
+              ></el-input>
+            </el-form-item>
+            <el-form-item prop="passWord">
+              <el-input
+                v-model="ruleForm.passWord"
+                placeholder="密码"
+              ></el-input>
+            </el-form-item>
+          </el-form>
+        </div>
+        <div class="btn" @click="login">登 录</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+// import { encodeStr } from '../utils/pass'
+// import { Base64 } from 'js-base64'
+// import { userLogin } from '@/apis/login'
+export default {
+  name: 'login',
+  components: {},
+  data () {
+    // 这里存放数据
+    return {
+      ruleForm: {
+        userName: '',
+        passWord: ''
+      },
+      rules: {
+        userName: [{ required: true, message: '不能为空', trigger: 'blur' }],
+        passWord: [{ required: true, message: '不能为空', trigger: 'blur' }]
+      }
+    }
+  },
+  // 监听属性 类似于data概念
+  computed: {},
+  // 监控data中的数据变化
+  watch: {},
+  // 方法集合
+  methods: {
+    async login () {
+      try {
+        await this.$refs.ruleForm.validate()
+        this.$router.push('/layout/tab1')
+      } catch (error) {
+        console.log(error)
+      }
+      // const data = {
+      //   userName: this.from.userName,
+      //   passWord: encodeStr(Base64.encode(this.from.passWord))
+      // }
+      // const res = await userLogin(data)
+      // if (res.code === 0) {
+      //   localStorage.setItem('JMYZU_token', res.data.token)
+      //   localStorage.setItem('JMYZU_userName', res.data.user.userName)
+      //   this.$router.push('/layout/tab1')
+      //   this.$message.success('登录成功')
+      // } else this.$message.warning(res.msg)
+    }
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {},
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {},
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.login {
+  width: 100vw;
+  height: 100vh;
+  background: url("../assets/img/bg.jpg");
+  background-size: cover;
+  .top {
+    letter-spacing: 10px;
+    font-size: 24px;
+    font-weight: 700;
+    color: #fff;
+    padding: 40px 0 0 35px;
+  }
+  .con {
+    display: flex;
+    margin: 180px auto 0;
+    width: 700px;
+    height: 400px;
+    .left {
+      display: flex;
+      flex-direction: column;
+      justify-content: center;
+      width: 350px;
+      height: 100%;
+      background-color: rgba(163, 0, 20, 0.8);
+      & > p {
+        width: 80%;
+        margin: 0 auto;
+        margin-bottom: 30px;
+        color: #fff;
+        font-weight: 700;
+        text-align: center;
+        font-size: 30px;
+      }
+    }
+    .right {
+      width: 350px;
+      background-color: rgba(255, 255, 255, 0.8);
+      & > p {
+        font-size: 24px;
+        text-align: center;
+        margin-top: 50px;
+      }
+      .input {
+        width: 90%;
+        margin: 50px auto;
+      }
+      .btn {
+        cursor: pointer;
+        width: 90%;
+        height: 40px;
+        line-height: 40px;
+        text-align: center;
+        margin: 50px auto 0;
+        background-color: #b9412e;
+        border-radius: 8px;
+        color: #fff;
+      }
+    }
+  }
+}
+</style>

+ 105 - 0
houtai/src/views/tab1/index.vue

@@ -0,0 +1,105 @@
+<template>
+  <div class="tab1">
+    <div class="insideTop">资料管理</div>
+    <div class="obstruct"></div>
+    <div class="conten">
+      <div class="search">
+        <span>村落名称:</span>
+        <el-input
+          type="text"
+          placeholder="请输入内容"
+          v-model="name"
+          maxlength="25"
+          show-word-limit
+        />
+        <el-button type="primary">查询</el-button>
+        <el-button>重置</el-button>
+      </div>
+      <div class="table">
+        <el-table :data="tableData" style="width: 100%">
+          <el-table-column prop="id" label="编号" width="200"></el-table-column>
+          <el-table-column prop="name" label="村落名称"></el-table-column>
+          <el-table-column prop="time" label="最近更新时间"></el-table-column>
+          <el-table-column label="操作">
+            <template #default="{ row }">
+              <el-button type="text" @click="$router.push(`/layout/tab1Main/${row.id}/1.1`)"
+                >编辑</el-button
+              >
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'tab1',
+  components: {},
+  data () {
+    // 这里存放数据
+    return {
+      name: '',
+      tableData: [
+        { name: '东宁村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '良溪村', id: 2, time: '2022-03-25 10:48:16' },
+        { name: '卢边村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '田心村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '仓前村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '霄南村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '歇马村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '自力村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '马降龙村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '浮石村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '浮月村', id: 1, time: '2022-03-25 10:48:16' },
+        { name: '横江村', id: 1, time: '2022-03-25 10:48:16' }
+      ]
+    }
+  },
+  // 监听属性 类似于data概念
+  computed: {},
+  // 监控data中的数据变化
+  watch: {},
+  // 方法集合
+  methods: {},
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {},
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {},
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.tab1 {
+  width: 100%;
+  height: 100%;
+  .conten {
+    padding: 0 20px;
+    .search {
+      height: 70px;
+      display: flex;
+      align-items: center;
+      border-bottom: 1px solid black;
+      /deep/.el-input {
+        width: 300px;
+        margin-right: 12px;
+      }
+      /deep/.el-input__inner {
+        padding-right: 45px;
+      }
+    }
+    .table {
+      /deep/.el-table__row .el-table__cell {
+        padding: 3px 0;
+      }
+    }
+  }
+}
+</style>

+ 45 - 0
houtai/src/views/tab1Main/four.vue

@@ -0,0 +1,45 @@
+<!--  -->
+<template>
+<div class='four'>four</div>
+</template>
+
+<script>
+export default {
+  components: {},
+  data () {
+    return {
+
+    }
+  },
+  computed: {},
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.four{
+  width: 100%;
+  height: 100%;
+  background-color: blue;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+</style>

+ 197 - 0
houtai/src/views/tab1Main/index.vue

@@ -0,0 +1,197 @@
+<template>
+  <div class="tab1Main">
+    <div class="insideTop">资料管理</div>
+    <div class="obstruct"></div>
+    <div class="conten">
+      <div class="top">编辑资料</div>
+      <div class="left">
+        <div class="name">卢边村</div>
+        <div class="row" v-for="(item, index) in data" :key="index">
+          <div class="rowOne el-icon-menu" @click="cutTab(item.id)">
+            <span class="txt">{{ item.name }}</span>
+            <i
+              :class="`${
+                tabInd === item.id ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
+              }`"
+            ></i>
+          </div>
+          <div
+            class="rowList"
+            :class="{
+              open: tabInd === item.id,
+              active: $route.params.k == val.id,
+            }"
+            @click="
+              $router.push(`/layout/tab1Main/${$route.params.id}/${val.id}`)
+            "
+            v-for="(val, ind) in item.son"
+            :key="ind"
+          >
+            {{ val.tit }}
+          </div>
+        </div>
+      </div>
+      <div class="right">
+        <One v-if="$route.params.k == 1.1" />
+        <Tow v-else-if="$route.params.k == 1.2" />
+        <Three v-else-if="$route.params.k == 1.3" />
+        <Four v-else />
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import One from './one.vue'
+import Tow from './tow.vue'
+import Three from './three.vue'
+import Four from './four.vue'
+export default {
+  name: 'tab1Main',
+  components: { One, Tow, Three, Four },
+  data () {
+    // 这里存放数据
+    return {
+      tabInd: 1,
+      data: [
+        {
+          name: '历史文化',
+          id: 1,
+          son: [
+            { tit: '建村历史', id: 1.1 },
+            { tit: '历史人物', id: 1.2 },
+            { tit: '历史事件', id: 1.3 },
+            { tit: '族谱家训', id: 1.4 },
+            { tit: '口述史', id: 1.5 },
+            { tit: '视频集', id: 1.6 }
+          ]
+        },
+        {
+          name: '环境格局',
+          id: 2,
+          son: [
+            { tit: '村落选址', id: 2.1 },
+            { tit: '村落格局', id: 2.2 },
+            { tit: '建村智慧', id: 2.3 },
+            { tit: '自然环境', id: 2.4 },
+            { tit: '风景名胜', id: 2.5 },
+            { tit: '文物古迹', id: 2.6 },
+            { tit: '历史环境要素', id: 2.7 }
+          ]
+        },
+        {
+          name: '传统建筑',
+          id: 3,
+          son: [
+            { tit: '建筑信息', id: 3.1 },
+            { tit: '村落风貌', id: 3.2 },
+            { tit: '视频集', id: 3.3 }
+          ]
+        }
+      ]
+    }
+  },
+  // 监听属性 类似于data概念
+  computed: {},
+  // 监控data中的数据变化
+  watch: {},
+  // 方法集合
+  methods: {
+    cutTab (id) {
+      if (this.tabInd === id) {
+        this.tabInd = null
+        return
+      }
+      this.tabInd = id
+      let k = Number(this.$route.params.k)
+      k = Math.floor(k)
+      if (this.tabInd !== k) {
+        this.$router.push(`/layout/tab1Main/${this.$route.params.id}/${id}.1`)
+      }
+    }
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {},
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+    const k = Number(this.$route.params.k)
+    this.tabInd = Math.floor(k)
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.tab1Main {
+  width: 100%;
+  height: 100%;
+  .conten {
+    display: flex;
+    position: relative;
+    padding: 34px 20px 0;
+    height: calc(100% - 50px);
+    .top {
+      position: absolute;
+      top: 0;
+      left: 0;
+      height: 34px;
+      line-height: 34px;
+      width: 100%;
+      background-color: #f2f1f0;
+      font-weight: 700;
+      padding-left: 30px;
+    }
+    .left {
+      padding-top: 10px;
+      width: 140px;
+      height: 100%;
+      border-right: 1px solid #d7d7d7;
+      .row {
+        margin-top: 20px;
+        .rowOne {
+          cursor: pointer;
+          width: 100%;
+          position: relative;
+          i {
+            position: absolute;
+            top: 50%;
+            right: 5px;
+            transform: translateY(-50%);
+          }
+          .txt {
+            margin-left: 10px;
+          }
+        }
+        .rowList {
+          cursor: pointer;
+          padding-left: 18px;
+          height: 0;
+          overflow: hidden;
+          transition: margin 0.3s;
+          &:hover {
+            color: #a30014;
+          }
+        }
+        .open {
+          margin-top: 10px;
+          height: auto;
+        }
+        .active {
+          pointer-events: none;
+          color: #a30014;
+        }
+      }
+    }
+    .right {
+      width: calc(100% - 140px);
+      height: 100%;
+      overflow-y: auto;
+    }
+  }
+}
+</style>

+ 45 - 0
houtai/src/views/tab1Main/one.vue

@@ -0,0 +1,45 @@
+<!--  -->
+<template>
+<div class='one'>one</div>
+</template>
+
+<script>
+export default {
+  components: {},
+  data () {
+    return {
+
+    }
+  },
+  computed: {},
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.one{
+  width: 100%;
+  height: 100%;
+  background-color: aliceblue;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+</style>

+ 45 - 0
houtai/src/views/tab1Main/three.vue

@@ -0,0 +1,45 @@
+<!--  -->
+<template>
+<div class='three'>three</div>
+</template>
+
+<script>
+export default {
+  components: {},
+  data () {
+    return {
+
+    }
+  },
+  computed: {},
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.three{
+  width: 100%;
+  height: 100%;
+  background-color: red;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+</style>

+ 45 - 0
houtai/src/views/tab1Main/tow.vue

@@ -0,0 +1,45 @@
+<!--  -->
+<template>
+<div class='tow'>tow</div>
+</template>
+
+<script>
+export default {
+  components: {},
+  data () {
+    return {
+
+    }
+  },
+  computed: {},
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+.tow{
+  width: 100%;
+  height: 100%;
+  background-color: orange;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+</style>

+ 52 - 0
houtai/src/views/tab2/index.vue

@@ -0,0 +1,52 @@
+<template>
+  <div class="tab2">
+    <div class="insideTop">
+      用户管理
+    </div>
+    <div class="obstruct"></div>
+    <div class="conten">
+
+    </div>
+
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'tab2',
+  components: {},
+  data () {
+    // 这里存放数据
+    return {
+
+    }
+  },
+  // 监听属性 类似于data概念
+  computed: {},
+  // 监控data中的数据变化
+  watch: {},
+  // 方法集合
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+//@import url(); 引入公共css类
+
+</style>

+ 52 - 0
houtai/src/views/tab3/index.vue

@@ -0,0 +1,52 @@
+<template>
+  <div class="tab3">
+    <div class="insideTop">
+      数据统计
+    </div>
+    <div class="obstruct"></div>
+    <div class="conten">
+
+    </div>
+
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'tab3',
+  components: {},
+  data () {
+    // 这里存放数据
+    return {
+
+    }
+  },
+  // 监听属性 类似于data概念
+  computed: {},
+  // 监控data中的数据变化
+  watch: {},
+  // 方法集合
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+//@import url(); 引入公共css类
+
+</style>

+ 52 - 0
houtai/src/views/tab4/index.vue

@@ -0,0 +1,52 @@
+<template>
+  <div class="tab4">
+    <div class="insideTop">
+      操作日志
+    </div>
+    <div class="obstruct"></div>
+    <div class="conten">
+
+    </div>
+
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'tab4',
+  components: {},
+  data () {
+    // 这里存放数据
+    return {
+
+    }
+  },
+  // 监听属性 类似于data概念
+  computed: {},
+  // 监控data中的数据变化
+  watch: {},
+  // 方法集合
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+//@import url(); 引入公共css类
+
+</style>

+ 3 - 0
houtai/vue.config.js

@@ -0,0 +1,3 @@
+module.exports = {
+  publicPath: './'
+}