| @@ -162,7 +162,7 @@ | |||||
| </div> | </div> | ||||
| <el-dialog title="新增代理" :visible.sync="dialogVisible" > | |||||
| <el-dialog title="新增代理" :visible.sync="dialogVisible" @close='reset1'> | |||||
| <el-form :model="addagentobj" label-position="labelPosition" :rules="rules" ref="addagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | <el-form :model="addagentobj" label-position="labelPosition" :rules="rules" ref="addagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | ||||
| <el-form-item label="代理商名称:" prop="agentName"> | <el-form-item label="代理商名称:" prop="agentName"> | ||||
| <el-input v-model="addagentobj.agentName" maxlength="30" clearable></el-input> | <el-input v-model="addagentobj.agentName" maxlength="30" clearable></el-input> | ||||
| @@ -239,7 +239,7 @@ | |||||
| </el-dialog> | </el-dialog> | ||||
| <el-dialog title="编辑" :visible.sync="dialogVisible2" > | |||||
| <el-dialog title="编辑" :visible.sync="dialogVisible2" @close='reset2'> | |||||
| <el-form :model="editoragentobj" label-position="labelPosition" :rules="editorrules" ref="editoragentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | <el-form :model="editoragentobj" label-position="labelPosition" :rules="editorrules" ref="editoragentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | ||||
| <el-form-item label="代理商名称:" prop="agentName"> | <el-form-item label="代理商名称:" prop="agentName"> | ||||
| <el-input v-model="editoragentobj.agentName" maxlength="30" clearable></el-input> | <el-input v-model="editoragentobj.agentName" maxlength="30" clearable></el-input> | ||||
| @@ -675,6 +675,12 @@ export default { | |||||
| this.optionscityId= res.data | this.optionscityId= res.data | ||||
| }); | }); | ||||
| }, | }, | ||||
| reset1(){ | |||||
| this.$refs.addagentobj.resetFields(); | |||||
| }, | |||||
| reset2(){ | |||||
| this.$refs.editoragentobj.resetFields(); | |||||
| }, | |||||
| //确认编辑 | //确认编辑 | ||||
| editor(){ | editor(){ | ||||
| if(!this.resetFlag){ | if(!this.resetFlag){ | ||||
| @@ -120,7 +120,7 @@ | |||||
| </div> | </div> | ||||
| <el-dialog title="新增公司" :visible.sync="dialogVisible" @close='reset'> | |||||
| <el-dialog title="新增公司" :visible.sync="dialogVisible" @close='reset1'> | |||||
| <el-form :model="addagentobj" label-position="labelPosition" :rules="rules" ref="addagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | <el-form :model="addagentobj" label-position="labelPosition" :rules="rules" ref="addagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | ||||
| <!-- <el-form-item label="代理商名称:" prop="agentId"> --> | <!-- <el-form-item label="代理商名称:" prop="agentId"> --> | ||||
| <!-- <el-select v-model="addagentobj.agentId" placeholder="请选择" @change='clickagentId()'> --> | <!-- <el-select v-model="addagentobj.agentId" placeholder="请选择" @change='clickagentId()'> --> | ||||
| @@ -183,7 +183,7 @@ | |||||
| </el-dialog> | </el-dialog> | ||||
| <el-dialog title="编辑" :visible.sync="dialogVisible2" > | |||||
| <el-dialog title="编辑" :visible.sync="dialogVisible2" @close='reset2'> | |||||
| <el-form :model="editoragentobj" label-position="labelPosition" :rules="editorrules" ref="editoragentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | <el-form :model="editoragentobj" label-position="labelPosition" :rules="editorrules" ref="editoragentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | ||||
| <!-- <el-form-item label="代理商名称:" prop="operator"> --> | <!-- <el-form-item label="代理商名称:" prop="operator"> --> | ||||
| <!-- <el-select v-model="editoragentobj.operator" placeholder="请选择" @change='clickagentId22()'> --> | <!-- <el-select v-model="editoragentobj.operator" placeholder="请选择" @change='clickagentId22()'> --> | ||||
| @@ -563,9 +563,6 @@ export default { | |||||
| } | } | ||||
| }) | }) | ||||
| }, | }, | ||||
| reset(){ | |||||
| this.$refs.addagentobj.resetFields(); | |||||
| }, | |||||
| saveOpera(){ | saveOpera(){ | ||||
| this.$refs.operaForm.validate(valid=>{ | this.$refs.operaForm.validate(valid=>{ | ||||
| if(valid){ | if(valid){ | ||||
| @@ -718,7 +715,12 @@ export default { | |||||
| reset1(){ | |||||
| this.$refs.addagentobj.resetFields(); | |||||
| }, | |||||
| reset2(){ | |||||
| this.$refs.editoragentobj.resetFields(); | |||||
| }, | |||||
| //更换 | //更换 | ||||
| inforeplace(row){ | inforeplace(row){ | ||||
| this.replaceagentobj.id=row.id; | this.replaceagentobj.id=row.id; | ||||
| @@ -527,13 +527,8 @@ export default { | |||||
| }else{ | }else{ | ||||
| this.searchForm.projectId = res.data[0].id; | 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.searchForm.endDate = ""; | ||||
| // this.$set(this, "time", null); | // this.$set(this, "time", null); | ||||
| this.searchForm.dateType = idx; | 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) { | timestampToTime(timestamp) { | ||||
| var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 | var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 | ||||
| @@ -484,8 +484,9 @@ export default { | |||||
| } else { | } else { | ||||
| this.searchForm.projectId = res.data[0].id; | this.searchForm.projectId = res.data[0].id; | ||||
| } | } | ||||
| this.houseChange(); | |||||
| // this.searchForm.projectId = res.data[0].id; | // this.searchForm.projectId = res.data[0].id; | ||||
| this.tabtimetap(0); | |||||
| // this.tabtimetap(0); | |||||
| // // 获取接待记录列表 | // // 获取接待记录列表 | ||||
| // this.findbypage(); | // this.findbypage(); | ||||
| // // 获取客户意向 | // // 获取客户意向 | ||||
| @@ -518,21 +519,21 @@ export default { | |||||
| this.searchForm.endDate = ""; | this.searchForm.endDate = ""; | ||||
| // this.$set(this, "time", null); | // this.$set(this, "time", null); | ||||
| this.searchForm.dateType = idx; | 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(); | this.houseChange(); | ||||
| }, | }, | ||||
| timestampToTime(timestamp) { | timestampToTime(timestamp) { | ||||