From 5289e9842a8889f4128d95501ae80e1e93f4d6ac Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sun, 26 Sep 2021 17:35:41 +0800 Subject: [PATCH] fix --- src/main/resources/templates/febs/views/modules/product/categoryList.html | 27 +++++++-------------------- 1 files changed, 7 insertions(+), 20 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 05175e0..7337114 100644 --- a/src/main/resources/templates/febs/views/modules/product/categoryList.html +++ b/src/main/resources/templates/febs/views/modules/product/categoryList.html @@ -77,20 +77,15 @@ }); } - if (layEvent === 'edit') { - febs.modal.open('身份认证', 'modules/member/memberDetail/' + data.id, { + if (layEvent === 'see') { + febs.modal.open('编辑', 'modules/product/categoryUpdate/' + data.id, { btn: ['提交', '取消'], yes: function (index, layero) { - $('#user-update').find('#submit').trigger('click'); + $('#user-add').find('#submit').trigger('click'); }, btn2: function () { layer.closeAll(); } - }); - } - if (layEvent === 'see') { - febs.modal.open( '个人信息', 'modules/mallMember/detail/' + data.id, { - maxmin: true, }); } }); @@ -141,18 +136,10 @@ cols: [[ {field: 'name', title: '名称', minWidth: 150,align:'left'}, {field: 'parentName', title: '父级名称', minWidth: 150,align:'left'}, - // {title: '操作', - // templet: function (d) { - // if (d.accountStatus === 1) { - // 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="close" shiro:hasPermission="user:update">禁用</button>' - // - // }else{ - // 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="open" shiro:hasPermission="user:update">启用</button>' - // - // } - // },minWidth: 300,align:'center'} + {title: '操作', + templet: function (d) { + return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="see" shiro:hasPermission="user:update">编辑</button>' + },minWidth: 300,align:'center'} ]] }); } -- Gitblit v1.9.1