fix: 修复嵌套模态框输入框焦点问题并增强功能

修复Bootstrap嵌套模态框中输入框无法获得焦点的问题,通过禁用enforceFocus实现
为文件删除函数添加index参数以支持精确删除
在任务列表中添加SafetyJobInside模块的查看支持
为巡检内容返回数据添加contentsDetail字段
在设备归属选择列表中添加搜索功能并调整姓名列宽度
This commit is contained in:
Rue Ji
2026-03-26 20:07:10 +08:00
parent 1cd6750710
commit a5ac9fb038
6 changed files with 30 additions and 3 deletions

View File

@ -870,7 +870,7 @@ function openModal(modalId) {
}
}
})
});
};
/**
@ -1060,6 +1060,12 @@ $(function () {
});
//FastClick.attach(document.body);
// 解决嵌套模态框中输入框无法获得焦点的问题
// 禁用Bootstrap模态框的enforceFocus允许嵌套模态框中的输入框正常工作
if ($.fn.modal && $.fn.modal.Constructor) {
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
}
//弹窗关闭触发方法
/*$(".modal").on("hidden.bs.modal", function() {
$('.modal').css("overflow","auto");