// 加载科室列表$.get('departments', function (res) {if (res.code === 0) {const container = $('#deptList');res.data.forEach(function (dept) {container.append(`<div style="margin:8px 0;"><input type="checkbox" name="deptcode" value="${dept.deptcode}" title="${dept.deptname}"><input type="hidden" name="deptname" value="${dept.deptname}"></div>`);});form.render('checkbox');}});