giime 0.8.8 → 0.8.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/index.css +140 -139
  2. package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.d.ts +1 -1
  3. package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.mjs.map +1 -1
  4. package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.d.ts +22 -22
  5. package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.mjs.map +1 -1
  6. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.d.ts +2 -0
  7. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.mjs +2 -0
  8. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.mjs.map +1 -1
  9. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.d.ts +19 -0
  10. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.mjs +8 -0
  11. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.mjs.map +1 -0
  12. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.d.ts +264 -0
  13. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.mjs +18 -0
  14. package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.mjs.map +1 -0
  15. package/es/api/guardBasic/controller/index.mjs +2 -0
  16. package/es/api/guardBasic/controller/index.mjs.map +1 -1
  17. package/es/api/guardBasic/interface/apiTypes/BatchExportReq.d.ts +6 -0
  18. package/es/api/guardBasic/interface/apiTypes/BatchExportReq.mjs +2 -0
  19. package/es/api/guardBasic/interface/apiTypes/BatchExportReq.mjs.map +1 -0
  20. package/es/api/guardBasic/interface/apiTypes/BatchImportResultVo.d.ts +13 -0
  21. package/es/api/guardBasic/interface/apiTypes/BatchImportResultVo.mjs +2 -0
  22. package/es/api/guardBasic/interface/apiTypes/BatchImportResultVo.mjs.map +1 -0
  23. package/es/api/guardBasic/interface/apiTypes/DataDictDynamicVo.d.ts +35 -0
  24. package/es/api/guardBasic/interface/apiTypes/DataDictDynamicVo.mjs +2 -0
  25. package/es/api/guardBasic/interface/apiTypes/DataDictDynamicVo.mjs.map +1 -0
  26. package/es/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.d.ts +20 -0
  27. package/es/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.mjs +2 -0
  28. package/es/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.mjs.map +1 -0
  29. package/es/api/guardBasic/interface/apiTypes/DataDictValueVo.d.ts +1 -1
  30. package/es/api/guardBasic/interface/apiTypes/DataDictVo.d.ts +4 -4
  31. package/es/api/guardBasic/interface/apiTypes/ImportErrorInfo.d.ts +8 -0
  32. package/es/api/guardBasic/interface/apiTypes/ImportErrorInfo.mjs +2 -0
  33. package/es/api/guardBasic/interface/apiTypes/ImportErrorInfo.mjs.map +1 -0
  34. package/es/api/guardBasic/interface/apiTypes/ModifyDataDictReq.d.ts +1 -1
  35. package/es/api/guardBasic/interface/apiTypes/ModifySysAreaReq.d.ts +2 -0
  36. package/es/api/guardBasic/interface/apiTypes/PageSysAreaReq.d.ts +3 -3
  37. package/es/api/guardBasic/interface/apiTypes/RBatchImportResultVo.d.ts +10 -0
  38. package/es/api/guardBasic/interface/apiTypes/RBatchImportResultVo.mjs +2 -0
  39. package/es/api/guardBasic/interface/apiTypes/RBatchImportResultVo.mjs.map +1 -0
  40. package/es/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.d.ts +10 -0
  41. package/es/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.mjs +2 -0
  42. package/es/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.mjs.map +1 -0
  43. package/es/api/guardBasic/interface/apiTypes/RListCodeNameKv28.d.ts +11 -0
  44. package/es/api/guardBasic/interface/apiTypes/RListCodeNameKv28.mjs +2 -0
  45. package/es/api/guardBasic/interface/apiTypes/RListCodeNameKv28.mjs.map +1 -0
  46. package/es/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.d.ts +11 -0
  47. package/es/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.mjs +2 -0
  48. package/es/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.mjs.map +1 -0
  49. package/es/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.d.ts +11 -0
  50. package/es/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.mjs +2 -0
  51. package/es/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.mjs.map +1 -0
  52. package/es/api/guardBasic/interface/apiTypes/SaveDataDictReq.d.ts +1 -1
  53. package/es/api/guardBasic/interface/apiTypes/SaveSysAreaReq.d.ts +2 -0
  54. package/es/api/guardBasic/interface/apiTypes/StringImportReq.d.ts +10 -0
  55. package/es/api/guardBasic/interface/apiTypes/StringImportReq.mjs +2 -0
  56. package/es/api/guardBasic/interface/apiTypes/StringImportReq.mjs.map +1 -0
  57. package/es/api/guardBasic/interface/apiTypes/SysAreaDetailVo.d.ts +2 -0
  58. package/es/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.d.ts +14 -0
  59. package/es/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.mjs +2 -0
  60. package/es/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.mjs.map +1 -0
  61. package/es/api/guardBasic/interface/apiTypes/SysAreaVo.d.ts +2 -0
  62. package/es/api/guardBasic/interface/index.d.ts +12 -0
  63. package/es/api/guardBasic/interface/index.mjs +12 -0
  64. package/es/api/guardBasic/interface/index.mjs.map +1 -1
  65. package/es/components/src/composite/searchForm/SearchForm.vue.d.ts +9 -0
  66. package/es/components/src/composite/searchForm/SearchForm.vue.mjs +1 -1
  67. package/es/components/src/composite/searchForm/SearchForm.vue2.mjs +5 -3
  68. package/es/components/src/composite/searchForm/SearchForm.vue2.mjs.map +1 -1
  69. package/es/components/src/composite/searchForm/index.d.ts +19 -0
  70. package/es/components/src/composite/searchForm/searchForm.d.ts +8 -0
  71. package/es/components/src/composite/searchForm/searchForm.mjs +8 -0
  72. package/es/components/src/composite/searchForm/searchForm.mjs.map +1 -1
  73. package/es/giime/version.d.ts +1 -1
  74. package/es/giime/version.mjs +1 -1
  75. package/es/giime/version.mjs.map +1 -1
  76. package/es/hooks/base/useDictionary/index.d.ts +6 -6
  77. package/es/hooks/base/useDictionary/index.mjs.map +1 -1
  78. package/es/hooks/store/userCenter/useAreaList/index.d.ts +57 -8
  79. package/es/hooks/store/userCenter/useAreaList/index.mjs +19 -7
  80. package/es/hooks/store/userCenter/useAreaList/index.mjs.map +1 -1
  81. package/es/index.css +140 -139
  82. package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.d.ts +1 -1
  83. package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.js.map +1 -1
  84. package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.d.ts +22 -22
  85. package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.js.map +1 -1
  86. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.d.ts +2 -0
  87. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.js +4 -0
  88. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.js.map +1 -1
  89. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.d.ts +19 -0
  90. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.js +10 -0
  91. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.js.map +1 -0
  92. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.d.ts +264 -0
  93. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.js +20 -0
  94. package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.js.map +1 -0
  95. package/lib/api/guardBasic/controller/index.js +4 -0
  96. package/lib/api/guardBasic/controller/index.js.map +1 -1
  97. package/lib/api/guardBasic/interface/apiTypes/BatchExportReq.d.ts +6 -0
  98. package/lib/api/guardBasic/interface/apiTypes/BatchExportReq.js +3 -0
  99. package/lib/api/guardBasic/interface/apiTypes/BatchExportReq.js.map +1 -0
  100. package/lib/api/guardBasic/interface/apiTypes/BatchImportResultVo.d.ts +13 -0
  101. package/lib/api/guardBasic/interface/apiTypes/BatchImportResultVo.js +3 -0
  102. package/lib/api/guardBasic/interface/apiTypes/BatchImportResultVo.js.map +1 -0
  103. package/lib/api/guardBasic/interface/apiTypes/DataDictDynamicVo.d.ts +35 -0
  104. package/lib/api/guardBasic/interface/apiTypes/DataDictDynamicVo.js +3 -0
  105. package/lib/api/guardBasic/interface/apiTypes/DataDictDynamicVo.js.map +1 -0
  106. package/lib/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.d.ts +20 -0
  107. package/lib/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.js +3 -0
  108. package/lib/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.js.map +1 -0
  109. package/lib/api/guardBasic/interface/apiTypes/DataDictValueVo.d.ts +1 -1
  110. package/lib/api/guardBasic/interface/apiTypes/DataDictVo.d.ts +4 -4
  111. package/lib/api/guardBasic/interface/apiTypes/ImportErrorInfo.d.ts +8 -0
  112. package/lib/api/guardBasic/interface/apiTypes/ImportErrorInfo.js +3 -0
  113. package/lib/api/guardBasic/interface/apiTypes/ImportErrorInfo.js.map +1 -0
  114. package/lib/api/guardBasic/interface/apiTypes/ModifyDataDictReq.d.ts +1 -1
  115. package/lib/api/guardBasic/interface/apiTypes/ModifySysAreaReq.d.ts +2 -0
  116. package/lib/api/guardBasic/interface/apiTypes/PageSysAreaReq.d.ts +3 -3
  117. package/lib/api/guardBasic/interface/apiTypes/RBatchImportResultVo.d.ts +10 -0
  118. package/lib/api/guardBasic/interface/apiTypes/RBatchImportResultVo.js +3 -0
  119. package/lib/api/guardBasic/interface/apiTypes/RBatchImportResultVo.js.map +1 -0
  120. package/lib/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.d.ts +10 -0
  121. package/lib/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.js +3 -0
  122. package/lib/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.js.map +1 -0
  123. package/lib/api/guardBasic/interface/apiTypes/RListCodeNameKv28.d.ts +11 -0
  124. package/lib/api/guardBasic/interface/apiTypes/RListCodeNameKv28.js +3 -0
  125. package/lib/api/guardBasic/interface/apiTypes/RListCodeNameKv28.js.map +1 -0
  126. package/lib/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.d.ts +11 -0
  127. package/lib/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.js +3 -0
  128. package/lib/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.js.map +1 -0
  129. package/lib/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.d.ts +11 -0
  130. package/lib/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.js +3 -0
  131. package/lib/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.js.map +1 -0
  132. package/lib/api/guardBasic/interface/apiTypes/SaveDataDictReq.d.ts +1 -1
  133. package/lib/api/guardBasic/interface/apiTypes/SaveSysAreaReq.d.ts +2 -0
  134. package/lib/api/guardBasic/interface/apiTypes/StringImportReq.d.ts +10 -0
  135. package/lib/api/guardBasic/interface/apiTypes/StringImportReq.js +3 -0
  136. package/lib/api/guardBasic/interface/apiTypes/StringImportReq.js.map +1 -0
  137. package/lib/api/guardBasic/interface/apiTypes/SysAreaDetailVo.d.ts +2 -0
  138. package/lib/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.d.ts +14 -0
  139. package/lib/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.js +3 -0
  140. package/lib/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.js.map +1 -0
  141. package/lib/api/guardBasic/interface/apiTypes/SysAreaVo.d.ts +2 -0
  142. package/lib/api/guardBasic/interface/index.d.ts +12 -0
  143. package/lib/api/guardBasic/interface/index.js +12 -0
  144. package/lib/api/guardBasic/interface/index.js.map +1 -1
  145. package/lib/components/src/composite/searchForm/SearchForm.vue.d.ts +9 -0
  146. package/lib/components/src/composite/searchForm/SearchForm.vue.js +1 -1
  147. package/lib/components/src/composite/searchForm/SearchForm.vue2.js +5 -3
  148. package/lib/components/src/composite/searchForm/SearchForm.vue2.js.map +1 -1
  149. package/lib/components/src/composite/searchForm/index.d.ts +19 -0
  150. package/lib/components/src/composite/searchForm/searchForm.d.ts +8 -0
  151. package/lib/components/src/composite/searchForm/searchForm.js +8 -0
  152. package/lib/components/src/composite/searchForm/searchForm.js.map +1 -1
  153. package/lib/giime/version.d.ts +1 -1
  154. package/lib/giime/version.js +1 -1
  155. package/lib/giime/version.js.map +1 -1
  156. package/lib/hooks/base/useDictionary/index.d.ts +6 -6
  157. package/lib/hooks/base/useDictionary/index.js.map +1 -1
  158. package/lib/hooks/store/userCenter/useAreaList/index.d.ts +57 -8
  159. package/lib/hooks/store/userCenter/useAreaList/index.js +19 -7
  160. package/lib/hooks/store/userCenter/useAreaList/index.js.map +1 -1
  161. package/lib/index.css +140 -139
  162. package/package.json +1 -1
