From 27484d50f93bcf8e87141e78388d7af38093ccbc Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 17 Apr 2023 14:40:12 +0800
Subject: [PATCH] 字段显示与隐藏
---
src/main/resources/templates/febs/views/modules/mallMember/agentAllMember.html | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/mallMember/agentAllMember.html b/src/main/resources/templates/febs/views/modules/mallMember/agentAllMember.html
index 134559b..5216595 100644
--- a/src/main/resources/templates/febs/views/modules/mallMember/agentAllMember.html
+++ b/src/main/resources/templates/febs/views/modules/mallMember/agentAllMember.html
@@ -9,6 +9,11 @@
</div>
</div>
</div>
+
+<!-- 表格操作栏 start -->
+<script type="text/html" id="agentListChild-option">
+ <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="agentList:tdView">字段显示隐藏</button>
+</script>
<script data-th-inline="none" type="text/javascript">
layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect' ,'eleTree'], function () {
var $ = layui.jquery,
@@ -25,6 +30,7 @@
tableIns,
createTimeFrom,
createTimeTo;
+ let toolbarAgentListChild = $.trim($("#agentListChild-option").html())==="" ? true : false;
form.render();
@@ -44,9 +50,9 @@
url: ctx + 'admin/mallMember/agentChild?parentId=1',
cols: [[
{field: 'name', title: '姓名', minWidth: 150,align:'center'},
- {field: 'phone', title: '电话', minWidth: 150,align:'center'},
+ {field: 'phone', title: '电话', minWidth: 150,align:'center',hide:toolbarAgentListChild},
{field: 'inviteId', title: '邀请码', minWidth: 150,align:'center'},
- // {field: 'levelName', title: '等级', minWidth: 150,align:'center'},
+ {field: 'levelName', title: '等级', minWidth: 150,align:'center'},
{field: 'amount', title: '团队业绩', minWidth: 150,align:'center'},
]]
});
--
Gitblit v1.9.1