diff --git a/src/views/service/components/attachmentUpload.vue b/src/views/service/components/attachmentUpload.vue index 0a3590c..3861753 100644 --- a/src/views/service/components/attachmentUpload.vue +++ b/src/views/service/components/attachmentUpload.vue @@ -67,34 +67,6 @@ export default { }, methods:{ - getWsResult(res){ - if(res.data && (res.data.type == 12)){ - this.progressShow = true; - if(this.listProgress.length==0){ - this.listProgress.push(res.data); - } - let ids = this.listProgress.map(em=>em.file_unique_id); - if(!ids.includes(res.data.file_unique_id)){ - this.listProgress.push(res.data); - } - this.listProgress.forEach(em=>{ - if(em.file_unique_id == res.data.file_unique_id){ - em.rate = res.data.rate - } - }) - - let list = this.listProgress.filter(em=> em.rate != 100); - if(list.length==0 && res.data.status == 1){ - this.progressShow = false; - } - if(res.data.status == 1){ - this.fileList.splice(this.fileList[0],1); - this.params = {}; - this.$emit('uploadFileSuccess'); - } - } - }, - // 导入文件 importFile(params){ this.parentParams = params; diff --git a/src/views/service/infoQuery.vue b/src/views/service/infoQuery.vue index c86ba07..f02d710 100644 --- a/src/views/service/infoQuery.vue +++ b/src/views/service/infoQuery.vue @@ -2,7 +2,7 @@ - +
联系人
@@ -30,7 +30,7 @@
{{contactsInfo.from_user && contactsInfo.from_user.name?contactsInfo.from_user.name:"匿名"}}
-
+
@@ -140,6 +140,8 @@ export default { return{ contactsList:[], contactsInfo:{}, + msgDataLoading:false, + contactsLoading:false, msgList:[], user_id:0, to_user_id:0, @@ -249,7 +251,9 @@ export default { } }, async getContactList() { + this.contactsLoading = true; await this.$API.customer.contactList.post(); + this.contactsLoading = false; }, contactsActive(item){ this.contactsInfo = item; @@ -261,6 +265,7 @@ export default { async getCustomerMsgList(isPage=false) { let params = {} if(!isPage){ + this.msgDataLoading = true; params = { to_user_id:this.to_user_id, pageSize:30 @@ -273,6 +278,7 @@ export default { } } await this.$API.customer.list.post(params); + this.msgDataLoading = false; }, handleKeydown(event){ if(event.key === 'Enter' && !event.shiftKey){