From 349ecac9d5df0b699bb1cb6cb2c5f89daaa4776f Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Sat, 20 Nov 2021 16:15:37 +0800 Subject: [PATCH] init --- src/views/Customer/AgentManagement.vue | 10 ++++-- src/views/Customer/CompanyRecord.vue | 14 +++++---- src/views/Customer/index.vue | 42 +++++++++++--------------- src/views/ReceivingRecords/index.vue | 33 ++++++++++---------- 4 files changed, 51 insertions(+), 48 deletions(-) diff --git a/src/views/Customer/AgentManagement.vue b/src/views/Customer/AgentManagement.vue index 2923bc6..ed8208f 100644 --- a/src/views/Customer/AgentManagement.vue +++ b/src/views/Customer/AgentManagement.vue @@ -162,7 +162,7 @@ - + @@ -239,7 +239,7 @@ - + @@ -675,6 +675,12 @@ export default { this.optionscityId= res.data }); }, + reset1(){ + this.$refs.addagentobj.resetFields(); + }, + reset2(){ + this.$refs.editoragentobj.resetFields(); + }, //确认编辑 editor(){ if(!this.resetFlag){ diff --git a/src/views/Customer/CompanyRecord.vue b/src/views/Customer/CompanyRecord.vue index 3799fee..bf620e2 100644 --- a/src/views/Customer/CompanyRecord.vue +++ b/src/views/Customer/CompanyRecord.vue @@ -120,7 +120,7 @@ - + @@ -183,7 +183,7 @@ - + @@ -563,9 +563,6 @@ export default { } }) }, - reset(){ - this.$refs.addagentobj.resetFields(); - }, saveOpera(){ this.$refs.operaForm.validate(valid=>{ if(valid){ @@ -718,7 +715,12 @@ export default { - + reset1(){ + this.$refs.addagentobj.resetFields(); + }, + reset2(){ + this.$refs.editoragentobj.resetFields(); + }, //更换 inforeplace(row){ this.replaceagentobj.id=row.id; diff --git a/src/views/Customer/index.vue b/src/views/Customer/index.vue index bf8a69d..2dfa4af 100644 --- a/src/views/Customer/index.vue +++ b/src/views/Customer/index.vue @@ -527,13 +527,8 @@ export default { }else{ this.searchForm.projectId = res.data[0].id; } - // 获取接待记录列表 - this.findbypage(); - // 获取客户意向 - // this.findKeywords(); - // 获取置业顾问列表 - this.findUserListByHouseId(); - this.tabtimetap(0); + this.houseChange(); + // this.tabtimetap(0); }); }, // 置业顾问列表 @@ -560,23 +555,22 @@ export default { this.searchForm.endDate = ""; // this.$set(this, "time", null); this.searchForm.dateType = idx; - let num = 24 * 3600 * 1000; - // 获取当前时间戳转换为日期格式 - if (idx == 0) { - num = 24 * 3600 * 1000 * 0; - } - if (idx == 2) { - num = 24 * 3600 * 1000 * 6; - } - if (idx == 6) { - num = 24 * 3600 * 1000 * 29; - } - this.time = [ - this.timestampToTime(new Date().getTime() - num), - this.timestampToTime(new Date().getTime()), - ]; - - this.findKeywords() + // let num = 24 * 3600 * 1000; + // // 获取当前时间戳转换为日期格式 + // if (idx == 0) { + // num = 24 * 3600 * 1000 * 0; + // } + // if (idx == 2) { + // num = 24 * 3600 * 1000 * 6; + // } + // if (idx == 6) { + // num = 24 * 3600 * 1000 * 29; + // } + // this.time = [ + // this.timestampToTime(new Date().getTime() - num), + // this.timestampToTime(new Date().getTime()), + // ]; + this.houseChange(); }, timestampToTime(timestamp) { var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue index 73095a1..f6cf607 100644 --- a/src/views/ReceivingRecords/index.vue +++ b/src/views/ReceivingRecords/index.vue @@ -484,8 +484,9 @@ export default { } else { this.searchForm.projectId = res.data[0].id; } + this.houseChange(); // this.searchForm.projectId = res.data[0].id; - this.tabtimetap(0); + // this.tabtimetap(0); // // 获取接待记录列表 // this.findbypage(); // // 获取客户意向 @@ -518,21 +519,21 @@ export default { this.searchForm.endDate = ""; // this.$set(this, "time", null); this.searchForm.dateType = idx; - let num = 24 * 3600 * 1000; - // 获取当前时间戳转换为日期格式 - if (idx == 0) { - num = 24 * 3600 * 1000 * 0; - } - if (idx == 1) { - num = 24 * 3600 * 1000 * 1; - } - if (idx == 2) { - num = 24 * 3600 * 1000 * 7; - } - this.time = [ - this.timestampToTime(new Date().getTime() - num), - this.timestampToTime(new Date().getTime()), - ]; + // let num = 24 * 3600 * 1000; + // // 获取当前时间戳转换为日期格式 + // if (idx == 0) { + // num = 24 * 3600 * 1000 * 0; + // } + // if (idx == 1) { + // num = 24 * 3600 * 1000 * 1; + // } + // if (idx == 2) { + // num = 24 * 3600 * 1000 * 7; + // } + // this.time = [ + // this.timestampToTime(new Date().getTime() - num), + // this.timestampToTime(new Date().getTime()), + // ]; this.houseChange(); }, timestampToTime(timestamp) {