Explorar el Código

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/SCCommon

zhangweicheng hace 3 años
padre
commit
bd9e72958a

+ 17 - 0
types/src/interface/base.ts

@@ -212,6 +212,8 @@ export enum ActionName {
   UPDATE_CALCPROGRAM_CALCITEM = 'updateCalcProgramCalcItem',
   BILL_UPGRADE = 'billUpgrade',
   BILL_DOWNGRADE = 'billDowngrade',
+
+  CHANGE_FEATRUE_PRJTYPE = 'changeFeaturePrjType',
 }
 
 export interface IBaseFilter {
@@ -315,3 +317,18 @@ export interface IBRBase {
 }
 
 export const SeparateString = '|----|';
+
+// 检查subjec tree返回类型
+export enum CheckSubjectTreeType {
+  // 项目被删除
+  PROJECT_DELETED = 1,
+  // 项目被取消分享
+  PROJECT_CANCEL_SHARED,
+  // 权限限制(未知情况)
+  PERMISSION_LIMITED,
+}
+
+// 检查subjec tree返回结果
+export interface ICheckSubjectTreeRst {
+  checkType: CheckSubjectTreeType;
+}

+ 1 - 0
types/src/interface/compilation.ts

@@ -169,6 +169,7 @@ export interface ICompilation {
   lockInfo: LockInfo; // 锁信息
   monomerTemplate: IMonomerTemplateData[];
   structuralSegment: IStructuralSegmentData[];
+  edition: string; // 版本号(用于项目信息、项目特征等项目信息的升级)
 }
 
 export enum ValuationType {

+ 4 - 1
types/src/interface/project.ts

@@ -1,4 +1,4 @@
-import { EntityType } from './user';
+import { EntityType } from './user';
 import { ValuationType } from './compilation';
 import { IIncreaseSetting } from './increaseFee';
 import { ITreeScm, DeleteEnum, INumFileRef, IColumnMeta } from './base';
@@ -305,6 +305,7 @@ export interface IProject extends ITreeScm {
   deleteDate?: number;
   deleteBy?: string;
   financialProjectID?: string; // 关联财审项目ID(不用财审项目关联此表,因为可能多个项目对应一个财审项目)
+  edition?: string; // 数据版本号
   // 流程信息
   processInfo?: {
     currentApprovalID: string; // 当前正处于哪个审批流中
@@ -396,6 +397,8 @@ export interface IProjectLog {
   cooperationCount?: number;
   // 是否与我协作
   cooperateWithMe?: boolean;
+  // 版本号
+  edition?: string;
 }
 
 // 导入状态

+ 2 - 0
types/src/interface/user.ts

@@ -101,6 +101,8 @@ export interface IAPUser {
   roleIDs?: string[]; // 角色ID列表
   enable?: boolean;
   projectLimit?: number; // 创建项目数量的限制
+  failLoginCount?: number; // 登陆失败的次数
+  lastTryLoginTime?: number; // 上次尝试登陆的时间
 }
 
 // 最近联系人