From d3844ee25fbb06b656b5521978f083695d194b07 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 29 Apr 2025 09:56:11 +0800
Subject: [PATCH] feat(mall): 添加门票核销功能

---
 src/main/resources/templates/febs/views/modules/product/categoryList.html |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/product/categoryList.html b/src/main/resources/templates/febs/views/modules/product/categoryList.html
index 77ed76e..6be61b3 100644
--- a/src/main/resources/templates/febs/views/modules/product/categoryList.html
+++ b/src/main/resources/templates/febs/views/modules/product/categoryList.html
@@ -8,6 +8,7 @@
                             <div class="layui-col-md10">
                                 <div class="layui-form-item">
                                     <div class="layui-inline">
+                                        <label class="layui-form-label layui-form-label-sm">名称</label>
                                         <div class="layui-input-inline">
                                             <input type="text" placeholder="名称" name="name" autocomplete="off" class="layui-input">
                                         </div>
@@ -36,6 +37,10 @@
                         }
                         .layui-table img{
                             max-width:100px
+                        }
+                        ::-webkit-scrollbar {
+                            height: 20px !important;
+                            background-color: #f4f4f4;
                         }
                     </style>
                 </div>
@@ -88,6 +93,11 @@
                     }
                 });
             }
+            if (layEvent === 'delCategary') {
+                febs.modal.confirm('删除', '确认删除?', function () {
+                    delCategary(data.id);
+                });
+            }
             if (layEvent === 'seeImges') {
                 var t = $view.find('#seeImges'+data.id+'');
                 //页面层
@@ -105,6 +115,12 @@
             }
         });
 
+        function delCategary(id) {
+            febs.get(ctx + 'admin/goodsCategory/delCategary/' + id, null, function () {
+                febs.alert.success('操作成功');
+                $query.click();
+            });
+        }
 
         // 查询按钮
         $query.on('click', function () {
@@ -143,9 +159,11 @@
                         templet: function (d) {
                             return '<a lay-event="seeImges"><img id="seeImges'+d.id+'" src="'+d.image+'" alt=""></a>';
                         }, minWidth: 100,align:'center'},
+                    {field: 'indexNum', title: '排序', minWidth: 150,align:'left'},
                     {title: '操作',
                         templet: function (d) {
                             return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="see" shiro:hasPermission="user:update">编辑</button>'
+                            +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="delCategary" shiro:hasPermission="user:update">删除</button>'
                         },minWidth: 300,align:'center'}
                 ]]
             });

--
Gitblit v1.9.1