jqgrid_utils 1.1.6 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jqgrid_utils.js +22 -0
- package/jqgrid_utils.js +22 -0
- package/package.json +1 -1
package/dist/jqgrid_utils.js
CHANGED
|
@@ -382,6 +382,28 @@ __cell_format(cell_value, format)
|
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
|
|
385
|
+
//let data_url = api + '/phone_detail?f=data&_id=';
|
|
386
|
+
// let col_model_url = api + '/phone_detail?f=col_model';
|
|
387
|
+
// let col_model = JSON.parse(await vwu.aget_api(col_model_url))
|
|
388
|
+
async subgrid(_id, id, data_url, col_model)
|
|
389
|
+
{
|
|
390
|
+
let url = data_url + id;
|
|
391
|
+
let $s1 = jQuery("<table id='" + _id + "_t'></table>");
|
|
392
|
+
let data = jQuery(this).getLocalRow(id);
|
|
393
|
+
$s1.appendTo("#" + jQuery.jgrid.jqID(_id));
|
|
394
|
+
$s1.jqGrid({
|
|
395
|
+
colModel: col_model,
|
|
396
|
+
datatype: "json",
|
|
397
|
+
url: url,
|
|
398
|
+
gridview: true,
|
|
399
|
+
rownumbers: true,
|
|
400
|
+
autoencode: true,
|
|
401
|
+
sortname: "c1",
|
|
402
|
+
sortorder: "desc",
|
|
403
|
+
caption: data.name
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
|
|
385
407
|
|
|
386
408
|
|
|
387
409
|
};
|
package/jqgrid_utils.js
CHANGED
|
@@ -381,6 +381,28 @@ __cell_format(cell_value, format)
|
|
|
381
381
|
|
|
382
382
|
|
|
383
383
|
|
|
384
|
+
//let data_url = api + '/phone_detail?f=data&_id=';
|
|
385
|
+
// let col_model_url = api + '/phone_detail?f=col_model';
|
|
386
|
+
// let col_model = JSON.parse(await vwu.aget_api(col_model_url))
|
|
387
|
+
async subgrid(_id, id, data_url, col_model)
|
|
388
|
+
{
|
|
389
|
+
let url = data_url + id;
|
|
390
|
+
let $s1 = jQuery("<table id='" + _id + "_t'></table>");
|
|
391
|
+
let data = jQuery(this).getLocalRow(id);
|
|
392
|
+
$s1.appendTo("#" + jQuery.jgrid.jqID(_id));
|
|
393
|
+
$s1.jqGrid({
|
|
394
|
+
colModel: col_model,
|
|
395
|
+
datatype: "json",
|
|
396
|
+
url: url,
|
|
397
|
+
gridview: true,
|
|
398
|
+
rownumbers: true,
|
|
399
|
+
autoencode: true,
|
|
400
|
+
sortname: "c1",
|
|
401
|
+
sortorder: "desc",
|
|
402
|
+
caption: data.name
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
|
|
384
406
|
|
|
385
407
|
|
|
386
408
|
};
|
package/package.json
CHANGED