From 105eb6748372c92c9c0c69aa503074b9419e0515 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 28 Sep 2021 15:08:27 +0800 Subject: [PATCH] 20210927 --- src/main/resources/templates/febs/views/modules/goods/goodsList.html | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsList.html b/src/main/resources/templates/febs/views/modules/goods/goodsList.html index 260c7ac..e9f4442 100644 --- a/src/main/resources/templates/febs/views/modules/goods/goodsList.html +++ b/src/main/resources/templates/febs/views/modules/goods/goodsList.html @@ -98,6 +98,17 @@ maxmin: true, }); } + if (layEvent === 'goodsUpdate') { + febs.modal.open('编辑', 'modules/goods/goodsUpdate/' + data.id, { + btn: ['提交', '取消'], + yes: function (index, layero) { + $('#goods-update').find('#submit').trigger('click'); + }, + btn2: function () { + layer.closeAll(); + } + }); + } if (layEvent === 'seeImgThumb') { var t = $view.find('#seeImgThumb'+data.id+''); //页面层 @@ -196,7 +207,7 @@ }else{ return '<button class="layui-btn layui-btn-normal layui-btn-xs febs-bg-green" lay-event="upGoods" shiro:hasPermission="user:update">上架</button>' + '<button class="layui-btn layui-btn-normal layui-btn-xs febs-bg-red" lay-event="delGoods" shiro:hasPermission="user:update">删除</button>' - + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="updateGoods" shiro:hasPermission="user:update">编辑</button>' + + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="goodsUpdate" shiro:hasPermission="user:update">编辑</button>' } },minWidth: 300,align:'center'} -- Gitblit v1.9.1