项目管理分析导出报告接口完善
This commit is contained in:
parent
9c2fa60252
commit
823f151a39
|
|
@ -81,6 +81,27 @@ function initTable(type, bidCode) {
|
||||||
var index = $(this).index();
|
var index = $(this).index();
|
||||||
var rowData = res.rows[index]; // 获取对应行的数据
|
var rowData = res.rows[index]; // 获取对应行的数据
|
||||||
console.log(rowData, "rowData导出");
|
console.log(rowData, "rowData导出");
|
||||||
|
|
||||||
|
const url =
|
||||||
|
commonUrl +
|
||||||
|
"screen/largeScreen/tb_project_new/export?proName=" +
|
||||||
|
rowData.taskName +
|
||||||
|
"&token=" +
|
||||||
|
sessionStorage.getItem("zhgd_token");
|
||||||
|
|
||||||
|
// window.location.href = url;
|
||||||
|
window.open(url, "_blank");
|
||||||
|
// $.ajax({
|
||||||
|
// url: url,
|
||||||
|
// type: "get",
|
||||||
|
|
||||||
|
// headers: {
|
||||||
|
// authorization: sessionStorage.getItem("zhgd_token"),
|
||||||
|
// },
|
||||||
|
// success: function (data) {
|
||||||
|
// console.log(data, "导出的数据结果");
|
||||||
|
// },
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
@ -141,7 +162,7 @@ function initTable(type, bidCode) {
|
||||||
templet: (d) => {
|
templet: (d) => {
|
||||||
let text = "";
|
let text = "";
|
||||||
text +=
|
text +=
|
||||||
'<a id="exportBtn" style="color: #007bff;cursor: pointer;font-size: 16px">导出</a>';
|
'<a id="exportBtn" style="color: #007bff;cursor: pointer;font-size: 16px">分析报告</a>';
|
||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue