Browse Source

Merge branch 'bugfix_zhy123' into dev

dev-用户反馈
zhangyuan 3 years ago
parent
commit
c4978e291c
  1. 11
      src/views/modules/cpts/baobiao/index.vue
  2. 10
      src/views/modules/visual/shundeju/controlCount.vue

11
src/views/modules/cpts/baobiao/index.vue

@ -148,6 +148,14 @@ export default {
async exportAll(reportId, paramKey, reportName) { async exportAll(reportId, paramKey, reportName) {
const url = "/oper/customize/icCustomerReport/batch-export"; const url = "/oper/customize/icCustomerReport/batch-export";
const loading = this.$loading({
lock: true,
text: "批量导出中",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.5)",
});
axios({ axios({
url: window.SITE_CONFIG["apiURL"] + url, url: window.SITE_CONFIG["apiURL"] + url,
method: "post", method: "post",
@ -158,6 +166,7 @@ export default {
responseType: "blob", responseType: "blob",
}) })
.then((res) => { .then((res) => {
loading.close();
console.log("批量导出接口返回", res); console.log("批量导出接口返回", res);
// let fileName = window.decodeURI( // let fileName = window.decodeURI(
// res.headers["content-disposition"].split(";")[1].split("=")[1] // res.headers["content-disposition"].split(";")[1].split("=")[1]
@ -177,6 +186,8 @@ export default {
}) })
.catch((err) => { .catch((err) => {
console.log("批量导出失败", err); console.log("批量导出失败", err);
loading.close();
return this.$message.error("网络错误"); return this.$message.error("网络错误");
}); });
}, },

10
src/views/modules/visual/shundeju/controlCount.vue

@ -48,7 +48,7 @@
> >
</el-date-picker> </el-date-picker>
</div> </div>
</div> </div>
</div> </div>
<div class="warning-box-bottom"> <div class="warning-box-bottom">
<screen-table <screen-table
@ -180,7 +180,7 @@ export default {
methods: { methods: {
// //
async getChartTraffic () { async getChartTraffic () {
const url = "/pli/power/visitVisitor/chart/traffic"; const url = "/epmetuser/icResiCollectVisitor/chart/traffic";
let params = { let params = {
date: this.timeFormat(this.lineTime) date: this.timeFormat(this.lineTime)
}; };
@ -231,7 +231,7 @@ export default {
} }
}) })
this.total = data.total this.total = data.total
} else { } else {
} }
this.visibleLoading = false; this.visibleLoading = false;
@ -440,7 +440,7 @@ export default {
line-height: 24px; line-height: 24px;
} }
} }
} }
} }
@ -533,7 +533,7 @@ export default {
position: relative; position: relative;
flex: 1; flex: 1;
display: flex; display: flex;
} }
} }
.echart-wr { .echart-wr {

Loading…
Cancel
Save