示例#1
0
			always: function(e, data) {
				art_dialog.loading.end();
				if (data.result) {
					(typeof data.result === "string") && (data.result = JSON.parse(data.result));
					if (data.result.code == 0) {
						art_dialog.error('导入成功', data.result.msg, cb);
					} else {
						art_dialog.error('导入失败', data.result.msg, fcb);
					}
				}
			}
示例#2
0
 $.get(urls.delUrl + "?id=" + id, function(res) {
     if (res.code == 0) {
         _grid.load();
     } else {
         art_dialog.error('错误', res.msg);
     }
 }, 'json');
示例#3
0
 $.post(urls.addUrl, data, function(res) {
     if (res.code == 0) {
         callback(res);
     } else {
         art_dialog.error('错误', res.msg);
     }
 }, 'json');
示例#4
0
 $.get(urls.detailUrl + "?id=" + id, function(res) {
     if (res.code == 0) {
         showPop(res.data);
     } else {
         art_dialog.error('错误', res.msg);
     }
 });