@@ -47,6 +47,8 @@ export interface SysAreaDetailVo {
47
47
  jobName?: string;
48
48
  /** 用户ids */
49
49
  userIds?: number[];
50
+ /** 备注 */
51
+ remark?: string;
50
52
  /** 币种信息 */
51
53
  currency?: number[];
52
54
  }
@@ -0,0 +1,14 @@
1
+ export interface SysAreaFamilyVo {
2
+ /** 团队ID */
3
+ id: number;
4
+ /** 团队名称 */
5
+ name: string;
6
+ /** 团队别名 */
7
+ alias: string;
8
+ /** 组织编码 */
9
+ org_code: string;
10
+ /** 所属家族编码 */
11
+ family_code: string;
12
+ /** 所属家族名称 */
13
+ family_name: string;
14
+ }
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=SysAreaFamilyVo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SysAreaFamilyVo.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -47,4 +47,6 @@ export interface SysAreaVo {
47
47
  jobName?: string;
48
48
  /** 用户ids */
49
49
  userIds?: number[];
50
+ /** 备注 */
51
+ remark?: string;
50
52
  }
@@ -194,6 +194,17 @@ export * from "./apiTypes/PageOperationLogReq";
194
194
  export * from "./apiTypes/PageUserAuthChangeLogVo";
195
195
  export * from "./apiTypes/RPageUserAuthChangeLogVo";
196
196
  export * from "./apiTypes/UserAuthChangeLogVo";
197
+ export * from "./apiTypes/BatchImportResultVo";
198
+ export * from "./apiTypes/ImportErrorInfo";
199
+ export * from "./apiTypes/RBatchImportResultVo";
200
+ export * from "./apiTypes/BatchExportReq";
201
+ export * from "./apiTypes/StringImportReq";
202
+ export * from "./apiTypes/DataDictDynamicVo";
203
+ export * from "./apiTypes/DataDictValueDynamicVo";
204
+ export * from "./apiTypes/RListDataDictDynamicVo";
205
+ export * from "./apiTypes/RDataDictDynamicVo";
206
+ export * from "./apiTypes/RListSysAreaFamilyVo";
207
+ export * from "./apiTypes/SysAreaFamilyVo";
197
208
  export * from "./apiTypes/QueryUserVo1";
198
209
  export * from "./apiTypes/IdNameKv2";
199
210
  export * from "./apiTypes/RListIdNameKv3";
@@ -252,6 +263,7 @@ export * from "./apiTypes/GimpUserDetail";
252
263
  export * from "./apiTypes/RGimpUserDetail";
253
264
  export * from "./apiTypes/RListSeleteUserVo";
