Commit d4cf105d authored by honghy's avatar honghy Committed by wux

bug201 【(app/h5)输入空格时,没有自动去除空格

parent 963b3cf7
......@@ -1100,7 +1100,7 @@
getControl(){
this.params.page = this.page
this.params.rows = 6
this.params.searchKey = this.searchKey
this.params.searchKey = this.searchKey.replace(/\s+/g, '')
this.params.cargoControlStatus = this.config.cargoControlStatus.value[this.config.cargoControlStatus.index]
this.$request.get('/app-api/my/order/cargo/control/page',this.params).then(res=>{
if(res.code==0&&res.data&&res.data.list&&res.data.list.length>0){
......@@ -1119,7 +1119,7 @@
})
},
getIssued(){
this.$request.get('/app-api/my/order/issued/page',{page:this.page,rows:6,searchKey:this.searchKey,statusList:this.config.status.value[this.config.status.index]}).then(res=>{
this.$request.get('/app-api/my/order/issued/page',{page:this.page,rows:6,searchKey:this.searchKey.replace(/\s+/g, ''),statusList:this.config.status.value[this.config.status.index]}).then(res=>{
if(res.code==0&&res.data&&res.data.list&&res.data.list.length>0){
if(this.page == 1){
if(this.selectIndex==1){
......@@ -1136,7 +1136,7 @@
})
},
getReceiver(){
this.$request.get('/app-api/my/order/received/page',{page:this.page,rows:6,searchKey:this.searchKey,statusList:this.config.status.value[this.config.status.index]}).then(res=>{
this.$request.get('/app-api/my/order/received/page',{page:this.page,rows:6,searchKey:this.searchKey.replace(/\s+/g, ''),statusList:this.config.status.value[this.config.status.index]}).then(res=>{
if(res.code==0&&res.data&&res.data.list&&res.data.list.length>0){
if(this.page == 1){
if(this.selectIndex==2){
......@@ -1182,7 +1182,7 @@
}
},
getData(){
this.$request.get('/app-api/my/order/all/order',{page:this.page,rows:6,searchKey:this.searchKey,statusList:this.config.status.value[this.config.status.index]}).then(res=>{
this.$request.get('/app-api/my/order/all/order',{page:this.page,rows:6,searchKey:this.searchKey.replace(/\s+/g, ''),statusList:this.config.status.value[this.config.status.index]}).then(res=>{
if(res.code==0&&res.data&&res.data.list&&res.data.list.length>0){
if(this.page == 1){
if(this.selectIndex==0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment