重构联查功能

尝试把列表构建改成由前端渲染
This commit is contained in:
2021-03-12 07:56:51 +08:00
parent 8ad68e938e
commit d795809fb3
19 changed files with 515 additions and 196 deletions
+3
View File
@@ -1550,6 +1550,9 @@ select.input-sm, select.form-group-sm .form-control {
.form-controller .i-checks-disabled i {
background-color: #eeeeee;
}
.form-controller .i-checks {
font-weight: normal;
}
@media all and (max-width: 767px) {
.form-controller .control-label {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+10 -10
View File
@@ -504,6 +504,11 @@ function getPanelHeight(v) {
gridOptions.api.showLoadingOverlay();
$.post(gridOptions.remoteDataUrl, remoteParams, function (res) {
if (typeof success === 'function') {
success(res);
}
gridOptions.remoteSuccessed.call(gridOptions, res);
if (res.per_page) {
if (me.pagerDom === null) {
var div = me.api.gridCore.eGridDiv;
@@ -531,11 +536,6 @@ function getPanelHeight(v) {
gridOptions.api.setRowData(res.data);
gridOptions.generatePinnedBottomData();
if (typeof success === 'function') {
success(res);
}
gridOptions.remoteSuccessed.call(gridOptions, res.data);
}, 'json');
}
@@ -548,17 +548,17 @@ function getPanelHeight(v) {
gridOptions.api.showLoadingOverlay();
$.post(gridOptions.remoteDataUrl, remoteParams, function (res) {
gridOptions.api.hideOverlay();
gridOptions.api.setRowData(res.data);
gridOptions.generatePinnedBottomData();
if (typeof success === 'function') {
success(res);
}
gridOptions.remoteSuccessed.call(gridOptions, res.data);
gridOptions.remoteSuccessed.call(gridOptions, res);
gridOptions.api.hideOverlay();
gridOptions.api.setRowData(res.data);
gridOptions.generatePinnedBottomData();
}, 'json');
}
return gridOptions;
}
window.agGridOptions = agGridOptions;
File diff suppressed because one or more lines are too long