科技

为了生活兼新项目前端vue后端springboot后续继续开发中

1.功能界面

 

2.前端主要代码

import Vue from vue;

import Router from vue-router;

const _import = require(./_import_ process.env.NODE_ENV);Vue.use(Router);let routerlst = [ { path: /, redirect: /login }, { path: /login, component: _import(core/home/Login) }, { path: *, component: _import(core/home/NoPage) },];var router = new Router({ mode: hash, routes: routerlst });export default router;

id=app>

import ./assets/0DA2B3/index.css;

import ../static/css/main.css;

import nprogress/nprogress.css;

//import font-awesome/css/font-awesome.min.css;

import Vue from vue;

import ElementUI from element-ui;

import accounting from accounting;

import moment from moment;

import NProgress from nprogress;

import cryptosha1 from crypto-js/sha1;

import router from ./router;import store from ./store;import axios from ./util/axios;import global from ./util/global;import Print from ./util/print;import App from ./App;import zsyLabelInput from @/views/base/ZsyLabelInput;import zsyForm from @/views/base/ZsyForm;import babel-polyfill;import ./util/directives;Vue.prototype.$ajax = axios;Vue.prototype.$cryptosha1 = cryptosha1;Vue.prototype.$moment = moment;Vue.prototype.$accounting = accounting;Vue.prototype.global = global;router.beforeEach((to, from, next) => { if (to.path == /login) { sessionStorage.removeItem(zsylocalInfo);} let user = sessionStorage.getItem(zsylocalInfo); if (!user to.path != /login) { next({ path: /login }); } else { NProgress.start(); next(); }});router.afterEach(transition => {NProgress.done();});Vue.config.productionTip = false;Vue.use(ElementUI, { size: mini });Vue.use(Print); // 注册Vue.component(zsy-label-input, zsyLabelInput);Vue.component(zsy-form, zsyForm);new Vue({ el: #app, router, store: store, render: h => h(App)});

3.后端主要代码

4.0.0 org.springframework.boot spring-boot-starter-parent 1.5.10.RELEASE com.zoushiyou small-loan 1.0.1 zsy-small-loan zsy-small-loan war 1.8 UTF-8 UTF-8 1.2.0.Final org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test org.junit.jupiter junit-jupiter-api 5.5.0 test com.zoushiyou zsy-frame 1.0.5 ${project.name} ${project.basedir}/src/main/java ${project.basedir}/src/main/resources true templates/** sql/** org.apache.maven.plugins maven-compiler-plugin 3.7.0 ${java.version} ${java.version} true org.mapstruct mapstruct-processor ${mapstruct.version} org.projectlombok lombok ${lombok.version}