WebTM/layuiadmin/SetColumn.js
@@ -4,19 +4,15 @@
    for (var i = 1; i < option.cols[0].length; i++) {
        colName += option.cols[0][i]["field"] + ",";
    }
    colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI 进行编码
    var contentUrl = "";
    var contentUrl = "";
    var urlStr = window.document.location.pathname;//获取文件路径
    var urlLen = urlStr.split('/');
    for (var i = 0; i < urlLen.length - 4; i++) {
        contentUrl += "../";
    }
    contentUrl += '基础资料/隐藏列设置/Gy_GridView_Hide_New.html?HModName=' + HModName + '&colName=' + colName;
    colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI 进行编码
    contentUrl += '基础资料/隐藏列设置/Gy_GridView_Hide_New.html?HModName=' + HModName + '&colName=' + colName;
    layer.open({
        type: 2
        , skin: "layui-layer-rim" //加上边框
@@ -314,6 +310,8 @@
        colTitleName += option.cols[0][i]["title"] + ",";
    }
    colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI 进行编码
    colTitleName = encodeURI(colTitleName.substring(0, colTitleName.length - 1));
    /*urlStr.replace(/%/g, '%25');*/
    layer.open({
        type: 2
        , skin: "layui-layer-rim" //加上边框