From fbfb5e2f716b863ae06da1d8524c5d3c7b8b60b0 Mon Sep 17 00:00:00 2001
From: biorz <10940639@qq.com>
Date: Tue, 23 Jan 2018 18:01:51 +0800
Subject: [PATCH] 优化拖拽排序

---
 public/assets/js/require-table.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js
index bdb265f..e4e74a2 100644
--- a/public/assets/js/require-table.js
+++ b/public/assets/js/require-table.js
@@ -209,7 +209,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
                 require(['dragsort'], function () {
                     //绑定拖动排序
                     $("tbody", table).dragsort({
-                        itemSelector: 'tr',
+                        itemSelector: 'tr:visible',
                         dragSelector: "a.btn-dragsort",
                         dragEnd: function () {
                             var data = table.bootstrapTable('getData');
--
libgit2 0.24.0