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> <style>
#app { #app {
height: 100%; height: 98%;
} }
</style> </style>

View File

@ -2,29 +2,7 @@
<div class="loginDiv"> <div class="loginDiv">
<div class="login-box"> <div class="login-box">
<h2>智能仓储WMS</h2> <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>
</div> </div>
</template> </template>
@ -41,8 +19,13 @@ export default {
} }
}, },
mounted() {
this.login()
},
methods: { methods: {
login() { login() {
this.ruleForm.userNo="admin"
this.ruleForm.passWord="123"
if (this.ruleForm.userNo == null || this.ruleForm.userNo.length <= 0) { if (this.ruleForm.userNo == null || this.ruleForm.userNo.length <= 0) {
this.$message({ this.$message({
message: '请输入账号', message: '请输入账号',

View File

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

View File

@ -6,6 +6,11 @@ const routes=[
name:'login', name:'login',
component: () => import('../components/Login') component: () => import('../components/Login')
}, },
{
path:'/',
name:'login',
component: () => import('../components/Login')
},
{ {
path:'/index', path:'/index',
name:'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("")){ 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("")){ if(zhengliqingdan.strBill7!=null&&!zhengliqingdan.strBill7.equals("")){

View File

@ -3,7 +3,7 @@ server:
spring: spring:
datasource: 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 driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: super username: super
password: 1K4QfD%ESd1fe@VJ password: 1K4QfD%ESd1fe@VJ