cnhis-design-vue 3.1.41-beta.25 → 3.1.41-beta.27
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/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +20 -0
- package/es/components/date-picker/index.js +1 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-config/index.d.ts +5 -5
- package/es/components/form-config/src/FormConfig.vue.d.ts +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-filter/index.d.ts +64 -452
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +19 -88
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +37 -253
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +0 -42
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +0 -84
- package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +4 -130
- package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -1
- package/es/components/table-filter/src/components/table-modal/index.vue.d.ts +3 -43
- package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +10 -113
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +6 -162
- package/es/components/table-filter/style/iconfont.ttf +0 -0
- package/es/components/table-filter/style/index.css +1 -1
- package/es/components/time-picker/index.d.ts +18 -0
- package/es/components/time-picker/index.js +1 -0
- package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -0
- package/es/env.d.ts +24 -24
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +65 -65
|
@@ -5,20 +5,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
+
searchFieldList: {
|
|
9
|
+
type: PropType<any[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
conditionMap: {
|
|
13
|
+
type: PropType<IConditionMapType>;
|
|
14
|
+
default: () => void;
|
|
15
|
+
};
|
|
8
16
|
conditionSid: {
|
|
9
17
|
type: PropType<string[]>;
|
|
10
18
|
default: () => never[];
|
|
11
19
|
};
|
|
12
20
|
curClassificationIndex: {
|
|
13
21
|
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
14
23
|
};
|
|
15
24
|
curClassificationWidth: {
|
|
16
25
|
type: NumberConstructor;
|
|
17
26
|
};
|
|
18
|
-
conditionType: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
27
|
hideConditionChangeBtn: {
|
|
23
28
|
type: NumberConstructor;
|
|
24
29
|
default: number;
|
|
@@ -31,30 +36,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
36
|
type: NumberConstructor;
|
|
32
37
|
default: number;
|
|
33
38
|
};
|
|
34
|
-
countCondition: {
|
|
35
|
-
type: NumberConstructor;
|
|
36
|
-
default: number;
|
|
37
|
-
};
|
|
38
|
-
countTabCondition: {
|
|
39
|
-
type: NumberConstructor;
|
|
40
|
-
default: number;
|
|
41
|
-
};
|
|
42
39
|
isShowResetButton: {
|
|
43
40
|
type: BooleanConstructor;
|
|
44
41
|
default: boolean;
|
|
45
42
|
};
|
|
46
|
-
conditionMap: {
|
|
47
|
-
type: PropType<IConditionMapType>;
|
|
48
|
-
default: () => void;
|
|
49
|
-
};
|
|
50
43
|
filterApiConfig: {
|
|
51
44
|
type: ObjectConstructor;
|
|
52
45
|
default: () => {};
|
|
53
46
|
};
|
|
54
|
-
searchFieldList: {
|
|
55
|
-
type: PropType<any[]>;
|
|
56
|
-
default: () => never[];
|
|
57
|
-
};
|
|
58
47
|
}, {
|
|
59
48
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
60
49
|
attrs: any;
|
|
@@ -63,20 +52,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
52
|
type: StringConstructor;
|
|
64
53
|
default: string;
|
|
65
54
|
};
|
|
55
|
+
searchFieldList: {
|
|
56
|
+
type: PropType<any[]>;
|
|
57
|
+
default: () => never[];
|
|
58
|
+
};
|
|
59
|
+
conditionMap: {
|
|
60
|
+
type: PropType<IConditionMapType>;
|
|
61
|
+
default: () => void;
|
|
62
|
+
};
|
|
66
63
|
conditionSid: {
|
|
67
64
|
type: PropType<string[]>;
|
|
68
65
|
default: () => never[];
|
|
69
66
|
};
|
|
70
67
|
curClassificationIndex: {
|
|
71
68
|
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
72
70
|
};
|
|
73
71
|
curClassificationWidth: {
|
|
74
72
|
type: NumberConstructor;
|
|
75
73
|
};
|
|
76
|
-
conditionType: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
74
|
hideConditionChangeBtn: {
|
|
81
75
|
type: NumberConstructor;
|
|
82
76
|
default: number;
|
|
@@ -89,41 +83,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
83
|
type: NumberConstructor;
|
|
90
84
|
default: number;
|
|
91
85
|
};
|
|
92
|
-
countCondition: {
|
|
93
|
-
type: NumberConstructor;
|
|
94
|
-
default: number;
|
|
95
|
-
};
|
|
96
|
-
countTabCondition: {
|
|
97
|
-
type: NumberConstructor;
|
|
98
|
-
default: number;
|
|
99
|
-
};
|
|
100
86
|
isShowResetButton: {
|
|
101
87
|
type: BooleanConstructor;
|
|
102
88
|
default: boolean;
|
|
103
89
|
};
|
|
104
|
-
conditionMap: {
|
|
105
|
-
type: PropType<IConditionMapType>;
|
|
106
|
-
default: () => void;
|
|
107
|
-
};
|
|
108
90
|
filterApiConfig: {
|
|
109
91
|
type: ObjectConstructor;
|
|
110
92
|
default: () => {};
|
|
111
93
|
};
|
|
112
|
-
searchFieldList: {
|
|
113
|
-
type: PropType<any[]>;
|
|
114
|
-
default: () => never[];
|
|
115
|
-
};
|
|
116
94
|
}>> & {
|
|
117
95
|
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
118
|
-
onSetCurTreeData?: ((...args: any[]) => any) | undefined;
|
|
119
96
|
onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
|
|
120
|
-
onGetClassification?: ((...args: any[]) => any) | undefined;
|
|
121
|
-
onReloadList?: ((...args: any[]) => any) | undefined;
|
|
122
97
|
onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
|
|
123
|
-
onSetConditionMap?: ((...args: any[]) => any) | undefined;
|
|
124
|
-
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
125
98
|
}>>;
|
|
126
|
-
emit: (event: "changeSearch" | "
|
|
99
|
+
emit: (event: "changeSearch" | "setClassificationIndex" | "getQuickSearchListObj", ...args: any[]) => void;
|
|
127
100
|
selectType: any;
|
|
128
101
|
classificationWidth: import("vue").Ref<number>;
|
|
129
102
|
selectShow: import("vue").Ref<boolean>;
|
|
@@ -229,11 +202,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
202
|
}>;
|
|
230
203
|
titleName: import("vue").ComputedRef<string>;
|
|
231
204
|
tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
|
|
232
|
-
getCondiTionDigital: import("vue").ComputedRef<boolean>;
|
|
233
205
|
handleFold: (item: ITreeDataType) => void;
|
|
234
|
-
handleItemClick: (child: any, i?: number, p?:
|
|
206
|
+
handleItemClick: (child: any, i?: number, p?: ITreeDataType) => void;
|
|
235
207
|
initTree: (conditionSidTemp: string[]) => IClassifyListType[];
|
|
236
|
-
getConditionSid: (sid: string, conditionSidVal: string[], p
|
|
208
|
+
getConditionSid: (sid: string, conditionSidVal: string[], p?: ITreeDataType) => string[];
|
|
237
209
|
handleModeChange: () => void;
|
|
238
210
|
saveListPersonaSetting: (classificationIndexVal: number, classificationWidthVal?: number) => Promise<void>;
|
|
239
211
|
handleSettingShow: () => void;
|
|
@@ -248,10 +220,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
248
220
|
updateTableCondiTion: () => Promise<void>;
|
|
249
221
|
saveGetTableCondiTionList: (options: any) => Promise<void>;
|
|
250
222
|
getTableCondiTionListRequest: (first?: boolean) => void;
|
|
251
|
-
reloadList: (item: any) => void;
|
|
252
223
|
handleGetTableCondiTionList: (first?: boolean, conditionMapVal?: {}) => Promise<unknown>;
|
|
253
224
|
getTableCondiTionListNew: (tableIdVal: any) => Promise<any>;
|
|
254
|
-
visibleDigital: (item: IClassifyListType | ITreeDataType) => number | boolean;
|
|
255
225
|
fmtChildName: (name: string, isPublic?: string) => string;
|
|
256
226
|
NIcon: any;
|
|
257
227
|
NTooltip: any;
|
|
@@ -300,11 +270,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
300
270
|
default: boolean;
|
|
301
271
|
};
|
|
302
272
|
}>> & {
|
|
303
|
-
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
304
273
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
305
274
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
306
276
|
}>>;
|
|
307
|
-
emit: (event: "
|
|
277
|
+
emit: (event: "CondiTionListInit" | "saveGetTableCondiTionList" | "setClassifyModal", ...args: any[]) => void;
|
|
308
278
|
$message: import("naive-ui").MessageApi;
|
|
309
279
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
310
280
|
conditionList: import("vue").Ref<unknown[]>;
|
|
@@ -457,48 +427,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
457
427
|
DocumentOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
458
428
|
Brush: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
459
429
|
ReorderTwo: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
460
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
461
|
-
iconClass: {
|
|
462
|
-
type: StringConstructor;
|
|
463
|
-
required: true;
|
|
464
|
-
default: string;
|
|
465
|
-
};
|
|
466
|
-
title: {
|
|
467
|
-
type: StringConstructor;
|
|
468
|
-
required: false;
|
|
469
|
-
default: string;
|
|
470
|
-
};
|
|
471
|
-
className: {
|
|
472
|
-
type: StringConstructor;
|
|
473
|
-
required: false;
|
|
474
|
-
};
|
|
475
|
-
}, {
|
|
476
|
-
props: {
|
|
477
|
-
iconClass: string;
|
|
478
|
-
title: string;
|
|
479
|
-
className?: string | undefined;
|
|
480
|
-
};
|
|
481
|
-
iconName: import("vue").ComputedRef<string>;
|
|
482
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
483
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
484
|
-
iconClass: {
|
|
485
|
-
type: StringConstructor;
|
|
486
|
-
required: true;
|
|
487
|
-
default: string;
|
|
488
|
-
};
|
|
489
|
-
title: {
|
|
490
|
-
type: StringConstructor;
|
|
491
|
-
required: false;
|
|
492
|
-
default: string;
|
|
493
|
-
};
|
|
494
|
-
className: {
|
|
495
|
-
type: StringConstructor;
|
|
496
|
-
required: false;
|
|
497
|
-
};
|
|
498
|
-
}>>, {
|
|
499
|
-
title: string;
|
|
500
|
-
iconClass: string;
|
|
501
|
-
}>;
|
|
502
430
|
Draggable: import("vue").DefineComponent<{
|
|
503
431
|
list: {
|
|
504
432
|
type: ArrayConstructor;
|
|
@@ -806,48 +734,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
806
734
|
AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
807
735
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
808
736
|
CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
809
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
810
|
-
iconClass: {
|
|
811
|
-
type: StringConstructor;
|
|
812
|
-
required: true;
|
|
813
|
-
default: string;
|
|
814
|
-
};
|
|
815
|
-
title: {
|
|
816
|
-
type: StringConstructor;
|
|
817
|
-
required: false;
|
|
818
|
-
default: string;
|
|
819
|
-
};
|
|
820
|
-
className: {
|
|
821
|
-
type: StringConstructor;
|
|
822
|
-
required: false;
|
|
823
|
-
};
|
|
824
|
-
}, {
|
|
825
|
-
props: {
|
|
826
|
-
iconClass: string;
|
|
827
|
-
title: string;
|
|
828
|
-
className?: string | undefined;
|
|
829
|
-
};
|
|
830
|
-
iconName: import("vue").ComputedRef<string>;
|
|
831
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
832
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
833
|
-
iconClass: {
|
|
834
|
-
type: StringConstructor;
|
|
835
|
-
required: true;
|
|
836
|
-
default: string;
|
|
837
|
-
};
|
|
838
|
-
title: {
|
|
839
|
-
type: StringConstructor;
|
|
840
|
-
required: false;
|
|
841
|
-
default: string;
|
|
842
|
-
};
|
|
843
|
-
className: {
|
|
844
|
-
type: StringConstructor;
|
|
845
|
-
required: false;
|
|
846
|
-
};
|
|
847
|
-
}>>, {
|
|
848
|
-
title: string;
|
|
849
|
-
iconClass: string;
|
|
850
|
-
}>;
|
|
851
737
|
ValueCfg: import("vue").DefineComponent<{
|
|
852
738
|
paramCfg: {
|
|
853
739
|
type: ObjectConstructor;
|
|
@@ -1003,48 +889,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1003
889
|
showItemName: boolean;
|
|
1004
890
|
hideAddBtn: boolean;
|
|
1005
891
|
}>;
|
|
1006
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
1007
|
-
iconClass: {
|
|
1008
|
-
type: StringConstructor;
|
|
1009
|
-
required: true;
|
|
1010
|
-
default: string;
|
|
1011
|
-
};
|
|
1012
|
-
title: {
|
|
1013
|
-
type: StringConstructor;
|
|
1014
|
-
required: false;
|
|
1015
|
-
default: string;
|
|
1016
|
-
};
|
|
1017
|
-
className: {
|
|
1018
|
-
type: StringConstructor;
|
|
1019
|
-
required: false;
|
|
1020
|
-
};
|
|
1021
|
-
}, {
|
|
1022
|
-
props: {
|
|
1023
|
-
iconClass: string;
|
|
1024
|
-
title: string;
|
|
1025
|
-
className?: string | undefined;
|
|
1026
|
-
};
|
|
1027
|
-
iconName: import("vue").ComputedRef<string>;
|
|
1028
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
1029
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1030
|
-
iconClass: {
|
|
1031
|
-
type: StringConstructor;
|
|
1032
|
-
required: true;
|
|
1033
|
-
default: string;
|
|
1034
|
-
};
|
|
1035
|
-
title: {
|
|
1036
|
-
type: StringConstructor;
|
|
1037
|
-
required: false;
|
|
1038
|
-
default: string;
|
|
1039
|
-
};
|
|
1040
|
-
className: {
|
|
1041
|
-
type: StringConstructor;
|
|
1042
|
-
required: false;
|
|
1043
|
-
};
|
|
1044
|
-
}>>, {
|
|
1045
|
-
title: string;
|
|
1046
|
-
iconClass: string;
|
|
1047
|
-
}>;
|
|
1048
892
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancelSaveAdd"[], "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1049
893
|
visible: {
|
|
1050
894
|
type: BooleanConstructor;
|
|
@@ -1075,7 +919,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1075
919
|
filterApiConfig: Record<string, any>;
|
|
1076
920
|
conditionList: unknown[];
|
|
1077
921
|
}>;
|
|
1078
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
922
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("CondiTionListInit" | "saveGetTableCondiTionList" | "setClassifyModal")[], "CondiTionListInit" | "saveGetTableCondiTionList" | "setClassifyModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1079
923
|
searchFieldList: {
|
|
1080
924
|
type: ArrayConstructor;
|
|
1081
925
|
default: () => never[];
|
|
@@ -1094,9 +938,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1094
938
|
default: boolean;
|
|
1095
939
|
};
|
|
1096
940
|
}>> & {
|
|
1097
|
-
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
1098
941
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
1099
942
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
943
|
+
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
1100
944
|
}, {
|
|
1101
945
|
searchFieldList: unknown[];
|
|
1102
946
|
filterApiConfig: Record<string, any>;
|
|
@@ -1107,67 +951,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1107
951
|
mounted(el: any, { value }: any): void;
|
|
1108
952
|
beforeUnmount(el: any): void;
|
|
1109
953
|
};
|
|
1110
|
-
|
|
1111
|
-
iconClass: {
|
|
1112
|
-
type: StringConstructor;
|
|
1113
|
-
required: true;
|
|
1114
|
-
default: string;
|
|
1115
|
-
};
|
|
1116
|
-
title: {
|
|
1117
|
-
type: StringConstructor;
|
|
1118
|
-
required: false;
|
|
1119
|
-
default: string;
|
|
1120
|
-
};
|
|
1121
|
-
className: {
|
|
1122
|
-
type: StringConstructor;
|
|
1123
|
-
required: false;
|
|
1124
|
-
};
|
|
1125
|
-
}, {
|
|
1126
|
-
props: {
|
|
1127
|
-
iconClass: string;
|
|
1128
|
-
title: string;
|
|
1129
|
-
className?: string | undefined;
|
|
1130
|
-
};
|
|
1131
|
-
iconName: import("vue").ComputedRef<string>;
|
|
1132
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
1133
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1134
|
-
iconClass: {
|
|
1135
|
-
type: StringConstructor;
|
|
1136
|
-
required: true;
|
|
1137
|
-
default: string;
|
|
1138
|
-
};
|
|
1139
|
-
title: {
|
|
1140
|
-
type: StringConstructor;
|
|
1141
|
-
required: false;
|
|
1142
|
-
default: string;
|
|
1143
|
-
};
|
|
1144
|
-
className: {
|
|
1145
|
-
type: StringConstructor;
|
|
1146
|
-
required: false;
|
|
1147
|
-
};
|
|
1148
|
-
}>>, {
|
|
1149
|
-
title: string;
|
|
1150
|
-
iconClass: string;
|
|
1151
|
-
}>;
|
|
1152
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeSearch" | "setCurTreeData" | "setClassificationIndex" | "getClassification" | "reloadList" | "getQuickSearchListObj" | "setConditionMap" | "setClassifyModal")[], "changeSearch" | "setCurTreeData" | "setClassificationIndex" | "getClassification" | "reloadList" | "getQuickSearchListObj" | "setConditionMap" | "setClassifyModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
954
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeSearch" | "setClassificationIndex" | "getQuickSearchListObj")[], "changeSearch" | "setClassificationIndex" | "getQuickSearchListObj", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1153
955
|
tableId: {
|
|
1154
956
|
type: StringConstructor;
|
|
1155
957
|
default: string;
|
|
1156
958
|
};
|
|
959
|
+
searchFieldList: {
|
|
960
|
+
type: PropType<any[]>;
|
|
961
|
+
default: () => never[];
|
|
962
|
+
};
|
|
963
|
+
conditionMap: {
|
|
964
|
+
type: PropType<IConditionMapType>;
|
|
965
|
+
default: () => void;
|
|
966
|
+
};
|
|
1157
967
|
conditionSid: {
|
|
1158
968
|
type: PropType<string[]>;
|
|
1159
969
|
default: () => never[];
|
|
1160
970
|
};
|
|
1161
971
|
curClassificationIndex: {
|
|
1162
972
|
type: NumberConstructor;
|
|
973
|
+
default: number;
|
|
1163
974
|
};
|
|
1164
975
|
curClassificationWidth: {
|
|
1165
976
|
type: NumberConstructor;
|
|
1166
977
|
};
|
|
1167
|
-
conditionType: {
|
|
1168
|
-
type: StringConstructor;
|
|
1169
|
-
default: string;
|
|
1170
|
-
};
|
|
1171
978
|
hideConditionChangeBtn: {
|
|
1172
979
|
type: NumberConstructor;
|
|
1173
980
|
default: number;
|
|
@@ -1180,51 +987,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1180
987
|
type: NumberConstructor;
|
|
1181
988
|
default: number;
|
|
1182
989
|
};
|
|
1183
|
-
countCondition: {
|
|
1184
|
-
type: NumberConstructor;
|
|
1185
|
-
default: number;
|
|
1186
|
-
};
|
|
1187
|
-
countTabCondition: {
|
|
1188
|
-
type: NumberConstructor;
|
|
1189
|
-
default: number;
|
|
1190
|
-
};
|
|
1191
990
|
isShowResetButton: {
|
|
1192
991
|
type: BooleanConstructor;
|
|
1193
992
|
default: boolean;
|
|
1194
993
|
};
|
|
1195
|
-
conditionMap: {
|
|
1196
|
-
type: PropType<IConditionMapType>;
|
|
1197
|
-
default: () => void;
|
|
1198
|
-
};
|
|
1199
994
|
filterApiConfig: {
|
|
1200
995
|
type: ObjectConstructor;
|
|
1201
996
|
default: () => {};
|
|
1202
997
|
};
|
|
1203
|
-
searchFieldList: {
|
|
1204
|
-
type: PropType<any[]>;
|
|
1205
|
-
default: () => never[];
|
|
1206
|
-
};
|
|
1207
998
|
}>> & {
|
|
1208
999
|
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
1209
|
-
onSetCurTreeData?: ((...args: any[]) => any) | undefined;
|
|
1210
1000
|
onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
|
|
1211
|
-
onGetClassification?: ((...args: any[]) => any) | undefined;
|
|
1212
|
-
onReloadList?: ((...args: any[]) => any) | undefined;
|
|
1213
1001
|
onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
|
|
1214
|
-
onSetConditionMap?: ((...args: any[]) => any) | undefined;
|
|
1215
|
-
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
1216
1002
|
}, {
|
|
1217
1003
|
searchFieldList: any[];
|
|
1218
1004
|
tableId: string;
|
|
1219
1005
|
filterApiConfig: Record<string, any>;
|
|
1006
|
+
conditionMap: IConditionMapType;
|
|
1220
1007
|
conditionSid: string[];
|
|
1221
|
-
|
|
1008
|
+
curClassificationIndex: number;
|
|
1222
1009
|
hideConditionChangeBtn: number;
|
|
1223
1010
|
hideConditionChangeSetting: number;
|
|
1224
1011
|
hideClearConditionChange: number;
|
|
1225
|
-
countCondition: number;
|
|
1226
|
-
countTabCondition: number;
|
|
1227
1012
|
isShowResetButton: boolean;
|
|
1228
|
-
conditionMap: IConditionMapType;
|
|
1229
1013
|
}>;
|
|
1230
1014
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as i,ref as n,provide as t,computed as l,onActivated as a,onBeforeMount as s,onMounted as o,nextTick as d,watch as c,openBlock as r,createElementBlock as p,normalizeClass as u,unref as h,normalizeStyle as f,withDirectives as g,createVNode as m,createTextVNode as y,toDisplayString as v,createCommentVNode as C,createElementVNode as k,Fragment as b,renderList as S,createBlock as x,withCtx as _,renderSlot as w}from"vue";import{NIcon as I,NTooltip as O}from"naive-ui";import{Repeat as L,SettingsOutline as T,ChevronDown as M,ChevronForward as N,Checkmark as j,Close as z,ChevronUp as B}from"@vicons/ionicons5";import P from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import R from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../_virtual/plugin-vue_export-helper.js";const D={key:0,class:"header"},W={class:"tree"},$=["onClick"],q={key:0,class:"digital-span"},G=["onClick"],Q={key:0,class:"digital-span"},V=["onClick"],H={class:"child-item-name"},K={key:0,class:"digital-span"},U={key:1,class:"tree-type-footer"},X={class:"selected-num"},Y={key:0,class:"tile-type classify-1"},Z={key:0,class:"header"},ee={class:"right-setting"},ie=["onClick"],ne={key:0,class:"digital-span"},te={class:"parent ellips"},le={class:"children"},ae=["onClick"],se={key:0,class:"digital-span"},oe={key:1,class:"selected-list"},de={class:"selected-num"},ce={key:0,class:"digital-span"},re={key:0,class:"digital-span"},pe={class:"name"},ue={class:"name"},he={key:0,class:"main-wrapper"},fe=["onClick"],ge={key:0,class:"digital-span"},me={class:"tree-footer"},ye=["onClick"],ve=["onClick"],Ce={key:0,class:"digital-span"},ke={key:0,class:"select-type-footer"},be={class:"selected-num"};var Se=F(e({__name:"Classification-com",props:{tableId:{type:String,default:""},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number},curClassificationWidth:{type:Number},conditionType:{type:String,default:""},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:0},countCondition:{type:Number,default:0},countTabCondition:{type:Number,default:0},isShowResetButton:{type:Boolean,default:!0},conditionMap:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]}},emits:["changeSearch","setCurTreeData","setClassificationIndex","getClassification","reloadList","getQuickSearchListObj","setConditionMap","setClassifyModal"],setup(e,{emit:F}){const Se=e,{handleGetConfigApi:xe}=J(),_e=i(),we=n(null);let Ie=n(150),Oe=n(!1),Le=n([]),Te=n([]),Me=n([]),Ne=n(2),je=n(""),ze=n({name:"全部数据",sid:"all_data"}),Be=n([]),Pe=n([]),Ae=n(""),Ee=n(!1),Je=n("全部数据");t(E,n(Se.isShowResetButton));let Re=l((()=>0===Ne.value?{marginRight:"8px"}:2===Ne.value?{display:"inline-block"}:{})),Fe=l((()=>{let e=Te.value.filter((e=>-1!==Se.conditionSid.indexOf(e.sid)));if(-1!==Se.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),De=l((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:t}=e;return si(n,t)+i})),We=l((()=>1===Se.countCondition||1===Se.countTabCondition));function $e(e){e.open?e.open=!1:e.open=!0}function qe(e,i,n){if(Je.value=e.name,!e.digital&&1===Se.countCondition)return!1;let t=function(e,i,n){let t=JSON.parse(JSON.stringify(i));if("all_data"===e)t=["all_data"];else if("keyword"===Se.conditionType){let i=t.findIndex((e=>"all_data"===e));-1!==i&&t.splice(i,1);let l=t.findIndex((i=>i===e));-1!==l?(t.splice(l,1),0===t.length&&(t=["all_data"])):(n.children&&n.children.length>0&&(l=t.findIndex((e=>-1!==n.children.findIndex((i=>i.sid===e))))),-1!==l&&t.splice(l,1),t.push(e))}else t=-1!==t.indexOf(e)?["all_data"]:[e];return t}(e.sid,Se.conditionSid,n),l=function(e){let i=[];return Le.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(t);Ke(!1),F("changeSearch","all_data"===e.sid?"all":"",e,n,l)}function Ge(){F("setCurTreeData",Le.value);let e="";if(2===Ne.value)e=0;else{let i=Ne.value;e=++i}Ie.value=150,Qe(e)}async function Qe(e,i){let n={tableId:Se.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await xe(n,"requestSaveListPersonaSetting",{},Se.filterApiConfig)&&F("setClassificationIndex",e)}catch(e){console.log(e)}}function Ve(){Ee.value=!0,Ke(!1)}function He(e){F("setClassifyModal",e),Ee.value=e}function Ke(e){Oe.value=void 0===e?!Oe.value:e}function Ue(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==Se.conditionSid.indexOf(e.item.sid)&&F("changeSearch","all",{name:"全部数据",sid:"all_data",selected:!0}),Se.tableId)&&Object.keys(Se.conditionMap).length>0){Le.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=Se.conditionMap;Me.value=JSON.parse(JSON.stringify(n)),Pe.value=e||[],Te.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};Te.value.unshift(t);let l=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==Se.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&l.push(i)})),l.unshift({name:"全部数据",sid:"all_data"}),Le.value=l,0===Ne.value&&(i=!0,Le.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function Xe(e){try{await Ue(e)}catch(e){console.log(e)}}function Ye({distance:e}){const i=Ie.value+e;Ie.value=Math.min(Math.max(i,50),650)}function Ze(){Qe(Ne.value,Ie.value)}async function ei(){await li(Se.tableId),ni()}async function ii(e){await li(Se.tableId),ti(),F("getClassification",e)}function ni(e){ti(e).then((e=>{F("reloadList",e)}))}function ti(e,i={}){if(!Se.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:Se.conditionMap;return new Promise(((i,t)=>{var l,a,s,o,d,c;if(Object.keys(n).length>0){Be.value=n.conditionList||[],Pe.value=n.displayCategoryList||[];let t={conditionList:Be.value,displayCategoryList:Pe.value};F("getQuickSearchListObj",t),Ae.value=n.settingId;const r=Be.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(l=_e.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(o=null==(s=_e.tableOptions)?void 0:s.filterCondition)?void 0:o.name,sid:null==(c=null==(d=_e.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function li(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await xe(i,"requestTableCondiTionList",{},Se.filterApiConfig);return F("setConditionMap",n),Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function ai(e){return 1===Se.countCondition&&(e.digital||0===e.digital)}function si(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{Xe({})})),s((()=>{Xe({})})),o((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();we&&i.includes(we.value)||Ke(!1)}))}))})),c((()=>Se.tableId),(e=>{e&&(ni(!0),je.value!==e&&(je.value=e))}),{immediate:!0,deep:!0}),c((()=>Se.curClassificationIndex),(e=>{void 0!==e&&(Ne.value=e)}),{immediate:!0,deep:!0}),c((()=>Se.curClassificationWidth),(e=>{e&&(Ie.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),p("div",{class:u(["classification-block","classificationIndex-"+h(Ne)]),style:f(h(Re))},[0===h(Ne)?g((r(),p("div",{key:0,class:"tree-type classify-0",style:f({width:h(Ie)+"px",paddingBottom:"keyword"===e.conditionType?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",D,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"header-1",onClick:Ge},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"header-1",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",W,[(r(!0),p(b,null,S(h(Le),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>$e(i)},[k("span",null,[y(v(i.name)+" ",1),ai(i)?(r(),p("span",Q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)]),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,G),i.open?(r(!0),p(b,{key:0},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(We)}]),onClick:n=>qe(e,0,i)},[k("span",H,v(e.name||si(e.isPublic)),1),ai(e)?(r(),p("span",K," ("+v(e.digital||0)+") ",1)):C("v-if",!0),e.selected?(r(),x(h(I),{key:1,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,V)])),default:_((()=>[k("span",null,v(h(De)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>qe(i)},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,$))],2)):C("v-if",!0)],64)))),256))]),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",U,[k("div",X,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)],4)),[[h(A),{mode:"VR",onMove:Ye,onEnd:Ze}]]):C("v-if",!0),1===h(Ne)?(r(),p(b,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Me).filter((e=>e.isShow)).length>0?(r(),p("div",Y,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",Z,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[y(" 全部数据 "),h(ze).digital||0===h(ze).digital?(r(),p(b,{key:0},[y(" ("+v(h(ze).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",ee,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"setting-1",onClick:Ge,style:{"margin-right":"30px"}},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"setting-1",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("ul",{class:"tile",style:f({borderBottom:"keyword"===e.conditionType&&1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),p(b,null,S(h(Le).slice(1),((e,i)=>(r(),p(b,null,[e.children&&e.children.length>0?(r(),p("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),p(b,{key:1},[k("span",te,v(e.name),1),k("div",le,[(r(!0),p(b,null,S(e.children,((i,n)=>(r(),p(b,null,[i.isShow?(r(),p("span",{key:n,class:u(["child-item",{selected:i.selected,disabled:!i.digital&&h(We)}]),onClick:n=>qe(i,0,e)},[y(v(i.name||si(i.isPublic))+" ",1),ai(i)?(r(),p("span",se," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,ae)):C("v-if",!0)],64)))),256))])],64)):(r(),p("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>qe(e)},[y(v(e.name)+" "+v(e.digital)+" ",1),ai(e)?(r(),p("span",ne," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,ie))])):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",oe,[k("div",de,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),p(b,null,S(h(Le).slice(1),((e,i)=>(r(),p(b,null,[e.children&&0!==e.children.length?(r(!0),p(b,{key:1},S(e.children,((i,n)=>(r(),p(b,null,[i.selected?(r(),p("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",re," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:n=>qe(i,0,e)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),p("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),ai(e)?(r(),p("span",ce," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:i=>qe(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===h(Ne)?(r(),p("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:we},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Ke())},[m(h(O),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",pe,v(h(Fe)),1)])),default:_((()=>[k("span",ue,v(h(Fe)),1)])),_:1}),m(h(I),{component:h(Oe)?h(B):h(M)},null,8,["component"])]),h(Oe)?(r(),p("div",he,[k("ul",{class:"tree",style:f({padding:"keyword"===e.conditionType?"40px 0":"40px 0 0"})},[(r(!0),p(b,null,S(h(Le),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),p("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>$e(i)},[y(v(i.name)+v(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,ye)):C("v-if",!0),i.open?(r(!0),p(b,{key:1},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(We)}]),onClick:n=>qe(e,0,i)},[k("span",null,[y(v(e.name||si(null==e?void 0:e.isPublic))+" ",1),ai(e)?(r(),p("span",Ce," ("+v(e.digital||0)+") ",1)):C("v-if",!0)]),e.selected?(r(),x(h(I),{key:0,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,ve)])),default:_((()=>[k("span",null,v(h(De)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p(b,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>qe(i)},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",ge," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,fe),k("div",me,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"tree-footer-icon",onClick:Ge},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"tree-footer-icon",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",ke,[k("div",be,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),C(" 弹出弹窗 "),m(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Be),displayCategoryList:h(Pe),settingId:h(Ae),tableId:e.tableId,classifyModal:h(Ee),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:ii,onCondiTionListInit:ei,onSetClassifyModal:He},{searchCondition:_((({...e})=>[w(i.$slots,"searchCondition",{attrs:e})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{Se as default};
|
|
1
|
+
import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onActivated as a,onBeforeMount as o,onMounted as s,nextTick as d,watch as c,openBlock as r,createElementBlock as h,normalizeClass as u,unref as f,normalizeStyle as p,withDirectives as m,createVNode as g,createTextVNode as v,toDisplayString as C,createCommentVNode as y,createElementVNode as k,Fragment as S,renderList as b,createBlock as x,withCtx as _}from"vue";import{NIcon as O,NTooltip as w}from"naive-ui";import{Repeat as I,SettingsOutline as L,ChevronDown as z,ChevronForward as j,Checkmark as B,Close as N,ChevronUp as P}from"@vicons/ionicons5";import M from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import T from"../../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"Classification-com",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:me}=J(),ge=i(),ve=n(null);let Ce=n(150),ye=n(!1),ke=n([]),Se=n([]),be=n([]),xe=n(2),_e=n(""),Oe=n({name:"全部数据",sid:"all_data"}),we=n([]),Ie=n([]),Le=n(""),ze=n(!1),je=n("全部数据");l(E,n(pe.isShowResetButton));let Be=t((()=>0===xe.value?{marginRight:"8px"}:2===xe.value?{display:"inline-block"}:{})),Ne=t((()=>{let e=Se.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ue(n,l)+i}));function Me(e){e.open?e.open=!1:e.open=!0}function Ae(e,i,n){je.value=e.name;let l=function(e){let i=[];return ke.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1),T("changeSearch",Boolean("all_data"===e.sid),e,n,l)}function Ee(){let e="";if(2===xe.value)e=0;else{let i=xe.value;e=++i}Ce.value=150,Je(e)}async function Je(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await me(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){ze.value=!0,Fe(!1)}function Re(e){ze.value=e}function Fe(e){ye.value=void 0===e?!ye.value:e}function We(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==pe.conditionSid.indexOf(e.item.sid)&&T("changeSearch",!0,{name:"全部数据",sid:"all_data",selected:!0}),pe.tableId)&&Object.keys(pe.conditionMap).length>0){ke.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=pe.conditionMap;be.value=JSON.parse(JSON.stringify(n)),Ie.value=e||[],Se.value=JSON.parse(JSON.stringify(n));const l={name:"全部数据",sid:"all_data"};Se.value.unshift(l);let t=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==pe.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&t.push(i)})),t.unshift({name:"全部数据",sid:"all_data"}),ke.value=t,0===xe.value&&(i=!0,ke.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function qe(e){try{await We(e)}catch(e){console.log(e)}}function Ge({distance:e}){const i=Ce.value+e;Ce.value=Math.min(Math.max(i,50),650)}function Qe(){Je(xe.value,Ce.value)}async function $e(){await Ke(pe.tableId),Ve()}async function De(e){await Ke(pe.tableId),He()}function Ve(e){He(e).then((e=>{}))}function He(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:pe.conditionMap;return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){we.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:we.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=we.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ge.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ge.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ge.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function Ke(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await me(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ue(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{qe({})})),o((()=>{qe({})})),s((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();ve&&i.includes(ve.value)||Fe(!1)}))}))})),c((()=>pe.tableId),(e=>{e&&(Ve(!0),_e.value!==e&&(_e.value=e))}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(xe.value=e)}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationWidth),(e=>{e&&(Ce.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+f(xe)]),style:p(f(Be))},[0===f(xe)?m((r(),h("div",{key:0,class:"tree-type classify-0",style:p({width:f(Ce)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",R,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:Ee},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])):y("v-if",!0),k("ul",F,[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[k("span",null,C(i.name),1),g(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,q),i.open?(r(!0),h(S,{key:0},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",Q,C(e.name||Ue(e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,G)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,W))],2)):y("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(r(),h("div",$,[k("div",D,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[V,v(" 清空筛选 ")])])):y("v-if",!0)],4)),[[f(A),{mode:"VR",onMove:Ge,onEnd:Qe}]]):y("v-if",!0),1===f(xe)?(r(),h(S,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||f(be).filter((e=>e.isShow)).length>0?(r(),h("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",K,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[v(" 全部数据 "),f(Oe).digital||0===f(Oe).digital?(r(),h(S,{key:0},[v(" ("+C(f(Oe).digital||0)+") ",1)],64)):y("v-if",!0)],2),k("div",U,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])])):y("v-if",!0),k("ul",{class:"tile",style:p({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&e.children.length>0?(r(),h("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),h(S,{key:1},[k("span",Y,C(e.name),1),k("div",Z,[(r(!0),h(S,null,b(e.children,((i,n)=>(r(),h(S,null,[i.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:i.selected}]),onClick:n=>Ae(i,0,e)},C(i.name||Ue(i.isPublic)),11,ee)):y("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Ae(e)},C(e.name)+" "+C(e.digital),11,X))])):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",ie,[k("div",ne,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&0!==e.children.length?(r(!0),h(S,{key:1},b(e.children,((i,n)=>(r(),h(S,null,[i.selected?(r(),h("div",{class:"selected-item",key:i.sid},[v(C(i.name)+" ",1),g(f(O),{component:f(N),onClick:n=>Ae(i,0,e)},null,8,["component","onClick"])])):y("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:e.sid},[v(C(e.name)+" ",1),g(f(O),{component:f(N),onClick:i=>Ae(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[le,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],64)):y("v-if",!0),2===f(xe)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ve},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[g(f(w),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",te,C(f(Ne)),1)])),default:_((()=>[k("span",ae,C(f(Ne)),1)])),_:1}),g(f(O),{component:f(ye)?f(P):f(z)},null,8,["component"])]),f(ye)?(r(),h("div",oe,[k("ul",{class:"tree",style:p({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[v(C(i.name)+C(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),g(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,ce)):y("v-if",!0),i.open?(r(!0),h(S,{key:1},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",null,C(e.name||Ue(null==e?void 0:e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,re)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h(S,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,se),k("div",de,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"tree-footer-icon",onClick:Ee},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"tree-footer-icon",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])],64))],2)):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",he,[k("div",ue,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[fe,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],512)):y("v-if",!0),y(" 弹出弹窗 "),g(M,{ref:"search",searchFieldList:e.searchFieldList,conditionList:f(we),displayCategoryList:f(Ie),settingId:f(Le),tableId:e.tableId,classifyModal:f(ze),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:De,onCondiTionListInit:$e,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{pe as default};
|
|
@@ -118,48 +118,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
119
119
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
120
120
|
CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
121
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
122
|
-
iconClass: {
|
|
123
|
-
type: StringConstructor;
|
|
124
|
-
required: true;
|
|
125
|
-
default: string;
|
|
126
|
-
};
|
|
127
|
-
title: {
|
|
128
|
-
type: StringConstructor;
|
|
129
|
-
required: false;
|
|
130
|
-
default: string;
|
|
131
|
-
};
|
|
132
|
-
className: {
|
|
133
|
-
type: StringConstructor;
|
|
134
|
-
required: false;
|
|
135
|
-
};
|
|
136
|
-
}, {
|
|
137
|
-
props: {
|
|
138
|
-
iconClass: string;
|
|
139
|
-
title: string;
|
|
140
|
-
className?: string | undefined;
|
|
141
|
-
};
|
|
142
|
-
iconName: import("vue").ComputedRef<string>;
|
|
143
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
144
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
|
-
iconClass: {
|
|
146
|
-
type: StringConstructor;
|
|
147
|
-
required: true;
|
|
148
|
-
default: string;
|
|
149
|
-
};
|
|
150
|
-
title: {
|
|
151
|
-
type: StringConstructor;
|
|
152
|
-
required: false;
|
|
153
|
-
default: string;
|
|
154
|
-
};
|
|
155
|
-
className: {
|
|
156
|
-
type: StringConstructor;
|
|
157
|
-
required: false;
|
|
158
|
-
};
|
|
159
|
-
}>>, {
|
|
160
|
-
title: string;
|
|
161
|
-
iconClass: string;
|
|
162
|
-
}>;
|
|
163
121
|
ValueCfg: import("vue").DefineComponent<{
|
|
164
122
|
paramCfg: {
|
|
165
123
|
type: ObjectConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,reactive as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,reactive as l,ref as t,toRef as i,openBlock as n,createElementBlock as o,createVNode as s,unref as d,withCtx as r,createElementVNode as p,createCommentVNode as c,Fragment as u,renderList as y,normalizeClass as m,toDisplayString as v,createBlock as f,withDirectives as g,createTextVNode as C,vShow as h}from"vue";import{useMessage as k,NSpin as b,NInput as A,NIcon as L,NButton as _,NSelect as w,NTooltip as U}from"naive-ui";import{CloseOutline as N,AddOutline as x,AddCircleSharp as V}from"@vicons/ionicons5";import D from"./ValueCfg.vue.js";import{DataTypeEnums as B,ConditionEnums as I}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as S}from"./hooks/useFilterConditions.js";import{conditionOptions as F}from"./helpers/options.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const O={class:"searchConditionByApi_wrapper"},P={class:"class-filter-content"},q={key:0,class:"item-name"},E=p("span",{class:"label"},"筛选分类名称:",-1),R={key:1,class:"quickSearch-content"},J=p("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],M={key:0,class:"s-content"},Q={key:2,class:"item-name"},G=p("span",{class:"label"}," 过滤条件: ",-1),H=p("span",null,"添加",-1),T={class:"select-item-list"},W={class:"index-span"},X=["onClick"];var Y=z(e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:z,emit:Y}){const Z=e,$=k(),ee=a(),ae=l({className:"",displayCategory:"",filterConditions:[]}),le=t(!1),{State:te,isEnableAddDisplayCategory:ie,editDisplayCategory:ne,handleDisplayCategorySelect:oe,handleDisplayCategoryRemove:se,handleDisplayCategoryAdd:de,handlerBlur:re,initDisplayCategories:pe}=j(i(ae,"displayCategory"),{conditionList:Z.conditionList},$),{State:ce,paramOptions:ue,addFilterCondition:ye,delFilterCondition:me,updateKey:ve,updateCondition:fe,getParamCfg:ge,initFilterConditions:Ce,getRawFilterConditions:he}=S(i(ae,"filterConditions"),Z.searchFieldList,B.API);function ke(){ae.className="",ae.displayCategory="",ae.filterConditions=[]}async function be(){var e;try{if(ke(),le.value=!0,pe(ee.displayCategoryList,Z.actionList_prop.displayCategory||"custom"),Z.actionList_prop){ae.className=Z.actionList_prop.name,await Ce(Z.tableId,null!=(e=Z.actionList_prop.conObj)?e:[]);ae.filterConditions.length<1&&ue.value&&ue.value.length>0&&ye()}}finally{le.value=!1}}return be(),z({handleInitConditions:be,saveAdd:function(){new Promise((e=>{ae.className||!Z.showItemName?0!==ae.filterConditions.length?ae.filterConditions.some((({key:e,condition:a,value:l,presetVal:t})=>!e||!a||a===I.EQUAL&&!l&&!t))?$.warning("请补充完整条件内容"):e(!0):$.warning("请至少添加一个条件"):$.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===Z.actionList_prop.from&&(a=Z.actionList_prop.displayCategory,e=null==Z?void 0:Z.conditionList.find((e=>e.displayCategory===a)));const l={displayCategory:ae.displayCategory,name:ae.className||"",conObj:he()},t={id:e?e.sid:"",tableId:Z.tableId,setting:JSON.stringify(l)};Y("saveAdd",t,!1)}))},cancelSaveAdd:function(){ke(),Y("cancelSaveAdd")},addAction:ye,checkActionList:function(){return ae.filterConditions.every((e=>!e.field_key))}}),(a,l)=>(n(),o("div",O,[s(d(b),{show:le.value},{default:r((()=>[p("div",P,[e.showItemName?(n(),o("div",q,[E,s(d(A),{value:ae.className,"onUpdate:value":l[0]||(l[0]=e=>ae.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):c("v-if",!0),e.showItemName?(n(),o("div",R,[J,(n(!0),o(u,null,y(d(te).displayCategories,((e,a)=>(n(),o("div",{class:m(["edit-tag",{"edit-tag-select":e.value===ae.displayCategory&&e.disabled}]),key:a,onDblclick:a=>d(ne)(a,e),onClick:a=>function(e){oe(e)}(e)},[e.disabled?(n(),o("div",M,[p("span",null,v(e.value),1)])):(n(),f(d(A),{key:1,style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:10},null,8,["disabled","onBlur","value","onUpdate:value"])),s(d(L),{component:d(N),class:"anticon-close",size:"20",onClick:l=>d(se)(a,e)},null,8,["component","onClick"])],42,K)))),128)),d(ie)?(n(),o(u,{key:0},[g(s(d(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:d(de)},{default:r((()=>[s(d(L),{component:d(x),size:"20"},null,8,["component"]),C(" "+v("添加父类"))])),_:1},8,["onClick"]),[[h,!d(te).showAdd]]),g(s(d(A),{class:"edit-tag",value:d(te).addDisplayCategory,"onUpdate:value":l[1]||(l[1]=e=>d(te).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:d(re),maxLength:10},null,8,["value","onBlur"]),[[h,d(te).showAdd]])],64)):c("v-if",!0)])):c("v-if",!0),e.hideAddBtn?c("v-if",!0):(n(),o("div",Q,[G,p("span",{class:"addAction",onClick:l[2]||(l[2]=(...e)=>d(ye)&&d(ye)(...e)),style:{cursor:"pointer"}},[s(d(L),{component:d(V),class:"blue",size:"18"},null,8,["component"]),H])])),p("ul",T,[(n(!0),o(u,null,y(ae.filterConditions,((e,a)=>(n(),o("li",{key:a},[p("span",W,v(a+1)+" ",1),c(" 选择 field_key "),s(d(w),{class:"form-item",placeholder:"请选择",value:e.key,filterable:"",options:d(ue),"onUpdate:value":e=>d(ve)(a,e)},null,8,["value","options","onUpdate:value"]),c(" 选择 关系 "),e.key?(n(),f(d(w),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,filterable:"",options:d(F),"onUpdate:value":e=>d(fe)(a,e)},null,8,["value","options","onUpdate:value"])):c("v-if",!0),c(" 自定义 "),e.key&&e.condition&&e.condition!==d(I).NULL?(n(),f(D,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,"param-cfg":d(ge)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","param-cfg"])):c("v-if",!0),s(d(U),{title:"删除",trigger:"hover"},{trigger:r((()=>[p("i",{onClick:e=>d(me)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,X)])),default:r((()=>[C(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{Y as default};
|