Commit 73d49388 by 赵增煜

Merge branch 'dev-1130' into develop

parents ac62b9fa 4c699d5d
...@@ -59,6 +59,13 @@ ...@@ -59,6 +59,13 @@
$('#download-btn').on('click', () => this.download()); $('#download-btn').on('click', () => this.download());
$('#print-btn').on('click', () => this.print()); $('#print-btn').on('click', () => this.print());
// 使用闭包来保存对当前实例的引用
this.editableDrugListChangeHandler = () => {
this.search();
};
$('#is_eseal').on('change', () => this.search());
console.log('事件绑定完成'); console.log('事件绑定完成');
} }
...@@ -164,9 +171,7 @@ ...@@ -164,9 +171,7 @@
$('.search-form').after(formHtml); $('.search-form').after(formHtml);
$(document).find('#editable-drug-list select').select2(); $(document).find('#editable-drug-list select').select2();
$('#editable-drug-list').on('change', 'select', function(){ $('#editable-drug-list').on('change', 'select', this.editableDrugListChangeHandler);
console.log("测试绑定selected事件")
})
} }
// 新增:获取剂量数据的方法 // 新增:获取剂量数据的方法
......
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