|
@@ -9,8 +9,8 @@ |
|
|
padding-top: 18px; |
|
|
padding-top: 18px; |
|
|
" |
|
|
" |
|
|
> |
|
|
> |
|
|
<span class="demonstration">楼盘名称:</span> |
|
|
|
|
|
<!-- <el-select |
|
|
|
|
|
|
|
|
<!-- <span class="demonstration">楼盘名称:</span> --> |
|
|
|
|
|
<el-select |
|
|
v-model="selValue" |
|
|
v-model="selValue" |
|
|
@change="selChange" |
|
|
@change="selChange" |
|
|
style="width: 100px" |
|
|
style="width: 100px" |
|
@@ -19,9 +19,8 @@ |
|
|
<el-option label="代理商" v-if="orgType == 0" value="0"></el-option> |
|
|
<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="公司" v-if="orgType != 2" value="1"></el-option> |
|
|
<el-option label="楼盘" value="2"></el-option> |
|
|
<el-option label="楼盘" value="2"></el-option> |
|
|
</el-select> --> |
|
|
|
|
|
<div style="width: 200px"> |
|
|
|
|
|
<!-- <el-input v-model="page.accountName"></el-input>--> |
|
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
<!-- <div style="width: 200px"> |
|
|
<el-select |
|
|
<el-select |
|
|
v-model="houseId" |
|
|
v-model="houseId" |
|
|
filterable |
|
|
filterable |
|
@@ -36,6 +35,55 @@ |
|
|
> |
|
|
> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
<div style="margin-left: 26px" v-if="selValue == 1"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="houseId" |
|
|
|
|
|
filterable |
|
|
|
|
|
placeholder="默认为全部" |
|
|
|
|
|
@change="change" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in houseList" |
|
|
|
|
|
:key="item.orgCode" |
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
:value="item.orgCode" |
|
|
|
|
|
> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- 楼盘 --> |
|
|
|
|
|
<div style="margin-left: 26px" v-else-if="selValue == 2"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="houseId" |
|
|
|
|
|
filterable |
|
|
|
|
|
placeholder="默认为全部" |
|
|
|
|
|
@change="change" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in houseList" |
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
:label="item.propertyName" |
|
|
|
|
|
:value="item.id" |
|
|
|
|
|
> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="margin-left: 26px" v-else> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="houseId" |
|
|
|
|
|
filterable |
|
|
|
|
|
placeholder="默认为全部" |
|
|
|
|
|
@change="change" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in houseList" |
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
:label="item.agentName" |
|
|
|
|
|
:value="item.id" |
|
|
|
|
|
> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@@ -697,7 +745,11 @@ export default { |
|
|
houseId: "", |
|
|
houseId: "", |
|
|
timeType: 0, |
|
|
timeType: 0, |
|
|
orgType: localStorage.getItem("orgType"), |
|
|
orgType: localStorage.getItem("orgType"), |
|
|
selValue:'0', |
|
|
|
|
|
|
|
|
selValue: localStorage.getItem("orgType") == 0 |
|
|
|
|
|
? "0" |
|
|
|
|
|
: localStorage.getItem("orgType") == 1 |
|
|
|
|
|
? "1" |
|
|
|
|
|
: "2", |
|
|
time: "", |
|
|
time: "", |
|
|
compareFlag: "0", |
|
|
compareFlag: "0", |
|
|
selectTime: "", |
|
|
selectTime: "", |
|
@@ -828,11 +880,12 @@ export default { |
|
|
selChange() { |
|
|
selChange() { |
|
|
this.choicValue = ""; |
|
|
this.choicValue = ""; |
|
|
this.timeType = 4; |
|
|
this.timeType = 4; |
|
|
// this.getList(); |
|
|
|
|
|
this.getTableList(); |
|
|
|
|
|
this.getdetail(); |
|
|
|
|
|
// 获取对比列表 |
|
|
|
|
|
this.getcompare(); |
|
|
|
|
|
|
|
|
this.houseId=''; |
|
|
|
|
|
this.getHouseList(); |
|
|
|
|
|
// this.getTableList(); |
|
|
|
|
|
// this.getdetail(); |
|
|
|
|
|
// // 获取对比列表 |
|
|
|
|
|
// this.getcompare(); |
|
|
}, |
|
|
}, |
|
|
// 没有对比时的折线图 |
|
|
// 没有对比时的折线图 |
|
|
getNoCompare(){ |
|
|
getNoCompare(){ |
|
@@ -842,7 +895,9 @@ export default { |
|
|
// pageSize: this.pageNum, |
|
|
// pageSize: this.pageNum, |
|
|
startDate: this.page.openTime, |
|
|
startDate: this.page.openTime, |
|
|
endDate: this.page.closeTime, |
|
|
endDate: this.page.closeTime, |
|
|
houseId: this.houseId, |
|
|
|
|
|
|
|
|
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null', |
|
|
|
|
|
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null', |
|
|
|
|
|
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null', |
|
|
timeType: this.timeType, |
|
|
timeType: this.timeType, |
|
|
contrastStartDate: this.selectTime, |
|
|
contrastStartDate: this.selectTime, |
|
|
contrastEndDate: this.selectTime1, |
|
|
contrastEndDate: this.selectTime1, |
|
@@ -1019,26 +1074,57 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//获取楼盘数据 |
|
|
//获取楼盘数据 |
|
|
getHouseList() { |
|
|
getHouseList() { |
|
|
this.$api.api |
|
|
|
|
|
.findHouseByUser({ |
|
|
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
|
|
}) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
this.houseList = res.data; |
|
|
|
|
|
if (!this.flag) { |
|
|
|
|
|
// console.log(this.flag, "12"); |
|
|
|
|
|
if (localStorage.getItem("orgType") == 3) { |
|
|
|
|
|
this.houseId = localStorage.getItem("houseId"); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.houseId = res.data[0].id; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// console.log(this.flag,'12') |
|
|
|
|
|
this.tabtimetap(this.timeType); |
|
|
|
|
|
// return |
|
|
|
|
|
this.getTableList(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if (this.selValue == 1) { |
|
|
|
|
|
this.$api.api |
|
|
|
|
|
.findMyOrg({ |
|
|
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
|
|
}) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
this.houseList = res.data; |
|
|
|
|
|
this.tabtimetap(this.timeType); |
|
|
|
|
|
this.getTableList(); |
|
|
|
|
|
}); |
|
|
|
|
|
} else if (this.selValue == 2) { |
|
|
|
|
|
this.$api.api |
|
|
|
|
|
.findHouseByUser({ |
|
|
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
|
|
houseId: localStorage.getItem("houseId"), |
|
|
|
|
|
}) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
this.houseList = res.data; |
|
|
|
|
|
this.tabtimetap(this.timeType); |
|
|
|
|
|
this.getTableList(); |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$api.api |
|
|
|
|
|
.findMyAgent({ |
|
|
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
|
|
}) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
this.houseList = res.data; |
|
|
|
|
|
this.tabtimetap(this.timeType); |
|
|
|
|
|
this.getTableList(); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.$api.api.findHouseByUser({ |
|
|
|
|
|
// orgType: localStorage.getItem("orgType"), |
|
|
|
|
|
// agentId: localStorage.getItem("agentId"), |
|
|
|
|
|
// }) |
|
|
|
|
|
// .then((res) => { |
|
|
|
|
|
// this.houseList = res.data; |
|
|
|
|
|
// if (!this.flag) { |
|
|
|
|
|
// if (localStorage.getItem("orgType") == 3) { |
|
|
|
|
|
// this.houseId = localStorage.getItem("houseId"); |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.houseId = res.data[0].id; |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// this.tabtimetap(this.timeType); |
|
|
|
|
|
// this.getTableList(); |
|
|
|
|
|
// }); |
|
|
}, |
|
|
}, |
|
|
handleSizeChange(val) { |
|
|
handleSizeChange(val) { |
|
|
console.log("每页条" + val); |
|
|
console.log("每页条" + val); |
|
@@ -1068,7 +1154,9 @@ export default { |
|
|
size: this.pageSize, |
|
|
size: this.pageSize, |
|
|
startDate: this.page.openTime, |
|
|
startDate: this.page.openTime, |
|
|
endDate: this.page.closeTime, |
|
|
endDate: this.page.closeTime, |
|
|
houseId: this.houseId, |
|
|
|
|
|
|
|
|
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null', |
|
|
|
|
|
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null', |
|
|
|
|
|
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null', |
|
|
timeType: this.timeType, |
|
|
timeType: this.timeType, |
|
|
contrastStartDate: this.selectTime, |
|
|
contrastStartDate: this.selectTime, |
|
|
contrastEndDate: this.selectTime1, |
|
|
contrastEndDate: this.selectTime1, |
|
@@ -1405,7 +1493,9 @@ export default { |
|
|
let obj = { |
|
|
let obj = { |
|
|
startDate: this.page.openTime, |
|
|
startDate: this.page.openTime, |
|
|
endDate: this.page.closeTime, |
|
|
endDate: this.page.closeTime, |
|
|
houseId: this.houseId, |
|
|
|
|
|
|
|
|
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null', |
|
|
|
|
|
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null', |
|
|
|
|
|
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null', |
|
|
timeType: this.timeType, |
|
|
timeType: this.timeType, |
|
|
contrastStartDate: this.selectTime, |
|
|
contrastStartDate: this.selectTime, |
|
|
contrastEndDate: this.selectTime1, |
|
|
contrastEndDate: this.selectTime1, |
|
@@ -1564,7 +1654,9 @@ export default { |
|
|
pageSize: this.page.pageSize, |
|
|
pageSize: this.page.pageSize, |
|
|
startDate: this.page.openTime, |
|
|
startDate: this.page.openTime, |
|
|
endDate: this.page.closeTime, |
|
|
endDate: this.page.closeTime, |
|
|
houseId: this.houseId, |
|
|
|
|
|
|
|
|
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null', |
|
|
|
|
|
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null', |
|
|
|
|
|
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null', |
|
|
timeType: this.timeType, |
|
|
timeType: this.timeType, |
|
|
orgType: localStorage.getItem("orgType"), |
|
|
orgType: localStorage.getItem("orgType"), |
|
|
}; |
|
|
}; |
|
|