diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue index 2e822ab..f5002c6 100644 --- a/src/views/ReceivingRecords/index.vue +++ b/src/views/ReceivingRecords/index.vue @@ -304,92 +304,6 @@ > - @@ -410,10 +324,6 @@ export default { pageSize: 10, // 每页显示多少条 }, - currentPage: 1, - size: 10, - total: 10, - isOpen: false, TimetoAhoose: 2, time: [], diff --git a/src/views/ReceivingRecords/table.js b/src/views/ReceivingRecords/table.js index 64eface..91edcdb 100644 --- a/src/views/ReceivingRecords/table.js +++ b/src/views/ReceivingRecords/table.js @@ -33,6 +33,10 @@ export default { label: "客户", prop: "name", }, + { + label: "到访次数", + prop: "visitRecord", + }, { sortable: true, diff --git a/src/views/Statistics/index.vue b/src/views/Statistics/index.vue index 6c1b688..34d74dc 100644 --- a/src/views/Statistics/index.vue +++ b/src/views/Statistics/index.vue @@ -54,11 +54,19 @@ > + +
+ 导出 +
-
+
{{ efficient || '-' }}
有效接待
@@ -254,6 +262,56 @@ export default { } }, methods: { + // 导出excel + exportExcel() { + const obj = { + dateType: this.TimetoAhoose == 7 ? '' : this.TimetoAhoose, + houseId: this.houseId, + statDateStart: this.fromobj.starttime, + statDateEnd: this.fromobj.endoftime, + } + this.exportMethodPost('/autoSR/matchKeywords/findmatchdataExport', '用户画像', obj) + }, + // 导出.Excel公用方法 + exportMethodPost(url, name, data = {}) { + axios({ + method: "get", + url: url, + params: data, + responseType: "blob", + }) + .then((res) => { + if (!res) { + this.$message.error('获取数据失败,请稍候再试') + return + } + let blob = new Blob([res], { type: "application/vnd.ms-excel" }); + 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 + ".xlsx"; //下载的文件名 + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + } else { + // console.log("--------------------jingla") + let fileName = (name || "导出文件") + time + ".xlsx"; //下载的文件名 + navigator.msSaveBlob(blob, fileName); + } + }) + .catch((error) => { + // Message.error({ + // message: '网络连接错误' + // }) + console.log(error); + }); + }, + goTo(i) { if (i == 1) { if (this.TimetoAhoose == 6) { @@ -792,7 +850,8 @@ export default { .app-top { // width: 100%; // width: calc(100% - 270px); - position: fixed; + position: sticky; + top: 0; z-index: 999; margin-top: -16px; background: #ffffff; @@ -801,10 +860,10 @@ export default { border-radius: 4px; padding-top: 15px; padding-bottom: 15px; - left: 255px; - right: 15px; + width: 100%; .app-titel2 { + position: relative; width: 100%; display: flex; align-items: center; diff --git a/src/views/building/index.vue b/src/views/building/index.vue index 47e7a60..28af928 100644 --- a/src/views/building/index.vue +++ b/src/views/building/index.vue @@ -152,7 +152,7 @@
-
筛选相关:
+
筛选相关:
筛选
@@ -268,148 +268,181 @@ width="600px" :center="true" > - - - - - - - - - - 正式 - 试用 - 演示 - 测试 - - - - - - - - - - - + + + + + + + + 正式 + 试用 + 演示 + 测试 + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + 全部可见 + 团队可见 + + + + + + 全部话术 + 客户话术 + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + +