소스 검색

Merge branch 'main' of http://git.cc-lotus.info/Information/cxyy-service

lrf 8 달 전
부모
커밋
52549a8838
2개의 변경된 파일3개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 7
      public/importMapping.js
  2. 2 1
      src/service/util.service.ts

+ 1 - 7
public/importMapping.js

@@ -97,10 +97,4 @@ const company = [
   { index: 19, field: 'brief', zh: '简介' },
   { index: 19, field: 'brief', zh: '简介' },
 ];
 ];
 
 
-module.exports = {
-  achievement,
-  project,
-  demand,
-  supply,
-  company,
-};
+export { achievement, project, demand, supply, company };

+ 2 - 1
src/service/util.service.ts

@@ -12,7 +12,8 @@ import { Supply } from '../entity/platform/supply.entity';
 import { Project } from '../entity/platform/project.entity';
 import { Project } from '../entity/platform/project.entity';
 import { Demand } from '../entity/platform/demand.entity';
 import { Demand } from '../entity/platform/demand.entity';
 import { UserService } from './system/user.service';
 import { UserService } from './system/user.service';
-const mappings = require('../../public/importMapping');
+// const mappings = require('../../public/importMapping');
+import * as mappings from '../public/importMapping';
 import * as Excel from 'exceljs';
 import * as Excel from 'exceljs';
 import * as Path from 'path';
 import * as Path from 'path';
 import * as fs from 'fs';
 import * as fs from 'fs';