import QueryResultDialog from 'kqwebmap-project/src/control/QueryResultDialog.js'
QueryResultDialog
Extends:
Direct Subclass:
查询结果框基类
Constructor Summary
Public Constructor | ||
public |
构造函数 |
Method Summary
Public Methods | ||
public |
addDataProcessingFunc(func: Function): Null 添加数据处理函数 |
|
public |
clearFlickerLayer(): Null 清除地图上的闪动图层 |
|
public |
close(): Null 关闭对话框 |
|
public |
flickerLayer(layer: Object): Null 闪动图层 |
|
public |
Open a dialog |
|
public |
removeDataProcessingFunc(): Null 移除数据处理函数 |
|
public |
|
|
public |
resetChartFields(): Null 重置统计字段为overlay_analysis.xml文件中配置的统计字段 |
|
public |
setChartFields(chartFields: Array): Null 设置统计图的统计字段 |
|
public |
setChartFunction(fn: Function): Null 设置统计按钮的响应函数 |
|
public |
setDefaultCheckedAll(checked: Boolean): Null 是否默认选中所有的记录 |
|
public |
setDefaultFlickerColor(color: String): Null 设置默认的闪烁颜色 |
|
public |
setDisplayCheckbox(flag: Bool): Null 是否显示checkbox,显示多个分析结果 |
|
public |
setExportCheckedRecordButton(flag: Bool): Null 是否显示导出选中记录按钮 |
|
public |
setExportCheckedRecordFun(fun: *) |
|
public |
setExportMode(mode: *) |
|
public |
setOptions(optins: Object): Null 设置对话框的选项 |
|
public |
设置对话框的标题 |
|
public |
setUnitConversionOptions(options: *) |
|
public |
setUseDefaultFlicker(flag: Bool): Null 是否使用默认的闪动行为 |
Public Methods
public addDataProcessingFunc(func: Function): Null source
添加数据处理函数
Params:
Name | Type | Attribute | Description |
func | Function | 数据处理函数 |
Return:
Null |
public flickerLayer(layer: Object): Null source
闪动图层
Params:
Name | Type | Attribute | Description |
layer | Object | 需要闪动的图层 |
Return:
Null |
public open(dataSource: Array, options: Object): Null source
Open a dialog
Params:
Name | Type | Attribute | Description |
dataSource | Array | 数据源 参考 |
|
dataSource.index.label | String | tab页的标签名(默认值为图层名) |
|
dataSource.index.toolTip | String | tab页标签名的详细信息 |
|
dataSource.index.fields | Array | 列绑定的字段 |
|
dataSource.index..titles | Array | 表头单元格显示的文本 |
|
dataSource.index..records | Array | 表格显示的记录数据 |
|
options | Object | 对话框的设置选项 |
|
options.width | Number | 对话框的宽度(像素单位) |
|
options.height | Number | 对话框的高度(像素单位) |
|
options.showChart | Number | 是否显示统计图按钮(默认值:true) |
|
options.showChartAll | Number | 是否显示统计所有值按钮(默认值:false) |
|
options.position | Object | 对话框的初始位置 |
|
options.position.top | Number | 对话框初始位置的上边位置 |
|
options.position.left | Number | 对话框初始位置的左边位置 |
|
options.detail | Number | 分析结果详情按钮 {title: '', callback: callback} |
Return:
Null |
public removeUnitConversionOptions() source
public setChartFields(chartFields: Array): Null source
设置统计图的统计字段
Params:
Name | Type | Attribute | Description |
chartFields | Array | 统计的字段(例如:['DLMC,YSDM', 'BSM'])。 |
Return:
Null |
public setChartFunction(fn: Function): Null source
设置统计按钮的响应函数
Params:
Name | Type | Attribute | Description |
fn | Function | 定制的统计按钮响应函数 有三个参数data, chartFields, summaryField |
Return:
Null |
public setDefaultCheckedAll(checked: Boolean): Null source
是否默认选中所有的记录
Params:
Name | Type | Attribute | Description |
checked | Boolean | 是否选中所有的记录,默认是不选中 |
Return:
Null |
public setDefaultFlickerColor(color: String): Null source
设置默认的闪烁颜色
Params:
Name | Type | Attribute | Description |
color | String | 默认的闪烁颜色 |
Return:
Null |
public setDisplayCheckbox(flag: Bool): Null source
是否显示checkbox,显示多个分析结果
Params:
Name | Type | Attribute | Description |
flag | Bool | 是否显示checkbox,显示多个分析结果 |
Return:
Null |
public setExportCheckedRecordButton(flag: Bool): Null source
是否显示导出选中记录按钮
Params:
Name | Type | Attribute | Description |
flag | Bool | 是否显示导出选中记录按钮 |
Return:
Null |
public setExportCheckedRecordFun(fun: *) source
Params:
Name | Type | Attribute | Description |
fun | * |
public setExportMode(mode: *) source
Params:
Name | Type | Attribute | Description |
mode | * |
public setOptions(optins: Object): Null source
设置对话框的选项
Params:
Name | Type | Attribute | Description |
optins | Object | 对话框的选项 |
Return:
Null |
public setTitle(title: String): Null source
设置对话框的标题
Params:
Name | Type | Attribute | Description |
title | String | 对话框的标题 |
Return:
Null |
public setUnitConversionOptions(options: *) source
Params:
Name | Type | Attribute | Description |
options | * |
public setUseDefaultFlicker(flag: Bool): Null source
是否使用默认的闪动行为
Params:
Name | Type | Attribute | Description |
flag | Bool | 是否使用默认的闪动行为 |
Return:
Null |