From e7397a94b71470ed35e04f02fbf5e68b7f743147 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Sat, 16 Nov 2024 14:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/accessory/child/accessory_scrap_detail.js | 11 ++++------- js/demandPlan/child/demand_plan_detail_list.js | 3 ++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/js/accessory/child/accessory_scrap_detail.js b/js/accessory/child/accessory_scrap_detail.js index b6e7498..a20f1ca 100644 --- a/js/accessory/child/accessory_scrap_detail.js +++ b/js/accessory/child/accessory_scrap_detail.js @@ -18,13 +18,11 @@ function setParams(params) { // 获取配件报废记录详情 function getDetailsById() { - let params = { - encryptedData: JSON.stringify({ - 'id': objParam.id - }) + let encryptedData = { + 'id': objParam.id }; - let url = dataUrl + 'backstage/partScrap/getDetailsById'; - ajaxRequest(url, "POST", params, true, function () { + let url = dataUrl + 'backstage/partScrap/getDetailsById?encryptedData=' + encodeURIComponent(JSON.stringify(encryptedData)); + ajaxRequest(url, "GET", null, true, function () { }, function (result) { console.error(result); if (result.code === 200) { @@ -222,7 +220,6 @@ function initTable() { page: true, done: function (res, curr, count) { pageNum = tableIns.config.page.curr; - element.render(); table.resize("currentTableId"); }, }); diff --git a/js/demandPlan/child/demand_plan_detail_list.js b/js/demandPlan/child/demand_plan_detail_list.js index e4880c1..4349773 100644 --- a/js/demandPlan/child/demand_plan_detail_list.js +++ b/js/demandPlan/child/demand_plan_detail_list.js @@ -176,5 +176,6 @@ function exportExcel() { // 需求计划编号 function plan_detail(obj) { - openIframeByParamObj2("plan_detail", "机具需求计划", "/page/demandPlan/child/apply_plan_detail.html", "92%", "95%", obj); + // openIframeByParamObj("plan_detail", "机具需求计划", "/page/demandPlan/child/apply_plan_detail.html", "92%", "95%", obj); + openIframeByParamObj("plan_detail", "机具需求计划", "./apply_plan_detail.html", "92%", "95%", obj); } \ No newline at end of file