var configLists = $A.jsonParse($A.getStorage("configLists"), {});
var html = '';
for (var index in configLists) {
if (!configLists.hasOwnProperty(index)) {
continue;
}
const config = configLists[index];
html += '
\n' +
' \n' +
'
';
$("#lists").html(html);
}
if (html == '') {
$("#lists").html('没有相关的记录!');
} else {
$("input[class=checkbox]").on('change', function () {
var tempLists = $A.jsonParse($A.getStorage("configLists"), {});
if (typeof tempLists[$(this).attr("name")] == "object") {
tempLists[$(this).attr("name")]["disabled"] = $(this).is(':checked');
$A.setStorage("configLists", $A.jsonStringify(tempLists));
}
});
}