|
@@ -14,7 +14,7 @@
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip v-if="dyData.length>0" content="点击放大镜前往贝壳查询该小区成交信息(请提前登录贝壳官网)" placement="top-end" effect="light">
|
|
<el-tooltip v-if="dyData.length>0" content="点击放大镜前往贝壳查询该小区成交信息(请提前登录贝壳官网)" placement="top-end" effect="light">
|
|
- <el-input style="margin-left: 20px; width: 300px; color: red;" v-model="communityName" >
|
|
|
|
|
|
+ <el-input id="community" style="margin-left: 20px; width: 300px;" v-model="communityName" >
|
|
<template slot="prepend">贝壳查询</template>
|
|
<template slot="prepend">贝壳查询</template>
|
|
<el-button slot="append" icon="el-icon-search" @click="toke()"></el-button>
|
|
<el-button slot="append" icon="el-icon-search" @click="toke()"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
@@ -484,6 +484,7 @@ export default {
|
|
},
|
|
},
|
|
queryFacePrice() {
|
|
queryFacePrice() {
|
|
let query = this.queryParam;
|
|
let query = this.queryParam;
|
|
|
|
+ this.communityName = null;
|
|
if (this.queryType === 'location') {
|
|
if (this.queryType === 'location') {
|
|
if (query.queryTarget!=null && query.queryTarget!='') {
|
|
if (query.queryTarget!=null && query.queryTarget!='') {
|
|
this.personalPriceByLocation(query);
|
|
this.personalPriceByLocation(query);
|
|
@@ -527,6 +528,14 @@ export default {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
if (res.data != null) {
|
|
if (res.data != null) {
|
|
this.enternalData = res.data;
|
|
this.enternalData = res.data;
|
|
|
|
+ if (!this.communityName && this.enternalData.deals.length>0){
|
|
|
|
+ for (let i in this.enternalData.deals){
|
|
|
|
+ if (this.enternalData.deals[i].communityName){
|
|
|
|
+ this.communityName = this.enternalData.deals[i].communityName;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
let emptyObject = new Object();
|
|
let emptyObject = new Object();
|
|
emptyObject.deals = [];
|
|
emptyObject.deals = [];
|
|
@@ -557,6 +566,14 @@ export default {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
if (res.data != null) {
|
|
if (res.data != null) {
|
|
this.enternalData = res.data;
|
|
this.enternalData = res.data;
|
|
|
|
+ if (!this.communityName && this.enternalData.deals.length>0){
|
|
|
|
+ for (let i in this.enternalData.deals){
|
|
|
|
+ if (this.enternalData.deals[i].communityName){
|
|
|
|
+ this.communityName = this.enternalData.deals[i].communityName;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
let emptyObject = new Object();
|
|
let emptyObject = new Object();
|
|
emptyObject.deals = [];
|
|
emptyObject.deals = [];
|
|
@@ -626,6 +643,16 @@ export default {
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// /deep/.el-input__inner{
|
|
|
|
+// color: red;
|
|
|
|
+// font-weight: bold;
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+/deep/#community{
|
|
|
|
+ color: red;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+}
|
|
|
|
+
|
|
.data-class {
|
|
.data-class {
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
}
|