254
265
  export * from "./apiTypes/SeleteUserVo";
266
+ export * from "./apiTypes/RListCodeNameKv28";
255
267
  export type Primitive = undefined | null | boolean | string | number | symbol;
256
268
  export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : {
257
269
  [K in keyof T]-?: DeepRequired<T[K]>;
@@ -194,6 +194,17 @@ import './apiTypes/PageOperationLogReq.mjs';
194
194
  import './apiTypes/PageUserAuthChangeLogVo.mjs';
195
195
  import './apiTypes/RPageUserAuthChangeLogVo.mjs';
196
196
  import './apiTypes/UserAuthChangeLogVo.mjs';
197
+ import './apiTypes/BatchImportResultVo.mjs';
198
+ import './apiTypes/ImportErrorInfo.mjs';
199
+ import './apiTypes/RBatchImportResultVo.mjs';
200
+ import './apiTypes/BatchExportReq.mjs';
201
+ import './apiTypes/StringImportReq.mjs';
202
+ import './apiTypes/DataDictDynamicVo.mjs';
203
+ import './apiTypes/DataDictValueDynamicVo.mjs';
204
+ import './apiTypes/RListDataDictDynamicVo.mjs';
205
+ import './apiTypes/RDataDictDynamicVo.mjs';
206
+ import './apiTypes/RListSysAreaFamilyVo.mjs';
207
+ import './apiTypes/SysAreaFamilyVo.mjs';
197
208
  import './apiTypes/QueryUserVo1.mjs';
198
209
  import './apiTypes/IdNameKv2.mjs';
199
210
  import './apiTypes/RListIdNameKv3.mjs';
@@ -252,4 +263,5 @@ import './apiTypes/GimpUserDetail.mjs';
252
263
  import './apiTypes/RGimpUserDetail.mjs';
253
264
  import './apiTypes/RListSeleteUserVo.mjs';
254
265
  import './apiTypes/SeleteUserVo.mjs';
266
+ import './apiTypes/RListCodeNameKv28.mjs';
255
267
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,6 +7,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
+ hideActionButtons: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
10
14
  showSearch: {
11
15
  type: import("vue").PropType<boolean>;
12
16
  };
@@ -31,6 +35,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
31
35
  type: BooleanConstructor;
32
36
  default: boolean;
33
37
  };
38
+ hideActionButtons: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
34
42
  showSearch: {
35
43
  type: import("vue").PropType<boolean>;
36
44
  };
@@ -46,6 +54,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
46
54
  }, {
47
55
  options: import("./searchForm").SearchFormPropsOption[];
48
56
  defaultShowMore: boolean;
57
+ hideActionButtons: boolean;
49
58
  }, {}>, {
50
59
  default?: ((props: {}) => any) | undefined;
51
60
  }>;
@@ -2,7 +2,7 @@ import _sfc_main from './SearchForm.vue2.mjs';
2
2
  import './SearchForm.vue3.mjs';
3
3
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
- var SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d3111183"]]);
5
+ var SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79615afd"]]);
6
6
 
7
7
  export { SearchForm as default };
8
8
  //# sourceMappingURL=SearchForm.vue.mjs.map
@@ -121,14 +121,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
121
121
  /* KEYED_FRAGMENT */
122
122
  )),
