临时切换回render调用

This commit is contained in:
Anyon 2022-03-02 12:37:17 +08:00
parent 18744615b1
commit 7a11f03196

View File

@ -430,9 +430,7 @@ $(function () {
window.onhashchange.call(this); window.onhashchange.call(this);
}; };
}; };
/*! 表单验证组件 */
/*! 注册对象到Jq */
$.vali = function (form, callable) { $.vali = function (form, callable) {
return $(form).data('validate') || new Validate(); return $(form).data('validate') || new Validate();
@ -511,7 +509,7 @@ $(function () {
} }
}; };
/*! 自动监听规则内表单 */ /*! 自动监听表单 */
$.vali.listen = function () { $.vali.listen = function () {
$('form[data-auto]').map(function (index, form) { $('form[data-auto]').map(function (index, form) {
$(this).vali(function (data) { $(this).vali(function (data) {
@ -707,7 +705,8 @@ $(function () {
if (evt.type === 'render') { if (evt.type === 'render') {
layui.table.reload(table.id, bindData(opts || {})); layui.table.reload(table.id, bindData(opts || {}));
} else { } else {
layui.table.reloadData(table.id, bindData(opts || {})); layui.table.reload(table.id, bindData(opts || {}));
// layui.table.reloadData(table.id, bindData(opts || {}));
} }
}).bind('row sort tool edit radio toolbar checkbox rowDouble', function (evt, call) { }).bind('row sort tool edit radio toolbar checkbox rowDouble', function (evt, call) {
layui.table.on(evt.type + '(' + table.dataset.id + ')', call) layui.table.on(evt.type + '(' + table.dataset.id + ')', call)