备注添加 geometry,便于配置生成
GEOGRAPHY geometry 0 0 -1 0 0 0 经纬度 geometry
response
"basis": {
"bridgeColumn": "distance_val,geography_val",
"show": "user_id,null user_name,{geography_val},null sys_id,real_name,telephone,distance_val distance"
"original": "0.0 lng,0.0 lat",
},
columns
"geographyVal": {
"tableId": 1,
"field": "geographyVal",
"dataType": "geography",
"title": "地理位置",
"name": "geography_val",
"alias": "geography_val",
"isData": true,
"geography": {
"type": "point",
"geography": "geography",
"outPut": "lnglat" //lnglat json
},
"editPropertie": { "showMethod": "text" },
"pagePropertie": { "showMethod": "text" },
"maxLength": -1
},
"lng": {
"extendAlias": "lng",
"tableId": 1,
"field": "lng",
"dataType": "numeric",
"title": "经度",
"name": "lng",
"alias": "lng",
"maxLength": 18,
"colDecimal": 15
},
"lat": {
"extendAlias": "lat",
"tableId": 1,
"field": "lat",
"dataType": "numeric",
"title": "纬度",
"name": "lat",
"alias": "lat",
"maxLength": 17,
"colDecimal": 15
},
"distance": {
"detailPropertie": {
"showMethodOut": "n" // n v kv sn
},
"addPropertie": {
},
"editPropertie": {
},
"pagePropertie": {
"showMethodOut": "kv" // n v kv sn
},
"listPropertie": {
}
}
bridge table
"geographyVal": {
"sortId": 9999,
"alias": "geography_val",
"field": "geographyVal",
"events": {},
"attrs": {
"type": "expand",
"label": "地理位置",
"maxlength": -1,
"clearable": true
},
"attrsInt": {},
"meta": {
"html": true,
"component": "bs-text",
"componentOp": "bs-input",
"rowId": "1",
"tabId": "1",
"type": "basis",
"span": 12
}
},
"lng": {
"meta": {
"fromValue": true
}
},
"lat": {
"meta": {
"fromValue": true
}
},
"lngLat": {
"sortId": 9999,
"alias": "lng_lat",
"field": "lngLat",
"events": {},
"attrs": {
"show-content-title": "地图",
//标签显示
"show-content-tag": true,
"icon": "el-icon-position",
"label": "行政驻地经纬度",
"maxlength": 150,
"clearable": true,
"root-data-reload": true,
//自定义组件
"component-type": "custom",
//表格里面直接使用自定义组件
//"component-type-show": "custom",
//lng 对应的字段
"lng-field": "lng",
//lat 对应的字段
"lat-field": "lat"
},
"attrsInt": {},
"meta": {
"html": true,
"edit": true,
"component": "bs-text",
"componentOp": "bo-map-point",
"rowId": "1",
"tabId": "1",
"type": "basis",
"span": 12
}
},
"boundLngLat": {
"sortId": 9999,
"alias": "bound_lng_lat",
"field": "boundLngLat",
"events": {},
"attrs": {
"label": "最大最小经纬度",
"maxlength": 150,
"clearable": true
},
"attrsInt": {},
"meta": {
"html": true,
"edit": true,
"component": "bs-text",
"componentOp": "bo-map-bound",
"rowId": "1",
"tabId": "1",
"type": "basis",
"span": 12
}
},
bridge form
"geographyVal": {
"sortId": 9999,
"alias": "geography_val",
"field": "geographyVal",
"events": {},
"attrs": {
"label": "地理位置",
"maxlength": -1,
"clearable": true
},
"attrsInt": {},
"meta": {
"component": "bs-input",
"rowId": "1",
"tabId": "1",
"span": 12
}
},
"lng": {
"attrs": {
//表单里面不显示
"data-field-hidden": true,
"data-type": "object",
//kv 对象,显示的数据字段 name/value
"data-show-field": "name"
},
"meta": {
"fromValue": false,
"component": "bs-text",
"html": false
}
},
"lat": {
"attrs": {
//表单里面不显示
"data-field-hidden": true,
"data-type": "object",
//kv 对象,显示的数据字段 name/value
"data-show-field": "name"
},
"meta": {
"fromValue": false,
"html": false,
"component": "bs-text"
}
},
"lngLat": {
"sortId": 9999,
"alias": "lng_lat",
"field": "lngLat",
"events": {},
"attrs": {
"label": "行政驻地经纬度",
"root-data-reload": true,
"maxlength": 150,
"clearable": true,
//控制地图等数据加载完成后再加载
"lazy-renger": true,
//自定义组件
"component-type": "custom",
//lng 对应的字段
"lng-field": "lng",
//lat 对应的字段
"lat-field": "lat",
//common-dim-list listtotree
"nodejs": null
},
"attrsInt": {},
"meta": {
"html": false,
"edit": true,
"component": "bo-map-point",
"componentOp": "bo-map-point",
"rowId": "1",
"tabId": "1",
"type": "basis",
"span": 24
}
},
"boundLngLat": {
"sortId": 9999,
"alias": "bound_lng_lat",
"field": "boundLngLat",
"events": {},
"attrs": {
"label": "最大最小经纬度",
"maxlength": 150,
"clearable": true
},
"attrsInt": {},
"meta": {
"html": false,
"edit": true,
"component": "bo-map-bound",
"componentOp": "bo-map-bound",
"rowId": "1",
"tabId": "1",
"type": "basis",
"span": 12
}
},
文档更新时间: 2022-01-12 07:14 作者:admin