123
123
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
124
- createVNode(_component_gm_form_item, {
124
+ withDirectives(createVNode(_component_gm_form_item, {
125
125
  style: normalizeStyle(searchButtonItemStyle.value)
126
126
  }, {
127
127
  default: withCtx(() => [
128
128
  createElementVNode(
129
129
  "div",
130
130
  {
131
- class: normalizeClass(["gm-flex gm-w-full", notShowShowMore.value ? "" : " gm-justify-end"])
131
+ class: normalizeClass(["gm-flex gm-w-full", notShowShowMore.value ? "" : "gm-justify-end"])
132
132
  },
133
133
  [
134
134
  createVNode(_component_gm_button, {
@@ -192,7 +192,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
192
192
  ]),
193
193
  _: 1
194
194
  /* STABLE */
195
- }, 8, ["style"]),
195
+ }, 8, ["style"]), [
196
+ [vShow, !props.hideActionButtons]
197
+ ]),
196
198
  createElementVNode(
197
199
  "div",
198
200
  {
@@ -1 +1 @@
1
- {"version":3,"file":"SearchForm.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/SearchForm.vue"],"sourcesContent":["<script lang=\"ts\">\nconst itemGap = 8\n</script>\n<template>\n <div ref=\"queryDivRef\" class=\"gm-mb-5\">\n <gm-form v-show=\"showSearch\" ref=\"queryRef\" :model=\"queryParams\" :inline=\"true\" class=\"gmSearchForm\">\n <div :class=\"showMore ? '' : 'gm-h-[36px] gm-overflow-hidden'\">\n <div class=\"gm-relative gm-grid gm-w-full\" :style=\"{ gridTemplateColumns: `repeat(${colsCount}, minmax(0, 1fr))`, gap: itemGap + 'px' }\">\n <template v-for=\"(item, index) in optionsList\" :key=\"index\">\n <component :is=\"item.component\" v-bind=\"item.props\" v-model=\"queryParams[item.props.prop]\" />\n </template>\n <slot />\n <gm-form-item :style=\"searchButtonItemStyle\">\n <div class=\"gm-flex gm-w-full\" :class=\"notShowShowMore ? '' : ' gm-justify-end'\">\n <gm-button type=\"primary\" :icon=\"Search\" class=\"\" @click=\"handleQuery\">搜索</gm-button>\n <gm-button :icon=\"Refresh\" @click=\"resetQuery\">重置</gm-button>\n <gm-button v-show=\"!notShowShowMore\" type=\"primary\" text @click=\"handleShowMoreChange\">\n {{ showMore ? '缩起' : '展开' }} <gm-icon class=\"el-icon--right\" :class=\"showMore ? 'gm-rotate-180' : ''\"><ArrowDown /></gm-icon>\n </gm-button>\n </div>\n </gm-form-item>\n <div ref=\"visibilityMarkRef\" class=\"gm-absolute gm-bottom-3 gm-right-0 -gm-z-10 gm-h-1 gm-w-1\" />\n </div>\n </div>\n </gm-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject, nextTick, provide, ref } from 'vue';\nimport { useElementSize } from '@vueuse/core';\nimport { TableCtxKey } from '@giime/constants/table';\nimport { ArrowDown, Refresh, Search } from '@element-plus/icons-vue';\nimport { searchFormEmits, searchFormItemList, searchFormProps } from './searchForm';\nimport { queryParamsKey, searchFormHandleQueryKey } from './constants';\nimport type { CSSProperties } from 'vue';\nimport type { FormInstance } from '../../base/form';\ndefineOptions({\n name: 'GmSearchForm',\n});\nconst tableCtx = inject(TableCtxKey, {});\n\nconst showSearch = defineModel<boolean>('showSearch', { default: true });\n\nconst queryParams = defineModel<Record<string, any>>('queryParams', { required: true });\n\nprovide(queryParamsKey, queryParams);\n\nconst props = defineProps(searchFormProps);\nconst emit = defineEmits(searchFormEmits);\n\nconst queryDivRef = ref<HTMLDivElement>();\nconst visibilityMarkRef = ref<HTMLDivElement>();\n// const markIsVisibility = useElementVisibility(visibilityMarkRef);\n\nconst { width: queryDivWidth, height: queryDivHeight } = useElementSize(queryDivRef);\n// 列个数\nconst colsCount = computed(() => Math.floor(queryDivWidth.value / 269));\nconst showMore = ref(props.defaultShowMore);\n// 当 showMore展开 且高度为60时,不显示展开按钮\nconst notShowShowMore = computed(() => showMore.value === true && queryDivHeight.value <= 70);\n\n/**搜索重置按钮组样式 */\nconst searchButtonItemStyle = computed<CSSProperties>(() => {\n if (notShowShowMore.value) {\n return {};\n }\n return {\n gridColumn: colsCount.value,\n gridRow: showMore.value ? undefined : 1,\n };\n});\nconst handleShowMoreChange = async () => {\n showMore.value = !showMore.value;\n // 手动触发 scroll 事件\n const scrollEvent = new Event('resize');\n await nextTick();\n // 手动触发事件\n window.dispatchEvent(scrollEvent);\n};\n\n// 通过json渲染组件\nconst optionsList = computed(() => {\n return props.options.map(it => {\n const findComponent = searchFormItemList.find(item => item.type === it.type);\n if (findComponent) {\n it.component = findComponent.component;\n }\n return it;\n });\n});\n\nconst queryRef = ref<FormInstance>();\n// 上下文添加queryRef\ntableCtx.queryRef = queryRef;\nconst handleQuery = (...args: any[]) => {\n emit('handleQuery', ...args);\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\nprovide(searchFormHandleQueryKey, handleQuery);\n\nconst resetQuery = () => {\n queryRef.value?.resetFields();\n emit('resetQuery');\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\n\ndefineExpose({\n // queryRef,\n handleQuery,\n resetQuery,\n});\n</script>\n<style lang=\"scss\" scoped>\n:deep(.gmSearchForm .el-form-item) {\n margin-right: 0;\n margin-bottom: 4px;\n}\n</style>\n"],"names":["_useModel"],"mappings":"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"}
1
+ {"version":3,"file":"SearchForm.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/SearchForm.vue"],"sourcesContent":["<script lang=\"ts\">\nconst itemGap = 8\n</script>\n<template>\n <div ref=\"queryDivRef\" class=\"gm-mb-5\">\n <gm-form v-show=\"showSearch\" ref=\"queryRef\" :model=\"queryParams\" :inline=\"true\" class=\"gmSearchForm\">\n <div :class=\"showMore ? '' : 'gm-h-[36px] gm-overflow-hidden'\">\n <div class=\"gm-relative gm-grid gm-w-full\" :style=\"{ gridTemplateColumns: `repeat(${colsCount}, minmax(0, 1fr))`, gap: itemGap + 'px' }\">\n <template v-for=\"(item, index) in optionsList\" :key=\"index\">\n <component :is=\"item.component\" v-bind=\"item.props\" v-model=\"queryParams[item.props.prop]\" />\n </template>\n <slot />\n <gm-form-item v-show=\"!props.hideActionButtons\" :style=\"searchButtonItemStyle\">\n <div class=\"gm-flex gm-w-full\" :class=\"notShowShowMore ? '' : 'gm-justify-end'\">\n <gm-button type=\"primary\" :icon=\"Search\" class=\"\" @click=\"handleQuery\">搜索</gm-button>\n <gm-button :icon=\"Refresh\" @click=\"resetQuery\">重置</gm-button>\n <gm-button v-show=\"!notShowShowMore\" type=\"primary\" text @click=\"handleShowMoreChange\">\n {{ showMore ? '缩起' : '展开' }} <gm-icon class=\"el-icon--right\" :class=\"showMore ? 'gm-rotate-180' : ''\"><ArrowDown /></gm-icon>\n </gm-button>\n </div>\n </gm-form-item>\n <div ref=\"visibilityMarkRef\" class=\"gm-absolute gm-bottom-3 gm-right-0 -gm-z-10 gm-h-1 gm-w-1\" />\n </div>\n </div>\n </gm-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject, nextTick, provide, ref } from 'vue';\nimport { useElementSize } from '@vueuse/core';\nimport { TableCtxKey } from '@giime/constants/table';\nimport { ArrowDown, Refresh, Search } from '@element-plus/icons-vue';\nimport { searchFormEmits, searchFormItemList, searchFormProps } from './searchForm';\nimport { queryParamsKey, searchFormHandleQueryKey } from './constants';\nimport type { CSSProperties } from 'vue';\nimport type { FormInstance } from '../../base/form';\ndefineOptions({\n name: 'GmSearchForm',\n});\nconst tableCtx = inject(TableCtxKey, {});\n\nconst showSearch = defineModel<boolean>('showSearch', { default: true });\n\nconst queryParams = defineModel<Record<string, any>>('queryParams', { required: true });\n\nprovide(queryParamsKey, queryParams);\n\nconst props = defineProps(searchFormProps);\nconst emit = defineEmits(searchFormEmits);\n\nconst queryDivRef = ref<HTMLDivElement>();\nconst visibilityMarkRef = ref<HTMLDivElement>();\n// const markIsVisibility = useElementVisibility(visibilityMarkRef);\n\nconst { width: queryDivWidth, height: queryDivHeight } = useElementSize(queryDivRef);\n// 列个数\nconst colsCount = computed(() => Math.floor(queryDivWidth.value / 269));\nconst showMore = ref(props.defaultShowMore);\n// 当 showMore展开 且高度为60时,不显示展开按钮\nconst notShowShowMore = computed(() => showMore.value === true && queryDivHeight.value <= 70);\n\n/**搜索重置按钮组样式 */\nconst searchButtonItemStyle = computed<CSSProperties>(() => {\n if (notShowShowMore.value) {\n return {};\n }\n return {\n gridColumn: colsCount.value,\n gridRow: showMore.value ? undefined : 1,\n };\n});\nconst handleShowMoreChange = async () => {\n showMore.value = !showMore.value;\n // 手动触发 scroll 事件\n const scrollEvent = new Event('resize');\n await nextTick();\n // 手动触发事件\n window.dispatchEvent(scrollEvent);\n};\n\n// 通过json渲染组件\nconst optionsList = computed(() => {\n return props.options.map(it => {\n const findComponent = searchFormItemList.find(item => item.type === it.type);\n if (findComponent) {\n it.component = findComponent.component;\n }\n return it;\n });\n});\n\nconst queryRef = ref<FormInstance>();\n// 上下文添加queryRef\ntableCtx.queryRef = queryRef;\nconst handleQuery = (...args: any[]) => {\n emit('handleQuery', ...args);\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\nprovide(searchFormHandleQueryKey, handleQuery);\n\nconst resetQuery = () => {\n queryRef.value?.resetFields();\n emit('resetQuery');\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\n\ndefineExpose({\n // queryRef,\n handleQuery,\n resetQuery,\n});\n</script>\n<style lang=\"scss\" scoped>\n:deep(.gmSearchForm .el-form-item) {\n margin-right: 0;\n margin-bottom: 4px;\n}\n</style>\n"],"names":["_useModel"],"mappings":"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"}
@@ -9,6 +9,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
9
9
  type: BooleanConstructor;
10
10
  default: boolean;
11
11
  };
12
+ hideActionButtons: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
12
16
  showSearch: {
13
17
  type: import("vue").PropType<boolean>;
14
18
  };
@@ -38,6 +42,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
38
42
  type: BooleanConstructor;
39
43
  default: boolean;
40
44
  };
45
+ hideActionButtons: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
41
49
  showSearch: {
42
50
  type: import("vue").PropType<boolean>;
43
51
  };
@@ -53,6 +61,7 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
53
61
  }, {
54
62
  options: import("./searchForm").SearchFormPropsOption[];
55
63
  defaultShowMore: boolean;
64
+ hideActionButtons: boolean;
56
65
  }, true, {}, {}, {
57
66
  P: {};
58
67
  B: {};
@@ -69,6 +78,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
69
78
  type: BooleanConstructor;
70
79
  default: boolean;
71
80
  };
81
+ hideActionButtons: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
72
85
  showSearch: {
73
86
  type: import("vue").PropType<boolean>;
74
87
  };
@@ -87,6 +100,7 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
87
100
  }, {}, {}, {}, {
88
101
  options: import("./searchForm").SearchFormPropsOption[];
89
102
  defaultShowMore: boolean;
103
+ hideActionButtons: boolean;
90
104
  }>;
