forked from p81075629/datagear
数据集编辑页面添加导出数据功能
This commit is contained in:
parent
8b8edc5bb4
commit
a156e461ea
|
@ -2,9 +2,9 @@
|
|||
|
||||
添加更多图表插件;
|
||||
添加表格图表插件;
|
||||
数据集添加导出功能;
|
||||
数据导入/导出输入框改为输入域,输入框无法处理换行符以及长SQL;
|
||||
基于commonDriverInfos.json重写数据源URL构建器功能;
|
||||
ok 数据集添加导出功能;
|
||||
ok 数据导入/导出输入框改为输入域,输入框无法处理换行符以及长SQL;
|
||||
ok 基于commonDriverInfos.json重写数据源URL构建器功能;
|
||||
采用超时机制改进底层数据源连接池资源占用问题;
|
||||
开发数据集参数/导出功能;
|
||||
开发图表参数功能;
|
||||
|
|
Binary file not shown.
|
@ -63,6 +63,7 @@ readonly 是否只读操作,允许为null
|
|||
<div class="operation-result">
|
||||
<button type="button" class="sql-result-more-button ui-button ui-corner-all ui-widget ui-button-icon-only" title="<@spring.message code='dataSet.loadMoreData' />"><span class="ui-button-icon ui-icon ui-icon-arrowthick-1-s"></span><span class="ui-button-icon-space"> </span><@spring.message code='sqlpad.loadMoreData' /></button>
|
||||
<button type="button" class="sql-result-refresh-button ui-button ui-corner-all ui-widget ui-button-icon-only" title="<@spring.message code='dataSet.refreshSqlResult' />"><span class="ui-button-icon ui-icon ui-icon-refresh"></span><span class="ui-button-icon-space"> </span><@spring.message code='sqlpad.refreshSqlResult' /></button>
|
||||
<button type="button" class="sql-result-export-button ui-button ui-corner-all ui-widget ui-button-icon-only" title="<@spring.message code='sqlpad.exportSqlResult' />"><span class="ui-button-icon ui-icon ui-icon-arrowthick-1-ne"></span><span class="ui-button-icon-space"> </span><@spring.message code='sqlpad.exportSqlResult' /></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sql-result-table-wrapper minor-dataTable">
|
||||
|
@ -191,6 +192,19 @@ readonly 是否只读操作,允许为null
|
|||
po.sqlPreviewOptions.startRow = 1;
|
||||
po.sqlPreview();
|
||||
});
|
||||
|
||||
po.element(".sql-result-export-button").click(function()
|
||||
{
|
||||
var schemaId = schemaId = po.element("input[name='schemaConnectionFactory.schema.id']").val();
|
||||
var sql = po.sqlEditor.getValue();
|
||||
|
||||
if(!schemaId || !sql)
|
||||
return;
|
||||
|
||||
var options = {data: {"initSqls": sql}};
|
||||
$.setGridPageHeightOption(options);
|
||||
po.open("${contextPath}/dataexchange/"+schemaId+"/export", options);
|
||||
});
|
||||
|
||||
po.renderRowNumberColumn = function(data, type, row, meta)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue