no message

main
liyang 2024-04-03 14:41:00 +08:00
parent 45541fe293
commit 83e4d29fae
6 changed files with 27 additions and 34 deletions

View File

@ -14,6 +14,6 @@ export default {
<style>
#app {
height: 100%;
height: 98%;
}
</style>

View File

@ -2,29 +2,7 @@
<div class="loginDiv">
<div class="login-box">
<h2>智能仓储WMS</h2>
<form>
<div class="user-box">
<input type="text" name="" required="" v-model="ruleForm.userNo" @keyup.enter="login"/>
<label>账号</label>
</div>
<div class="user-box">
<input type="password" name="" required="" v-model="ruleForm.passWord" @keyup.enter="login"/>
<label>密码</label>
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:"
@click="login"
>
<span></span>
<span></span>
<span></span>
<span></span>
登录
</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a>注册 </a>
</form>
</div>
</div>
</template>
@ -41,8 +19,13 @@ export default {
}
},
mounted() {
this.login()
},
methods: {
login() {
this.ruleForm.userNo="admin"
this.ruleForm.passWord="123"
if (this.ruleForm.userNo == null || this.ruleForm.userNo.length <= 0) {
this.$message({
message: '请输入账号',

View File

@ -1,5 +1,5 @@
<template>
<div class="div1">
<div class="div1" style="height: 100%">
<div class="div2" style="padding-bottom: 10px">
@ -225,7 +225,8 @@
<el-table
:max-height="MaxHeight"
v-loading="this.tableloding"
:max-height="480"
:header-cell-style="{background:'#000',color:'#fff'}"
:data="tableData"
id="educe-table"
@ -498,6 +499,7 @@ export default {
};
return {
tableloding:false,
pickerOptions: {
shortcuts: [{
text: '最近一周',
@ -563,7 +565,6 @@ export default {
//
LP: ''
},
MaxHeight: '',
plant: [],
loc: [],
name: [],
@ -601,9 +602,10 @@ export default {
this.Plant();
this.Loc();
this.z_Name();
this.$nextTick(()=> {
this.MaxHeight = window.innerHeight - 300;//300
})
// this.$nextTick(()=> {
//
// this.MaxHeight = window.innerHeight - 220;//300
// })
},
methods: {
handleEdit(index, row) {
@ -672,6 +674,7 @@ export default {
})
},
queryUser() {
this.tableloding=true
//
this.$axios.post(this.$httpUrl + '/Zhengliqingdan/queryWhere', {
pageSize: this.pageSize,
@ -679,15 +682,16 @@ export default {
param: this.param,
}).then(res => res.data)
.then(res => {
this.tableloding=false
if (res.code == 200) {
this.tableData = res.data
this.total = res.total
} else {
this.$message.error('获取数据失败');
}
})
.catch(function (err) {
console.log(err);
// eslint-disable-next-line no-unused-vars
},err =>{
this.tableloding=false
})
},
find(){

View File

@ -6,6 +6,11 @@ const routes=[
name:'login',
component: () => import('../components/Login')
},
{
path:'/',
name:'login',
component: () => import('../components/Login')
},
{
path:'/index',
name:'index',

View File

@ -46,8 +46,9 @@ public class ZhengliqingdanImpl implements Zhengliqingdan {
//查询条件
//采购单号
System.out.println(zhengliqingdan.sourceId.trim()==null);
if(zhengliqingdan.sourceId!=null&&!zhengliqingdan.sourceId.equals("")){
sql+=" and ad.sourceId="+"'"+zhengliqingdan.sourceId+"'";
sql+=" and ad.sourceId="+"'"+zhengliqingdan.sourceId.trim()+"'";
}
//收货凭证
if(zhengliqingdan.strBill7!=null&&!zhengliqingdan.strBill7.equals("")){

View File

@ -3,7 +3,7 @@ server:
spring:
datasource:
url: jdbc:sqlserver://47.100.54.81:1433;DatabaseName=zwtest
url: jdbc:sqlserver://47.100.54.81:1433;DatabaseName=zwwms
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: super
password: 1K4QfD%ESd1fe@VJ