From 5179a5196708211b738e61496e33c7ad065456cf Mon Sep 17 00:00:00 2001 From: nanguaboss <602995148@qq.com> Date: Sun, 9 Aug 2026 22:33:50 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.34:=20=E9=87=8D=E5=A4=8D=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E7=AE=80=E5=8C=96=20-=20=E5=8F=AA=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=AD=97=E6=AE=B5=E5=87=BA=E7=8E=B0=E9=87=8D=E5=A4=8D?= =?UTF-8?q?+=E9=87=8D=E5=A4=8D=E6=95=B0=E6=8D=AE=E8=A1=A8=E5=90=8D?= =?UTF-8?q?=E4=B8=8Eid,=E5=8E=BB=E6=8E=89=E8=B7=B3=E8=BD=AC=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/common.js | 16 +++++----------- static/js/config.js | 2 +- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/static/js/common.js b/static/js/common.js index c5f87f6..7adad01 100644 --- a/static/js/common.js +++ b/static/js/common.js @@ -49,24 +49,18 @@ function handleResp(resp) { location.href = 'index.html'; return $.Deferred().reject(resp).promise(); } - // 重复数据:弹窗提示 + 跳转定位到已有记录 + // 重复数据:弹窗提示字段 + 重复记录的表名与 id if (resp && resp.code === 1001 && resp.data) { var d = resp.data; layer.open({ type: 1, title: '数据重复提示', - area: ['440px', 'auto'], + area: ['420px', 'auto'], content: '
' + - '
' + escHtml(d.label) + '「' + escHtml(d.value) + '」出现重复
' + - '
该值已存在:' + escHtml(d.name || '未知记录') + (d.owner_label ? '(' + escHtml(d.owner_label) + ')' : '') + '
' + - '
' + + '
' + escHtml(d.label) + '「' + escHtml(d.value) + '」出现重复
' + + '
重复数据:' + escHtml(d.table) + ' 表,id=' + d.id + '
' + '
', - btn: ['知道了'], - success: function (layero) { - $(layero).find('#dup-jump-btn').on('click', function () { - location.href = d.jump; - }); - } + btn: ['知道了'] }); return $.Deferred().reject(resp).promise(); } diff --git a/static/js/config.js b/static/js/config.js index ead5518..c311cf1 100644 --- a/static/js/config.js +++ b/static/js/config.js @@ -5,7 +5,7 @@ var BASE_URL = '/api/'; var PAGE_SIZE = 20; /** 系统版本号(logo旁展示):修改代码后运行 tools/bump_version.php 自动递增 */ -var APP_VERSION = 'v1.0.33'; +var APP_VERSION = 'v1.0.34'; /** 页脚版权/备案信息(在 config.js 中修改) */ var FOOTER_TEXT = '© 2026 SuperLink 管理系统 版权所有 | 备案号:请替换为真实备案号';