Ver Fonte

上传教材文案修改

warrior há 6 meses atrás
pai
commit
63c8709ea2

+ 1 - 1
projects/textbook/src/modules/nav-admin/page-process/process-list/process-list.component.html

@@ -14,7 +14,7 @@
           *nzSpaceItem
           nz-button
           nzType="primary"
-          (click)="tbookSer.getUnitList()"
+          (click)="tbookSer.exportEduTextbook()"
         >
           出版社Excel
         </button>

+ 2 - 2
projects/textbook/src/modules/nav-province-contact/components/upload-collect/upload-collect.component.html

@@ -14,7 +14,7 @@
     } @if (eduTextbookVolume?.get('carrierShape') == '数字教材'
     ||eduTextbookVolume?.get('carrierShape') == '纸质教材附带电子资源') {
     <div class="row">
-      <div class="title-name">数字教材</div>
+      <div class="title-name">数字资源</div>
       <!-- <div class="desc">
           可单选上次文件、链接、链接和账号密码三种格式,上传文件总大小不可超过500M
         </div>
@@ -79,7 +79,7 @@
     } @if (eduTextbookVolume?.get('carrierShape') == '数字教材'
     ||eduTextbookVolume?.get('carrierShape') == '纸质教材附带电子资源') {
     <div class="row">
-      <div class="title-name">数字教材</div>
+      <div class="title-name">数字资源</div>
       <div class="desc">
         可单选上传文件、链接、链接和账号密码三种格式,上传文件总大小不可超过500M
       </div>

+ 11 - 4
projects/textbook/src/services/textbook.ts

@@ -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);
     }