修改排序导致的查询慢问题
This commit is contained in:
parent
19b0d78ad5
commit
975cd48215
@ -51,7 +51,8 @@
|
|||||||
var laydate = layui.laydate;
|
var laydate = layui.laydate;
|
||||||
var common = layui.common;
|
var common = layui.common;
|
||||||
var resizeTimeout = null;
|
var resizeTimeout = null;
|
||||||
var tableUrl = 'api/datareal/listpage?instrumentId={instrumentId}&descOrderBy={descOrderBy}';
|
// var tableUrl = 'api/datareal/listpage?instrumentId={instrumentId}&descOrderBy={descOrderBy}';
|
||||||
|
var tableUrl = 'api/datareal/listpage?instrumentId={instrumentId}';
|
||||||
var instrumentId = top.restAjax.params(window.location.href).instrumentId;
|
var instrumentId = top.restAjax.params(window.location.href).instrumentId;
|
||||||
|
|
||||||
// 初始化表格
|
// 初始化表格
|
||||||
@ -59,7 +60,7 @@
|
|||||||
table.render({
|
table.render({
|
||||||
elem: '#dataTable',
|
elem: '#dataTable',
|
||||||
id: 'dataTable',
|
id: 'dataTable',
|
||||||
url: top.restAjax.path(tableUrl, [instrumentId, 'gmtCreate']),
|
url: top.restAjax.path(tableUrl, [instrumentId]),
|
||||||
width: admin.screen() > 1 ? '100%' : '',
|
width: admin.screen() > 1 ? '100%' : '',
|
||||||
height: $win.height() - 60,
|
height: $win.height() - 60,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
@ -168,7 +169,7 @@
|
|||||||
// 重载表格
|
// 重载表格
|
||||||
function reloadTable(currentPage) {
|
function reloadTable(currentPage) {
|
||||||
table.reload('dataTable', {
|
table.reload('dataTable', {
|
||||||
url: top.restAjax.path(tableUrl, [instrumentId, 'gmtCreate']),
|
url: top.restAjax.path(tableUrl, [instrumentId]),
|
||||||
where: {
|
where: {
|
||||||
keywords: $('#keywords').val(),
|
keywords: $('#keywords').val(),
|
||||||
startTime: $('#startTime').val(),
|
startTime: $('#startTime').val(),
|
||||||
|
Loading…
Reference in New Issue
Block a user