Forráskód Böngészése

feat(types): 增加projectTextMap

vian 5 éve
szülő
commit
a490d0378c
1 módosított fájl, 8 hozzáadás és 8 törlés
  1. 8 8
      types/src/interface/project.ts

+ 8 - 8
types/src/interface/project.ts

@@ -1,13 +1,6 @@
 import { ValuationType } from './compilation';
-import { ILabourCoeFile } from './labourCoe';
 import { IIncreaseSetting } from './increaseFee';
-import {
-  ITreeScm,
-  IFileRef,
-  DeleteEnum,
-  INumFileRef,
-  IColumnMeta,
-} from './base';
+import { ITreeScm, DeleteEnum, INumFileRef, IColumnMeta } from './base';
 import { ICalcOption, ITenderSetting } from './calculation';
 
 export enum ProjectType {
@@ -17,6 +10,13 @@ export enum ProjectType {
   UNIT, // 单位工程
 }
 
+export const projectTextMap = {
+  [ProjectType.FOLDER]: '文件夹',
+  [ProjectType.CONSTRUCTION]: '建设项目',
+  [ProjectType.SINGLE]: '单项工程',
+  [ProjectType.UNIT]: '单位工程',
+};
+
 export interface IGLJCol {
   showAdjustPrice?: boolean;
 }