no message

main
LX 2024-04-03 17:34:17 +08:00
parent 37e6884a0b
commit 1de4533311
9 changed files with 58 additions and 19 deletions

BIN
wms-vue/dist.rar 100644

Binary file not shown.

View File

@ -25,7 +25,33 @@ export default {
name: "Aside", name: "Aside",
data(){ data(){
return{ return{
ruleForm: {
userNo: '',
passWord: '',
}
}
},
mounted() {
this.login()
},
methods: {
login() {
this.ruleForm.userNo="admin"
this.ruleForm.passWord="123"
this.$axios.post(this.$httpUrl + '/user/login', this.ruleForm).then(res => res.data)
.then(res => {
if (res.code == 200) {
//
sessionStorage.setItem("user", JSON.stringify(res.data.user))
console.log(res.data.menu)
this.$store.commit("setMenu",res.data.menu)
//
this.$router.push('/index')
} else {
this.$message.error(res.msg);
}
})
} }
}, },
computed:{ computed:{

View File

@ -1,6 +1,6 @@
<template> <template>
<el-container style="height: 100%; border: 1px solid #eee"> <el-container style="height: 100%;">
<el-aside :width="aside_width" style="background-color: rgb(238, 241, 246);margin-left: -1px;"> <el-aside :width="aside_width" style="background-color: rgb(238, 241, 246);margin-left: -1px;">
<Aside :isCollapse="isCollapse"></Aside> <Aside :isCollapse="isCollapse"></Aside>
</el-aside> </el-aside>
@ -9,7 +9,7 @@
<Header @doCollapse="doCollapse" :icon="icon"></Header> <Header @doCollapse="doCollapse" :icon="icon"></Header>
</el-header> </el-header>
<el-main style="height: 100%"> <el-main >
<!-- <Main></Main>--> <!-- <Main></Main>-->
<router-view/> <router-view/>
</el-main> </el-main>

View File

@ -398,7 +398,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="pageNum" :current-page="pageNum"
:page-sizes="[10, 50, 150, 200]" :page-sizes="[ 50, 100, 200,500]"
:page-size="pageSize" :page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total"> :total="total">
@ -444,7 +444,7 @@ export default {
value1: '', value1: '',
value2: '', value2: '',
tableData: [], tableData: [],
pageSize: 10, pageSize: 50,
pageNum: 1, pageNum: 1,
total: 3, total: 3,
param: { param: {
@ -471,7 +471,7 @@ export default {
this.PlantS(); this.PlantS();
this.LOC(); this.LOC();
this.$nextTick(() => { this.$nextTick(() => {
this.MaxHeight = window.innerHeight - 220 +"px"; this.MaxHeight = window.innerHeight - 240 +"px";
}) })
}, },
methods: { methods: {

View File

@ -460,7 +460,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="pageNum" :current-page="pageNum"
:page-sizes="[10, 50, 150, 200]" :page-sizes="[ 50, 100, 200,500]"
:page-size="pageSize" :page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total"> :total="total">
@ -528,7 +528,7 @@ export default {
}] }]
}, },
tableData: [], tableData: [],
pageSize: 10, pageSize: 50,
pageNum: 1, pageNum: 1,
total: 3, total: 3,
param: { param: {
@ -604,7 +604,7 @@ export default {
this.Loc(); this.Loc();
this.z_Name(); this.z_Name();
this.$nextTick(() => { this.$nextTick(() => {
this.MaxHeight = window.innerHeight - 220 +"px"; this.MaxHeight = window.innerHeight - 240 +"px";
}) })
}, },

View File

@ -8,8 +8,9 @@ import VueRouter from "vue-router";
import router from "@/router/router"; import router from "@/router/router";
import store from "@/store/store"; import store from "@/store/store";
Vue.prototype.$axios=axios; Vue.prototype.$axios=axios;
// Vue.prototype.$httpUrl='http://192.168.56.147:8081'; //Vue.prototype.$httpUrl='http://127.0.0.1:8081';
Vue.prototype.$httpUrl='http://127.0.0.1:8081'; //Vue.prototype.$httpUrl='http://192.68.2.88:8081';
Vue.prototype.$httpUrl='http://127.0.0.1:8083';
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(VueRouter) Vue.use(VueRouter)
Vue.use(ElementUI,{size:'small'}); Vue.use(ElementUI,{size:'small'});

View File

@ -22,7 +22,7 @@ const routes=[
meta:{ meta:{
title:'首页' title:'首页'
}, },
component: () => import('../components/Login') component: () => import('../components/duochaxun/Zhengliqingdan')
}, },
{ {
path:'/Zhengliqingdan', path:'/Zhengliqingdan',

View File

@ -88,13 +88,13 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- 跳过单元测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<excludes> <skipTests>true</skipTests>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -1,5 +1,14 @@
server: server:
port: 8081 port: 8083
# url: jdbc:sqlserver://47.100.54.81:1433;DatabaseName=zwwms
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
# username: super
# password: 1K4QfD%ESd1fe@VJ
# url: jdbc:sqlserver://10.1.96.106:1433;DatabaseName=LD_WMSDB
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
# username: wmsdb
# password: AmecDDbb32A
spring: spring:
datasource: datasource:
@ -7,8 +16,10 @@ spring:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: super username: super
password: 1K4QfD%ESd1fe@VJ password: 1K4QfD%ESd1fe@VJ
hikari: hikari:
connection-timeout: 60000 connection-timeout: 60000
validation-timeout: 3000 validation-timeout: 3000
idle-timeout: 60000 idle-timeout: 60000
login-timeout: 5 login-timeout: 5
@ -16,3 +27,4 @@ spring:
maximum-pool-size: 10 maximum-pool-size: 10
minimum-idle: 10 minimum-idle: 10
read-only: false read-only: false