window.onload = function() { Array.prototype.myForEach = function myForEach(callback, context) { context = context || window; if (Array.prototype.forEach) { // 调用forEach方法,不做任何处理 this.forEach(callback, context); return; } } // 页面权限 if (cookieHandler.get("userType") === "0" || cookieHandler.get("isliCode") == "undefined" || cookieHandler.get( "isliCode") == undefined || cookieHandler.get("isliCode") == "") { $(".tabs_item").hide() } // 页面权限 if (!cookieHandler.get("normal_login_token")) { Dreamer.error("请先登录"); setTimeout(function() { window.location.href = 'login.html?time=' + new Date().getTime(); }, 1000) } // 表格数据获取 $("#mytable").bootstrapTable({ url: Paymentlist + 'entuiprise/getUserAgreement', contentType: "application/x-www-form-urlencoded;charset=UTF-8", method: 'GET', async: false, cache: false, queryParams: function(params) { params.userId = cookieHandler.get("accountId"); return params; }, responseHandler: function(res) { if (res.data.length == 0) { return []; } else { return res.data } }, columns: [{ title: '协议名称', field: 'agreementName', align: 'center', valign: 'middle', width: "400px", }, { title: '首次签署时间', field: 'createAt', align: 'center', valign: 'middle' }, { title: '操作', field: 'look', align: 'center', valign: 'middle', width: "100px", formatter: function(value, row, index) { let url = ""; if (row.agreementName == "《隐私政策》") { url = "./Privacy.html" } else if (row.agreementName == "《用户注册协议》") { url = "./User.html" } else if (row.agreementName == "《免责条款》") { url = "./escapeClause.html" } else if (row.agreementName == "《交易主体进场协议》") { url = "./TradingSubject.html" } else if (row.agreementName == "《文化数据交易委托协议》") { url = "./commissionSale.html" }else if (row.agreementName == "《临时业务机构委托协议》") { url = "./busDelegation.html" }else if (row.agreementName == "《文化数据交易协议》") { url = "./purchase.html" } let htm = ""; htm = ""; return htm; } } ], }) } // 页面跳转添加时间戳 function handelBuyOrder(url) { window.location.href = url + '?time=' + new Date().getTime(); }