WebTM/views/PublicPage/PowerInformation.html
@@ -75,6 +75,8 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSouceBillType = params[params[2]];//源单类型
            //将url参数中的中文乱码重新转换成中文。 注:linterid 是参数命名,不是值
            linterid = getParams("linterid");
        }
        var treeCkData = { id: 0 };
@@ -259,7 +261,7 @@
                    return false;
                }
                var sSubStr = JSON.stringify(table.cache['mainTable']);
                var sMainSub = TagId + ';' + sSubStr + ';' + linterid;
                var sMainSub = TagId + ';' + sSubStr + ';' + linterid + ";" + HSouceBillType;
                //console.log(sMainSub);
                //return false;
                $.ajax(
@@ -272,7 +274,7 @@
                        success: function (data) {
                            if (data.count == 1) { // 说明验证成功了,
                                layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                                    $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
                                    //$('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
                                    get_Display(sGnbm);
                                });
                            }
@@ -295,7 +297,7 @@
                $.ajax({
                    url: GetWEBURL() + '/PublicPageMethod/PowerList',
                    type: "GET",
                    data: { "czybm": linterid, "sGnbm": sGnbm },
                    data: { "czybm": linterid, "sGnbm": sGnbm, "HSouceBillType": HSouceBillType},
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
@@ -346,10 +348,21 @@
                } else {
                    treeData.push(it)
                }
            })
            })
            return treeData;
        }
        //将url参数中的中文乱码重新转换成中文
        function getParams(key) {
            var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)");
            //如果地址栏中出现中文则进行编码
            var r = encodeURI(window.location.search).substr(1).match(reg);
            if (r != null) {
                //将中文编码的字符重新变成中文
                return decodeURI(unescape(r[2]));
            }
            return null;
        };
    </script>
</body>