From 91d70be601b87be48a5bc0486605a64aa88a6fc7 Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Wed, 22 Dec 2021 18:56:31 +0800 Subject: [PATCH] init --- src/api/modules/api.js | 16 ++++ src/views/Customer/AgentManagement.vue | 5 +- src/views/Customer/CompanyRecord.vue | 5 +- src/views/Customer/Companymanagement.vue | 5 +- src/views/Equipment/equipmentDetailList.vue | 8 +- .../Equipment/equipmentOnlineRecordList.vue | 62 +++++++++++++++ src/views/Equipment/record.vue | 4 +- src/views/Equipment/state.vue | 1 + src/views/Receive/index.vue | 39 +++++++++- src/views/ReceivingRecords/index.vue | 4 +- .../Statistics/Insightintothedetails.vue | 65 +++++++++++++++- src/views/Statistics/TrendAnalysis.vue | 8 +- src/views/Statistics/dataScreeAge.vue | 35 ++++++++- src/views/Statistics/dataScreeOrg.vue | 35 ++++++++- src/views/Statistics/dataScreeSys.vue | 22 +++++- src/views/Statistics/houseDataSys.vue | 8 +- src/views/Statistics/trend.vue | 8 +- src/views/building/Count.vue | 75 +++++++++++++++++++ src/views/building/index.vue | 5 +- vue.config.js | 4 +- 20 files changed, 380 insertions(+), 34 deletions(-) diff --git a/src/api/modules/api.js b/src/api/modules/api.js index 2112543..d3dd14b 100644 --- a/src/api/modules/api.js +++ b/src/api/modules/api.js @@ -1055,3 +1055,19 @@ export function buyEquipmentQuantity(query) { params:query }) } +// 下载录音文件 +export function filedownload(query) { + return request({ + url: '/autoSR/zk/file/filedownload', + method:'get', + params:query + }) +} +// 洞察详情导出 +// export function dcCarReceptionRecord(query) { +// return request({ +// url: '/autoSR/matchKeywords/dcCarReceptionRecord', +// method:'get', +// params:query +// }) +// } diff --git a/src/views/Customer/AgentManagement.vue b/src/views/Customer/AgentManagement.vue index dbd75ad..8b32c7f 100644 --- a/src/views/Customer/AgentManagement.vue +++ b/src/views/Customer/AgentManagement.vue @@ -105,7 +105,7 @@ @@ -521,6 +521,7 @@ export default { props1: { lazy: true, checkStrictly: true, + expandTrigger:'hover', async lazyLoad(node, resolve) { // console.log(node, 123); const { level } = node; @@ -545,6 +546,8 @@ export default { }; }); resolve(nodes); + }else{ + resolve() } }, }, diff --git a/src/views/Customer/CompanyRecord.vue b/src/views/Customer/CompanyRecord.vue index ef9b673..b54965a 100644 --- a/src/views/Customer/CompanyRecord.vue +++ b/src/views/Customer/CompanyRecord.vue @@ -115,7 +115,7 @@ :show-overflow-tooltip="true" width="120px" prop="provinceName,cityName" - label="公司地址" + label="公司地区" align="center" > @@ -599,6 +599,7 @@ export default { props1: { lazy: true, checkStrictly: true, + expandTrigger:'hover', async lazyLoad(node, resolve) { // console.log(node, 123); const { level } = node; @@ -623,6 +624,8 @@ export default { }; }); resolve(nodes); + }else{ + resolve() } }, }, diff --git a/src/views/Customer/Companymanagement.vue b/src/views/Customer/Companymanagement.vue index 4cceded..5bbb151 100644 --- a/src/views/Customer/Companymanagement.vue +++ b/src/views/Customer/Companymanagement.vue @@ -101,7 +101,7 @@ align="center" > - + diff --git a/src/views/Equipment/state.vue b/src/views/Equipment/state.vue index 911e344..a5f659f 100644 --- a/src/views/Equipment/state.vue +++ b/src/views/Equipment/state.vue @@ -956,6 +956,7 @@ export default { orgType: localStorage.getItem("orgType"), queryOrgType:this.selValue/1+1, ...this.searchForm, + houseTypes: this.houseTypes, }) .then((res) => { // console.log(res); diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue index 9c9748e..8a27c63 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -1399,10 +1399,47 @@ export default { }, //下载 download(){ - // this.$api.http.filedownload({videoSrc:this.recordPath}).then((res) => { + console.log(this.recordPath); + // this.$api.api.filedownload({videoSrc:this.recordPath}).then((res) => { + // console.log(res); // }) // window.location.href =this.recordPath + this.exportMethodPost("/autoSR/zk/file/filedownload", "接待详情",{videoSrc:this.recordPath}); }, + exportMethodPost(url, name, data = {}) { + axios({ + method: "get", + url: url, + params:data, + responseType: "blob", + }) + .then((res) => { + let blob = new Blob([res], { type: "audio/*" }); + let date = new Date(); + let time = date.toLocaleDateString(); + // console.log(time, "时间"); + if ("download" in document.createElement("a")) { + const link = document.createElement("a"); + link.style.display = "none"; + link.href = URL.createObjectURL(blob); + // link.download = res.headers['content-disposition'] //下载后文件名 + link.download = (name || "导出文件") + time + ".mp3"; //下载的文件名 + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + } else { + // console.log("--------------------jingla") + let fileName = (name || "导出文件") + time + ".mp3"; //下载的文件名 + navigator.msSaveBlob(blob, fileName); + } + }) + .catch((error) => { + // Message.error({ + // message: '网络连接错误' + // }) + console.log(error); + }); + }, }, }; diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue index eb2f0ad..ff83cc8 100644 --- a/src/views/ReceivingRecords/index.vue +++ b/src/views/ReceivingRecords/index.vue @@ -305,8 +305,8 @@ diff --git a/src/views/Statistics/Insightintothedetails.vue b/src/views/Statistics/Insightintothedetails.vue index 6b50559..996d144 100644 --- a/src/views/Statistics/Insightintothedetails.vue +++ b/src/views/Statistics/Insightintothedetails.vue @@ -61,6 +61,9 @@
清空筛选条件
+
+ 导出 +
@@ -129,6 +132,7 @@