|
@@ -18,6 +18,7 @@ export default {
|
|
|
},
|
|
|
total: 0,
|
|
|
search: "",
|
|
|
+ titleNames: "",
|
|
|
// Unittype: "", // 建筑分类
|
|
|
// year: "", // 年代
|
|
|
// hnum: "", //高度
|
|
@@ -30,8 +31,9 @@ export default {
|
|
|
props: {
|
|
|
qy: String,
|
|
|
default: Object,
|
|
|
- typeName:String,
|
|
|
- fxdjs:String
|
|
|
+ typeName: String,
|
|
|
+ fxdjs: String,
|
|
|
+ titleName: String,
|
|
|
},
|
|
|
watch: {
|
|
|
qy: {
|
|
@@ -59,6 +61,27 @@ export default {
|
|
|
immediate: true,
|
|
|
deep: true,
|
|
|
},
|
|
|
+ titleName: {
|
|
|
+ handler(val) {
|
|
|
+ this.params={}
|
|
|
+ if (val == "超高层建筑总数(栋)") {
|
|
|
+ this.params.gd = "100米以上";
|
|
|
+ this.funUnitList();
|
|
|
+ }
|
|
|
+ if (val == "2000年底前老旧住宅建筑总数(栋)") {
|
|
|
+ this.params.jcnd = "2000年前";
|
|
|
+ this.params.dl = "居民建筑";
|
|
|
+ this.funUnitList();
|
|
|
+ }
|
|
|
+ if (val == "2000年底前老旧商业混合体建筑总数(栋)") {
|
|
|
+ this.params.jcnd = "2000年前";
|
|
|
+ this.params.dl = "公共建筑";
|
|
|
+ this.funUnitList();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ deep: true,
|
|
|
+ },
|
|
|
value: {
|
|
|
handler() {
|
|
|
this.handUnitList();
|
|
@@ -89,31 +112,32 @@ export default {
|
|
|
// this.$router.push(`/detail?id=${val.id}`);
|
|
|
window.location.href = `/detail?id=${val.id}`;
|
|
|
},
|
|
|
- secrhList(title){
|
|
|
- if(title=='高层建筑总数(栋)'){
|
|
|
- this.funUnitList()
|
|
|
+ secrhList(title) {
|
|
|
+ this.params = {};
|
|
|
+ if (title == "高层建筑总数(栋)") {
|
|
|
+ this.funUnitList();
|
|
|
}
|
|
|
- if(title=='超高层建筑总数(栋)'){
|
|
|
- this.params.gd='100米以上'
|
|
|
- this.funUnitList()
|
|
|
+ if (title == "超高层建筑总数(栋)") {
|
|
|
+ this.params.gd = "100米以上";
|
|
|
+ this.funUnitList();
|
|
|
}
|
|
|
- if(title=='2000年底前老旧住宅建筑总数(栋)'){
|
|
|
- this.params.jcnd='2000年前'
|
|
|
- this.params.dl='居民建筑'
|
|
|
- this.funUnitList()
|
|
|
+ if (title == "2000年底前老旧住宅建筑总数(栋)") {
|
|
|
+ this.params.jcnd = "2000年前";
|
|
|
+ this.params.dl = "居民建筑";
|
|
|
+ this.funUnitList();
|
|
|
}
|
|
|
- if(title=='2000年底前老旧商业混合体建筑总数(栋)'){
|
|
|
- this.params.jcnd='2000年前'
|
|
|
- this.params.dl='公共建筑'
|
|
|
- this.funUnitList()
|
|
|
+ if (title == "2000年底前老旧商业混合体建筑总数(栋)") {
|
|
|
+ this.params.jcnd = "2000年前";
|
|
|
+ this.params.dl = "公共建筑";
|
|
|
+ this.funUnitList();
|
|
|
}
|
|
|
- if(title=='公共建筑总数(栋)'){
|
|
|
- this.params.dl='公共建筑'
|
|
|
- this.funUnitList()
|
|
|
+ if (title == "公共建筑总数(栋)") {
|
|
|
+ this.params.dl = "公共建筑";
|
|
|
+ this.funUnitList();
|
|
|
}
|
|
|
- if(title=='工业建筑总数(栋)'){
|
|
|
- this.params.dl='公业建筑'
|
|
|
- this.funUnitList()
|
|
|
+ if (title == "工业建筑总数(栋)") {
|
|
|
+ this.params.dl = "公业建筑";
|
|
|
+ this.funUnitList();
|
|
|
}
|
|
|
},
|
|
|
funUnitList() {
|
|
@@ -208,8 +232,17 @@ export default {
|
|
|
<div>
|
|
|
<!-- 建筑数 -->
|
|
|
<div class="unit-bulid">
|
|
|
- <div class="unit-num" v-for="(item, index) in unitList" :key="index" @click="secrhList(item.title)" style="cursor: pointer;">
|
|
|
- <span style="display: inline-block; margin: 10px 5px 15px 5px; height: 40px;">{{ item.title }}</span>
|
|
|
+ <div
|
|
|
+ class="unit-num"
|
|
|
+ v-for="(item, index) in unitList"
|
|
|
+ :key="index"
|
|
|
+ @click="secrhList(item.title)"
|
|
|
+ style="cursor: pointer"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ style="display: inline-block; margin: 10px 5px 15px 5px; height: 40px"
|
|
|
+ >{{ item.title }}</span
|
|
|
+ >
|
|
|
<!-- <span class="build-num">{{ item.unitNum }}</span> -->
|
|
|
<LinearText
|
|
|
style="display: inline-block"
|