Переглянути джерело

fix(types): 修改编办信息新增结构分部、单体结构的type

lishihao 4 роки тому
батько
коміт
7fe136e3e9
1 змінених файлів з 13 додано та 8 видалено
  1. 13 8
      types/src/interface/compilation.ts

+ 13 - 8
types/src/interface/compilation.ts

@@ -130,7 +130,6 @@ export interface IProCptItem {
   lock: LockInfo;
 }
 
-
 interface ISubStructuralSegment {
   dispName: string;
   key: string;
@@ -141,8 +140,11 @@ interface ISubStructuralSegment {
 
 // 结构分布
 export interface IStructuralSegment {
-  monomerType: string;
-  items: ISubStructuralSegment[];
+  compilationID: string;
+  data: {
+    monomerType: string;
+    items: ISubStructuralSegment[];
+  };
 }
 
 interface ISubMonomerTemplate {
@@ -152,9 +154,12 @@ interface ISubMonomerTemplate {
   isHaveStructuralSegment: string;
 }
 
-//单体模板
+// 单体模板
 export interface IMonomerTemplate {
-  dispName: string;
-  key: string;
-  items: ISubMonomerTemplate[];
-}
+  compilationID: string;
+  data: {
+    dispName: string;
+    key: string;
+    items: ISubMonomerTemplate[];
+  };
+}