|
|
@@ -173,15 +173,20 @@ function addList(i, tableName, ids, data, method, modifyTime, messageId) {
|
|
|
*/
|
|
|
function updateIndex(tableName, ids, data, method, messageId, listItemDiv) {
|
|
|
spinner = showLoading(spinner, spinnerContainer);
|
|
|
+ var params = {
|
|
|
+ "tableName" : tableName,
|
|
|
+ "method" : method,
|
|
|
+ };
|
|
|
+ if (ids) {
|
|
|
+ params.ids = ids.substring(1, ids.length - 1);
|
|
|
+ }
|
|
|
+ if (data) {
|
|
|
+ params.data = data;
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type : "post",
|
|
|
url : "index/maintain",
|
|
|
- data : {
|
|
|
- "tableName" : tableName,
|
|
|
- "method" : method,
|
|
|
- "ids" : ids.substring(1, ids.length - 1),
|
|
|
- "data" : data
|
|
|
- },
|
|
|
+ data : params,
|
|
|
success : function(result) {
|
|
|
// 更新索引后,出队消息
|
|
|
dequeueMessage(dataSourceQualifier, messageId, listItemDiv);
|