91
105
  __isFragment?: undefined;
92
106
  __isTeleport?: undefined;
@@ -100,6 +114,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
100
114
  type: BooleanConstructor;
101
115
  default: boolean;
102
116
  };
117
+ hideActionButtons: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
103
121
  showSearch: {
104
122
  type: import("vue").PropType<boolean>;
105
123
  };
@@ -123,6 +141,7 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
123
141
  }, string, {
124
142
  options: import("./searchForm").SearchFormPropsOption[];
125
143
  defaultShowMore: boolean;
144
+ hideActionButtons: boolean;
126
145
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
127
146
  $slots: {
128
147
  default?: ((props: {}) => any) | undefined;
@@ -24,6 +24,14 @@ export declare const searchFormProps: {
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
+ /**
28
+ * 隐藏搜索重置按钮
29
+ * 默认不隐藏
30
+ */
31
+ hideActionButtons: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
27
35
  };
28
36
  export declare const searchFormEmits: {
29
37
  handleQuery: (...args: any[]) => any;
@@ -22,6 +22,14 @@ const searchFormProps = {
22
22
  defaultShowMore: {
23
23
  type: Boolean,
24
24
  default: true
25
+ },
26
+ /**
27
+ * 隐藏搜索重置按钮
28
+ * 默认不隐藏
29
+ */
30
+ hideActionButtons: {
31
+ type: Boolean,
32
+ default: false
25
33
  }
26
34
  };
27
35
  const searchFormEmits = {
@@ -1 +1 @@
1
- {"version":3,"file":"searchForm.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/searchForm.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { SearchFormCascaderName, SearchFormDatePickerName, SearchFormInputName, SearchFormSelectName } from './searchFormItems';\nimport type { PropType } from 'vue';\nexport const searchFormItemList = [\n { type: 'input', component: SearchFormInputName },\n { type: 'select', component: SearchFormSelectName },\n { type: 'cascader', component: SearchFormCascaderName },\n { type: 'datePicker', component: SearchFormDatePickerName },\n];\nexport interface SearchFormPropsOption {\n // 组件名\n type: string;\n // 组件所需的props\n props: {\n // 字段\n prop: string;\n [key: string]: any;\n };\n [key: string]: any;\n}\nexport const searchFormProps = {\n options: {\n type: Array as PropType<SearchFormPropsOption[]>,\n default: () => [],\n },\n /**\n * 默认展开还是缩起\n * 默认已展开\n */\n defaultShowMore: {\n type: Boolean,\n default: true,\n },\n};\n\nexport const searchFormEmits = {\n handleQuery: (...args: any[]) => args as any,\n resetQuery: (...args: any[]) => args as any,\n};\nexport type SearchFormEmits = typeof searchFormEmits;\n"],"names":[],"mappings":";;;;;;AAGO,MAAM,kBAAA,GAAqB;AAAA,EAChC,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAW,mBAAA,EAAoB;AAAA,EAChD,EAAE,IAAA,EAAM,QAAA,EAAU,SAAA,EAAW,oBAAA,EAAqB;AAAA,EAClD,EAAE,IAAA,EAAM,UAAA,EAAY,SAAA,EAAW,sBAAA,EAAuB;AAAA,EACtD,EAAE,IAAA,EAAM,YAAA,EAAc,SAAA,EAAW,wBAAA;AACnC;AAYO,MAAM,eAAA,GAAkB;AAAA,EAC7B,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,WAAA,EAAa,IAAI,IAAA,KAAgB,IAAA;AAAA,EACjC,UAAA,EAAY,IAAI,IAAA,KAAgB;AAClC;;;;"}
1
+ {"version":3,"file":"searchForm.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/searchForm.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { SearchFormCascaderName, SearchFormDatePickerName, SearchFormInputName, SearchFormSelectName } from './searchFormItems';\nimport type { PropType } from 'vue';\nexport const searchFormItemList = [\n { type: 'input', component: SearchFormInputName },\n { type: 'select', component: SearchFormSelectName },\n { type: 'cascader', component: SearchFormCascaderName },\n { type: 'datePicker', component: SearchFormDatePickerName },\n];\nexport interface SearchFormPropsOption {\n // 组件名\n type: string;\n // 组件所需的props\n props: {\n // 字段\n prop: string;\n [key: string]: any;\n };\n [key: string]: any;\n}\nexport const searchFormProps = {\n options: {\n type: Array as PropType<SearchFormPropsOption[]>,\n default: () => [],\n },\n /**\n * 默认展开还是缩起\n * 默认已展开\n */\n defaultShowMore: {\n type: Boolean,\n default: true,\n },\n /**\n * 隐藏搜索重置按钮\n * 默认不隐藏\n */\n hideActionButtons: {\n type: Boolean,\n default: false,\n },\n};\n\nexport const searchFormEmits = {\n handleQuery: (...args: any[]) => args as any,\n resetQuery: (...args: any[]) => args as any,\n};\nexport type SearchFormEmits = typeof searchFormEmits;\n"],"names":[],"mappings":";;;;;;AAGO,MAAM,kBAAA,GAAqB;AAAA,EAChC,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAW,mBAAA,EAAoB;AAAA,EAChD,EAAE,IAAA,EAAM,QAAA,EAAU,SAAA,EAAW,oBAAA,EAAqB;AAAA,EAClD,EAAE,IAAA,EAAM,UAAA,EAAY,SAAA,EAAW,sBAAA,EAAuB;AAAA,EACtD,EAAE,IAAA,EAAM,YAAA,EAAc,SAAA,EAAW,wBAAA;AACnC;AAYO,MAAM,eAAA,GAAkB;AAAA,EAC7B,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,WAAA,EAAa,IAAI,IAAA,KAAgB,IAAA;AAAA,EACjC,UAAA,EAAY,IAAI,IAAA,KAAgB;AAClC;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.8.8";
1
+ export declare const version = "0.8.10-beta.1";
@@ -1,4 +1,4 @@
1
- const version = "0.8.7";
1
+ const version = "0.8.10-beta.1";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.8.7';\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.8.10-beta.1';\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
@@ -19,8 +19,8 @@ export declare const useDictionary: <T extends string>(fieldCodes: T[], options?
19
19
  fieldName: string;
20
20
  fieldCode: string;
21
21
  description?: string | undefined;
22
- businessLine: string;
23
- businessDomain: string;
22
+ businessLine?: string | undefined;
23
+ businessDomain?: string | undefined;
24
24
  dataType: number;
25
25
  dictValueCount?: number | undefined;
26
26
  status?: number | undefined;
@@ -30,17 +30,17 @@ export declare const useDictionary: <T extends string>(fieldCodes: T[], options?
30
30
  createdAt?: string | undefined;
31
31
  updatedAt?: string | undefined;
32
32
  enterpriseId?: number | undefined;
33
- values: {
34
- id?: number | undefined;
33
+ values?: {
34
+ id: number;
35
35
  dictionaryId: number;
36
36
  valueName: string;
37
- valueCode: string;
37
+ valueCode: string | number | boolean;
38
38
  tagType?: string | undefined;
39
39
  sortOrder?: number | undefined;
40
40
  status?: number | undefined;
41
41
  createdAt?: string | undefined;
42
42
  updatedAt?: string | undefined;
43
- }[];
43
+ }[] | undefined;
44
44
  }[]>;
45
45
  dictionary: import("vue").ComputedRef<Record<T, DictionaryOption[]>>;
46
46
  isLoading: import("vue").Ref<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/base/useDictionary/index.ts"],"sourcesContent":["import type { DataDictVo } from '@giime/api/guardBasic/interface';\nimport { usePostBasicV1DataDictionaryBatchDetailByCode } from '@giime/api/guardBasic/controller';\nimport { ref, computed } from 'vue';\nimport { tryOnMounted } from '@vueuse/core';\n\nexport interface DictionaryOption {\n label: string;\n value: any;\n /**\n * 标签类型 'success' | 'warning' | 'info' | 'primary' | 'danger'\n */\n tagType?: 'success' | 'warning' | 'primary' | 'danger';\n}\nexport interface UseDictionaryOptions {\n /**\n * 是否立即执行字典数据获取\n */\n immediate?: boolean;\n}\n/**字典 */\nexport const useDictionary = <T extends string>(fieldCodes: T[], options?: UseDictionaryOptions) => {\n const { exec: getDictionaryExec } = usePostBasicV1DataDictionaryBatchDetailByCode();\n const isLoading = ref(false);\n const dictionaryList = ref<DataDictVo[]>([]);\n const dictionary = computed(() => {\n return dictionaryList.value.reduce(\n (acc, item) => {\n acc[item.fieldCode as T] =\n item?.values?.map(it => ({\n label: it.valueName,\n value: it.valueCode,\n tagType: it.tagType as DictionaryOption['tagType'],\n })) || [];\n\n return acc;\n },\n {} as Record<T, DictionaryOption[]>,\n );\n });\n const getDictionary = async () => {\n isLoading.value = true;\n try {\n const { data } = await getDictionaryExec({ fieldCodes });\n\n dictionaryList.value = data.value?.data || [];\n } finally {\n isLoading.value = false;\n }\n };\n const immediate = options?.immediate ?? true;\n tryOnMounted(() => {\n if (immediate) {\n getDictionary();\n }\n });\n\n return {\n dictionaryList,\n dictionary,\n isLoading,\n getDictionary,\n };\n};\n"],"names":[],"mappings":";;;;;AAoBO,MAAM,aAAA,GAAgB,CAAmB,UAAA,EAAiB,OAAA,KAAmC;AAClG,EAAA,MAAM,EAAE,IAAA,EAAM,iBAAA,EAAkB,GAAI,6CAAA,EAA8C;AAClF,EAAA,MAAM,SAAA,GAAY,IAAI,KAAK,CAAA;AAC3B,EAAA,MAAM,cAAA,GAAiB,GAAA,CAAkB,EAAE,CAAA;AAC3C,EAAA,MAAM,UAAA,GAAa,SAAS,MAAM;AAChC,IAAA,OAAO,eAAe,KAAA,CAAM,MAAA;AAAA,MAC1B,CAAC,KAAK,IAAA,KAAS;AACb,QAAA,GAAA,CAAI,KAAK,SAAc,CAAA,GACrB,IAAA,EAAM,MAAA,EAAQ,IAAI,CAAA,EAAA,MAAO;AAAA,UACvB,OAAO,EAAA,CAAG,SAAA;AAAA,UACV,OAAO,EAAA,CAAG,SAAA;AAAA,UACV,SAAS,EAAA,CAAG;AAAA,SACd,CAAE,KAAK,EAAC;AAEV,QAAA,OAAO,GAAA;AAAA,MACT,CAAA;AAAA,MACA;AAAC,KACH;AAAA,EACF,CAAC,CAAA;AACD,EAAA,MAAM,gBAAgB,YAAY;AAChC,IAAA,SAAA,CAAU,KAAA,GAAQ,IAAA;AAClB,IAAA,IAAI;AACF,MAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,iBAAA,CAAkB,EAAE,YAAY,CAAA;AAEvD,MAAA,cAAA,CAAe,KAAA,GAAQ,IAAA,CAAK,KAAA,EAAO,IAAA,IAAQ,EAAC;AAAA,IAC9C,CAAA,SAAE;AACA,MAAA,SAAA,CAAU,KAAA,GAAQ,KAAA;AAAA,IACpB;AAAA,EACF,CAAA;AACA,EAAA,MAAM,SAAA,GAAY,SAAS,SAAA,IAAa,IAAA;AACxC,EAAA,YAAA,CAAa,MAAM;AACjB,IAAA,IAAI,SAAA,EAAW;AACb,MAAA,aAAA,EAAc;AAAA,IAChB;AAAA,EACF,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,cAAA;AAAA,IACA,UAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/base/useDictionary/index.ts"],"sourcesContent":["import type { DataDictDynamicVo } from '@giime/api/guardBasic/interface';\nimport { usePostBasicV1DataDictionaryBatchDetailByCode } from '@giime/api/guardBasic/controller';\nimport { ref, computed } from 'vue';\nimport { tryOnMounted } from '@vueuse/core';\n\nexport interface DictionaryOption {\n label: string;\n value: any;\n /**\n * 标签类型 'success' | 'warning' | 'info' | 'primary' | 'danger'\n */\n tagType?: 'success' | 'warning' | 'primary' | 'danger';\n}\nexport interface UseDictionaryOptions {\n /**\n * 是否立即执行字典数据获取\n */\n immediate?: boolean;\n}\n/**字典 */\nexport const useDictionary = <T extends string>(fieldCodes: T[], options?: UseDictionaryOptions) => {\n const { exec: getDictionaryExec } = usePostBasicV1DataDictionaryBatchDetailByCode();\n const isLoading = ref(false);\n const dictionaryList = ref<DataDictDynamicVo[]>([]);\n const dictionary = computed(() => {\n return dictionaryList.value.reduce(\n (acc, item) => {\n acc[item.fieldCode as T] =\n item?.values?.map(it => ({\n label: it.valueName,\n value: it.valueCode,\n tagType: it.tagType as DictionaryOption['tagType'],\n })) || [];\n\n return acc;\n },\n {} as Record<T, DictionaryOption[]>,\n );\n });\n const getDictionary = async () => {\n isLoading.value = true;\n try {\n const { data } = await getDictionaryExec({ fieldCodes });\n\n dictionaryList.value = data.value?.data || [];\n } finally {\n isLoading.value = false;\n }\n };\n const immediate = options?.immediate ?? true;\n tryOnMounted(() => {\n if (immediate) {\n getDictionary();\n }\n });\n\n return {\n dictionaryList,\n dictionary,\n isLoading,\n getDictionary,\n };\n};\n"],"names":[],"mappings":";;;;;AAoBO,MAAM,aAAA,GAAgB,CAAmB,UAAA,EAAiB,OAAA,KAAmC;AAClG,EAAA,MAAM,EAAE,IAAA,EAAM,iBAAA,EAAkB,GAAI,6CAAA,EAA8C;AAClF,EAAA,MAAM,SAAA,GAAY,IAAI,KAAK,CAAA;AAC3B,EAAA,MAAM,cAAA,GAAiB,GAAA,CAAyB,EAAE,CAAA;AAClD,EAAA,MAAM,UAAA,GAAa,SAAS,MAAM;AAChC,IAAA,OAAO,eAAe,KAAA,CAAM,MAAA;AAAA,MAC1B,CAAC,KAAK,IAAA,KAAS;AACb,QAAA,GAAA,CAAI,KAAK,SAAc,CAAA,GACrB,IAAA,EAAM,MAAA,EAAQ,IAAI,CAAA,EAAA,MAAO;AAAA,UACvB,OAAO,EAAA,CAAG,SAAA;AAAA,UACV,OAAO,EAAA,CAAG,SAAA;AAAA,UACV,SAAS,EAAA,CAAG;AAAA,SACd,CAAE,KAAK,EAAC;AAEV,QAAA,OAAO,GAAA;AAAA,MACT,CAAA;AAAA,MACA;AAAC,KACH;AAAA,EACF,CAAC,CAAA;AACD,EAAA,MAAM,gBAAgB,YAAY;AAChC,IAAA,SAAA,CAAU,KAAA,GAAQ,IAAA;AAClB,IAAA,IAAI;AACF,MAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,iBAAA,CAAkB,EAAE,YAAY,CAAA;AAEvD,MAAA,cAAA,CAAe,KAAA,GAAQ,IAAA,CAAK,KAAA,EAAO,IAAA,IAAQ,EAAC;AAAA,IAC9C,CAAA,SAAE;AACA,MAAA,SAAA,CAAU,KAAA,GAAQ,KAAA;AAAA,IACpB;AAAA,EACF,CAAA;AACA,EAAA,MAAM,SAAA,GAAY,SAAS,SAAA,IAAa,IAAA;AACxC,EAAA,YAAA,CAAa,MAAM;AACjB,IAAA,IAAI,SAAA,EAAW;AACb,MAAA,aAAA,EAAc;AAAA,IAChB;AAAA,EACF,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,cAAA;AAAA,IACA,UAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}
@@ -1,13 +1,24 @@
1
- /** 团队 */
1
+ import type { AreaListQuery } from '../../../../api/guardBasic/interface';
2
+ /** 家族-团队列表 */
2
3
  export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaList", Pick<{
3
4
  areaList: import("vue").ComputedRef<{
4
5
  id: number;
5
6
  name: string;
6
7
  alias: string;
7
8
  org_code: string;
9
+ family_code: string;
10
+ family_name: string;
8
11
  }[]>;
9
12
  isLoading: import("vue").Ref<boolean>;
10
- getAreaList: () => Promise<import("../../..").StrictUseAxiosReturn<{
13
+ familyAreaList: import("vue").ComputedRef<{
14
+ label: string;
15
+ value: string;
16
+ children: {
17
+ label: string;
18
+ value: number;
19
+ }[];
20
+ }[]>;
21
+ getAreaList: (input?: AreaListQuery) => Promise<import("../../..").StrictUseAxiosReturn<{
11
22
  code: number;
12
23
  bizCode: number;
13
24
  data: {
@@ -15,6 +26,8 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
15
26
  name: string;
16
27
  alias: string;
17
28
  org_code: string;
29
+ family_code: string;
30
+ family_name: string;
18
31
  }[];
19
32
  msg: string;
20
33
  }, import("axios").AxiosResponse<{
@@ -25,6 +38,8 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
25
38
  name: string;
26
39
  alias: string;
27
40
  org_code: string;
41
+ family_code: string;
42
+ family_name: string;
28
43
  }[];
29
44
  msg: string;
30
45
  }, any, {}>, any, import("../../..").UseAxiosOptionsBase<{
@@ -35,18 +50,30 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
35
50
  name: string;
36
51
  alias: string;
37
52
  org_code: string;
53
+ family_code: string;
54
+ family_name: string;
38
55
  }[];
39
56
  msg: string;
40
- }>> | undefined>;
57
+ }>>>;
41
58
  }, "isLoading">, Pick<{
42
59
  areaList: import("vue").ComputedRef<{
43
60
  id: number;
44
61
  name: string;
45
62
  alias: string;
46
63
  org_code: string;
64
+ family_code: string;
65
+ family_name: string;
47
66
  }[]>;
48
67
  isLoading: import("vue").Ref<boolean>;
49
- getAreaList: () => Promise<import("../../..").StrictUseAxiosReturn<{
68
+ familyAreaList: import("vue").ComputedRef<{
69
+ label: string;
70
+ value: string;
71
+ children: {
72
+ label: string;
73
+ value: number;
74
+ }[];
75
+ }[]>;
76
+ getAreaList: (input?: AreaListQuery) => Promise<import("../../..").StrictUseAxiosReturn<{
50
77
  code: number;
51
78
  bizCode: number;
52
79
  data: {
@@ -54,6 +81,8 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
54
81
  name: string;
55
82
  alias: string;
56
83
  org_code: string;
84
+ family_code: string;
85
+ family_name: string;
57
86
  }[];
58
87
  msg: string;
59
88
  }, import("axios").AxiosResponse<{
@@ -64,6 +93,8 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
64
93
  name: string;
65
94
  alias: string;
66
95
  org_code: string;
96
+ family_code: string;
97
+ family_name: string;
67
98
  }[];
68
99
  msg: string;
69
100
  }, any, {}>, any, import("../../..").UseAxiosOptionsBase<{
@@ -74,18 +105,30 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
74
105
  name: string;
75
106
  alias: string;
76
107
  org_code: string;
108
+ family_code: string;
109
+ family_name: string;
77
110
  }[];
78
111
  msg: string;
79
- }>> | undefined>;
80
- }, "areaList">, Pick<{
112
+ }>>>;
113
+ }, "areaList" | "familyAreaList">, Pick<{
81
114
  areaList: import("vue").ComputedRef<{
82
115
  id: number;
83
116
  name: string;
84
117
  alias: string;
85
118
  org_code: string;
119
+ family_code: string;
120
+ family_name: string;
86
121
  }[]>;
87
122
  isLoading: import("vue").Ref<boolean>;
88
- getAreaList: () => Promise<import("../../..").StrictUseAxiosReturn<{
123
+ familyAreaList: import("vue").ComputedRef<{
124
+ label: string;
125
+ value: string;
126
+ children: {
127
+ label: string;
128
+ value: number;
129
+ }[];
130
+ }[]>;
131
+ getAreaList: (input?: AreaListQuery) => Promise<import("../../..").StrictUseAxiosReturn<{
89
132
  code: number;
90
133
  bizCode: number;
91
134
  data: {
@@ -93,6 +136,8 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
93
136
  name: string;
94
137
  alias: string;
95
138
  org_code: string;
139
+ family_code: string;
140
+ family_name: string;
96
141
  }[];
97
142
  msg: string;
98
143
  }, import("axios").AxiosResponse<{
@@ -103,6 +148,8 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
103
148
  name: string;
104
149
  alias: string;
105
150
  org_code: string;
151
+ family_code: string;
152
+ family_name: string;
106
153
  }[];
107
154
  msg: string;
108
155
  }, any, {}>, any, import("../../..").UseAxiosOptionsBase<{
@@ -113,7 +160,9 @@ export declare const useAreaListStore: import("pinia").StoreDefinition<"gmAreaLi
113
160
  name: string;
114
161
  alias: string;
115
162
  org_code: string;
163
+ family_code: string;
164
+ family_name: string;
116
165
  }[];
117
166
  msg: string;
118
- }>> | undefined>;
167
+ }>>>;
119
168
  }, "getAreaList">>;
