|
@@ -436,6 +436,7 @@ export class textbookServer {
|
|
|
}
|
|
|
//导出表格
|
|
|
async exportEduTextbook() {
|
|
|
+ let unitName = '科学出版社'
|
|
|
try {
|
|
|
let queryParams: any = {
|
|
|
where: {
|
|
@@ -444,7 +445,7 @@ export class textbookServer {
|
|
|
childrens: {
|
|
|
$inQuery: {
|
|
|
where: {
|
|
|
- "editionUnit": '高等教育出版社',
|
|
|
+ "editionUnit": unitName,
|
|
|
},
|
|
|
className: 'EduTextbookVolume',
|
|
|
}
|
|
@@ -465,6 +466,7 @@ export class textbookServer {
|
|
|
'childrens.printDate',
|
|
|
'childrens.printNumber',
|
|
|
'childrens.editionUnit',
|
|
|
+ 'childrens.carrierShape',
|
|
|
'inviteUnit',
|
|
|
'user.department',
|
|
|
'department.branch',
|
|
@@ -493,6 +495,7 @@ export class textbookServer {
|
|
|
<th>出版单位</th>
|
|
|
<th>所属院校</th>
|
|
|
<th>最新印次和时间</th>
|
|
|
+ <th>载体形式</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
@@ -527,7 +530,7 @@ export class textbookServer {
|
|
|
}
|
|
|
_body += '<tr>';
|
|
|
_body += '<td>';
|
|
|
- _body += `${row + 2001}`;
|
|
|
+ _body += `${row}`;
|
|
|
_body += '</td>';
|
|
|
|
|
|
_body += '<td>';
|
|
@@ -583,13 +586,17 @@ export class textbookServer {
|
|
|
)}`;
|
|
|
_body += '</td>';
|
|
|
|
|
|
+ _body += '<td>';
|
|
|
+ _body += `${this.fromatFiled(data[row]?.get('childrens'), 'carrierShape')}`;
|
|
|
+ _body += '</td>';
|
|
|
+
|
|
|
_body += '</tr>';
|
|
|
}
|
|
|
table += _body;
|
|
|
table += '</tbody>';
|
|
|
table += '</table>';
|
|
|
- let title = '已提交教材';
|
|
|
- this.excel(table, `${title}.xls`);
|
|
|
+ // let title = '已提交教材';
|
|
|
+ this.excel(table, `${unitName}.xls`);
|
|
|
} catch (err) {
|
|
|
console.log(err);
|
|
|
}
|