Commit 3bb822d9 by 杨北旺

修复bug

1 parent ca35899b
...@@ -121,10 +121,10 @@ export default { ...@@ -121,10 +121,10 @@ export default {
this.serviceList.push(item) this.serviceList.push(item)
}) })
} }
this.isNoResult = this.serviceList.length?false:true
if((data.list.length<this.paramForm.pageSize)&&this.serviceList.length){ if((data.list.length<this.paramForm.pageSize)&&this.serviceList.length){
this.$refs.scrollView.finished = true this.$refs.scrollView.finished = true
} }
this.isNoResult = this.serviceList.length?false:true
if(!this.isNoResult){ if(!this.isNoResult){
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
} }
...@@ -145,6 +145,8 @@ export default { ...@@ -145,6 +145,8 @@ export default {
if(dataPerfection==3){ if(dataPerfection==3){
delete this.paramForm.dataPerfection delete this.paramForm.dataPerfection
} }
this.serviceList = []
this.isNoResult = false
this.getServicesList() this.getServicesList()
}, },
onReachBottom() { onReachBottom() {
......
...@@ -109,6 +109,7 @@ export default { ...@@ -109,6 +109,7 @@ export default {
file: base64, file: base64,
fileType: 'image' fileType: 'image'
} }
this.showLoading()
upload.uploadImageApi(para).then(res => { upload.uploadImageApi(para).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.uploadFile(res.data) this.uploadFile(res.data)
...@@ -124,6 +125,7 @@ export default { ...@@ -124,6 +125,7 @@ export default {
attachmentFile: url attachmentFile: url
} }
upload.uploadFileApi(para).then(res => { upload.uploadFileApi(para).then(res => {
this.hideLoading()
this.getFileInof(this.packageCode, this.contractNo) this.getFileInof(this.packageCode, this.contractNo)
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!