From 241e0161e93b8e26e8ffb2d6d84864024ff5ac2a Mon Sep 17 00:00:00 2001 From: yanyan Date: Mon, 26 Feb 2024 17:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/project/scene/manage.html | 14 +++- .../controller/SceneManageController.java | 4 +- .../domain/LocalFileMultipartFile.java | 65 +++++++++++++++++++ .../service/ISceneManageService.java | 2 +- .../service/impl/SceneManageServiceImpl.java | 58 +++++++++-------- 5 files changed, 112 insertions(+), 31 deletions(-) create mode 100644 lib/EmergencyService/zdxtEmergencyKnowledgeService/src/main/java/com/zdxt/knowledge/domain/LocalFileMultipartFile.java diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/manage.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/manage.html index 2da40b9b..a7256219 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/manage.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/manage.html @@ -41,7 +41,7 @@ shiro:hasPermission="project:scene:remove"> 全部删除 - + 生成二维码 @@ -206,6 +206,18 @@ }); } + function generateQRCode() { + table.set(); + var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId); + if (rows.length == 0) { + $.modal.alertWarning("请选择一条记录"); + return; + } + $.post(ctx + "small/scene/manage/generateQRCode/", {"guid": rows.join()}, function (req,status ) { + + }) + } +