cnhis-design-vue 3.1.41-release.5 → 3.1.41-release.6
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/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
- package/es/components/field-set/index.d.ts +8 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +6755 -44
- package/es/components/form-config/src/FormConfig.vue.d.ts +6897 -185
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3410 -58
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +3 -3
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +10 -10
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +6 -6
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +4 -2
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
- package/es/components/form-config/src/types/index.d.ts +8 -2
- package/es/components/form-config/src/utils/index.d.ts +4 -1
- package/es/components/form-config/src/utils/index.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +21 -20
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +0 -12
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -2
- package/es/components/iho-table/index.d.ts +2 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -2
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +85 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{timeRendererPlugin.d.ts → timeRendererPlugin/index.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +20 -11
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +289 -155
- package/es/components/info-header/src/InfoHeader.vue.d.ts +293 -160
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/index.d.ts +3 -0
- package/es/components/info-header/src/components/index.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +266 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +38 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +29 -0
- package/es/components/scale-view/index.d.ts +1 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -5
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/utils/judge-types.js +1 -1
- package/es/components/scale-view/style/index.css +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 +12 -77
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +4 -2
- 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 +4 -22
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +2 -2
- 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 -20
- 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.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -53
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/style/index.css +1 -1
- package/es/shared/components/no-data/NoData.vue.d.ts +5 -0
- package/es/shared/components/no-data/NoData.vue.js +1 -1
- package/es/shared/utils/index.d.ts +16 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -1
- package/es/components/info-header/src/HiddenContent.vue.js +0 -1
- package/es/components/info-header/src/InfoEllipsis.vue.js +0 -1
- package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
- package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
- package/es/components/table-filter/src/const/dataOptions.d.ts +0 -12
- package/es/components/table-filter/src/const/dataOptions.js +0 -1
- package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
- package/es/components/table-filter/src/directive/preventReClick.js +0 -1
- package/es/components/info-header/src/{HiddenContent.vue.d.ts → components/infoDescription/HiddenContent.vue.d.ts} +2 -2
- package/es/components/info-header/src/{InfoEllipsis.vue.d.ts → components/infoDescription/InfoEllipsis.vue.d.ts} +1 -1
- /package/es/components/{iho-table/src/plugins/filterPlugin/types.js → info-header/src/types/index.js} +0 -0
|
@@ -81,8 +81,9 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
81
81
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
82
82
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
83
83
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
84
85
|
}>>;
|
|
85
|
-
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", ...args: any[]) => void;
|
|
86
|
+
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", ...args: any[]) => void;
|
|
86
87
|
baseLeftWidth: import("vue").Ref<number>;
|
|
87
88
|
classificationWidth: import("vue").Ref<number>;
|
|
88
89
|
quickSearchWidth: import("vue").Ref<number>;
|
|
@@ -329,7 +330,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
329
330
|
title: string;
|
|
330
331
|
iconClass: string;
|
|
331
332
|
}>;
|
|
332
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
333
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
333
334
|
showSettings: {
|
|
334
335
|
type: import("vue").PropType<import("./src/types").IsettingsType>;
|
|
335
336
|
default: () => {};
|
|
@@ -350,6 +351,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
350
351
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
351
352
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
352
353
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
354
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
353
355
|
}, {
|
|
354
356
|
showSettings: import("./src/types").IsettingsType;
|
|
355
357
|
searchFieldList: import("./src/types").IApiServerType[];
|
|
@@ -447,12 +449,13 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
447
449
|
};
|
|
448
450
|
}>> & {
|
|
449
451
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
452
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
450
453
|
onFilterCountChange?: ((...args: any[]) => any) | undefined;
|
|
451
454
|
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
452
455
|
onUpdateTableCondiTion?: ((...args: any[]) => any) | undefined;
|
|
453
456
|
onClearQuickSearchConfig?: ((...args: any[]) => any) | undefined;
|
|
454
457
|
}>>;
|
|
455
|
-
emit: (event: "onSave" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", ...args: any[]) => void;
|
|
458
|
+
emit: (event: "onSave" | "getParam" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", ...args: any[]) => void;
|
|
456
459
|
ageAttrDomList: any;
|
|
457
460
|
formRef: any;
|
|
458
461
|
formValue: import("vue").Ref<{
|
|
@@ -1088,57 +1091,6 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1088
1091
|
NIcon: any;
|
|
1089
1092
|
NInput: any;
|
|
1090
1093
|
NButton: any;
|
|
1091
|
-
NGrid: any;
|
|
1092
|
-
NGridItem: import("vue").DefineComponent<{
|
|
1093
|
-
readonly span: {
|
|
1094
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1095
|
-
readonly default: 1;
|
|
1096
|
-
};
|
|
1097
|
-
readonly offset: {
|
|
1098
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1099
|
-
readonly default: 0;
|
|
1100
|
-
};
|
|
1101
|
-
readonly suffix: BooleanConstructor;
|
|
1102
|
-
readonly privateOffset: NumberConstructor;
|
|
1103
|
-
readonly privateSpan: NumberConstructor;
|
|
1104
|
-
readonly privateColStart: NumberConstructor;
|
|
1105
|
-
readonly privateShow: {
|
|
1106
|
-
readonly type: BooleanConstructor;
|
|
1107
|
-
readonly default: true;
|
|
1108
|
-
};
|
|
1109
|
-
}, {
|
|
1110
|
-
overflow: import("vue").Ref<boolean>;
|
|
1111
|
-
itemStyle: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
1112
|
-
layoutShiftDisabled: import("vue").Ref<boolean>;
|
|
1113
|
-
mergedXGap: import("vue").ComputedRef<string>;
|
|
1114
|
-
deriveStyle: () => {
|
|
1115
|
-
display: string;
|
|
1116
|
-
gridColumn: string;
|
|
1117
|
-
marginLeft: string;
|
|
1118
|
-
};
|
|
1119
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1120
|
-
readonly span: {
|
|
1121
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1122
|
-
readonly default: 1;
|
|
1123
|
-
};
|
|
1124
|
-
readonly offset: {
|
|
1125
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1126
|
-
readonly default: 0;
|
|
1127
|
-
};
|
|
1128
|
-
readonly suffix: BooleanConstructor;
|
|
1129
|
-
readonly privateOffset: NumberConstructor;
|
|
1130
|
-
readonly privateSpan: NumberConstructor;
|
|
1131
|
-
readonly privateColStart: NumberConstructor;
|
|
1132
|
-
readonly privateShow: {
|
|
1133
|
-
readonly type: BooleanConstructor;
|
|
1134
|
-
readonly default: true;
|
|
1135
|
-
};
|
|
1136
|
-
}>>, {
|
|
1137
|
-
readonly offset: string | number;
|
|
1138
|
-
readonly span: string | number;
|
|
1139
|
-
readonly suffix: boolean;
|
|
1140
|
-
readonly privateShow: boolean;
|
|
1141
|
-
}>;
|
|
1142
1094
|
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<{}>>, {}>;
|
|
1143
1095
|
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<{}>>, {}>;
|
|
1144
1096
|
RenderWidget: import("vue").DefineComponent<{
|
|
@@ -1172,7 +1124,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1172
1124
|
}>> & {
|
|
1173
1125
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1174
1126
|
}, {}>;
|
|
1175
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig")[], "onSave" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1127
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "getParam" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig")[], "onSave" | "getParam" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1176
1128
|
searchFieldList: {
|
|
1177
1129
|
type: import("vue").PropType<import("./src/types").IApiServerType[]>;
|
|
1178
1130
|
default: () => never[];
|
|
@@ -1194,6 +1146,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1194
1146
|
};
|
|
1195
1147
|
}>> & {
|
|
1196
1148
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
1149
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
1197
1150
|
onFilterCountChange?: ((...args: any[]) => any) | undefined;
|
|
1198
1151
|
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
1199
1152
|
onUpdateTableCondiTion?: ((...args: any[]) => any) | undefined;
|
|
@@ -1419,7 +1372,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1419
1372
|
}[]>;
|
|
1420
1373
|
displayCategoryLists: import("vue").Ref<string[]>;
|
|
1421
1374
|
settingId: import("vue").Ref<string>;
|
|
1422
|
-
searchDefName: import("vue").Ref<string>;
|
|
1423
1375
|
classifyModal: import("vue").Ref<boolean>;
|
|
1424
1376
|
showTitleName: import("vue").Ref<string>;
|
|
1425
1377
|
dynamicStyle: import("vue").ComputedRef<{
|
|
@@ -1452,7 +1404,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1452
1404
|
saveWidth: () => void;
|
|
1453
1405
|
updateTableCondiTion: () => Promise<void>;
|
|
1454
1406
|
saveGetTableCondiTionList: (options: any) => Promise<void>;
|
|
1455
|
-
changeSearch: (key: string, item: import("./src/types").ITreeDataType) => void;
|
|
1456
1407
|
getTableCondiTionListRequest: (first?: boolean | undefined) => void;
|
|
1457
1408
|
reloadList: (item: any) => void;
|
|
1458
1409
|
handleGetTableCondiTionList: (first?: boolean | undefined, conditionMapVal?: {}) => Promise<unknown>;
|
|
@@ -1478,10 +1429,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1478
1429
|
default: () => never[];
|
|
1479
1430
|
};
|
|
1480
1431
|
settingId: StringConstructor;
|
|
1481
|
-
searchDefName: {
|
|
1482
|
-
type: StringConstructor;
|
|
1483
|
-
default: string;
|
|
1484
|
-
};
|
|
1485
1432
|
filterApiConfig: {
|
|
1486
1433
|
type: ObjectConstructor;
|
|
1487
1434
|
default: () => {};
|
|
@@ -1501,10 +1448,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1501
1448
|
default: () => never[];
|
|
1502
1449
|
};
|
|
1503
1450
|
settingId: StringConstructor;
|
|
1504
|
-
searchDefName: {
|
|
1505
|
-
type: StringConstructor;
|
|
1506
|
-
default: string;
|
|
1507
|
-
};
|
|
1508
1451
|
filterApiConfig: {
|
|
1509
1452
|
type: ObjectConstructor;
|
|
1510
1453
|
default: () => {};
|
|
@@ -1514,17 +1457,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1514
1457
|
default: boolean;
|
|
1515
1458
|
};
|
|
1516
1459
|
}>> & {
|
|
1517
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
1518
1460
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
1519
1461
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
1520
1462
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
1521
1463
|
}>>;
|
|
1522
|
-
emit: (event: "
|
|
1464
|
+
emit: (event: "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", ...args: any[]) => void;
|
|
1523
1465
|
$message: import("naive-ui").MessageApi;
|
|
1524
1466
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
1525
1467
|
conditionList: import("vue").Ref<unknown[]>;
|
|
1526
1468
|
checkedItem: import("vue").Ref<any>;
|
|
1527
|
-
searchName: any;
|
|
1528
1469
|
addVisible: import("vue").Ref<boolean>;
|
|
1529
1470
|
actionList_prop: import("vue").Ref<{}>;
|
|
1530
1471
|
newSearchFieldList: any;
|
|
@@ -2096,8 +2037,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2096
2037
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
2097
2038
|
}>>;
|
|
2098
2039
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
2099
|
-
valueCp: import("vue").WritableComputedRef<
|
|
2100
|
-
presetValCp: import("vue").WritableComputedRef<
|
|
2040
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
2041
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
2101
2042
|
widgetType: import("vue").ComputedRef<any>;
|
|
2102
2043
|
optionSetting: import("vue").ComputedRef<any>;
|
|
2103
2044
|
mappingConfig: import("vue").ComputedRef<any>;
|
|
@@ -2291,7 +2232,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2291
2232
|
filterApiConfig: Record<string, any>;
|
|
2292
2233
|
conditionList: unknown[];
|
|
2293
2234
|
}>;
|
|
2294
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2235
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList")[], "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2295
2236
|
searchFieldList: {
|
|
2296
2237
|
type: ArrayConstructor;
|
|
2297
2238
|
default: () => never[];
|
|
@@ -2301,10 +2242,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2301
2242
|
default: () => never[];
|
|
2302
2243
|
};
|
|
2303
2244
|
settingId: StringConstructor;
|
|
2304
|
-
searchDefName: {
|
|
2305
|
-
type: StringConstructor;
|
|
2306
|
-
default: string;
|
|
2307
|
-
};
|
|
2308
2245
|
filterApiConfig: {
|
|
2309
2246
|
type: ObjectConstructor;
|
|
2310
2247
|
default: () => {};
|
|
@@ -2314,7 +2251,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2314
2251
|
default: boolean;
|
|
2315
2252
|
};
|
|
2316
2253
|
}>> & {
|
|
2317
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
2318
2254
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
2319
2255
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
2320
2256
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
@@ -2322,7 +2258,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2322
2258
|
searchFieldList: unknown[];
|
|
2323
2259
|
filterApiConfig: Record<string, any>;
|
|
2324
2260
|
conditionList: unknown[];
|
|
2325
|
-
searchDefName: string;
|
|
2326
2261
|
classifyModal: boolean;
|
|
2327
2262
|
}>;
|
|
2328
2263
|
vFlexibleResize: {
|
|
@@ -80,8 +80,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
82
82
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
83
84
|
}>>;
|
|
84
|
-
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", ...args: any[]) => void;
|
|
85
|
+
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", ...args: any[]) => void;
|
|
85
86
|
baseLeftWidth: import("vue").Ref<number>;
|
|
86
87
|
classificationWidth: import("vue").Ref<number>;
|
|
87
88
|
quickSearchWidth: import("vue").Ref<number>;
|
|
@@ -328,7 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
328
329
|
title: string;
|
|
329
330
|
iconClass: string;
|
|
330
331
|
}>;
|
|
331
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
332
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
332
333
|
showSettings: {
|
|
333
334
|
type: PropType<IsettingsType>;
|
|
334
335
|
default: () => {};
|
|
@@ -349,6 +350,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
349
350
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
350
351
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
351
352
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
353
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
352
354
|
}, {
|
|
353
355
|
showSettings: IsettingsType;
|
|
354
356
|
searchFieldList: IApiServerType[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as i,watch as a,openBlock as
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,watch as a,openBlock as l,createElementBlock as n,createElementVNode as r,withDirectives as o,renderSlot as u,unref as s,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as m,createCommentVNode as v,Fragment as h,renderList as p}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import S from"../components/render-widget/index.vue.js";import x from"../hooks/useMixins.js";import b from"../hooks/useAdvanced.js";import k from"../hooks/useRenderWidget.js";import{NButton as j,NIcon as I}from"naive-ui";import{Search as _}from"@vicons/ionicons5";import C from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import{cloneDeep as R}from"lodash-es";import q from"../../../../_virtual/plugin-vue_export-helper.js";const V={class:"base-search-block"},A={class:"base-container"},O={class:"base-ul"},Q={key:1,class:"baseli"},z={key:2,class:"baseli"};var F=q(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onSave","handleReset","outSearchInit","getParam"],setup(e,{emit:q}){const F=e,{outQuickSearchFn:L}=x(),{isRender:W,getRenderSearchConObj:w,isExistDefValByRenderWidget:B,resetRenderWidgetValue:D}=k(),{transformData:E}=b(),N=t(null),P=t(null),U=t(0),$=t(0),M=t(0),T=t(0),G=t(!1),H=t(!1),J=t([]),K=i((()=>{var e;return e="hideQuickSearch",0==F.showSettings[e]}));function X(e){var t;if(H.value)return;let i=N.value;if(!i)return;H.value=!0,U.value=i.clientWidth,$.value=2===F.classificationIndex?160:0,M.value=(null==(t=P.value)?void 0:t.clientWidth)||0;let a=$.value+M.value,l=U.value-a;T.value=l,e.type&&"resize"===e.type&&function(){if(J.value.length>0)return;H.value=!1}()}function Y(){g.debounce(X({type:"resize"}),300)}function Z(){q("foldQuickSearch",!0)}function ee(e={}){!function(e,t=!1,i={}){let a=[];J.value.length>0&&(a=R(J.value));q("onSave",e,t,a,i)}(te()||[],!0,e)}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let a=e[i];const l=w(a);l&&t.push(l)}return t.filter((e=>e.value))}(J.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{D(e)})),L.handlerInitSearchItem(e)}(J.value),q("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>F.searchFieldList),(e=>{e&&e.length>0&&function(e={}){J.value=[];let t=R(E(F.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));J.value=t,L.handlerInitSearchItem(J.value),J.value.some((e=>W(e)?B(e):!!e.explicitDefaultVal))&&(q("outSearchInit"),"reset"!=(null==e?void 0:e.type)&&ee({type:"outSearchInit"}))}()}),{immediate:!0,deep:!0}),a((()=>J),(()=>{const e=te()||[];q("getParam",e),G.value=!!e.length}),{immediate:!0,deep:!0}),(t,i)=>(l(),n("div",V,[r("div",A,[o((l(),n("div",{class:"bease-left",ref_key:"baseLeft",ref:N},[r("ul",O,[u(t.$slots,"classification"),s(K)?(l(),n("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:P},[c(s(j),{class:"search-default",type:"default",onClick:Z},{default:f((()=>[c(s(C),{"icon-class":"anniushaixuan",style:{color:"inherit","margin-right":"6px"}}),d(" 筛选 "+m(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):v("v-if",!0),v(" start--筛选外显--start "),(l(!0),n(h,null,p(J.value,(e=>(l(),n(h,null,[e.isRender?(l(),n("li",{class:"baseli outQuickSearch-li",key:e._frontId},[c(S,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):v("v-if",!0)],64)))),256)),v(" end--筛选外显--end "),v(" 查询按钮 "),J.value&&J.value.length>0?(l(),n("li",Q,[c(s(j),{type:"primary",onClick:ee,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(I),{component:s(_),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):v("v-if",!0),v(" 重置按钮 "),G.value?(l(),n("li",z,[c(s(j),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(C),{"icon-class":"xitongtubiaoliebiaocaozuoanniushanchu",style:{"margin-right":"6px"}}),d(" 重置 ")])),_:1})])):v("v-if",!0)])])),[[s(y),Y]])])]))}}),[["__file","BaseSearch.vue"]]);export{F as default};
|
|
@@ -215,7 +215,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
215
215
|
}[]>;
|
|
216
216
|
displayCategoryLists: import("vue").Ref<string[]>;
|
|
217
217
|
settingId: import("vue").Ref<string>;
|
|
218
|
-
searchDefName: import("vue").Ref<string>;
|
|
219
218
|
classifyModal: import("vue").Ref<boolean>;
|
|
220
219
|
showTitleName: import("vue").Ref<string>;
|
|
221
220
|
dynamicStyle: import("vue").ComputedRef<{
|
|
@@ -248,7 +247,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
248
247
|
saveWidth: () => void;
|
|
249
248
|
updateTableCondiTion: () => Promise<void>;
|
|
250
249
|
saveGetTableCondiTionList: (options: any) => Promise<void>;
|
|
251
|
-
changeSearch: (key: string, item: ITreeDataType) => void;
|
|
252
250
|
getTableCondiTionListRequest: (first?: boolean) => void;
|
|
253
251
|
reloadList: (item: any) => void;
|
|
254
252
|
handleGetTableCondiTionList: (first?: boolean, conditionMapVal?: {}) => Promise<unknown>;
|
|
@@ -274,10 +272,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
274
272
|
default: () => never[];
|
|
275
273
|
};
|
|
276
274
|
settingId: StringConstructor;
|
|
277
|
-
searchDefName: {
|
|
278
|
-
type: StringConstructor;
|
|
279
|
-
default: string;
|
|
280
|
-
};
|
|
281
275
|
filterApiConfig: {
|
|
282
276
|
type: ObjectConstructor;
|
|
283
277
|
default: () => {};
|
|
@@ -297,10 +291,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
291
|
default: () => never[];
|
|
298
292
|
};
|
|
299
293
|
settingId: StringConstructor;
|
|
300
|
-
searchDefName: {
|
|
301
|
-
type: StringConstructor;
|
|
302
|
-
default: string;
|
|
303
|
-
};
|
|
304
294
|
filterApiConfig: {
|
|
305
295
|
type: ObjectConstructor;
|
|
306
296
|
default: () => {};
|
|
@@ -310,17 +300,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
310
300
|
default: boolean;
|
|
311
301
|
};
|
|
312
302
|
}>> & {
|
|
313
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
314
303
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
315
304
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
316
305
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
317
306
|
}>>;
|
|
318
|
-
emit: (event: "
|
|
307
|
+
emit: (event: "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", ...args: any[]) => void;
|
|
319
308
|
$message: import("naive-ui").MessageApi;
|
|
320
309
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
321
310
|
conditionList: import("vue").Ref<unknown[]>;
|
|
322
311
|
checkedItem: import("vue").Ref<any>;
|
|
323
|
-
searchName: any;
|
|
324
312
|
addVisible: import("vue").Ref<boolean>;
|
|
325
313
|
actionList_prop: import("vue").Ref<{}>;
|
|
326
314
|
newSearchFieldList: any;
|
|
@@ -892,8 +880,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
892
880
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
893
881
|
}>>;
|
|
894
882
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
895
|
-
valueCp: import("vue").WritableComputedRef<
|
|
896
|
-
presetValCp: import("vue").WritableComputedRef<
|
|
883
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
884
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
897
885
|
widgetType: import("vue").ComputedRef<any>;
|
|
898
886
|
optionSetting: import("vue").ComputedRef<any>;
|
|
899
887
|
mappingConfig: import("vue").ComputedRef<any>;
|
|
@@ -1087,7 +1075,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1087
1075
|
filterApiConfig: Record<string, any>;
|
|
1088
1076
|
conditionList: unknown[];
|
|
1089
1077
|
}>;
|
|
1090
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
1078
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList")[], "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1091
1079
|
searchFieldList: {
|
|
1092
1080
|
type: ArrayConstructor;
|
|
1093
1081
|
default: () => never[];
|
|
@@ -1097,10 +1085,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1097
1085
|
default: () => never[];
|
|
1098
1086
|
};
|
|
1099
1087
|
settingId: StringConstructor;
|
|
1100
|
-
searchDefName: {
|
|
1101
|
-
type: StringConstructor;
|
|
1102
|
-
default: string;
|
|
1103
|
-
};
|
|
1104
1088
|
filterApiConfig: {
|
|
1105
1089
|
type: ObjectConstructor;
|
|
1106
1090
|
default: () => {};
|
|
@@ -1110,7 +1094,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1110
1094
|
default: boolean;
|
|
1111
1095
|
};
|
|
1112
1096
|
}>> & {
|
|
1113
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
1114
1097
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
1115
1098
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
1116
1099
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
@@ -1118,7 +1101,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1118
1101
|
searchFieldList: unknown[];
|
|
1119
1102
|
filterApiConfig: Record<string, any>;
|
|
1120
1103
|
conditionList: unknown[];
|
|
1121
|
-
searchDefName: string;
|
|
1122
1104
|
classifyModal: boolean;
|
|
1123
1105
|
}>;
|
|
1124
1106
|
vFlexibleResize: {
|
|
@@ -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 h,normalizeClass as u,unref as p,normalizeStyle as f,withDirectives as g,createVNode as m,createTextVNode as v,toDisplayString as y,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 N,ChevronForward as M,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 D from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import R from"../../../../_virtual/plugin-vue_export-helper.js";const F={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"},he={key:0,class:"main-wrapper"},ue=["onClick"],pe={key:0,class:"digital-span"},fe={class:"tree-footer"},ge=["onClick"],me=["onClick"],ve={key:0,class:"digital-span"},ye={key:0,class:"select-type-footer"},Ce={class:"selected-num"};var ke=R(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:R}){const ke=e,{handleGetConfigApi:be}=J(),Se=i(),xe=n(null);let _e=n(150),we=n(!1),Ie=n([]),Oe=n([]),Le=n([]),Te=n(2),Ne=n(""),Me=n({name:"全部数据",sid:"all_data"}),je=n([]),ze=n([]),Be=n(""),Pe=n(""),Ae=n(!1),Ee=n("全部数据");t(E,n(ke.isShowResetButton));let Je=l((()=>0===Te.value?{marginRight:"8px"}:2===Te.value?{display:"inline-block"}:{})),De=l((()=>{let e=Oe.value.filter((e=>-1!==ke.conditionSid.indexOf(e.sid)));if(-1!==ke.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Re=l((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:t}=e;return si(n,t)+i})),Fe=l((()=>1===ke.countCondition||1===ke.countTabCondition));function We(e){e.open?e.open=!1:e.open=!0}function $e(e,i,n){if(Ee.value=e.name,!e.digital&&1===ke.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"===ke.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,ke.conditionSid,n),l=function(e){let i=[];return Ie.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);He(!1),R("changeSearch","all_data"===e.sid?"all":"",e,n,l)}function qe(){R("setCurTreeData",Ie.value);let e="";if(2===Te.value)e=0;else{let i=Te.value;e=++i}_e.value=150,Ge(e)}async function Ge(e,i){let n={tableId:ke.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await be(n,"requestSaveListPersonaSetting",{},ke.filterApiConfig)&&R("setClassificationIndex",e)}catch(e){console.log(e)}}function Qe(){Ae.value=!0,He(!1)}function Ve(e){R("setClassifyModal",e),Ae.value=e}function He(e){we.value=void 0===e?!we.value:e}function Ke(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==ke.conditionSid.indexOf(e.item.sid)&&R("changeSearch","all",{name:"全部数据",sid:"all_data"}),ke.tableId)&&Object.keys(ke.conditionMap).length>0){Ie.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=ke.conditionMap;Le.value=JSON.parse(JSON.stringify(n)),ze.value=e||[],Oe.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};Oe.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!==ke.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"}),Ie.value=l,0===Te.value&&(i=!0,Ie.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function Ue(e){try{await Ke(e)}catch(e){console.log(e)}}function Xe({distance:e}){const i=_e.value+e;_e.value=Math.min(Math.max(i,50),650)}function Ye(){Ge(Te.value,_e.value)}async function Ze(){await li(ke.tableId),ni()}async function ei(e){await li(ke.tableId),ti(),R("getClassification",e)}function ii(e,i){Pe.value="all"==e?"全部数据":i.name,R("changeSearch",e,i)}function ni(e){ti(e).then((e=>{R("reloadList",e)}))}function ti(e,i={}){if(!ke.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:ke.conditionMap;return new Promise(((i,t)=>{var l,a,s,o,d,c;if(Object.keys(n).length>0){je.value=n.conditionList||[],ze.value=n.displayCategoryList||[];let t={conditionList:je.value,displayCategoryList:ze.value};R("getQuickSearchListObj",t),Be.value=n.settingId;const r=je.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};Pe.value=r.name,(null==(a=null==(l=Se.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(o=null==(s=Se.tableOptions)?void 0:s.filterCondition)?void 0:o.name,sid:null==(c=null==(d=Se.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 be(i,"requestTableCondiTionList",{},ke.filterApiConfig);return R("setConditionMap",n),Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function ai(e){return 1===ke.countCondition&&(e.digital||0===e.digital)}function si(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{Ue({})})),s((()=>{Ue({})})),o((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();xe&&i.includes(xe.value)||He(!1)}))}))})),c((()=>ke.tableId),(e=>{e&&(ni(!0),Ne.value!==e&&(Ne.value=e))}),{immediate:!0,deep:!0}),c((()=>ke.curClassificationIndex),(e=>{void 0!==e&&(Te.value=e)}),{immediate:!0,deep:!0}),c((()=>ke.curClassificationWidth),(e=>{e&&(_e.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+p(Te)]),style:f(p(Je))},[0===p(Te)?g((r(),h("div",{key:0,class:"tree-type classify-0",style:f({width:p(_e)+"px",paddingBottom:"keyword"===e.conditionType?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",F,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:qe},[m(p(I),{component:p(L),size:"16"},null,8,["component"]),v(" "+y("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:Qe},[m(p(I),{component:p(T),size:"16"},null,8,["component"]),v(" "+y("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",W,[(r(!0),h(b,null,S(p(Ie),((i,n)=>(r(),h(b,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(b,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>We(i)},[k("span",null,[v(y(i.name)+" ",1),ai(i)?(r(),h("span",Q," ("+y(i.digital||0)+") ",1)):C("v-if",!0)]),m(p(I),{component:i.open?p(N):p(M)},null,8,["component"])],10,G),i.open?(r(!0),h(b,{key:0},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(p(O),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&p(Fe)}]),onClick:n=>$e(e,0,i)},[k("span",H,y(e.name||si(e.isPublic)),1),ai(e)?(r(),h("span",K," ("+y(e.digital||0)+") ",1)):C("v-if",!0),e.selected?(r(),x(p(I),{key:1,component:p(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,V)])),default:_((()=>[k("span",null,y(p(Re)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("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=>$e(i)},[v(y(i.name)+" ",1),ai(i)?(r(),h("span",q," ("+y(i.digital||0)+") ",1)):C("v-if",!0)],10,$))],2)):C("v-if",!0)],64)))),256))]),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),h("div",U,[k("div",X,"已选择"+y(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[m(p(D),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),v(" 清空筛选 ")])])):C("v-if",!0)],4)),[[p(A),{mode:"VR",onMove:Xe,onEnd:Ye}]]):C("v-if",!0),1===p(Te)?(r(),h(b,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||p(Le).filter((e=>e.isShow)).length>0?(r(),h("div",Y,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",Z,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[v(" 全部数据 "),p(Me).digital||0===p(Me).digital?(r(),h(b,{key:0},[v(" ("+y(p(Me).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",ee,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:qe,style:{"margin-right":"30px"}},[m(p(I),{component:p(L),size:"16"},null,8,["component"]),v(" "+y("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:Qe},[m(p(I),{component:p(T),size:"16"},null,8,["component"]),v(" "+y("设置"))])):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),h(b,null,S(p(Ie).slice(1),((e,i)=>(r(),h(b,null,[e.children&&e.children.length>0?(r(),h("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),h(b,{key:1},[k("span",te,y(e.name),1),k("div",le,[(r(!0),h(b,null,S(e.children,((i,n)=>(r(),h(b,null,[i.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:i.selected,disabled:!i.digital&&p(Fe)}]),onClick:n=>$e(i,0,e)},[v(y(i.name||si(i.isPublic))+" ",1),ai(i)?(r(),h("span",se," ("+y(i.digital||0)+") ",1)):C("v-if",!0)],10,ae)):C("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>$e(e)},[v(y(e.name)+" "+y(e.digital)+" ",1),ai(e)?(r(),h("span",ne," ("+y(e.digital||0)+") ",1)):C("v-if",!0)],10,ie))])):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),h("div",oe,[k("div",de,"已选择"+y(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),h(b,null,S(p(Ie).slice(1),((e,i)=>(r(),h(b,null,[e.children&&0!==e.children.length?(r(!0),h(b,{key:1},S(e.children,((i,n)=>(r(),h(b,null,[i.selected?(r(),h("div",{class:"selected-item",key:i.sid},[v(y(i.name)+" ",1),ai(i)?(r(),h("span",re," ("+y(i.digital||0)+") ",1)):C("v-if",!0),m(p(I),{component:p(z),onClick:n=>$e(i,0,e)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:e.sid},[v(y(e.name)+" ",1),ai(e)?(r(),h("span",ce," ("+y(e.digital||0)+") ",1)):C("v-if",!0),m(p(I),{component:p(z),onClick:i=>$e(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[m(p(D),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),v(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===p(Te)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:xe},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>He())},[m(p(O),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",null,y(p(De)),1)])),default:_((()=>[k("span",null,y(p(De)),1)])),_:1}),m(p(I),{component:p(we)?p(B):p(N)},null,8,["component"])]),p(we)?(r(),h("div",he,[k("ul",{class:"tree",style:f({padding:"keyword"===e.conditionType?"40px 0":"40px 0 0"})},[(r(!0),h(b,null,S(p(Ie),((i,n)=>(r(),h(b,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(b,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>We(i)},[v(y(i.name)+y(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),m(p(I),{component:i.open?p(N):p(M)},null,8,["component"])],10,ge)):C("v-if",!0),i.open?(r(!0),h(b,{key:1},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(p(O),{key:0,placement:"right",trigger:"hover"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&p(Fe)}]),onClick:n=>$e(e,0,i)},[k("span",null,[v(y(e.name||si(null==e?void 0:e.isPublic))+" ",1),ai(e)?(r(),h("span",ve," ("+y(e.digital||0)+") ",1)):C("v-if",!0)]),e.selected?(r(),x(p(I),{key:0,component:p(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,me)])),default:_((()=>[k("span",null,y(p(Re)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),h(b,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>$e(i)},[v(y(i.name)+" ",1),ai(i)?(r(),h("span",pe," ("+y(i.digital||0)+") ",1)):C("v-if",!0)],10,ue),k("div",fe,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:qe},[m(p(I),{component:p(L),size:"16"},null,8,["component"]),v(" "+y("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:Qe},[m(p(I),{component:p(T),size:"16"},null,8,["component"]),v(" "+y("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),h("div",ye,[k("div",Ce,"已选择"+y(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[m(p(D),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),v(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),C(" 弹出弹窗 "),m(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:p(je),displayCategoryList:p(ze),settingId:p(Be),searchDefName:p(Pe),tableId:e.tableId,classifyModal:p(Ae),filterApiConfig:e.filterApiConfig,onChangeSearch:ii,onSaveGetTableCondiTionList:ei,onCondiTionListInit:Ze,onSetClassifyModal:Ve},{searchCondition:_((({...e})=>[w(i.$slots,"searchCondition",{attrs:e})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","searchDefName","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{ke as default};
|
|
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};
|
|
@@ -30,8 +30,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
}>>;
|
|
32
32
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
33
|
-
valueCp: import("vue").WritableComputedRef<
|
|
34
|
-
presetValCp: import("vue").WritableComputedRef<
|
|
33
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
34
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
35
35
|
widgetType: import("vue").ComputedRef<any>;
|
|
36
36
|
optionSetting: import("vue").ComputedRef<any>;
|
|
37
37
|
mappingConfig: import("vue").ComputedRef<any>;
|
|
@@ -192,8 +192,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
192
192
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
193
193
|
}>>;
|
|
194
194
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
195
|
-
valueCp: import("vue").WritableComputedRef<
|
|
196
|
-
presetValCp: import("vue").WritableComputedRef<
|
|
195
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
196
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
197
197
|
widgetType: import("vue").ComputedRef<any>;
|
|
198
198
|
optionSetting: import("vue").ComputedRef<any>;
|
|
199
199
|
mappingConfig: import("vue").ComputedRef<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,reactive as i,ref as t,toRef as l,openBlock as o,createElementBlock as n,createVNode as s,unref as d,withCtx as r,createElementVNode as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,reactive as i,ref as t,toRef as l,openBlock as o,createElementBlock as n,createVNode as s,unref as d,withCtx as r,createElementVNode as c,createCommentVNode as p,Fragment as u,renderList as m,normalizeClass as y,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 x}from"naive-ui";import{CloseOutline as U,AddOutline as N,AddCircleSharp as I}from"@vicons/ionicons5";import V from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import D from"./ValueCfg.vue.js";import{DataTypeEnums as S,ConditionEnums as j}from"../../types/enums.js";import{useDisplayCategory as B}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as O}from"./helpers/options.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const P={class:"searchConditionByApi_wrapper"},E={class:"class-filter-content"},R={key:0,class:"item-name"},q=c("span",{class:"label"},"筛选分类名称:",-1),J={key:1,class:"quickSearch-content"},K=c("span",{class:"label"},"父类名称:",-1),M=["onDblclick","onClick"],Q={key:0,class:"s-content"},G={key:2,class:"item-name"},H=c("span",{class:"label"}," 过滤条件: ",-1),T=c("span",null,"添加",-1),W={class:"select-item-list"},X={class:"index-span"};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=i({className:"",displayCategory:"",filterConditions:[]}),ie=t(!1),{State:te,isEnableAddDisplayCategory:le,editDisplayCategory:oe,handleDisplayCategorySelect:ne,handleDisplayCategoryRemove:se,handleDisplayCategoryAdd:de,handlerBlur:re,initDisplayCategories:ce}=B(l(ae,"displayCategory"),{conditionList:Z.conditionList},$),{State:pe,paramOptions:ue,addFilterCondition:me,delFilterCondition:ye,updateKey:ve,updateCondition:fe,getParamCfg:ge,initFilterConditions:Ce,getRawFilterConditions:he}=F(l(ae,"filterConditions"),Z.searchFieldList,S.API);function ke(){ae.className="",ae.displayCategory="",ae.filterConditions=[]}async function be(){var e;try{if(ke(),ie.value=!0,ce(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&&me()}}finally{ie.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:i,presetVal:t})=>!e||!a||a===j.EQUAL&&!i&&!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 i={displayCategory:ae.displayCategory,name:ae.className||"",conObj:he()},t={id:e?e.sid:"",tableId:Z.tableId,setting:JSON.stringify(i)};Y("saveAdd",t,!1)}))},cancelSaveAdd:function(){ke(),Y("cancelSaveAdd")},addAction:me,checkActionList:function(){return ae.filterConditions.every((e=>!e.field_key))}}),(a,i)=>(o(),n("div",P,[s(d(b),{show:ie.value},{default:r((()=>[c("div",E,[e.showItemName?(o(),n("div",R,[q,s(d(A),{value:ae.className,"onUpdate:value":i[0]||(i[0]=e=>ae.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):p("v-if",!0),e.showItemName?(o(),n("div",J,[K,(o(!0),n(u,null,m(d(te).displayCategories,((e,a)=>(o(),n("div",{class:y(["edit-tag",{"edit-tag-select":e.value===ae.displayCategory&&e.disabled}]),key:a,onDblclick:a=>d(oe)(a,e),onClick:a=>function(e){ne(e)}(e)},[e.disabled?(o(),n("div",Q,[c("span",null,v(e.value),1)])):(o(),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(U),class:"anticon-close",size:"20",onClick:i=>d(se)(a,e)},null,8,["component","onClick"])],42,M)))),128)),d(le)?(o(),n(u,{key:0},[g(s(d(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:d(de)},{default:r((()=>[s(d(L),{component:d(N),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":i[1]||(i[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)):p("v-if",!0)])):p("v-if",!0),e.hideAddBtn?p("v-if",!0):(o(),n("div",G,[H,c("span",{class:"addAction",onClick:i[2]||(i[2]=(...e)=>d(me)&&d(me)(...e)),style:{cursor:"pointer"}},[s(d(L),{component:d(I),class:"blue",size:"18"},null,8,["component"]),T])])),c("ul",W,[(o(!0),n(u,null,m(ae.filterConditions,((e,a)=>(o(),n("li",{key:a},[c("span",X,v(a+1)+" ",1),p(" 选择 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"]),p(" 选择 关系 "),e.key?(o(),f(d(w),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,filterable:"",options:d(O),"onUpdate:value":e=>d(fe)(a,e)},null,8,["value","options","onUpdate:value"])):p("v-if",!0),p(" 自定义 "),e.key&&e.condition&&e.condition!==d(j).NULL?(o(),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"])):p("v-if",!0),s(d(x),{title:"删除",trigger:"hover"},{trigger:r((()=>[s(d(V),{onClick:e=>d(ye)(a),"class-name":"svg-icon-btn is-danger form-action","icon-class":"xitongtubiaoliebiaocaozuoanniushanchushixin"},null,8,["onClick"])])),default:r((()=>[C(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{Y as default};
|
|
@@ -258,8 +258,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
258
258
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
259
259
|
}>>;
|
|
260
260
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
261
|
-
valueCp: import("vue").WritableComputedRef<
|
|
262
|
-
presetValCp: import("vue").WritableComputedRef<
|
|
261
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
262
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
263
263
|
widgetType: import("vue").ComputedRef<any>;
|
|
264
264
|
optionSetting: import("vue").ComputedRef<any>;
|
|
265
265
|
mappingConfig: import("vue").ComputedRef<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,onBeforeUnmount as i,watch as t,openBlock as l,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as
|
|
1
|
+
import{defineComponent as e,ref as a,onBeforeUnmount as i,watch as t,openBlock as l,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as h}from"vue";import{NModal as p,NCard as f,NButton as m}from"naive-ui";import x from"../classify-filter/index.vue.js";import g from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import b from"../../../../../_virtual/plugin-vue_export-helper.js";const y={class:"svg-wrap"},_={class:"flex_right"};var w=b(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:b,emit:w}){const k=e,A=a(k.visible),C=a(!1),S=a("860px");let L=a({maxHeight:"496px",height:"496px",overflowY:"auto"}),H=a(null),j=null;function F(){T(),j=setTimeout((()=>{H&&H.value.handleInitConditions()}),30)}function T(){j&&clearTimeout(j)}function z(){H&&H.value.saveAdd()}function I(){A.value=!1,w("cancelSaveAdd"),S.value="860px",L.value={height:"496px",maxHeight:"496px",overflowY:"auto"},C.value=!1,H&&H.value.cancelSaveAdd()}function $(){C.value=!C.value;let e=document.body.clientHeight;"860px"===S.value?(S.value="100%",L.value.maxHeight=`${e}px`,L.value.height=`${e}px`):(S.value="860px",L.value.maxHeight="496px",L.value.height="")}return i((()=>{T()})),t((()=>k.visible),(e=>{A.value=e,e&&F()})),b({cancelSaveAdd:I}),(e,a)=>(l(),o(n(p),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":C.value}]),show:A.value,"onUpdate:show":a[0]||(a[0]=e=>A.value=e),maskClosable:!1,width:S.value,bodyStyle:n(L),closable:!1,centered:"",onPositiveClick:z,onNegativeClick:I},{default:d((()=>[s(n(f),{style:c({width:S.value,...n(L)}),title:k.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[r("div",y,[s(n(g),{onClick:$,"icon-class":C.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),s(n(g),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:I})])])),footer:d((()=>[r("div",_,[s(n(m),{onClick:I},{default:d((()=>[v("取消")])),_:1}),s(n(m),{type:"info",onClick:z},{default:d((()=>[v("保存")])),_:1})])])),default:d((()=>[s(x,h(e.$attrs,{ref_key:"conditionApiRef",ref:H,searchFieldList:k.searchFieldList,conditionList:k.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{w as default};
|