@@ -113,7 +113,7 @@ | |||||
</div> | </div> | ||||
<div class="content" v-if="flag == 3"> | <div class="content" v-if="flag == 3"> | ||||
<div class="search"> | <div class="search"> | ||||
<span style="line-height: 32px; margin-right: 20px">区域:</span> | |||||
<span style="line-height: 32px; margin-right: 20px">片区:</span> | |||||
<el-cascader | <el-cascader | ||||
:props="props" | :props="props" | ||||
v-if="info.selectHouseType == 1" | v-if="info.selectHouseType == 1" | ||||
@@ -134,9 +134,9 @@ | |||||
> | > | ||||
<el-option | <el-option | ||||
v-for="item in options" | v-for="item in options" | ||||
:key="item.value" | |||||
:label="item.label" | |||||
:value="item.value" | |||||
:key="item.id" | |||||
:label="item.areaName" | |||||
:value="item.provinceItem" | |||||
> | > | ||||
</el-option> | </el-option> | ||||
</el-select> | </el-select> | ||||
@@ -149,7 +149,7 @@ | |||||
> | > | ||||
</el-input> | </el-input> | ||||
<el-button | <el-button | ||||
style="height: 32px; line-height: 13px" | |||||
style="height: 32px; line-height: 13px;margin-left:10px;" | |||||
type="primary" | type="primary" | ||||
size="medium" | size="medium" | ||||
@click="screenzkhousePage" | @click="screenzkhousePage" | ||||
@@ -318,7 +318,7 @@ export default { | |||||
findArea() { | findArea() { | ||||
this.$api.api.findArea().then((res) => { | this.$api.api.findArea().then((res) => { | ||||
console.log(res); | console.log(res); | ||||
this.options = res.data.records; | |||||
this.options = res.data; | |||||
}); | }); | ||||
}, | }, | ||||
zkhousePage() { | zkhousePage() { | ||||
@@ -342,7 +342,7 @@ export default { | |||||
if (this.info.selectHouseType == 2) { | if (this.info.selectHouseType == 2) { | ||||
this.$api.api | this.$api.api | ||||
.findHouseByArea({ | .findHouseByArea({ | ||||
id: this.area, | |||||
provinceItem: this.area, | |||||
...obj | ...obj | ||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
@@ -89,10 +89,11 @@ | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column | ||||
:show-overflow-tooltip="true" width="140px" | :show-overflow-tooltip="true" width="140px" | ||||
prop="address" | |||||
prop="provinceName,cityName" | |||||
label="地址" | label="地址" | ||||
align="center" | align="center" | ||||
> | > | ||||
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template> | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column | ||||
width="140px" | width="140px" | ||||
@@ -95,10 +95,11 @@ | |||||
<el-table-column | <el-table-column | ||||
:show-overflow-tooltip="true" | :show-overflow-tooltip="true" | ||||
width="120px" | width="120px" | ||||
prop="address" | |||||
prop="provinceName,cityName" | |||||
label="公司地址" | label="公司地址" | ||||
align="center" | align="center" | ||||
> | > | ||||
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template> | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="联系人信息" align="center"> | <el-table-column label="联系人信息" align="center"> | ||||
<template slot-scope="scope"> | <template slot-scope="scope"> | ||||
@@ -83,7 +83,8 @@ | |||||
align="center" | align="center" | ||||
> | > | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column prop="address" label="公司地址" align="center"> | |||||
<el-table-column prop="provinceName,cityName" label="公司地址" align="center"> | |||||
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template> | |||||
</el-table-column> | </el-table-column> | ||||
<!-- <el-table-column | <!-- <el-table-column | ||||
label="联系人信息" | label="联系人信息" | ||||
@@ -10,6 +10,16 @@ | |||||
" | " | ||||
> | > | ||||
<span class="demonstration">楼盘名称:</span> | <span class="demonstration">楼盘名称:</span> | ||||
<!-- <el-select | |||||
v-model="selValue" | |||||
@change="selChange" | |||||
style="width: 100px" | |||||
placeholder="请选择" | |||||
> | |||||
<el-option label="代理商" v-if="orgType == 0" value="0"></el-option> | |||||
<el-option label="公司" v-if="orgType != 2" value="1"></el-option> | |||||
<el-option label="楼盘" value="2"></el-option> | |||||
</el-select> --> | |||||
<div style="width: 200px"> | <div style="width: 200px"> | ||||
<!-- <el-input v-model="page.accountName"></el-input>--> | <!-- <el-input v-model="page.accountName"></el-input>--> | ||||
<el-select | <el-select | ||||
@@ -687,6 +697,7 @@ export default { | |||||
houseId: "", | houseId: "", | ||||
timeType: 0, | timeType: 0, | ||||
orgType: localStorage.getItem("orgType"), | orgType: localStorage.getItem("orgType"), | ||||
selValue:'0', | |||||
time: "", | time: "", | ||||
compareFlag: "0", | compareFlag: "0", | ||||
selectTime: "", | selectTime: "", | ||||
@@ -814,6 +825,15 @@ export default { | |||||
// this.getTableList() | // this.getTableList() | ||||
}, | }, | ||||
methods: { | methods: { | ||||
selChange() { | |||||
this.choicValue = ""; | |||||
this.timeType = 4; | |||||
// this.getList(); | |||||
this.getTableList(); | |||||
this.getdetail(); | |||||
// 获取对比列表 | |||||
this.getcompare(); | |||||
}, | |||||
// 没有对比时的折线图 | // 没有对比时的折线图 | ||||
getNoCompare(){ | getNoCompare(){ | ||||
this.compareFlag = 0; | this.compareFlag = 0; | ||||
@@ -844,6 +864,7 @@ export default { | |||||
this.selectTime1 = ""; | this.selectTime1 = ""; | ||||
this.compareList = []; | this.compareList = []; | ||||
this.$set(this, "time", null); | this.$set(this, "time", null); | ||||
this.getcompare(); | |||||
}, | }, | ||||
goinfo(row, idx) { | goinfo(row, idx) { | ||||
console.log(row, "信息"); | console.log(row, "信息"); | ||||
@@ -958,13 +979,13 @@ export default { | |||||
}, | }, | ||||
screening() { | screening() { | ||||
this.page.pageNum = 1; | this.page.pageNum = 1; | ||||
this.page.pageSize = 6; | |||||
this.page.pageSize = 10; | |||||
this.getTableList(); | this.getTableList(); | ||||
}, | }, | ||||
empty() { | empty() { | ||||
this.page = { | this.page = { | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 6, | |||||
pageSize: 10, | |||||
openTime: "", | openTime: "", | ||||
closeTime: "", | closeTime: "", | ||||
houseName: "", | houseName: "", | ||||
@@ -1038,7 +1059,7 @@ export default { | |||||
this.compareFlag = 0; | this.compareFlag = 0; | ||||
let obj = { | let obj = { | ||||
current: this.pageNum, | current: this.pageNum, | ||||
pageSize: this.pageSize, | |||||
size: this.pageSize, | |||||
startDate: this.page.openTime, | startDate: this.page.openTime, | ||||
endDate: this.page.closeTime, | endDate: this.page.closeTime, | ||||
houseId: this.houseId, | houseId: this.houseId, | ||||
@@ -1056,7 +1077,7 @@ export default { | |||||
.then((res) => { | .then((res) => { | ||||
console.log(res,'获取数据') | console.log(res,'获取数据') | ||||
this.allCompare = res; | this.allCompare = res; | ||||
this.total = res.data.first.totalRecord; | |||||
this.total = res.data.firstPage.total; | |||||
// 数据处理 | // 数据处理 | ||||
let arr = []; | let arr = []; | ||||
if (this.pageNum == 1) { | if (this.pageNum == 1) { | ||||
@@ -1070,15 +1091,15 @@ export default { | |||||
}; | }; | ||||
arr.push(obj1); | arr.push(obj1); | ||||
} | } | ||||
res.data.first.records.map((item, index) => { | |||||
res.data.firstPage.records.map((item, index) => { | |||||
let obj = {}; | let obj = {}; | ||||
//当他为0的时候 | //当他为0的时候 | ||||
obj.name = | obj.name = | ||||
res.data.first.records[index].createTime.substring(5, 10) + | |||||
res.data.firstPage.records[index].createTime.substring(5, 10) + | |||||
"VS" + | "VS" + | ||||
res.data.second.records[index].createTime.substring(5, 10); | |||||
obj.first = res.data.first.records[index]; | |||||
obj.second = res.data.second.records[index]; | |||||
res.data.secondPage.records[index].createTime.substring(5, 10); | |||||
obj.first = res.data.firstPage.records[index]; | |||||
obj.second = res.data.secondPage.records[index]; | |||||
obj.contrast = res.data.contrast[index]; | obj.contrast = res.data.contrast[index]; | ||||
// obj.time='' | // obj.time='' | ||||
// obj.time1='' | // obj.time1='' | ||||
@@ -1149,12 +1170,18 @@ export default { | |||||
item.time = item.first[str]; | item.time = item.first[str]; | ||||
item.time1 = item.second[str]; | item.time1 = item.second[str]; | ||||
item.time2 = item.contrast[str] + ""; | item.time2 = item.contrast[str] + ""; | ||||
if (index > 0) { | |||||
timeDate.push(item.name); | |||||
arr1.push(item.first[str]); | |||||
arr2.push(item.second[str]); | |||||
} | |||||
// if (index > 0) { | |||||
// timeDate.push(item.name); | |||||
// arr1.push(item.first[str]); | |||||
// arr2.push(item.second[str]); | |||||
// } | |||||
}); | }); | ||||
this.allCompare.data.first.map((item,idx)=>{ | |||||
timeDate.push(item.createTime.substring(5)+'VS'+this.allCompare.data.second[idx].createTime.substring(5)) | |||||
arr1.push(item[str]) | |||||
arr2.push(this.allCompare.data.second[idx][str]) | |||||
}) | |||||
this.compareList = Object.assign([], this.compareList); | this.compareList = Object.assign([], this.compareList); | ||||
this.$forceUpdate(); | this.$forceUpdate(); | ||||
var chartDom = document.getElementById("compare"); | var chartDom = document.getElementById("compare"); | ||||
@@ -1264,7 +1291,7 @@ export default { | |||||
// console.log(this.allCompare,"第一种"); | // console.log(this.allCompare,"第一种"); | ||||
let timeDate = []; | let timeDate = []; | ||||
let arr1 = []; | let arr1 = []; | ||||
this.allCompare.data.first.records.map(item=>{ | |||||
this.allCompare.data.first.map(item=>{ | |||||
timeDate.push(item.createTime.substring(5)) | timeDate.push(item.createTime.substring(5)) | ||||
arr1.push(item[str]) | arr1.push(item[str]) | ||||
}) | }) | ||||
@@ -1200,6 +1200,7 @@ export default { | |||||
this.$api.api | this.$api.api | ||||
.findHouseByUser({ | .findHouseByUser({ | ||||
orgType: localStorage.getItem("orgType"), | orgType: localStorage.getItem("orgType"), | ||||
houseTypes:'0,1,2,3' | |||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
// console.log(res) | // console.log(res) | ||||
@@ -2,7 +2,7 @@ | |||||
<div class="box-center"> | <div class="box-center"> | ||||
<!-- 头 --> | <!-- 头 --> | ||||
<div class="app-top"> | <div class="app-top"> | ||||
<div class="app-titel" style="margin-left: 15px"> | |||||
<div class="app-titel" style="margin-left: 15px" v-if="orgType!=3"> | |||||
<el-select | <el-select | ||||
v-model="selValue" | v-model="selValue" | ||||
@change="selChange1" | @change="selChange1" | ||||
@@ -919,9 +919,9 @@ export default { | |||||
// orgCode: localStorage.getItem("orgCode"), | // orgCode: localStorage.getItem("orgCode"), | ||||
// agentId: localStorage.getItem("agentId"), | // agentId: localStorage.getItem("agentId"), | ||||
// houseId: localStorage.getItem("houseId"), | // houseId: localStorage.getItem("houseId"), | ||||
agentId: this.selValue == 0 ? this.choicValue : 'null', | |||||
orgCode: this.selValue == 1 ? this.choicValue : 'null', | |||||
houseId: this.selValue == 2 ? this.choicValue : 'null', | |||||
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.choicValue : 'null', | |||||
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.choicValue : 'null', | |||||
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.choicValue : 'null', | |||||
orgType: localStorage.getItem("orgType"), | orgType: localStorage.getItem("orgType"), | ||||
...this.searchForm, | ...this.searchForm, | ||||
}) | }) | ||||
@@ -1006,7 +1006,7 @@ export default { | |||||
.then((res) => { | .then((res) => { | ||||
this.$message({ | this.$message({ | ||||
type: "success", | type: "success", | ||||
message: "操作成功!", | |||||
message: res.msg, | |||||
}); | }); | ||||
this.getTableList(); | this.getTableList(); | ||||
}); | }); | ||||
@@ -158,14 +158,14 @@ | |||||
clearable | clearable | ||||
></el-cascader> | ></el-cascader> | ||||
</div> | </div> | ||||
<div class="div-lab" v-if="activeTotal == 0"> | |||||
<div class="div-lab" v-if="orgType == 0"> | |||||
<div class="label" style="min-width:70px;">系统运营:</div> | <div class="label" style="min-width:70px;">系统运营:</div> | ||||
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> | <el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> | ||||
</div> | </div> | ||||
<!-- <div class="div-lab" v-if="activeTotal == 0"> | |||||
<div class="label" style="min-width:70px;">系统运营:</div> | |||||
<div class="div-lab" v-if="orgType == 1"> | |||||
<div class="label" style="min-width:70px;">售后运营:</div> | |||||
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> | <el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> | ||||
</div> --> | |||||
</div> | |||||
</div> | </div> | ||||
<div class="app-titel" style="margin-top: 15px"> | <div class="app-titel" style="margin-top: 15px"> | ||||
<div style="margin-left: 20px"> | <div style="margin-left: 20px"> | ||||
@@ -240,10 +240,11 @@ | |||||
<el-table-column | <el-table-column | ||||
:show-overflow-tooltip="true" | :show-overflow-tooltip="true" | ||||
width="120px" | width="120px" | ||||
prop="address" | |||||
prop="provinceName,cityName" | |||||
label="楼盘地址" | label="楼盘地址" | ||||
align="center" | align="center" | ||||
> | > | ||||
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template> | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column | ||||