diff --git a/src/admin/Bootstrap.Admin/wwwroot/js/online.js b/src/admin/Bootstrap.Admin/wwwroot/js/online.js index d1b8f8d6..6211d190 100644 --- a/src/admin/Bootstrap.Admin/wwwroot/js/online.js +++ b/src/admin/Bootstrap.Admin/wwwroot/js/online.js @@ -37,20 +37,18 @@ $(function () { var $this = $(this); if (!$this.data($.fn.popover.Constructor.DATA_KEY)) { var id = $this.attr('data-id'); - $.bc({ - id: id, url: apiUrl, - callback: function (result) { - if (!result) return; - var content = result.map(function (item) { - return $.format("{0}{1}", item.Key, item.Value); - }).join(''); - content = content === '' ? - '已断开' : - $.format('
{0}
访问时间访问地址
', content); - $this.popover({ content: content, placement: $(window).width() < 768 ? 'top' : 'left' }); - $this.popover('show'); - } + var data = $table.bootstrapTable('getData'); + var row = data.filter(function (v) { + return v.ConnectionId === id; }); + var content = row[0].RequestUrls.map(function (item) { + return $.format("{0}{1}", item.Key, item.Value); + }).join(''); + content = content === '' ? + '已断开' : + $.format("
{0}
访问时间访问地址
", content); + $this.popover({ content: content, sanitize: false, placement: $(window).width() < 768 ? 'top' : 'left' }); + $this.popover('show'); } }).on('mouseup', 'button[data-id]', function () { $(this).focus(); diff --git a/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj b/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj index 13d4e880..13a7775b 100644 --- a/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj +++ b/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj @@ -6,6 +6,7 @@ + @@ -14,7 +15,7 @@ - +