xiaoyong931011
2023-04-17 27484d50f93bcf8e87141e78388d7af38093ccbc
字段显示与隐藏
2 files modified
9 ■■■■ changed files
src/main/resources/templates/febs/views/modules/mallMember/agentAllMember.html 8 ●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/mallMember/agentList.html 1 ●●●● patch | view | raw | blame | history
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,7 +50,7 @@
                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: 'amount', title: '团队业绩', minWidth: 150,align:'center'},
src/main/resources/templates/febs/views/modules/mallMember/agentList.html
@@ -81,7 +81,6 @@
            tableIns;
        let toolbarAgentList = $.trim($("#agentList-option").html())==="" ? true : false;
        console.log(toolbarAgentList)
        form.render();