@@ -1,24 +1,36 @@
1
1
  import { computed } from 'vue';
2
2
  import { defineStore } from 'pinia';
3
+ import { groupBy } from 'lodash-es';
3
4
  import { tryOnMounted } from '@vueuse/core';
4
5
  import '../../../../api/guardBasic/controller/index.mjs';
5
- import { usePostBasicV1SysAreaList } from '../../../../api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaList.mjs';
6
+ import { usePostBasicV1SysAreaListFamilyArea } from '../../../../api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.mjs';
6
7
 
7
8
  const useAreaListStore = defineStore("gmAreaList", () => {
8
- const { isLoading, exec, data } = usePostBasicV1SysAreaList();
9
- const areaList = computed(() => data.value?.data || []);
10
- const getAreaList = async () => {
9
+ const { isLoading, exec, data: areaListData } = usePostBasicV1SysAreaListFamilyArea();
10
+ const areaList = computed(() => areaListData.value?.data || []);
11
+ const familyAreaList = computed(() => {
12
+ const familyGroup = groupBy(areaList.value, "family_code");
13
+ return Object.keys(familyGroup).map((familyCode) => {
14
+ return {
15
+ label: familyGroup[familyCode][0].family_name,
16
+ value: familyCode,
17
+ children: familyGroup[familyCode].map((it) => ({ label: it.name, value: it.id }))
18
+ };
19
+ });
20
+ });
21
+ const getAreaList = async (input) => {
22
+ return exec(input);
23
+ };
24
+ tryOnMounted(() => {
11
25
  if (areaList.value.length !== 0 || isLoading.value) {
12
26
  return;
13
27
  }
14
- return exec();
15
- };
16
- tryOnMounted(() => {
17
28
  getAreaList();
18
29
  });
19
30
  return {
20
31
  areaList,
21
32
  isLoading,
33
+ familyAreaList,
22
34
  getAreaList
23
35
  };
24
36
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/userCenter/useAreaList/index.ts"],"sourcesContent":["import { computed } from 'vue';\nimport { defineStore } from 'pinia';\nimport { tryOnMounted } from '@vueuse/core';\nimport { usePostBasicV1SysAreaList } from '@giime/api/guardBasic/controller';\n\n/** 团队 */\nexport const useAreaListStore = defineStore('gmAreaList', () => {\n const { isLoading, exec, data } = usePostBasicV1SysAreaList();\n const areaList = computed(() => data.value?.data || []);\n const getAreaList = async () => {\n if (areaList.value.length !== 0 || isLoading.value) {\n return;\n }\n return exec();\n };\n tryOnMounted(() => {\n getAreaList();\n });\n return {\n areaList,\n isLoading,\n getAreaList,\n };\n});\n"],"names":[],"mappings":";;;;;;AAMO,MAAM,gBAAA,GAAmB,WAAA,CAAY,YAAA,EAAc,MAAM;AAC9D,EAAA,MAAM,EAAE,SAAA,EAAW,IAAA,EAAM,IAAA,KAAS,yBAAA,EAA0B;AAC5D,EAAA,MAAM,WAAW,QAAA,CAAS,MAAM,KAAK,KAAA,EAAO,IAAA,IAAQ,EAAE,CAAA;AACtD,EAAA,MAAM,cAAc,YAAY;AAC9B,IAAA,IAAI,QAAA,CAAS,KAAA,CAAM,MAAA,KAAW,CAAA,IAAK,UAAU,KAAA,EAAO;AAClD,MAAA;AAAA,IACF;AACA,IAAA,OAAO,IAAA,EAAK;AAAA,EACd,CAAA;AACA,EAAA,YAAA,CAAa,MAAM;AACjB,IAAA,WAAA,EAAY;AAAA,EACd,CAAC,CAAA;AACD,EAAA,OAAO;AAAA,IACL,QAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACF;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/userCenter/useAreaList/index.ts"],"sourcesContent":["import { computed } from 'vue';\nimport { defineStore } from 'pinia';\nimport { groupBy } from 'lodash-es';\nimport { tryOnMounted } from '@vueuse/core';\nimport { usePostBasicV1SysAreaListFamilyArea } from '@giime/api/guardBasic/controller';\nimport type { AreaListQuery } from '@giime/api/guardBasic/interface';\n\n/** 家族-团队列表 */\nexport const useAreaListStore = defineStore('gmAreaList', () => {\n const { isLoading, exec, data: areaListData } = usePostBasicV1SysAreaListFamilyArea();\n const areaList = computed(() => areaListData.value?.data || []);\n const familyAreaList = computed(() => {\n const familyGroup = groupBy(areaList.value, 'family_code');\n return Object.keys(familyGroup).map(familyCode => {\n return {\n label: familyGroup[familyCode][0].family_name,\n value: familyCode,\n children: familyGroup[familyCode].map(it => ({ label: it.name, value: it.id })),\n };\n });\n });\n const getAreaList = async (input?: AreaListQuery) => {\n return exec(input);\n };\n tryOnMounted(() => {\n if (areaList.value.length !== 0 || isLoading.value) {\n return;\n }\n getAreaList();\n });\n\n return {\n areaList,\n isLoading,\n familyAreaList,\n getAreaList,\n };\n});\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,gBAAA,GAAmB,WAAA,CAAY,YAAA,EAAc,MAAM;AAC9D,EAAA,MAAM,EAAE,SAAA,EAAW,IAAA,EAAM,IAAA,EAAM,YAAA,KAAiB,mCAAA,EAAoC;AACpF,EAAA,MAAM,WAAW,QAAA,CAAS,MAAM,aAAa,KAAA,EAAO,IAAA,IAAQ,EAAE,CAAA;AAC9D,EAAA,MAAM,cAAA,GAAiB,SAAS,MAAM;AACpC,IAAA,MAAM,WAAA,GAAc,OAAA,CAAQ,QAAA,CAAS,KAAA,EAAO,aAAa,CAAA;AACzD,IAAA,OAAO,MAAA,CAAO,IAAA,CAAK,WAAW,CAAA,CAAE,IAAI,CAAA,UAAA,KAAc;AAChD,MAAA,OAAO;AAAA,QACL,KAAA,EAAO,WAAA,CAAY,UAAU,CAAA,CAAE,CAAC,CAAA,CAAE,WAAA;AAAA,QAClC,KAAA,EAAO,UAAA;AAAA,QACP,QAAA,EAAU,WAAA,CAAY,UAAU,CAAA,CAAE,GAAA,CAAI,CAAA,EAAA,MAAO,EAAE,KAAA,EAAO,EAAA,CAAG,IAAA,EAAM,KAAA,EAAO,EAAA,CAAG,IAAG,CAAE;AAAA,OAChF;AAAA,IACF,CAAC,CAAA;AAAA,EACH,CAAC,CAAA;AACD,EAAA,MAAM,WAAA,GAAc,OAAO,KAAA,KAA0B;AACnD,IAAA,OAAO,KAAK,KAAK,CAAA;AAAA,EACnB,CAAA;AACA,EAAA,YAAA,CAAa,MAAM;AACjB,IAAA,IAAI,QAAA,CAAS,KAAA,CAAM,MAAA,KAAW,CAAA,IAAK,UAAU,KAAA,EAAO;AAClD,MAAA;AAAA,IACF;AACA,IAAA,WAAA,EAAY;AAAA,EACd,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,QAAA;AAAA,IACA,SAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACF;AACF,CAAC;;;;"}