From 71195b4185c646487ea28704674e59e0ee09afb6 Mon Sep 17 00:00:00 2001 From: Karson Date: Sun, 9 Jun 2019 18:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddata-table-id=E4=B8=8D?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=9A=84BUG=20=E4=BF=AE=E5=A4=8D=E5=A4=9A?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E6=97=B6=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/backend.js | 4 ++-- public/assets/js/require-table.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/assets/js/backend.js b/public/assets/js/backend.js index d6678cca..11381f95 100755 --- a/public/assets/js/backend.js +++ b/public/assets/js/backend.js @@ -93,9 +93,9 @@ define(['fast', 'template', 'moment'], function (Fast, Template, Moment) { if (url.indexOf("{ids}") > -1) { var ids = 0; var tableId = $(elem).data("table-id"); - if (tableId && $(tableId).size() > 0 && $(tableId).data("bootstrap.table")) { + if (tableId && $("#" + tableId).size() > 0 && $("#" + tableId).data("bootstrap.table")) { var Table = require("table"); - ids = Table.api.selectedids($(tableId)).join(","); + ids = Table.api.selectedids($("#" + tableId)).join(","); } url = url.replace(/\{ids\}/g, ids); } diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js index 5354b3c9..4086a256 100644 --- a/public/assets/js/require-table.js +++ b/public/assets/js/require-table.js @@ -410,7 +410,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table }); Layer.photos({ photos: { - "start": $(this).index(".img-center"), + "start": $(this).parent().index(), "data": data }, anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)