@@ -41,10 +41,24 @@
"
>
+
+
+
@@ -56,7 +70,7 @@
:height="360"
:action="index"
:table-item="table"
- :req-opt="select"
+ :req-opt="selectList"
@row-click="pickRow"
>
@@ -66,12 +80,16 @@
-
-
-
{{ item.name }}
-
{{ contentFormat(item) }}
+
+
+
+
{{ item.name }}
+
{{ contentFormat(item) }}{{ units.get(item.field) }}
+
-
+
+
+
查看详情
@@ -86,8 +104,30 @@ export default {
return {
dragging: false,
searchShow: false,
+ selectList: {
+ table_name: "assets",
+ filter: [
+ {
+ key: 'suoshuqu',
+ op: 'eq',
+ value: ''
+ },
+ {
+ key: 'dikuaimingcheng',
+ op: 'like',
+ value: ''
+ }
+ ]
+ },
select: {
table_name: "assets",
+ filter: [
+ {
+ key: 'suoshuqu',
+ op: 'eq',
+ value: ''
+ }
+ ]
},
customForm: {
customFormId: "",
@@ -97,7 +137,7 @@ export default {
table: [],
list: [],
mapHeight: 0,
- center: [119.597897, 31.723247],
+ center: [120.283692, 31.614211],
isShowInfoWindow: false,
openData: {},
infoWindow: null,
@@ -105,22 +145,36 @@ export default {
cluster: null,
polygons: [],
markerList: [],
- nowCity: "",
wxAreas: [
- "锡山区",
+ "宜兴市",
"惠山区",
- "滨湖区",
- "梁溪区",
"新吴区",
+ "梁溪区",
"江阴市",
- "宜兴市",
+ "滨湖区",
+ "锡山区",
],
+ units: new Map([
+ ['jianzhu','m²'],
+ ['jianzhugaodu','m'],
+ ['dikuaizongjia','元'],
+ ['dikuaimianji','m²'],
+ ['muqianjunjia','元'],
+ ])
};
},
methods: {
+ test () {
+ console.log(
+ this.$refs['search-input'].$el
+ )
+ },
index,
areaPick(e) {
- this.areaBG(e);
+ this.areaBG(this.wxAreas[e-1]);
+ this.getList().then(res => {
+ this.setMapMarker()
+ })
},
pickRow({ row }) {
this.isShowInfoWindow = true;
@@ -443,12 +497,15 @@ export default {
};
}
}
+
+ let alignLeft = ['dikuaimingcheng']
this.table.push(
Object.assign(
{
prop: i.field,
label: i.name,
width: i.width,
+ align: alignLeft.find(m => m === i.field) ? 'left' : 'center',
fixed: i.is_fixed,
},
linkOb
@@ -539,7 +596,7 @@ export default {
}
&-list {
- max-width: 500px;
+ max-width: 560px;
border-radius: 6px;
filter: drop-shadow(2px 2px 5px #00000055);
background: #fff;
@@ -598,20 +655,15 @@ export default {