Authored by 王涛

Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'

页面添加右键功能,增加延时



See merge request !849
@@ -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 () {
  143 + //lsq 表格数据中的元素有时绑定不了事件,加延时 2022-08-11
  144 + setTimeout(function (){
145 $(contextmenus).each(function (index) { 145 $(contextmenus).each(function (index) {
146 let val = contextmenus[index]; 146 let val = contextmenus[index];
147 -  
148 if (val.indexOf('el::') != -1) { 147 if (val.indexOf('el::') != -1) {
149 let elName = val.replace('el::', ''); 148 let elName = val.replace('el::', '');
150 bindContextEvent(elName, 0); 149 bindContextEvent(elName, 0);
151 } 150 }
152 }) 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) {