diff --git a/public/code/table.vue b/public/code/table.vue new file mode 100644 index 00000000..d8413a39 --- /dev/null +++ b/public/code/table.vue @@ -0,0 +1,32 @@ + + + + + + + diff --git a/src/main.js b/src/main.js index 909be731..224b17b7 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,7 @@ import config from "./config"; import router from './router' import store from './store' import tool from './utils/tool' +import http from "./utils/request"; import api from './api' import permission from './utils/permission' @@ -14,6 +15,7 @@ const app = createApp(App); app.config.globalProperties.$CONFIG = config; app.config.globalProperties.$TOOL = tool; +app.config.globalProperties.$HTTP = http; app.config.globalProperties.$API = api; app.config.globalProperties.$HAS = permission; diff --git a/src/router/index.js b/src/router/index.js index 4bf3d088..500e06b4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -36,6 +36,14 @@ const routes = [{ title: "个人信息" }, component: () => import(/* webpackChunkName: "usercenter" */ '@/views/userCenter'), + }, + { + name: "autocode", + path: "/autocode", + meta: { + title: "代码生成器" + }, + component: () => import(/* webpackChunkName: "autocode" */ '@/views/autocode'), } ] } diff --git a/src/style/style.less b/src/style/style.less index 36d0fe6f..75983473 100644 --- a/src/style/style.less +++ b/src/style/style.less @@ -89,9 +89,12 @@ a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: bo .el-menu-item.is-active {background: #ecf5ff;} .el-menu .el-menu-item a {color: inherit;text-decoration: none;display: block;width:100%;height:100%;position: absolute;top:0px;left:0px;} +.el-form-item-msg {font-size: 12px;color: #999;} + .el-container {height: 100%;} .el-aside {border-right: 1px solid #e6e6e6;background: #fff;padding-top:20px;} .el-header {background: #fff;border-bottom: 1px solid #e6e6e6;padding:13px 15px;} +.el-footer {background: #fff;border-top: 1px solid #e6e6e6;padding:13px 15px;} .el-main {padding:15px;} .el-pagination {margin-top: 20px;} .el-drawer__body {overflow: auto;} diff --git a/src/views/autocode/index.vue b/src/views/autocode/index.vue new file mode 100644 index 00000000..ca8a2790 --- /dev/null +++ b/src/views/autocode/index.vue @@ -0,0 +1,197 @@ + + + + +