From d26736697059b67b84f3a5acc14099cb33afa1e0 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sun, 26 Sep 2021 19:00:44 +0800
Subject: [PATCH] 20210926
---
src/main/resources/templates/febs/views/modules/product/categoryList.html | 51 ++++++++-------------------------------------------
1 files changed, 8 insertions(+), 43 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..82e37f1 100644
--- a/src/main/resources/templates/febs/views/modules/product/categoryList.html
+++ b/src/main/resources/templates/febs/views/modules/product/categoryList.html
@@ -66,46 +66,19 @@
table.on('tool(userTable)', function (obj) {
var data = obj.data,
layEvent = obj.event;
- if (layEvent === 'close') {
- febs.modal.confirm('禁用', '确认禁用该账号?', function () {
- closeAccount(data.id);
- });
- }
- if (layEvent === 'open') {
- febs.modal.confirm('开启', '确认开启该账号?', function () {
- openAccount(data.id);
- });
- }
- 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');
+ $('#categary-update').find('#submit').trigger('click');
},
btn2: function () {
layer.closeAll();
}
});
}
- if (layEvent === 'see') {
- febs.modal.open( '个人信息', 'modules/mallMember/detail/' + data.id, {
- maxmin: true,
- });
- }
});
- function closeAccount(id) {
- febs.get(ctx + 'admin/mallMember/closeAccount/' + id, null, function () {
- febs.alert.success('禁用成功');
- $query.click();
- });
- }
- function openAccount(id) {
- febs.get(ctx + 'admin/mallMember/openAccount/' + id, null, function () {
- febs.alert.success('开启成功');
- $query.click();
- });
- }
// 查询按钮
@@ -125,7 +98,7 @@
febs.modal.open('新增', 'modules/product/categoryAdd/', {
btn: ['提交', '取消'],
yes: function (index, layero) {
- $('#user-add').find('#submit').trigger('click');
+ $('#categary-add').find('#submit').trigger('click');
},
btn2: function () {
layer.closeAll();
@@ -141,18 +114,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