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.
- package/dist/index.css +140 -139
- package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.d.ts +1 -1
- package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.mjs.map +1 -1
- package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.d.ts +22 -22
- package/es/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.mjs.map +1 -1
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.d.ts +2 -0
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.mjs +2 -0
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.mjs.map +1 -1
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.d.ts +19 -0
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.mjs +8 -0
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.mjs.map +1 -0
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.d.ts +264 -0
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.mjs +18 -0
- package/es/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.mjs.map +1 -0
- package/es/api/guardBasic/controller/index.mjs +2 -0
- package/es/api/guardBasic/controller/index.mjs.map +1 -1
- package/es/api/guardBasic/interface/apiTypes/BatchExportReq.d.ts +6 -0
- package/es/api/guardBasic/interface/apiTypes/BatchExportReq.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/BatchExportReq.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/BatchImportResultVo.d.ts +13 -0
- package/es/api/guardBasic/interface/apiTypes/BatchImportResultVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/BatchImportResultVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/DataDictDynamicVo.d.ts +35 -0
- package/es/api/guardBasic/interface/apiTypes/DataDictDynamicVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/DataDictDynamicVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.d.ts +20 -0
- package/es/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/DataDictValueVo.d.ts +1 -1
- package/es/api/guardBasic/interface/apiTypes/DataDictVo.d.ts +4 -4
- package/es/api/guardBasic/interface/apiTypes/ImportErrorInfo.d.ts +8 -0
- package/es/api/guardBasic/interface/apiTypes/ImportErrorInfo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/ImportErrorInfo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/ModifyDataDictReq.d.ts +1 -1
- package/es/api/guardBasic/interface/apiTypes/ModifySysAreaReq.d.ts +2 -0
- package/es/api/guardBasic/interface/apiTypes/PageSysAreaReq.d.ts +3 -3
- package/es/api/guardBasic/interface/apiTypes/RBatchImportResultVo.d.ts +10 -0
- package/es/api/guardBasic/interface/apiTypes/RBatchImportResultVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/RBatchImportResultVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.d.ts +10 -0
- package/es/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/RListCodeNameKv28.d.ts +11 -0
- package/es/api/guardBasic/interface/apiTypes/RListCodeNameKv28.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/RListCodeNameKv28.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.d.ts +11 -0
- package/es/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.d.ts +11 -0
- package/es/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/SaveDataDictReq.d.ts +1 -1
- package/es/api/guardBasic/interface/apiTypes/SaveSysAreaReq.d.ts +2 -0
- package/es/api/guardBasic/interface/apiTypes/StringImportReq.d.ts +10 -0
- package/es/api/guardBasic/interface/apiTypes/StringImportReq.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/StringImportReq.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/SysAreaDetailVo.d.ts +2 -0
- package/es/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.d.ts +14 -0
- package/es/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.mjs +2 -0
- package/es/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.mjs.map +1 -0
- package/es/api/guardBasic/interface/apiTypes/SysAreaVo.d.ts +2 -0
- package/es/api/guardBasic/interface/index.d.ts +12 -0
- package/es/api/guardBasic/interface/index.mjs +12 -0
- package/es/api/guardBasic/interface/index.mjs.map +1 -1
- package/es/components/src/composite/searchForm/SearchForm.vue.d.ts +9 -0
- package/es/components/src/composite/searchForm/SearchForm.vue.mjs +1 -1
- package/es/components/src/composite/searchForm/SearchForm.vue2.mjs +5 -3
- package/es/components/src/composite/searchForm/SearchForm.vue2.mjs.map +1 -1
- package/es/components/src/composite/searchForm/index.d.ts +19 -0
- package/es/components/src/composite/searchForm/searchForm.d.ts +8 -0
- package/es/components/src/composite/searchForm/searchForm.mjs +8 -0
- package/es/components/src/composite/searchForm/searchForm.mjs.map +1 -1
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/hooks/base/useDictionary/index.d.ts +6 -6
- package/es/hooks/base/useDictionary/index.mjs.map +1 -1
- package/es/hooks/store/userCenter/useAreaList/index.d.ts +57 -8
- package/es/hooks/store/userCenter/useAreaList/index.mjs +19 -7
- package/es/hooks/store/userCenter/useAreaList/index.mjs.map +1 -1
- package/es/index.css +140 -139
- package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.d.ts +1 -1
- package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/postBasicV1DataDictionaryBatchDetailByCode.js.map +1 -1
- package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.d.ts +22 -22
- package/lib/api/guardBasic/controller/JiChuFuWu/ShuJuZiDianGuanLi/usePostBasicV1DataDictionaryBatchDetailByCode.js.map +1 -1
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.d.ts +2 -0
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.js +4 -0
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/index.js.map +1 -1
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.d.ts +19 -0
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.js +10 -0
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/postBasicV1SysAreaListFamilyArea.js.map +1 -0
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.d.ts +264 -0
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.js +20 -0
- package/lib/api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.js.map +1 -0
- package/lib/api/guardBasic/controller/index.js +4 -0
- package/lib/api/guardBasic/controller/index.js.map +1 -1
- package/lib/api/guardBasic/interface/apiTypes/BatchExportReq.d.ts +6 -0
- package/lib/api/guardBasic/interface/apiTypes/BatchExportReq.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/BatchExportReq.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/BatchImportResultVo.d.ts +13 -0
- package/lib/api/guardBasic/interface/apiTypes/BatchImportResultVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/BatchImportResultVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/DataDictDynamicVo.d.ts +35 -0
- package/lib/api/guardBasic/interface/apiTypes/DataDictDynamicVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/DataDictDynamicVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.d.ts +20 -0
- package/lib/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/DataDictValueDynamicVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/DataDictValueVo.d.ts +1 -1
- package/lib/api/guardBasic/interface/apiTypes/DataDictVo.d.ts +4 -4
- package/lib/api/guardBasic/interface/apiTypes/ImportErrorInfo.d.ts +8 -0
- package/lib/api/guardBasic/interface/apiTypes/ImportErrorInfo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/ImportErrorInfo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/ModifyDataDictReq.d.ts +1 -1
- package/lib/api/guardBasic/interface/apiTypes/ModifySysAreaReq.d.ts +2 -0
- package/lib/api/guardBasic/interface/apiTypes/PageSysAreaReq.d.ts +3 -3
- package/lib/api/guardBasic/interface/apiTypes/RBatchImportResultVo.d.ts +10 -0
- package/lib/api/guardBasic/interface/apiTypes/RBatchImportResultVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/RBatchImportResultVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.d.ts +10 -0
- package/lib/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/RDataDictDynamicVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/RListCodeNameKv28.d.ts +11 -0
- package/lib/api/guardBasic/interface/apiTypes/RListCodeNameKv28.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/RListCodeNameKv28.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.d.ts +11 -0
- package/lib/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/RListDataDictDynamicVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.d.ts +11 -0
- package/lib/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/RListSysAreaFamilyVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/SaveDataDictReq.d.ts +1 -1
- package/lib/api/guardBasic/interface/apiTypes/SaveSysAreaReq.d.ts +2 -0
- package/lib/api/guardBasic/interface/apiTypes/StringImportReq.d.ts +10 -0
- package/lib/api/guardBasic/interface/apiTypes/StringImportReq.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/StringImportReq.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/SysAreaDetailVo.d.ts +2 -0
- package/lib/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.d.ts +14 -0
- package/lib/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.js +3 -0
- package/lib/api/guardBasic/interface/apiTypes/SysAreaFamilyVo.js.map +1 -0
- package/lib/api/guardBasic/interface/apiTypes/SysAreaVo.d.ts +2 -0
- package/lib/api/guardBasic/interface/index.d.ts +12 -0
- package/lib/api/guardBasic/interface/index.js +12 -0
- package/lib/api/guardBasic/interface/index.js.map +1 -1
- package/lib/components/src/composite/searchForm/SearchForm.vue.d.ts +9 -0
- package/lib/components/src/composite/searchForm/SearchForm.vue.js +1 -1
- package/lib/components/src/composite/searchForm/SearchForm.vue2.js +5 -3
- package/lib/components/src/composite/searchForm/SearchForm.vue2.js.map +1 -1
- package/lib/components/src/composite/searchForm/index.d.ts +19 -0
- package/lib/components/src/composite/searchForm/searchForm.d.ts +8 -0
- package/lib/components/src/composite/searchForm/searchForm.js +8 -0
- package/lib/components/src/composite/searchForm/searchForm.js.map +1 -1
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/hooks/base/useDictionary/index.d.ts +6 -6
- package/lib/hooks/base/useDictionary/index.js.map +1 -1
- package/lib/hooks/store/userCenter/useAreaList/index.d.ts +57 -8
- package/lib/hooks/store/userCenter/useAreaList/index.js +19 -7
- package/lib/hooks/store/userCenter/useAreaList/index.js.map +1 -1
- package/lib/index.css +140 -139
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringImportReq.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SysAreaFamilyVo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -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]>;
|
|
@@ -196,6 +196,17 @@ require('./apiTypes/PageOperationLogReq.js');
|
|
|
196
196
|
require('./apiTypes/PageUserAuthChangeLogVo.js');
|
|
197
197
|
require('./apiTypes/RPageUserAuthChangeLogVo.js');
|
|
198
198
|
require('./apiTypes/UserAuthChangeLogVo.js');
|
|
199
|
+
require('./apiTypes/BatchImportResultVo.js');
|
|
200
|
+
require('./apiTypes/ImportErrorInfo.js');
|
|
201
|
+
require('./apiTypes/RBatchImportResultVo.js');
|
|
202
|
+
require('./apiTypes/BatchExportReq.js');
|
|
203
|
+
require('./apiTypes/StringImportReq.js');
|
|
204
|
+
require('./apiTypes/DataDictDynamicVo.js');
|
|
205
|
+
require('./apiTypes/DataDictValueDynamicVo.js');
|
|
206
|
+
require('./apiTypes/RListDataDictDynamicVo.js');
|
|
207
|
+
require('./apiTypes/RDataDictDynamicVo.js');
|
|
208
|
+
require('./apiTypes/RListSysAreaFamilyVo.js');
|
|
209
|
+
require('./apiTypes/SysAreaFamilyVo.js');
|
|
199
210
|
require('./apiTypes/QueryUserVo1.js');
|
|
200
211
|
require('./apiTypes/IdNameKv2.js');
|
|
201
212
|
require('./apiTypes/RListIdNameKv3.js');
|
|
@@ -254,5 +265,6 @@ require('./apiTypes/GimpUserDetail.js');
|
|
|
254
265
|
require('./apiTypes/RGimpUserDetail.js');
|
|
255
266
|
require('./apiTypes/RListSeleteUserVo.js');
|
|
256
267
|
require('./apiTypes/SeleteUserVo.js');
|
|
268
|
+
require('./apiTypes/RListCodeNameKv28.js');
|
|
257
269
|
|
|
258
270
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","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
|
}>;
|
|
@@ -6,7 +6,7 @@ var SearchForm_vue_vue_type_script_setup_true_lang = require('./SearchForm.vue2.
|
|
|
6
6
|
require('./SearchForm.vue3.js');
|
|
7
7
|
var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
var SearchForm = /* @__PURE__ */ _pluginVue_exportHelper.default(SearchForm_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
9
|
+
var SearchForm = /* @__PURE__ */ _pluginVue_exportHelper.default(SearchForm_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-79615afd"]]);
|
|
10
10
|
|
|
11
11
|
exports.default = SearchForm;
|
|
12
12
|
//# sourceMappingURL=SearchForm.vue.js.map
|
|
@@ -125,14 +125,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
125
125
|
/* KEYED_FRAGMENT */
|
|
126
126
|
)),
|
|
127
127
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
128
|
-
vue.createVNode(_component_gm_form_item, {
|
|
128
|
+
vue.withDirectives(vue.createVNode(_component_gm_form_item, {
|
|
129
129
|
style: vue.normalizeStyle(searchButtonItemStyle.value)
|
|
130
130
|
}, {
|
|
131
131
|
default: vue.withCtx(() => [
|
|
132
132
|
vue.createElementVNode(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
135
|
-
class: vue.normalizeClass(["gm-flex gm-w-full", notShowShowMore.value ? "" : "
|
|
135
|
+
class: vue.normalizeClass(["gm-flex gm-w-full", notShowShowMore.value ? "" : "gm-justify-end"])
|
|
136
136
|
},
|
|
137
137
|
[
|
|
138
138
|
vue.createVNode(_component_gm_button, {
|
|
@@ -196,7 +196,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
196
196
|
]),
|
|
197
197
|
_: 1
|
|
198
198
|
/* STABLE */
|
|
199
|
-
}, 8, ["style"]),
|
|
199
|
+
}, 8, ["style"]), [
|
|
200
|
+
[vue.vShow, !props.hideActionButtons]
|
|
201
|
+
]),
|
|
200
202
|
vue.createElementVNode(
|
|
201
203
|
"div",
|
|
202
204
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchForm.vue2.js","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 ? '' : '
|
|
1
|
+
{"version":3,"file":"SearchForm.vue2.js","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":["inject","TableCtxKey","_useModel","provide","queryParamsKey","ref","useElementSize","computed","nextTick","searchFormItemList","searchFormHandleQueryKey"],"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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchForm.js","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":["SearchFormInputName","SearchFormSelectName","SearchFormCascaderName","SearchFormDatePickerName"],"mappings":";;;;;;;;AAGO,MAAM,kBAAA,GAAqB;AAAA,EAChC,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAWA,mCAAA,EAAoB;AAAA,EAChD,EAAE,IAAA,EAAM,QAAA,EAAU,SAAA,EAAWC,qCAAA,EAAqB;AAAA,EAClD,EAAE,IAAA,EAAM,UAAA,EAAY,SAAA,EAAWC,yCAAA,EAAuB;AAAA,EACtD,EAAE,IAAA,EAAM,YAAA,EAAc,SAAA,EAAWC,6CAAA;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.js","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":["SearchFormInputName","SearchFormSelectName","SearchFormCascaderName","SearchFormDatePickerName"],"mappings":";;;;;;;;AAGO,MAAM,kBAAA,GAAqB;AAAA,EAChC,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAWA,mCAAA,EAAoB;AAAA,EAChD,EAAE,IAAA,EAAM,QAAA,EAAU,SAAA,EAAWC,qCAAA,EAAqB;AAAA,EAClD,EAAE,IAAA,EAAM,UAAA,EAAY,SAAA,EAAWC,yCAAA,EAAuB;AAAA,EACtD,EAAE,IAAA,EAAM,YAAA,EAAc,SAAA,EAAWC,6CAAA;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;;;;;;"}
|
package/lib/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.8.
|
|
1
|
+
export declare const version = "0.8.10-beta.1";
|
package/lib/giime/version.js
CHANGED
package/lib/giime/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.8.
|
|
1
|
+
{"version":3,"file":"version.js","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
|
|
23
|
-
businessDomain
|
|
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
|
|
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.js","sources":["../../../../../../packages/hooks/base/useDictionary/index.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"index.js","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":["usePostBasicV1DataDictionaryBatchDetailByCode","ref","computed","tryOnMounted"],"mappings":";;;;;;;AAoBO,MAAM,aAAA,GAAgB,CAAmB,UAAA,EAAiB,OAAA,KAAmC;AAClG,EAAA,MAAM,EAAE,IAAA,EAAM,iBAAA,EAAkB,GAAIA,2FAAA,EAA8C;AAClF,EAAA,MAAM,SAAA,GAAYC,QAAI,KAAK,CAAA;AAC3B,EAAA,MAAM,cAAA,GAAiBA,OAAA,CAAyB,EAAE,CAAA;AAClD,EAAA,MAAM,UAAA,GAAaC,aAAS,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,EAAAC,iBAAA,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
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
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
|
-
}
|
|
167
|
+
}>>>;
|
|
119
168
|
}, "getAreaList">>;
|
|
@@ -2,25 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var pinia = require('pinia');
|
|
5
|
+
var lodashEs = require('lodash-es');
|
|
5
6
|
var core = require('@vueuse/core');
|
|
6
7
|
require('../../../../api/guardBasic/controller/index.js');
|
|
7
|
-
var
|
|
8
|
+
var usePostBasicV1SysAreaListFamilyArea = require('../../../../api/guardBasic/controller/JiChuFuWu/TuanDuiGuanLi/usePostBasicV1SysAreaListFamilyArea.js');
|
|
8
9
|
|
|
9
10
|
const useAreaListStore = pinia.defineStore("gmAreaList", () => {
|
|
10
|
-
const { isLoading, exec, data } =
|
|
11
|
-
const areaList = vue.computed(() =>
|
|
12
|
-
const
|
|
11
|
+
const { isLoading, exec, data: areaListData } = usePostBasicV1SysAreaListFamilyArea.usePostBasicV1SysAreaListFamilyArea();
|
|
12
|
+
const areaList = vue.computed(() => areaListData.value?.data || []);
|
|
13
|
+
const familyAreaList = vue.computed(() => {
|
|
14
|
+
const familyGroup = lodashEs.groupBy(areaList.value, "family_code");
|
|
15
|
+
return Object.keys(familyGroup).map((familyCode) => {
|
|
16
|
+
return {
|
|
17
|
+
label: familyGroup[familyCode][0].family_name,
|
|
18
|
+
value: familyCode,
|
|
19
|
+
children: familyGroup[familyCode].map((it) => ({ label: it.name, value: it.id }))
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
const getAreaList = async (input) => {
|
|
24
|
+
return exec(input);
|
|
25
|
+
};
|
|
26
|
+
core.tryOnMounted(() => {
|
|
13
27
|
if (areaList.value.length !== 0 || isLoading.value) {
|
|
14
28
|
return;
|
|
15
29
|
}
|
|
16
|
-
return exec();
|
|
17
|
-
};
|
|
18
|
-
core.tryOnMounted(() => {
|
|
19
30
|
getAreaList();
|
|
20
31
|
});
|
|
21
32
|
return {
|
|
22
33
|
areaList,
|
|
23
34
|
isLoading,
|
|
35
|
+
familyAreaList,
|
|
24
36
|
getAreaList
|
|
25
37
|
};
|
|
26
38
|
});
|