cnhis-design-vue 3.1.41-release.6 → 3.1.42-beta.0
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/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +293 -0
- package/es/components/base-search/index.js +1 -0
- package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -91
- package/es/components/base-search/src/index.vue.js +1 -0
- package/es/components/base-search/style/iconfont.ttf +0 -0
- package/es/components/base-search/style/index.css +1 -0
- package/es/components/big-table/index.d.ts +4 -3
- package/es/components/big-table/src/BigTable.vue.d.ts +4 -3
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +7 -6
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/api.d.ts +3 -0
- package/es/components/button-print/src/api.js +1 -0
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +995 -0
- package/es/components/classification/index.js +1 -0
- package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
- package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
- package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
- package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
- package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
- package/es/components/classification/src/const/index.d.ts +2 -0
- package/es/components/classification/src/const/index.js +1 -0
- package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
- package/es/components/classification/src/index.vue.js +1 -0
- package/es/components/classification/style/iconfont.ttf +0 -0
- package/es/components/classification/style/index.css +1 -0
- package/es/components/config-provider/index.d.ts +14 -0
- package/es/components/config-provider/index.js +1 -0
- package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
- package/es/components/config-provider/src/ConfigProvider.js +1 -0
- package/es/components/config-provider/src/interface.d.ts +19 -0
- package/es/components/config-provider/src/interface.js +1 -0
- package/es/components/config-provider/src/utils/index.d.ts +2 -0
- package/es/components/config-provider/src/utils/index.js +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/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- 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/hooks/useLeft.js +1 -1
- package/es/components/field-set/index.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/form-config/index.d.ts +46 -37
- package/es/components/form-config/src/FormConfig.vue.d.ts +46 -37
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +16 -16
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -19
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +16 -16
- package/es/components/form-render/src/FormRender.vue.d.ts +16 -16
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +16 -16
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +3 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +4 -4
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +18 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- 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/index.d.ts +8 -2
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +3799 -156
- package/es/components/info-header/src/InfoHeader.vue.d.ts +3800 -156
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
- package/es/components/info-header/src/constants/index.d.ts +4 -0
- package/es/components/info-header/src/constants/index.js +1 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +17 -3
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +4 -2
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -2
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.d.ts +2 -0
- package/es/components/keyboard/src/constants/index.js +1 -0
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/quick-search/index.d.ts +713 -0
- package/es/components/quick-search/index.js +1 -0
- package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
- package/es/components/quick-search/src/index.vue.js +1 -0
- package/es/components/quick-search/style/index.css +1 -0
- package/es/components/recommend-search/index.d.ts +2 -2
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
- package/es/components/search-cascader/index.d.ts +2 -2
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
- package/es/components/select-label/index.d.ts +70 -169
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/select-label/style/iconfont.ttf +0 -0
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +17 -17
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +17 -17
- package/es/components/steps-wheel/index.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
- package/es/components/steps-wheel/src/constants/index.js +1 -0
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/index.d.ts +0 -2385
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
- package/es/components/table-filter/src/components/render-widget/enums.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/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +13 -169
- 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/shared/mixins/index.d.ts +1 -0
- package/es/shared/mixins/index.js +1 -0
- package/es/shared/mixins/useTheme.d.ts +3 -0
- package/es/shared/mixins/useTheme.js +1 -0
- package/es/shared/utils/index.d.ts +1 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +64 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
- package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
- package/es/components/table-filter/src/const/index.d.ts +0 -5
- package/es/components/table-filter/src/const/index.js +0 -1
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
- package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
- package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
- package/es/components/table-filter/src/tool/time-domain.js +0 -1
- package/es/components/table-filter/src/tool/utils.d.ts +0 -4
- package/es/components/table-filter/src/tool/utils.js +0 -1
- package/es/components/table-filter/style/index.css +0 -1
- /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
- /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
- /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
- /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
- /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
- /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COMPONENT_NAMESPACE as i}from"../../shared/global/variable.js";import{safeComponentRegister as s}from"../../shared/utils/index.js";import o from"./src/index.vue.js";const r=o;r.install=function(o){s(o,r,i+"Classification")};export{r as default};
|
package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts
RENAMED
|
@@ -68,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
68
|
NButton: any;
|
|
69
69
|
SearchConditionByApi: import("vue").DefineComponent<{
|
|
70
70
|
actionList_prop: {
|
|
71
|
-
type: import("vue").PropType<import("
|
|
71
|
+
type: import("vue").PropType<import("../../../..").IClassifyListType>;
|
|
72
72
|
default: () => {};
|
|
73
73
|
};
|
|
74
74
|
conditionList: {
|
|
@@ -95,7 +95,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
$message: import("naive-ui").MessageApi;
|
|
96
96
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
97
97
|
actionList_prop: {
|
|
98
|
-
type: import("vue").PropType<import("
|
|
98
|
+
type: import("vue").PropType<import("../../../..").IClassifyListType>;
|
|
99
99
|
default: () => {};
|
|
100
100
|
};
|
|
101
101
|
conditionList: {
|
|
@@ -147,9 +147,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
147
147
|
showAdd: boolean;
|
|
148
148
|
};
|
|
149
149
|
isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
|
|
150
|
-
editDisplayCategory: (e: any, item: import("
|
|
151
|
-
handleDisplayCategorySelect: (item: import("
|
|
152
|
-
handleDisplayCategoryRemove: (index: number, item: import("
|
|
150
|
+
editDisplayCategory: (e: any, item: import("../../../..").ICategoryItemType) => void;
|
|
151
|
+
handleDisplayCategorySelect: (item: import("../../../..").ICategoryItemType) => void;
|
|
152
|
+
handleDisplayCategoryRemove: (index: number, item: import("../../../..").ICategoryItemType) => void;
|
|
153
153
|
handleDisplayCategoryAdd: (e: any) => void;
|
|
154
154
|
handlerBlur: () => void;
|
|
155
155
|
initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
|
|
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
160
|
updateKey: (index: number, val: any) => void;
|
|
161
161
|
updateCondition: (index: number, val: any) => void;
|
|
162
162
|
getParamCfg: (key: string) => any;
|
|
163
|
-
initFilterConditions: (tableId: string, rawConditions: import("
|
|
163
|
+
initFilterConditions: (tableId: string, rawConditions: import("../../../..").ISearchConfigType) => Promise<void>;
|
|
164
164
|
getRawFilterConditions: () => {
|
|
165
165
|
field_key: any;
|
|
166
166
|
con: any;
|
|
@@ -168,7 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
168
|
unit: any;
|
|
169
169
|
}[];
|
|
170
170
|
findConditionByDisplayCategory: (displayCategory: string) => unknown;
|
|
171
|
-
handleDisplayCategorySelectProxy: (item: import("
|
|
171
|
+
handleDisplayCategorySelectProxy: (item: import("../../../..").ICategoryItemType) => void;
|
|
172
172
|
clearFormData: () => void;
|
|
173
173
|
handleInitConditions: () => Promise<void>;
|
|
174
174
|
validate: () => Promise<unknown>;
|
|
@@ -184,48 +184,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
184
|
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<{}>>, {}>;
|
|
185
185
|
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<{}>>, {}>;
|
|
186
186
|
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<{}>>, {}>;
|
|
187
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
188
|
-
iconClass: {
|
|
189
|
-
type: StringConstructor;
|
|
190
|
-
required: true;
|
|
191
|
-
default: string;
|
|
192
|
-
};
|
|
193
|
-
title: {
|
|
194
|
-
type: StringConstructor;
|
|
195
|
-
required: false;
|
|
196
|
-
default: string;
|
|
197
|
-
};
|
|
198
|
-
className: {
|
|
199
|
-
type: StringConstructor;
|
|
200
|
-
required: false;
|
|
201
|
-
};
|
|
202
|
-
}, {
|
|
203
|
-
props: {
|
|
204
|
-
iconClass: string;
|
|
205
|
-
title: string;
|
|
206
|
-
className?: string | undefined;
|
|
207
|
-
};
|
|
208
|
-
iconName: import("vue").ComputedRef<string>;
|
|
209
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
210
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
211
|
-
iconClass: {
|
|
212
|
-
type: StringConstructor;
|
|
213
|
-
required: true;
|
|
214
|
-
default: string;
|
|
215
|
-
};
|
|
216
|
-
title: {
|
|
217
|
-
type: StringConstructor;
|
|
218
|
-
required: false;
|
|
219
|
-
default: string;
|
|
220
|
-
};
|
|
221
|
-
className: {
|
|
222
|
-
type: StringConstructor;
|
|
223
|
-
required: false;
|
|
224
|
-
};
|
|
225
|
-
}>>, {
|
|
226
|
-
title: string;
|
|
227
|
-
iconClass: string;
|
|
228
|
-
}>;
|
|
229
187
|
ValueCfg: import("vue").DefineComponent<{
|
|
230
188
|
paramCfg: {
|
|
231
189
|
type: ObjectConstructor;
|
|
@@ -277,6 +235,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
277
235
|
SELECT: string;
|
|
278
236
|
DATE: string;
|
|
279
237
|
DATE_TIME: string;
|
|
238
|
+
CHECKBOX_GROUP: string;
|
|
280
239
|
};
|
|
281
240
|
WidgetValEnums: {
|
|
282
241
|
CUSTOM: string;
|
|
@@ -347,7 +306,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
347
306
|
}[];
|
|
348
307
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
349
308
|
actionList_prop: {
|
|
350
|
-
type: import("vue").PropType<import("
|
|
309
|
+
type: import("vue").PropType<import("../../../..").IClassifyListType>;
|
|
351
310
|
default: () => {};
|
|
352
311
|
};
|
|
353
312
|
conditionList: {
|
|
@@ -377,52 +336,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
377
336
|
searchFieldList: unknown[];
|
|
378
337
|
tableId: string;
|
|
379
338
|
conditionList: unknown[];
|
|
380
|
-
actionList_prop: import("
|
|
339
|
+
actionList_prop: import("../../../..").IClassifyListType;
|
|
381
340
|
showItemName: boolean;
|
|
382
341
|
hideAddBtn: boolean;
|
|
383
342
|
}>;
|
|
384
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
385
|
-
iconClass: {
|
|
386
|
-
type: StringConstructor;
|
|
387
|
-
required: true;
|
|
388
|
-
default: string;
|
|
389
|
-
};
|
|
390
|
-
title: {
|
|
391
|
-
type: StringConstructor;
|
|
392
|
-
required: false;
|
|
393
|
-
default: string;
|
|
394
|
-
};
|
|
395
|
-
className: {
|
|
396
|
-
type: StringConstructor;
|
|
397
|
-
required: false;
|
|
398
|
-
};
|
|
399
|
-
}, {
|
|
400
|
-
props: {
|
|
401
|
-
iconClass: string;
|
|
402
|
-
title: string;
|
|
403
|
-
className?: string | undefined;
|
|
404
|
-
};
|
|
405
|
-
iconName: import("vue").ComputedRef<string>;
|
|
406
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
407
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
408
|
-
iconClass: {
|
|
409
|
-
type: StringConstructor;
|
|
410
|
-
required: true;
|
|
411
|
-
default: string;
|
|
412
|
-
};
|
|
413
|
-
title: {
|
|
414
|
-
type: StringConstructor;
|
|
415
|
-
required: false;
|
|
416
|
-
default: string;
|
|
417
|
-
};
|
|
418
|
-
className: {
|
|
419
|
-
type: StringConstructor;
|
|
420
|
-
required: false;
|
|
421
|
-
};
|
|
422
|
-
}>>, {
|
|
423
|
-
title: string;
|
|
424
|
-
iconClass: string;
|
|
425
|
-
}>;
|
|
426
343
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancelSaveAdd"[], "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
427
344
|
visible: {
|
|
428
345
|
type: BooleanConstructor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as i,onBeforeUnmount as t,watch as l,openBlock as a,createBlock as o,unref as n,normalizeClass as u,withCtx as s,createVNode as d,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as f}from"vue";import{NModal as h,NCard as p,NButton as m}from"naive-ui";import x from"../../../../table-filter/src/components/classify-filter/index.vue.js";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const b={class:"svg-wrap"},y={class:"flex_right"};var _=g(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:g,emit:_}){const w=e,k=i(w.visible),z=i(!1),A=i("860px");let C=i({maxHeight:"496px",height:"496px",overflowY:"auto"}),L=i(null),S=null;function H(){F(),S=setTimeout((()=>{L&&L.value.handleInitConditions()}),30)}function F(){S&&clearTimeout(S)}function T(){L&&L.value.saveAdd()}function j(){k.value=!1,_("cancelSaveAdd"),A.value="860px",C.value={height:"496px",maxHeight:"496px",overflowY:"auto"},z.value=!1,L&&L.value.cancelSaveAdd()}function $(){z.value=!z.value;let e=document.body.clientHeight;"860px"===A.value?(A.value="100%",C.value.maxHeight=`${e}px`,C.value.height=`${e}px`):(A.value="860px",C.value.maxHeight="496px",C.value.height="")}return t((()=>{F()})),l((()=>w.visible),(e=>{k.value=e,e&&H()})),g({cancelSaveAdd:j}),(e,i)=>(a(),o(n(h),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":z.value}]),show:k.value,"onUpdate:show":i[0]||(i[0]=e=>k.value=e),maskClosable:!1,width:A.value,bodyStyle:n(C),closable:!1,centered:"",onPositiveClick:T,onNegativeClick:j},{default:s((()=>[d(n(p),{style:c({width:A.value,...n(C)}),title:w.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":s((()=>[r("div",b,[r("i",{onClick:$,class:u(["iconfont-table-filter",z.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),r("i",{onClick:j,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:s((()=>[r("div",y,[d(n(m),{onClick:j},{default:s((()=>[v("取消")])),_:1}),d(n(m),{type:"info",onClick:T},{default:s((()=>[v("保存")])),_:1})])])),default:s((()=>[d(x,f(e.$attrs,{ref_key:"conditionApiRef",ref:L,searchFieldList:w.searchFieldList,conditionList:w.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{_ as default};
|
|
@@ -37,11 +37,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
|
-
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
41
40
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
42
41
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
43
43
|
}>>;
|
|
44
|
-
emit: (event: "
|
|
44
|
+
emit: (event: "CondiTionListInit" | "saveGetTableCondiTionList" | "setClassifyModal", ...args: any[]) => void;
|
|
45
45
|
$message: import("naive-ui").MessageApi;
|
|
46
46
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
47
47
|
conditionList: import("vue").Ref<unknown[]>;
|
|
@@ -194,48 +194,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
194
194
|
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<{}>>, {}>;
|
|
195
195
|
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<{}>>, {}>;
|
|
196
196
|
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<{}>>, {}>;
|
|
197
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
198
|
-
iconClass: {
|
|
199
|
-
type: StringConstructor;
|
|
200
|
-
required: true;
|
|
201
|
-
default: string;
|
|
202
|
-
};
|
|
203
|
-
title: {
|
|
204
|
-
type: StringConstructor;
|
|
205
|
-
required: false;
|
|
206
|
-
default: string;
|
|
207
|
-
};
|
|
208
|
-
className: {
|
|
209
|
-
type: StringConstructor;
|
|
210
|
-
required: false;
|
|
211
|
-
};
|
|
212
|
-
}, {
|
|
213
|
-
props: {
|
|
214
|
-
iconClass: string;
|
|
215
|
-
title: string;
|
|
216
|
-
className?: string | undefined;
|
|
217
|
-
};
|
|
218
|
-
iconName: import("vue").ComputedRef<string>;
|
|
219
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
220
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
221
|
-
iconClass: {
|
|
222
|
-
type: StringConstructor;
|
|
223
|
-
required: true;
|
|
224
|
-
default: string;
|
|
225
|
-
};
|
|
226
|
-
title: {
|
|
227
|
-
type: StringConstructor;
|
|
228
|
-
required: false;
|
|
229
|
-
default: string;
|
|
230
|
-
};
|
|
231
|
-
className: {
|
|
232
|
-
type: StringConstructor;
|
|
233
|
-
required: false;
|
|
234
|
-
};
|
|
235
|
-
}>>, {
|
|
236
|
-
title: string;
|
|
237
|
-
iconClass: string;
|
|
238
|
-
}>;
|
|
239
197
|
Draggable: import("vue").DefineComponent<{
|
|
240
198
|
list: {
|
|
241
199
|
type: ArrayConstructor;
|
|
@@ -543,48 +501,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
543
501
|
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<{}>>, {}>;
|
|
544
502
|
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<{}>>, {}>;
|
|
545
503
|
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<{}>>, {}>;
|
|
546
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
547
|
-
iconClass: {
|
|
548
|
-
type: StringConstructor;
|
|
549
|
-
required: true;
|
|
550
|
-
default: string;
|
|
551
|
-
};
|
|
552
|
-
title: {
|
|
553
|
-
type: StringConstructor;
|
|
554
|
-
required: false;
|
|
555
|
-
default: string;
|
|
556
|
-
};
|
|
557
|
-
className: {
|
|
558
|
-
type: StringConstructor;
|
|
559
|
-
required: false;
|
|
560
|
-
};
|
|
561
|
-
}, {
|
|
562
|
-
props: {
|
|
563
|
-
iconClass: string;
|
|
564
|
-
title: string;
|
|
565
|
-
className?: string | undefined;
|
|
566
|
-
};
|
|
567
|
-
iconName: import("vue").ComputedRef<string>;
|
|
568
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
569
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
570
|
-
iconClass: {
|
|
571
|
-
type: StringConstructor;
|
|
572
|
-
required: true;
|
|
573
|
-
default: string;
|
|
574
|
-
};
|
|
575
|
-
title: {
|
|
576
|
-
type: StringConstructor;
|
|
577
|
-
required: false;
|
|
578
|
-
default: string;
|
|
579
|
-
};
|
|
580
|
-
className: {
|
|
581
|
-
type: StringConstructor;
|
|
582
|
-
required: false;
|
|
583
|
-
};
|
|
584
|
-
}>>, {
|
|
585
|
-
title: string;
|
|
586
|
-
iconClass: string;
|
|
587
|
-
}>;
|
|
588
504
|
ValueCfg: import("vue").DefineComponent<{
|
|
589
505
|
paramCfg: {
|
|
590
506
|
type: ObjectConstructor;
|
|
@@ -636,6 +552,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
636
552
|
SELECT: string;
|
|
637
553
|
DATE: string;
|
|
638
554
|
DATE_TIME: string;
|
|
555
|
+
CHECKBOX_GROUP: string;
|
|
639
556
|
};
|
|
640
557
|
WidgetValEnums: {
|
|
641
558
|
CUSTOM: string;
|
|
@@ -740,48 +657,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
740
657
|
showItemName: boolean;
|
|
741
658
|
hideAddBtn: boolean;
|
|
742
659
|
}>;
|
|
743
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
744
|
-
iconClass: {
|
|
745
|
-
type: StringConstructor;
|
|
746
|
-
required: true;
|
|
747
|
-
default: string;
|
|
748
|
-
};
|
|
749
|
-
title: {
|
|
750
|
-
type: StringConstructor;
|
|
751
|
-
required: false;
|
|
752
|
-
default: string;
|
|
753
|
-
};
|
|
754
|
-
className: {
|
|
755
|
-
type: StringConstructor;
|
|
756
|
-
required: false;
|
|
757
|
-
};
|
|
758
|
-
}, {
|
|
759
|
-
props: {
|
|
760
|
-
iconClass: string;
|
|
761
|
-
title: string;
|
|
762
|
-
className?: string | undefined;
|
|
763
|
-
};
|
|
764
|
-
iconName: import("vue").ComputedRef<string>;
|
|
765
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
766
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
767
|
-
iconClass: {
|
|
768
|
-
type: StringConstructor;
|
|
769
|
-
required: true;
|
|
770
|
-
default: string;
|
|
771
|
-
};
|
|
772
|
-
title: {
|
|
773
|
-
type: StringConstructor;
|
|
774
|
-
required: false;
|
|
775
|
-
default: string;
|
|
776
|
-
};
|
|
777
|
-
className: {
|
|
778
|
-
type: StringConstructor;
|
|
779
|
-
required: false;
|
|
780
|
-
};
|
|
781
|
-
}>>, {
|
|
782
|
-
title: string;
|
|
783
|
-
iconClass: string;
|
|
784
|
-
}>;
|
|
785
660
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancelSaveAdd"[], "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
786
661
|
visible: {
|
|
787
662
|
type: BooleanConstructor;
|
|
@@ -812,7 +687,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
812
687
|
filterApiConfig: Record<string, any>;
|
|
813
688
|
conditionList: unknown[];
|
|
814
689
|
}>;
|
|
815
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
690
|
+
}, 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<{
|
|
816
691
|
searchFieldList: {
|
|
817
692
|
type: ArrayConstructor;
|
|
818
693
|
default: () => never[];
|
|
@@ -831,9 +706,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
831
706
|
default: boolean;
|
|
832
707
|
};
|
|
833
708
|
}>> & {
|
|
834
|
-
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
835
709
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
836
710
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
711
|
+
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
837
712
|
}, {
|
|
838
713
|
searchFieldList: unknown[];
|
|
839
714
|
filterApiConfig: Record<string, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),o((()=>T),(e=>{e||(S.value={})})),(i,t)=>(a(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
|
package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts
RENAMED
|
@@ -126,48 +126,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
126
|
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<{}>>, {}>;
|
|
127
127
|
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<{}>>, {}>;
|
|
128
128
|
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<{}>>, {}>;
|
|
129
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
130
|
-
iconClass: {
|
|
131
|
-
type: StringConstructor;
|
|
132
|
-
required: true;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
135
|
-
title: {
|
|
136
|
-
type: StringConstructor;
|
|
137
|
-
required: false;
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
className: {
|
|
141
|
-
type: StringConstructor;
|
|
142
|
-
required: false;
|
|
143
|
-
};
|
|
144
|
-
}, {
|
|
145
|
-
props: {
|
|
146
|
-
iconClass: string;
|
|
147
|
-
title: string;
|
|
148
|
-
className?: string | undefined;
|
|
149
|
-
};
|
|
150
|
-
iconName: import("vue").ComputedRef<string>;
|
|
151
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
152
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
153
|
-
iconClass: {
|
|
154
|
-
type: StringConstructor;
|
|
155
|
-
required: true;
|
|
156
|
-
default: string;
|
|
157
|
-
};
|
|
158
|
-
title: {
|
|
159
|
-
type: StringConstructor;
|
|
160
|
-
required: false;
|
|
161
|
-
default: string;
|
|
162
|
-
};
|
|
163
|
-
className: {
|
|
164
|
-
type: StringConstructor;
|
|
165
|
-
required: false;
|
|
166
|
-
};
|
|
167
|
-
}>>, {
|
|
168
|
-
title: string;
|
|
169
|
-
iconClass: string;
|
|
170
|
-
}>;
|
|
171
129
|
Draggable: import("vue").DefineComponent<{
|
|
172
130
|
list: {
|
|
173
131
|
type: ArrayConstructor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as n,watch as a,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as z,NModal as S,NCard as _,NTooltip as D,NIcon as E,NSwitch as M,NPopconfirm as P,NButton as I}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import B from"axios";import j from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"svg-wrap"},H={class:"flex_between"},R={key:0},$={class:"table-modal-list"},J={class:"list-title"},T=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),Y=v("span",{class:"list-title-item"}," 名称 ",-1),q=v("span",{class:"list-title-item"}," 父类名称 ",-1),G=v("span",{class:"list-title-item"}," 是否显示 ",-1),K=v("span",{class:"list-title-item"}," 设置为默认 ",-1),L={class:"list-title-item"},Q=v("span",{class:"list-title-item"}," 操作 ",-1),W=["onClick"],X={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},Z=["title"],ee=["title"],te={class:"list-content-item list-content-switch"},ie={class:"list-content-item list-content-radio"},le={class:"list-content-item"},ne={class:"list-content-item"},ae={key:0},oe=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),se={key:1},re=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ue=j(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>{}},copy:{type:Function,defdault:()=>{}},delItem:{type:Function,defdault:()=>{}},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:j}){const ue=e,ce=B.create({}),de=t(),pe=b(),me=z(),ve=i((()=>(null==de?void 0:de.isOrgAdmin)||!1)),he=l(ue.dataSource),fe=l(ue.visibleIn),ge=l(!1),ye=l("other"==ue.type?"100%":"860px"),Ce=l("654px"),we=n(F);function ke(){ue.type&&(ze(),j("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(he.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return he.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ue.type)))}function xe(){be()}function be(){fe.value=!1,ze(),j("close")}function ze(){ye.value="860px",Ce.value="654px",ge.value=!1}function Se(){j("changeData",he.value)}function _e(){ge.value=!ge.value;let e=document.body.clientHeight;ye.value="860px"===ye.value?"100%":"860px",Ce.value="654px"===Ce.value?`${e}px`:"654px"}function De(e){j("resetPopconfirm",e)}function Ee(e,t,i){const l=ue[e];l&&l(t,i)}return a((()=>ue.visibleIn),(e=>{fe.value=e})),a((()=>ue.dataSource),(e=>{he.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(S),{show:fe.value,bodyStyle:{height:Ce.value,overflowY:"auto"},width:ye.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ge.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:ke,onNegativeClick:be},{default:c((()=>[d(r(_),{style:p({width:ye.value,height:Ce.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",A,[v("i",{onClick:_e,class:u(["iconfont-table-filter",ge.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),v("i",{onClick:be,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[r(ve)&&"mananger"==e.type?(o(),h("p",R,[v("span",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",$,[v("div",J,[T,Y,q,G,K,g(v("span",L," 设置公共首页 ",512),[[y,r(ve)&&"mananger"==e.type]]),Q]),d(r(O),{class:"list-content",tag:"ul",list:he.value,"item-key":"sid",onEnd:Se,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,he.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void j("changeData",he.value,i);var i}},[v("span",X,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(E),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,Z),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,ee),v("span",te,[d(r(M),{"onUpdate:value":e=>{return i=t,void he.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",ie,[d(r(M),{"onUpdate:value":e=>{var i;(i=t).isShow&&he.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",le,[d(r(M),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}me.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};ce({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(pe.success(t.data.resultMsg),e.isCommon=!e.isCommon,j("finishSubmit")):pe.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(ve)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(ve)?(o(),h("span",ae,[d(r(P),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(E),null,{default:c((()=>[oe])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(ve)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",se,[d(r(P),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(E),null,{default:c((()=>[re])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,W),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",H,[v("div",null,[r(we)?(o(),s(r(P),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:De},{trigger:c((()=>[d(r(I),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(I),{onClick:be},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(I),{type:"info",onClick:ke},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ue as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=Symbol("root_isShowResetButton");export{o as root_isShowResetButton};
|