From c5cec4615989cf2afdafe21863e3dc7ecd16e7d8 Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Tue, 20 Aug 2024 14:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=AF=86=E8=AE=BE=E5=A4=87=E7=99=BB?= =?UTF-8?q?=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../property/TdPropertyManagerController.java | 10 ++ .../system/property/ementdata/add.html | 47 ++++++- .../system/property/ementdata/detail.html | 47 ++++++- .../property/ementdata/propertyEment.html | 123 +++++++++++++++++- .../system/property/property/property.html | 16 ++- 5 files changed, 224 insertions(+), 19 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyManagerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyManagerController.java index 9c99644c..ea5d5898 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyManagerController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyManagerController.java @@ -154,4 +154,14 @@ public class TdPropertyManagerController extends BaseController { return "system/property/data/propertyinfo"; } + /** + * 添加密品条目 + */ + @RequiresPermissions("system:property:list") + @GetMapping("/ementDetail/{useId}") + public String ementDetail(@PathVariable("useId") String useId, ModelMap mmap) { + mmap.put("useId", useId); + return "system/property/ementdata/propertyEment"; + } + } diff --git a/ruoyi-admin/src/main/resources/templates/system/property/ementdata/add.html b/ruoyi-admin/src/main/resources/templates/system/property/ementdata/add.html index 566549bd..8654ae10 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/ementdata/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/ementdata/add.html @@ -1,10 +1,47 @@ - + - - Title + + - + +
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/system/property/ementdata/detail.html b/ruoyi-admin/src/main/resources/templates/system/property/ementdata/detail.html index 566549bd..24468128 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/ementdata/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/ementdata/detail.html @@ -1,10 +1,47 @@ - + - - Title + + - + +
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/system/property/ementdata/propertyEment.html b/ruoyi-admin/src/main/resources/templates/system/property/ementdata/propertyEment.html index 566549bd..7f9bd2dd 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/ementdata/propertyEment.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/ementdata/propertyEment.html @@ -1,10 +1,123 @@ - + - - Title + - + +
+
+
+
+
+
    +
  • + + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ +
+
+
+
+
+ + - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/system/property/property/property.html b/ruoyi-admin/src/main/resources/templates/system/property/property/property.html index 0220437d..46afcde5 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/property/property.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/property/property.html @@ -128,7 +128,8 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('密品登记 '); + var rowData = encodeURIComponent(JSON.stringify(row)); + actions.push('密品登记 '); actions.push('编辑 '); actions.push('删除'); return actions.join(''); @@ -180,9 +181,16 @@ } }) /*密品列表-详细*/ - function detail(useId) { - var url = prefix + '/detail/' + useId; - $.modal.openTab("密品列表数据", url); + function detail(element) { + var rowData = $(element).data('row'); + var row = JSON.parse(decodeURIComponent(rowData)); + if (row.secretsType == '1'){ + var url = prefix + '/detail/' + row.useId; + $.modal.openTab("涉密信息设备登记列表", url); + }else{ + var url = prefix + '/ementDetail/' + row.useId; + $.modal.openTab("涉密设备登记列表", url); + } }