Browse Source

提交导出按钮

master
风继续吹 1 year ago
parent
commit
728b627bd9
1 changed files with 14 additions and 24 deletions
  1. +14
    -24
      src/views/Statistics/Insightintothedetails.vue

+ 14
- 24
src/views/Statistics/Insightintothedetails.vue View File

@@ -154,8 +154,8 @@ export default {
input: "", input: "",
tableData: [], tableData: [],
fromobj: { fromobj: {
starttime: "",
endoftime: "",
staDate: "",
endDate: "",
name: "", name: "",
agentName: "", agentName: "",
projectId: localStorage.getItem("houseId"), projectId: localStorage.getItem("houseId"),
@@ -178,8 +178,8 @@ export default {
var isnull = this.$route.query.flag; var isnull = this.$route.query.flag;
if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose; if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose;
if (isnull.customtime) this.customtime = isnull.customtime; if (isnull.customtime) this.customtime = isnull.customtime;
this.fromobj.starttime = isnull.starttime;
this.fromobj.endoftime = isnull.endoftime;
this.fromobj.staDate = isnull.starttime;
this.fromobj.endDate = isnull.endoftime;
this.fromobj.projectId = isnull.houseId this.fromobj.projectId = isnull.houseId
this.fromobj.keywords = isnull.keywordsId; this.fromobj.keywords = isnull.keywordsId;
if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) { if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) {
@@ -231,8 +231,8 @@ export default {
.findKeywords({ .findKeywords({
type: this.fromobj.type, type: this.fromobj.type,
dateType: datatype, dateType: datatype,
statDateStart: this.fromobj.starttime,
statDateEnd: this.fromobj.endoftime,
statDateStart: this.fromobj.staDate,
statDateEnd: this.fromobj.endDate,
projectId: this.fromobj.projectId, projectId: this.fromobj.projectId,
}) })
.then((res) => { .then((res) => {
@@ -252,12 +252,7 @@ export default {
this.$api.http this.$api.http
.receptionRecord({ .receptionRecord({
dateType: dateType, dateType: dateType,
staDate: this.fromobj.starttime,
endDate: this.fromobj.endoftime,
projectId: this.fromobj.projectId,
name: this.fromobj.name,
agentName: this.fromobj.agentName,
type: this.fromobj.type,
...this.fromobj,
time: 1, time: 1,
keywordIds: keywordIds:
this.fromobj.keywordIds.length > 0 this.fromobj.keywordIds.length > 0
@@ -285,12 +280,7 @@ export default {
"洞察详情", "洞察详情",
{ {
dateType: dateType, dateType: dateType,
staDate: this.fromobj.starttime,
endDate: this.fromobj.endoftime,
projectId: this.fromobj.projectId,
name: this.fromobj.name,
agentName: this.fromobj.agentName,
type: this.fromobj.type,
...this.fromobj,
time: 1, time: 1,
keywordIds: keywordIds:
this.fromobj.keywordIds.length > 0 this.fromobj.keywordIds.length > 0
@@ -343,8 +333,8 @@ export default {
//清空筛选条件 //清空筛选条件
Screeningofempty() { Screeningofempty() {
this.TimetoAhoose = 2; this.TimetoAhoose = 2;
this.fromobj.starttime = "";
this.fromobj.endoftime = "";
this.fromobj.staDate = "";
this.fromobj.endDate = "";
this.fromobj.name = ""; this.fromobj.name = "";
this.fromobj.agentName = ""; this.fromobj.agentName = "";
this.fromobj.keywords = ""; this.fromobj.keywords = "";
@@ -357,8 +347,8 @@ export default {
//切换时间 //切换时间
tabtimetap(index) { tabtimetap(index) {
this.TimetoAhoose = index; this.TimetoAhoose = index;
this.fromobj.starttime = "";
this.fromobj.endoftime = "";
this.fromobj.staDate = "";
this.fromobj.endDate = "";
this.customtime = []; this.customtime = [];
this.pageNum = 1; this.pageNum = 1;
this.receptionRecord(); this.receptionRecord();
@@ -366,8 +356,8 @@ export default {
//自定义时间 //自定义时间
confirmtime() { confirmtime() {
this.TimetoAhoose = 6; this.TimetoAhoose = 6;
this.fromobj.starttime = this.customtime[0];
this.fromobj.endoftime = this.customtime[1];
this.fromobj.staDate = this.customtime[0];
this.fromobj.endDate = this.customtime[1];
this.pageNum = 1; this.pageNum = 1;
this.receptionRecord(); this.receptionRecord();
}, },


Loading…
Cancel
Save