|
|
@@ -9,7 +9,7 @@ const rptChangeRela = (function (){
|
|
|
let curType = '';
|
|
|
const initList = function () {
|
|
|
const header = info[curType].colHeader;
|
|
|
- $('#scr-header').html(`<tr class="text-center"><th>${header[0]}</th><th style="vertical-align: middle">${header[1]}</th><th style="vertical-align: middle">${header[2]}</th></tr>`);
|
|
|
+ $('#scr-header').html(`<tr class="text-center"><th>${header[0]}</th><th style="vertical-align: middle">${_.escape(header[1])}</th><th style="vertical-align: middle">${header[2]}</th></tr>`);
|
|
|
const html = [], arr = data[curType];
|
|
|
for (const a of arr) {
|
|
|
const checked = a.selected ? 'checked' : '';
|
|
|
@@ -19,6 +19,10 @@ const rptChangeRela = (function (){
|
|
|
};
|
|
|
const showChangeRela = async function (type) {
|
|
|
curType = type;
|
|
|
+ if (type === 'change_plan') {
|
|
|
+ info.change_plan.title = '请选择' + reportChangePlanName;
|
|
|
+ info.change_plan.colHeader[1] = reportChangePlanName + '编号';
|
|
|
+ }
|
|
|
document.getElementById('scr-title').innerText = info[type].title;
|
|
|
if (!data[type]) {
|
|
|
const result = await postDataAsync(`/tender/${window.location.pathname.split('/')[2]}/load`, { filter: curType });
|
|
|
@@ -72,4 +76,4 @@ const rptChangeRela = (function (){
|
|
|
$('#select-change-rela').modal('hide');
|
|
|
};
|
|
|
return { showChangeRela, updateChangeRela }
|
|
|
-})();
|
|
|
+})();
|