yusijie
2024-05-07 25affc1f8173f68a8c2de1153c3f280cc3c92f55
WebTM/layuiadmin/HideButton.js
@@ -1,5 +1,5 @@
//#region 按钮设置
function get_HideButton(btns,HBillType,HModName) {
function get_HideButton(btns,HBillType,HModName,HUserName) {
    var btnIdList = "";          //按钮ID列表
    var btnNameList = "";        //按钮名称列表
    var btnOrderList = "";       //按钮次序列表
@@ -22,7 +22,7 @@
    for (var i = 0; i < urlLen.length - 4; i++) {
        contentUrl += "../";
    }
    contentUrl += '系统管理/按钮设置/Xt_ModuleButtonSet.html?HModName=' + HModName + '&HBillType=' + HBillType + "&btnIdList=" + btnIdList + "&btnNameList=" + btnNameList + "&btnOrderList=" + btnOrderList;
    contentUrl += '系统管理/按钮设置/Xt_ModuleButtonSet.html?HModName=' + HModName + '&HBillType=' + HBillType + "&btnIdList=" + btnIdList + "&btnNameList=" + btnNameList + "&btnOrderList=" + btnOrderList + "&HUserName=" + HUserName;
    //打开按钮隐藏设置子窗口
    layer.open({
@@ -37,7 +37,7 @@
        , btn: ["确定", "取消"]
        , btn1: function (index, laero) {
            //刷新按钮显示
            Display_HideButton(btns, HBillType, HModName);
            Display_HideButton(btns, HBillType, HModName, HUserName);
            //更新表格缓存的数据
            layer.close(index);//关闭弹窗
        }
@@ -47,12 +47,12 @@
//#endregion
//#region 显示按钮
function Display_HideButton(btns,HBillType,HModName) {
function Display_HideButton(btns,HBillType,HModName , HUserName) {
    $.ajax({
        url: GetWEBURL() + '/Xt_ModuleButtonSet_WMES/moduleButtonSetWMESList',
        type: "GET",
        async: false,
        data: { "HModName": HModName, "HBillType": HBillType },
        data: { "HModName": HModName, "HBillType": HBillType, "HUserName": HUserName },
        success: function (data1) {
            var btnData = [];
            //获取所有按钮信息