Browse Source

优化导出表格变成科学计数法显示问题

cehn 3 months ago
parent
commit
5787a98ce4
2 changed files with 7 additions and 5 deletions
  1. 4 4
      projects/textbook/src/app/textbook/textbook.component.ts
  2. 3 1
      server/db/index.js

+ 4 - 4
projects/textbook/src/app/textbook/textbook.component.ts

@@ -104,8 +104,8 @@ export class TextbookComponent implements OnInit {
     approval: {
       listOfFilter: [
         {
-          value: '经中央有关部门审定的教材',
-          text: '经中央有关部门审定的教材',
+          value: '经中央有关部门审定的教材(已点对点通知)',
+          text: '经中央有关部门审定的教材(已点对点通知)',
         },
         {
           value: '首届全国教材建设奖优秀教材(高等教育类)教材',
@@ -903,7 +903,7 @@ export class TextbookComponent implements OnInit {
         _body += '</td>';
 
         _body += '<td>';
-        _body += `${data[row].get('code') || ''}`;
+        _body += `&nbsp;${data[row].get('code') || ''}`;
         _body += '</td>';
 
         _body += '<td>';
@@ -935,7 +935,7 @@ export class TextbookComponent implements OnInit {
         _body += '</td>';
 
         _body += '<td>';
-        _body += `${
+        _body += `&nbsp;${
           this.fromatFiled(data[row]?.get('childrens'), 'editionFirst')
         }`;
         _body += '</td>';

+ 3 - 1
server/db/index.js

@@ -9,6 +9,7 @@ import {Submitted} from "./schemas/Submitted"
 import {EduProcess} from "./schemas/EduProcess"
 import { Department } from "./schemas/Department"
 import { Review } from "./schemas/Review"
+import { Activity } from "./schemas/Activity"
 export const EduSchemas = [
     _User,
     _Role,
@@ -20,6 +21,7 @@ export const EduSchemas = [
     Submitted,
     EduProcess,
     Department,
-    Review
+    Review,
+    Activity
 ]
 module.exports.EduSchemas = EduSchemas