Showing
1 changed file
with
10 additions
and
11 deletions
@@ -136,22 +136,21 @@ layui.define(['element', 'admin'], function (exports) { | @@ -136,22 +136,21 @@ layui.define(['element', 'admin'], function (exports) { | ||
136 | that.getTipsDetail(elementName, thatItem); | 136 | that.getTipsDetail(elementName, thatItem); |
137 | }) | 137 | }) |
138 | }, 1000) | 138 | }, 1000) |
139 | - | ||
140 | - | ||
141 | } | 139 | } |
142 | 140 | ||
143 | // 循环绑定事件 | 141 | // 循环绑定事件 |
144 | var bind = function () { | 142 | var bind = function () { |
145 | - $(contextmenus).each(function (index) { | ||
146 | - let val = contextmenus[index]; | ||
147 | - | ||
148 | - if (val.indexOf('el::') != -1) { | ||
149 | - let elName = val.replace('el::', ''); | ||
150 | - bindContextEvent(elName, 0); | ||
151 | - } | ||
152 | - }) | 143 | + //lsq 表格数据中的元素有时绑定不了事件,加延时 2022-08-11 |
144 | + setTimeout(function (){ | ||
145 | + $(contextmenus).each(function (index) { | ||
146 | + let val = contextmenus[index]; | ||
147 | + if (val.indexOf('el::') != -1) { | ||
148 | + let elName = val.replace('el::', ''); | ||
149 | + bindContextEvent(elName, 0); | ||
150 | + } | ||
151 | + }) | ||
152 | + },300) | ||
153 | } | 153 | } |
154 | - | ||
155 | // 获取当前页面,是否在配置中 | 154 | // 获取当前页面,是否在配置中 |
156 | var page = that.getCurrentHash(); | 155 | var page = that.getCurrentHash(); |
157 | $(contextmenus).each(function (index) { | 156 | $(contextmenus).each(function (index) { |
-
Please register or login to post a comment