Commit 4146181b by 赵增煜

select的change2024年12月1日17:34:46

parent 9ca56460
......@@ -59,6 +59,14 @@
$('#download-btn').on('click', () => this.download());
$('#print-btn').on('click', () => this.print());
// 使用闭包来保存对当前实例的引用
this.editableDrugListChangeHandler = () => {
this.search();
};
$('#is_eseal').on('change', () => this.search());
console.log('事件绑定完成');
}
......@@ -162,6 +170,8 @@
// 将表单添加到搜索表单下方
$('.search-form').after(formHtml);
$(document).find('#editable-drug-list select').select2();
$('#editable-drug-list').on('change', 'select', this.editableDrugListChangeHandler);
}
// 新增:获取剂量数据的方法
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment