cnhis-design-vue 3.1.51-beta.0 → 3.1.51-beta.10
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/base-search/index.d.ts +0 -1
- package/es/components/base-search/src/index.vue.d.ts +0 -1
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/callback/index.d.ts +69 -0
- package/es/components/callback/index.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
- package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
- package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
- package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
- package/es/components/callback/src/components/popup/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
- package/es/components/callback/src/components/render/enums.d.ts +5 -0
- package/es/components/callback/src/components/render/enums.js +1 -0
- package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
- package/es/components/callback/src/components/render/index.vue.js +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +5700 -0
- package/es/components/callback/src/components/render/popupMaps.js +1 -0
- package/es/components/callback/src/index.vue.d.ts +68 -0
- package/es/components/callback/src/index.vue.js +1 -0
- package/es/components/callback/src/index.vue2.js +1 -0
- package/es/components/callback/src/types/index.d.ts +11 -0
- package/es/components/callback/style/callback-iconfont.ttf +0 -0
- package/es/components/callback/style/index.css +1 -0
- package/es/components/classification/index.d.ts +57 -15
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +57 -15
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +57 -15
- package/es/components/classification/src/index.vue.d.ts +57 -15
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/expand-field/index.d.ts +0 -13
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +79 -2
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +10 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +16 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +28 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +4 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +7 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +4 -3
- package/es/components/index.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
- package/es/components/select-label/index.d.ts +617 -256
- package/es/components/select-label/index.js +1 -1
- package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
- package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
- package/es/components/{iho-select-label/src/components/label-classify.vue.d.ts → select-label/src/ihoLabel/iho-label-classify.vue.d.ts} +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
- package/es/components/select-label/src/index.vue.d.ts +899 -0
- package/es/components/select-label/src/index.vue.js +1 -0
- package/es/components/select-label/src/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +52 -7
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +34 -2
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -6
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +57 -15
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -6
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +11 -2
- package/es/shared/directive/flexibleResize.d.ts +4 -0
- package/es/{components/classification/src → shared}/directive/flexibleResize.js +1 -1
- package/es/shared/directive/index.d.ts +1 -0
- package/es/shared/directive/index.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +7 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/classification/src/directive/flexibleResize.d.ts +0 -28
- package/es/components/iho-select-label/index.d.ts +0 -363
- package/es/components/iho-select-label/index.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
- package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
- package/es/components/iho-select-label/style/index.css +0 -1
- package/es/components/table-filter/src/types/tool.d.ts +0 -7
- /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
- /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
- /package/es/components/{table-filter/src/types/tool.js → select-label/src/types/index.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,openBlock as t,createBlock as l,createCommentVNode as s}from"vue";import i from"./SelectLabel.vue.js";import a from"./ihoLabel/IhoSelectLabel.vue.js";var o=e({__name:"index",props:{type:{type:String,default:"1"},categoryList:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},selectedListObj:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isDetail:{type:Boolean,default:!1},isLock:{type:Boolean,default:!1},sourceType:{type:String,default:""},explicit:{type:Boolean,default:!1},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},queryCommonlabels:{type:Function,default:()=>Promise.resolve({data:{}})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})}},emits:["onChange"],setup(e,{emit:o}){function c(e){o("onChange",e)}return(o,r)=>"1"==e.type?(t(),l(i,{key:0,selectedList:e.selectedList,selectedListObj:e.selectedListObj,item:e.item,isDetail:e.isDetail,isLock:e.isLock,sourceType:e.sourceType,explicit:e.explicit,getLabelList:e.getLabelList,queryCommonlabels:e.queryCommonlabels,deleteLabel:e.deleteLabel,saveLabelItem:e.saveLabelItem,onOnChange:c},null,8,["selectedList","selectedListObj","item","isDetail","isLock","sourceType","explicit","getLabelList","queryCommonlabels","deleteLabel","saveLabelItem"])):"2"==e.type?(t(),l(a,{key:1,categoryList:e.categoryList,selectedList:e.selectedList,explicit:e.explicit,onOnChange:c},null,8,["categoryList","selectedList","explicit"])):s("v-if",!0)}});export{o as default};
|
|
@@ -11,6 +11,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: null;
|
|
13
13
|
};
|
|
14
|
+
isAccurate: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
14
17
|
}, {
|
|
15
18
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
19
|
paramCfg: {
|
|
@@ -25,13 +28,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
28
|
type: StringConstructor;
|
|
26
29
|
default: null;
|
|
27
30
|
};
|
|
31
|
+
isAccurate: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
};
|
|
28
34
|
}>> & {
|
|
29
35
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
30
37
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
31
38
|
}>>;
|
|
32
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
39
|
+
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
|
|
33
40
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
34
41
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
42
|
+
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
35
43
|
widgetType: import("vue").ComputedRef<any>;
|
|
36
44
|
Date: import("vue").DefineComponent<{
|
|
37
45
|
componentCfg: {
|
|
@@ -181,35 +189,67 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
181
189
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
182
190
|
}, {
|
|
183
191
|
modelValue: string | number | unknown[];
|
|
184
|
-
presetVal: string;
|
|
185
192
|
paramCfg: Record<string, any>;
|
|
193
|
+
presetVal: string;
|
|
186
194
|
}>;
|
|
187
195
|
InputFilter: import("vue").DefineComponent<{
|
|
196
|
+
paramCfg: {
|
|
197
|
+
type: ObjectConstructor;
|
|
198
|
+
default: null;
|
|
199
|
+
};
|
|
188
200
|
modelValue: {
|
|
189
201
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
190
202
|
default: null;
|
|
191
203
|
};
|
|
204
|
+
isAccurateFilter: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
};
|
|
192
207
|
}, {
|
|
193
208
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
209
|
+
paramCfg: {
|
|
210
|
+
type: ObjectConstructor;
|
|
211
|
+
default: null;
|
|
212
|
+
};
|
|
194
213
|
modelValue: {
|
|
195
214
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
196
215
|
default: null;
|
|
197
216
|
};
|
|
217
|
+
isAccurateFilter: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
};
|
|
198
220
|
}>> & {
|
|
199
221
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
222
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
200
223
|
}>>;
|
|
201
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
224
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
225
|
+
optionList: import("vue").Ref<{
|
|
226
|
+
label: string;
|
|
227
|
+
value: number;
|
|
228
|
+
}[]>;
|
|
202
229
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
230
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
231
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
203
232
|
NInput: any;
|
|
204
|
-
|
|
233
|
+
NSelect: any;
|
|
234
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
235
|
+
paramCfg: {
|
|
236
|
+
type: ObjectConstructor;
|
|
237
|
+
default: null;
|
|
238
|
+
};
|
|
205
239
|
modelValue: {
|
|
206
240
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
207
241
|
default: null;
|
|
208
242
|
};
|
|
243
|
+
isAccurateFilter: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
};
|
|
209
246
|
}>> & {
|
|
210
247
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
248
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
211
249
|
}, {
|
|
212
250
|
modelValue: string | number | unknown[];
|
|
251
|
+
paramCfg: Record<string, any>;
|
|
252
|
+
isAccurateFilter: boolean;
|
|
213
253
|
}>;
|
|
214
254
|
InputNumber: import("vue").DefineComponent<{
|
|
215
255
|
modelValue: {
|
|
@@ -738,8 +778,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
738
778
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
739
779
|
}, {
|
|
740
780
|
modelValue: string | number | unknown[];
|
|
741
|
-
presetVal: string;
|
|
742
781
|
paramCfg: Record<string, any>;
|
|
782
|
+
presetVal: string;
|
|
743
783
|
}>;
|
|
744
784
|
SelectLabel: import("vue").DefineComponent<{
|
|
745
785
|
paramCfg: {
|
|
@@ -805,7 +845,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
805
845
|
SELECTLABEL: string;
|
|
806
846
|
SELECTDYNAMIC: string;
|
|
807
847
|
};
|
|
808
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
848
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
809
849
|
paramCfg: {
|
|
810
850
|
type: ObjectConstructor;
|
|
811
851
|
default: null;
|
|
@@ -818,12 +858,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
818
858
|
type: StringConstructor;
|
|
819
859
|
default: null;
|
|
820
860
|
};
|
|
861
|
+
isAccurate: {
|
|
862
|
+
type: BooleanConstructor;
|
|
863
|
+
};
|
|
821
864
|
}>> & {
|
|
822
865
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
866
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
823
867
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
824
868
|
}, {
|
|
825
869
|
modelValue: string | number | unknown[];
|
|
826
|
-
presetVal: string;
|
|
827
870
|
paramCfg: Record<string, any>;
|
|
871
|
+
presetVal: string;
|
|
872
|
+
isAccurate: boolean;
|
|
828
873
|
}>;
|
|
829
874
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as
|
|
1
|
+
import{defineComponent as e,computed as a,openBlock as l,createElementBlock as u,createCommentVNode as p,unref as t,createBlock as r,isRef as m}from"vue";import{InputNumber as d,InputFilter as o,SelectFilter as n,Date as f,SelectDynamic as V,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as i}from"../../types/enums.js";const v={class:"value-cfg_wrapper"};var c=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null},isAccurate:{type:Boolean}},emits:["update:modelValue","update:presetVal","update:isAccurate"],setup(e,{emit:c}){const E=e,y=a({set(e){c("update:modelValue",e)},get:()=>E.modelValue}),A=a({set(e){c("update:presetVal",e)},get:()=>E.presetVal}),U=a({set(e){c("update:isAccurate",e)},get:()=>E.isAccurate}),N=a((()=>{var e;return null==(e=E.paramCfg)?void 0:e.type}));return(a,c)=>(l(),u("div",v,[p(" 数字框 "),t(N)===t(i).INPUT_NUMBER?(l(),r(t(d),{key:0,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[0]||(c[0]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 文本框 "),t(N)===t(i).INPUT?(l(),r(t(o),{key:1,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[1]||(c[1]=e=>m(y)?y.value=e:null),isAccurateFilter:t(U),"onUpdate:isAccurateFilter":c[2]||(c[2]=e=>m(U)?U.value=e:null)},null,8,["paramCfg","modelValue","isAccurateFilter"])):p("v-if",!0),p(" 普通下拉框 "),t(N)===t(i).SELECT?(l(),r(t(n),{key:2,paramCfg:e.paramCfg,widgetType:t(N),modelValue:t(y),"onUpdate:modelValue":c[3]||(c[3]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),t(N)===t(i).DATE||t(N)===t(i).DATE_TIME?(l(),r(t(f),{key:3,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[4]||(c[4]=e=>m(y)?y.value=e:null),presetVal:t(A),"onUpdate:presetVal":c[5]||(c[5]=e=>m(A)?A.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),t(N)===t(i).SELECTDYNAMIC?(l(),r(t(V),{key:4,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[6]||(c[6]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),t(N)===t(i).INPUTNUMBER_RANGE?(l(),r(t(g),{key:5,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[7]||(c[7]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),t(N)===t(i).DATE_RANGE_INNER||t(N)===t(i).DATETIME_RANGE_INNER?(l(),r(t(s),{key:6,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[8]||(c[8]=e=>m(y)?y.value=e:null),presetVal:t(A),"onUpdate:presetVal":c[9]||(c[9]=e=>m(A)?A.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),t(N)===t(i).SELECTLABEL?(l(),r(t(C),{key:7,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[10]||(c[10]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{c as default};
|
|
@@ -146,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
modelValue: string | number | unknown[];
|
|
149
|
-
presetVal: string;
|
|
150
149
|
paramCfg: Record<string, any>;
|
|
150
|
+
presetVal: string;
|
|
151
151
|
}>;
|
|
152
152
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
155
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
modelValue: string | number | unknown[];
|
|
158
|
-
presetVal: string;
|
|
159
158
|
paramCfg: Record<string, any>;
|
|
159
|
+
presetVal: string;
|
|
160
160
|
}>;
|
|
161
161
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts
CHANGED
|
@@ -1,28 +1,60 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
paramCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
2
6
|
modelValue: {
|
|
3
7
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
4
8
|
default: null;
|
|
5
9
|
};
|
|
10
|
+
isAccurateFilter: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
};
|
|
6
13
|
}, {
|
|
7
14
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
paramCfg: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
8
19
|
modelValue: {
|
|
9
20
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
10
21
|
default: null;
|
|
11
22
|
};
|
|
23
|
+
isAccurateFilter: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
12
26
|
}>> & {
|
|
13
27
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
14
29
|
}>>;
|
|
15
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
30
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
31
|
+
optionList: import("vue").Ref<{
|
|
32
|
+
label: string;
|
|
33
|
+
value: number;
|
|
34
|
+
}[]>;
|
|
16
35
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
36
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
37
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
17
38
|
NInput: any;
|
|
18
|
-
|
|
39
|
+
NSelect: any;
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
paramCfg: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
19
45
|
modelValue: {
|
|
20
46
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
21
47
|
default: null;
|
|
22
48
|
};
|
|
49
|
+
isAccurateFilter: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
};
|
|
23
52
|
}>> & {
|
|
24
53
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
25
55
|
}, {
|
|
26
56
|
modelValue: string | number | unknown[];
|
|
57
|
+
paramCfg: Record<string, any>;
|
|
58
|
+
isAccurateFilter: boolean;
|
|
27
59
|
}>;
|
|
28
60
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
1
|
+
import{defineComponent as e,ref as l,computed as a,openBlock as t,createElementBlock as u,unref as r,createBlock as i,isRef as n,createCommentVNode as o,createVNode as p}from"vue";import{NSelect as s,NInput as d}from"naive-ui";const c={style:{display:"flex","align-items":"center"}};var v=e({__name:"InputFilter",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},isAccurateFilter:{type:Boolean}},emits:["update:modelValue","update:isAccurateFilter"],setup(e,{emit:v}){const m=e,f=l([{label:"精确查询",value:1},{label:"模糊查询",value:0}]),y=a({set(e){v("update:modelValue",e)},get:()=>m.modelValue}),b=a({set(e){v("update:isAccurateFilter",!!e)},get:()=>m.isAccurateFilter?1:0}),g=a((()=>{var e,l,a;return(null==(e=m.paramCfg._rawData)?void 0:e.filterExplicit)&&(null==(a=null==(l=m.paramCfg._rawData)?void 0:l.accurateSearch)?void 0:a.switchEnable)}));return(e,l)=>(t(),u("div",c,[r(g)?(t(),i(r(s),{key:0,class:"form-item",to:"body",clearable:"",style:{width:"120px"},value:r(b),"onUpdate:value":l[0]||(l[0]=e=>n(b)?b.value=e:null),options:f.value},null,8,["value","options"])):o("v-if",!0),p(r(d),{style:{width:"160px"},value:r(y),"onUpdate:value":l[1]||(l[1]=e=>n(y)?y.value=e:null),maxlength:"255",clearable:""},null,8,["value"])]))}});export{v as default};
|
|
@@ -146,35 +146,67 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
146
146
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
modelValue: string | number | unknown[];
|
|
149
|
-
presetVal: string;
|
|
150
149
|
paramCfg: Record<string, any>;
|
|
150
|
+
presetVal: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const InputFilter: import("vue").DefineComponent<{
|
|
153
|
+
paramCfg: {
|
|
154
|
+
type: ObjectConstructor;
|
|
155
|
+
default: null;
|
|
156
|
+
};
|
|
153
157
|
modelValue: {
|
|
154
158
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
155
159
|
default: null;
|
|
156
160
|
};
|
|
161
|
+
isAccurateFilter: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
};
|
|
157
164
|
}, {
|
|
158
165
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
166
|
+
paramCfg: {
|
|
167
|
+
type: ObjectConstructor;
|
|
168
|
+
default: null;
|
|
169
|
+
};
|
|
159
170
|
modelValue: {
|
|
160
171
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
161
172
|
default: null;
|
|
162
173
|
};
|
|
174
|
+
isAccurateFilter: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
};
|
|
163
177
|
}>> & {
|
|
164
178
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
165
180
|
}>>;
|
|
166
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
181
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
182
|
+
optionList: import("vue").Ref<{
|
|
183
|
+
label: string;
|
|
184
|
+
value: number;
|
|
185
|
+
}[]>;
|
|
167
186
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
187
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
188
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
168
189
|
NInput: any;
|
|
169
|
-
|
|
190
|
+
NSelect: any;
|
|
191
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
192
|
+
paramCfg: {
|
|
193
|
+
type: ObjectConstructor;
|
|
194
|
+
default: null;
|
|
195
|
+
};
|
|
170
196
|
modelValue: {
|
|
171
197
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
172
198
|
default: null;
|
|
173
199
|
};
|
|
200
|
+
isAccurateFilter: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
};
|
|
174
203
|
}>> & {
|
|
175
204
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
205
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
176
206
|
}, {
|
|
177
207
|
modelValue: string | number | unknown[];
|
|
208
|
+
paramCfg: Record<string, any>;
|
|
209
|
+
isAccurateFilter: boolean;
|
|
178
210
|
}>;
|
|
179
211
|
declare const InputNumber: import("vue").DefineComponent<{
|
|
180
212
|
modelValue: {
|
|
@@ -703,8 +735,8 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
703
735
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
704
736
|
}, {
|
|
705
737
|
modelValue: string | number | unknown[];
|
|
706
|
-
presetVal: string;
|
|
707
738
|
paramCfg: Record<string, any>;
|
|
739
|
+
presetVal: string;
|
|
708
740
|
}>;
|
|
709
741
|
declare const SelectLabel: import("vue").DefineComponent<{
|
|
710
742
|
paramCfg: {
|
package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts
CHANGED
|
@@ -9,10 +9,5 @@ export declare const useFilterConditions: (filterConditions: Ref, selectList: an
|
|
|
9
9
|
updateCondition: (index: number, val: any) => void;
|
|
10
10
|
getParamCfg: (key: string) => any;
|
|
11
11
|
initFilterConditions: (tableId: string, rawConditions: ISearchConfigType) => Promise<void>;
|
|
12
|
-
getRawFilterConditions: () =>
|
|
13
|
-
field_key: any;
|
|
14
|
-
con: any;
|
|
15
|
-
value: any;
|
|
16
|
-
unit: any;
|
|
17
|
-
}[];
|
|
12
|
+
getRawFilterConditions: () => any[];
|
|
18
13
|
};
|
package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as
|
|
1
|
+
import{reactive as a,computed as t,toRaw as e,unref as n}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as i}from"../../../types/enums.js";import{transformConditions as r,transformRawConditions as u,transformDataToFront as c}from"../../../tool/transformData.js";const s=(s,p,d)=>{const m=a({params:[]}),v=t((()=>m.params.map((({p_name:a,title:t})=>({label:t||a,value:a}))))),y=a=>m.params.find((t=>t.p_name===a)),C=(a,t)=>{const e=s.value[a];e&&(e.condition=t,(a=>{var t,e,n,l;const o=y(a.key);(null==(e=null==(t=o._rawData)?void 0:t.accurateSearch)?void 0:e.switchEnable)&&(a.isAccurateSearch=!0,a.accurateSearchKey=null==(l=null==(n=o._rawData)?void 0:n.accurateSearch)?void 0:l.searchKey)})(e),(a=>{const t=y(a.key);a.value=(null==t?void 0:t.type)!==o.SELECT&&(null==t?void 0:t.type)!==o.SELECTDYNAMIC||(null==t?void 0:t.optionSetting)!==i.MULTIPLE?null:[],a.timeVal=null})(e))};return{State:m,paramOptions:v,addFilterCondition:()=>{s.value.push({key:null,condition:null,value:null,presetVal:null})},delFilterCondition:a=>{s.value.splice(a,1)},updateKey:(a,t)=>{const e=s.value[a];e&&(e.key=t,C(a,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(a,t)=>{const n=await(async a=>{try{return c(d,p)}catch(a){return[]}})();m.params=n,s.value=r(t,e(m.params))},getRawFilterConditions:()=>u(n(s))}};export{s as useFilterConditions};
|
|
@@ -67,10 +67,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
className: string;
|
|
68
68
|
displayCategory: string;
|
|
69
69
|
filterConditions: {
|
|
70
|
-
value: string;
|
|
71
|
-
key: string;
|
|
72
70
|
condition: string;
|
|
71
|
+
key: string;
|
|
73
72
|
presetVal: string;
|
|
73
|
+
value: string;
|
|
74
|
+
isAccurateSearch?: boolean | undefined;
|
|
75
|
+
accurateSearchKey?: string | undefined;
|
|
74
76
|
}[];
|
|
75
77
|
};
|
|
76
78
|
loading: import("vue").Ref<boolean>;
|
|
@@ -98,12 +100,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
100
|
updateCondition: (index: number, val: any) => void;
|
|
99
101
|
getParamCfg: (key: string) => any;
|
|
100
102
|
initFilterConditions: (tableId: string, rawConditions: import("../../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
|
|
101
|
-
getRawFilterConditions: () =>
|
|
102
|
-
field_key: any;
|
|
103
|
-
con: any;
|
|
104
|
-
value: any;
|
|
105
|
-
unit: any;
|
|
106
|
-
}[];
|
|
103
|
+
getRawFilterConditions: () => any[];
|
|
107
104
|
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
108
105
|
handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
|
|
109
106
|
clearFormData: () => void;
|
|
@@ -134,6 +131,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
131
|
type: StringConstructor;
|
|
135
132
|
default: null;
|
|
136
133
|
};
|
|
134
|
+
isAccurate: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
};
|
|
137
137
|
}, {
|
|
138
138
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
139
139
|
paramCfg: {
|
|
@@ -148,13 +148,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
148
|
type: StringConstructor;
|
|
149
149
|
default: null;
|
|
150
150
|
};
|
|
151
|
+
isAccurate: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
};
|
|
151
154
|
}>> & {
|
|
152
155
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
156
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
153
157
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
154
158
|
}>>;
|
|
155
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
159
|
+
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
|
|
156
160
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
157
161
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
162
|
+
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
158
163
|
widgetType: import("vue").ComputedRef<any>;
|
|
159
164
|
Date: import("vue").DefineComponent<{
|
|
160
165
|
componentCfg: {
|
|
@@ -304,35 +309,67 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
304
309
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
305
310
|
}, {
|
|
306
311
|
modelValue: string | number | unknown[];
|
|
307
|
-
presetVal: string;
|
|
308
312
|
paramCfg: Record<string, any>;
|
|
313
|
+
presetVal: string;
|
|
309
314
|
}>;
|
|
310
315
|
InputFilter: import("vue").DefineComponent<{
|
|
316
|
+
paramCfg: {
|
|
317
|
+
type: ObjectConstructor;
|
|
318
|
+
default: null;
|
|
319
|
+
};
|
|
311
320
|
modelValue: {
|
|
312
321
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
313
322
|
default: null;
|
|
314
323
|
};
|
|
324
|
+
isAccurateFilter: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
};
|
|
315
327
|
}, {
|
|
316
328
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
329
|
+
paramCfg: {
|
|
330
|
+
type: ObjectConstructor;
|
|
331
|
+
default: null;
|
|
332
|
+
};
|
|
317
333
|
modelValue: {
|
|
318
334
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
319
335
|
default: null;
|
|
320
336
|
};
|
|
337
|
+
isAccurateFilter: {
|
|
338
|
+
type: BooleanConstructor;
|
|
339
|
+
};
|
|
321
340
|
}>> & {
|
|
322
341
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
342
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
323
343
|
}>>;
|
|
324
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
344
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
345
|
+
optionList: import("vue").Ref<{
|
|
346
|
+
label: string;
|
|
347
|
+
value: number;
|
|
348
|
+
}[]>;
|
|
325
349
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
350
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
351
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
326
352
|
NInput: any;
|
|
327
|
-
|
|
353
|
+
NSelect: any;
|
|
354
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
355
|
+
paramCfg: {
|
|
356
|
+
type: ObjectConstructor;
|
|
357
|
+
default: null;
|
|
358
|
+
};
|
|
328
359
|
modelValue: {
|
|
329
360
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
330
361
|
default: null;
|
|
331
362
|
};
|
|
363
|
+
isAccurateFilter: {
|
|
364
|
+
type: BooleanConstructor;
|
|
365
|
+
};
|
|
332
366
|
}>> & {
|
|
333
367
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
368
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
334
369
|
}, {
|
|
335
370
|
modelValue: string | number | unknown[];
|
|
371
|
+
paramCfg: Record<string, any>;
|
|
372
|
+
isAccurateFilter: boolean;
|
|
336
373
|
}>;
|
|
337
374
|
InputNumber: import("vue").DefineComponent<{
|
|
338
375
|
modelValue: {
|
|
@@ -861,8 +898,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
861
898
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
862
899
|
}, {
|
|
863
900
|
modelValue: string | number | unknown[];
|
|
864
|
-
presetVal: string;
|
|
865
901
|
paramCfg: Record<string, any>;
|
|
902
|
+
presetVal: string;
|
|
866
903
|
}>;
|
|
867
904
|
SelectLabel: import("vue").DefineComponent<{
|
|
868
905
|
paramCfg: {
|
|
@@ -928,7 +965,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
928
965
|
SELECTLABEL: string;
|
|
929
966
|
SELECTDYNAMIC: string;
|
|
930
967
|
};
|
|
931
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
968
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
932
969
|
paramCfg: {
|
|
933
970
|
type: ObjectConstructor;
|
|
934
971
|
default: null;
|
|
@@ -941,13 +978,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
941
978
|
type: StringConstructor;
|
|
942
979
|
default: null;
|
|
943
980
|
};
|
|
981
|
+
isAccurate: {
|
|
982
|
+
type: BooleanConstructor;
|
|
983
|
+
};
|
|
944
984
|
}>> & {
|
|
945
985
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
986
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
946
987
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
947
988
|
}, {
|
|
948
989
|
modelValue: string | number | unknown[];
|
|
949
|
-
presetVal: string;
|
|
950
990
|
paramCfg: Record<string, any>;
|
|
991
|
+
presetVal: string;
|
|
992
|
+
isAccurate: boolean;
|
|
951
993
|
}>;
|
|
952
994
|
ConditionEnums: {
|
|
953
995
|
NULL: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,reactive as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,reactive as t,ref as i,provide as l,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as y,renderList as m,normalizeClass as v,toDisplayString as f,createBlock as C,withDirectives as g,createTextVNode as h,vShow as k}from"vue";import{useMessage as b,NSpin as A,NInput as L,NIcon as w,NButton as U,NSelect as _,NTooltip as N}from"naive-ui";import{CloseOutline as V,AddOutline as x,AddCircleSharp as D}from"@vicons/ionicons5";import S from"./ValueCfg.vue.js";import{DataTypeEnums as B,ConditionEnums as I}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as z}from"./helpers/options.js";import{InjectionClassifyFilterList as O}from"../../constants/index.js";const P={class:"searchConditionByApi_wrapper"},q={class:"class-filter-content"},E={key:0,class:"item-name"},R=p("span",{class:"label"},"筛选分类名称:",-1),J={key:1,class:"quickSearch-content"},K=p("span",{class:"label"},"父类名称:",-1),M=["onDblclick","onClick"],Q={key:0,class:"s-content"},G={key:2,class:"item-name"},H=p("span",{class:"label"}," 过滤条件: ",-1),T=p("span",null,"添加",-1),W={class:"select-item-list"},X={class:"index-span"},Y=["onClick"];var 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:$}){const ee=e,ae=b(),te={class:"classify-fieldkey-popover"},ie=a(),le=t({className:"",displayCategory:"",filterConditions:[]}),ne=i(!1);l(O,n(le,"filterConditions"));const{State:oe,isEnableAddDisplayCategory:se,editDisplayCategory:de,handleDisplayCategorySelect:re,handleDisplayCategoryRemove:ce,handleDisplayCategoryAdd:pe,handlerBlur:ue,initDisplayCategories:ye}=j(n(le,"displayCategory"),{conditionList:ee.conditionList},ae),{State:me,paramOptions:ve,addFilterCondition:fe,delFilterCondition:Ce,updateKey:ge,updateCondition:he,getParamCfg:ke,initFilterConditions:be,getRawFilterConditions:Ae}=F(n(le,"filterConditions"),ee.searchFieldList,B.API);function Le(){le.className="",le.displayCategory="",le.filterConditions=[]}async function we(){var e;try{if(Le(),ne.value=!0,ye(ie.displayCategoryList,ee.actionList_prop.displayCategory||void 0),ee.actionList_prop){le.className=ee.actionList_prop.name,await be(ee.tableId,null!=(e=ee.actionList_prop.conObj)?e:[]);le.filterConditions.length<1&&ve.value&&ve.value.length>0&&fe()}}finally{ne.value=!1}}return we(),Z({handleInitConditions:we,saveAdd:function(){new Promise((e=>{le.className||!ee.showItemName?0!==le.filterConditions.length?le.filterConditions.some((({key:e,condition:a,value:t,presetVal:i})=>!e||!a||a===I.EQUAL&&!t&&!i))?ae.warning("请补充完整条件内容"):e(!0):ae.warning("请至少添加一个条件"):ae.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===ee.actionList_prop.from&&(a=ee.actionList_prop.sid,e=null==ee?void 0:ee.conditionList.find((e=>e.sid===a)));const t={displayCategory:le.displayCategory,name:le.className||"",conObj:Ae()},i={id:e?e.sid:"",tableId:ee.tableId,setting:JSON.stringify(t)};$("saveAdd",i,!1)}))},cancelSaveAdd:function(){Le(),$("cancelSaveAdd")},addAction:fe,checkActionList:function(){return le.filterConditions.every((e=>!e.field_key))}}),(a,t)=>(o(),s("div",P,[d(r(A),{show:ne.value},{default:c((()=>[p("div",q,[e.showItemName?(o(),s("div",E,[R,d(r(L),{value:le.className,"onUpdate:value":t[0]||(t[0]=e=>le.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",J,[K,(o(!0),s(y,null,m(r(oe).displayCategories,((e,a)=>(o(),s("div",{class:v(["edit-tag",{"edit-tag-select":e.value===le.displayCategory&&e.disabled}]),key:a,onDblclick:a=>r(de)(a,e),onClick:a=>function(e){re(e)}(e)},[e.disabled?(o(),s("div",Q,[p("span",null,f(e.value),1)])):(o(),C(r(L),{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"])),d(r(w),{component:r(V),class:"anticon-close",size:"20",onClick:t=>r(ce)(a,e)},null,8,["component","onClick"])],42,M)))),128)),r(se)?(o(),s(y,{key:0},[g(d(r(U),{class:"ant-btn",icon:"plus",dashed:"",onClick:r(pe)},{default:c((()=>[d(r(w),{component:r(x),size:"20"},null,8,["component"]),h(" "+f("添加父类"))])),_:1},8,["onClick"]),[[k,!r(oe).showAdd]]),g(d(r(L),{class:"edit-tag",value:r(oe).addDisplayCategory,"onUpdate:value":t[1]||(t[1]=e=>r(oe).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(ue),maxLength:10},null,8,["value","onBlur"]),[[k,r(oe).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",G,[H,p("span",{class:"addAction",onClick:t[2]||(t[2]=(...e)=>r(fe)&&r(fe)(...e)),style:{cursor:"pointer"}},[d(r(w),{component:r(D),class:"blue",size:"18"},null,8,["component"]),T])])),p("ul",W,[(o(!0),s(y,null,m(le.filterConditions,((e,a)=>(o(),s("li",{key:a},[p("span",X,f(a+1),1),u(" 选择 field_key "),d(r(_),{class:"form-item",placeholder:"请选择",value:e.key,"menu-props":te,to:"body",filterable:"",options:r(ve),"onUpdate:value":e=>r(ge)(a,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.key?(o(),C(r(_),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,to:"body",filterable:"",options:r(z),"onUpdate:value":e=>r(he)(a,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.key&&e.condition&&e.condition!==r(I).NULL?(o(),C(S,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,isAccurate:e.isAccurateSearch,"onUpdate:isAccurate":a=>e.isAccurateSearch=a,"param-cfg":r(ke)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","isAccurate","onUpdate:isAccurate","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(Ce)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,Y)])),default:c((()=>[h(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}});export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as n,createElementBlock as l,normalizeStyle as o,createBlock as s,unref as c,Fragment as u,renderList as d,toDisplayString as p,createCommentVNode as r,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as L,NButtonGroup as k,NButton as b,NIcon as E}from"naive-ui";import P
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as n,createElementBlock as l,normalizeStyle as o,createBlock as s,unref as c,Fragment as u,renderList as d,toDisplayString as p,createCommentVNode as r,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as L,NButtonGroup as k,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as P}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as O}from"../../../../types/enums.js";import{ArrowBack as W,ArrowForward as _}from"@vicons/ionicons5";const x={key:0,class:"dynamic-header"},M={class:"dynamic-content"},S=["onClick"],C={key:0,class:"content"},j={class:"content"},w={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const B=e,H=t(200),A=i((()=>{var e,t;return null!=(t=null==(e=B.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=i((()=>A.value&&A.value.length>0?A.value.map((e=>{let t="";return B.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[]));function N(e){const t=B.curPage+e;z("updatePage",t)}function R({distance:e}){const t=H.value+e;H.value=Math.min(Math.max(t,200),1e3)}function T(){}return(t,i)=>a((n(),l("div",{class:"select-dynamic-options",style:o({minWidth:H.value+"px",position:"relative"})},[0===e.optionList.length?(n(),s(c(g),{key:0,description:"无数据"})):(n(),l(u,{key:1},[c(I)&&c(I).length>1?(n(),l("div",x,[(n(!0),l(u,null,d(c(I),(e=>(n(),l("span",{key:e,class:"name"},p(e),1)))),128))])):r("v-if",!0),v("ul",M,[(n(!0),l(u,null,d(e.optionList,(t=>(n(),l("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!B.isMultiple||e.value===O.WHOLE)return null==(t=B.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=B.optionList)||i.forEach((e=>{e.value===O.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=B.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",n)}(t)},[e.isShowWhole&&t.value===c(O).WHOLE?(n(),l("span",C,p(t.label),1)):(n(!0),l(u,{key:1},d(c(A),(e=>(n(),s(c(L),{key:e,trigger:"hover",duration:0},{trigger:f((()=>[v("span",j,p(t[e]),1)])),default:f((()=>[y(" "+p(t[e]),1)])),_:2},1024)))),128))],10,S)))),128))]),v("div",w,[h(c(k),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>N(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(W),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>N(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(_),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],4)),[[c(P),{mode:"VR",onMove:R,onEnd:T}]])}});export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:
|
|
1
|
+
import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let g,v,y=s;p?(g=s===t.SELECT&&c===e.MULTIPLE?null==E?void 0:E.valueList:null==(l=null==E?void 0:E.valueList)?void 0:l[0],v=null==E?void 0:E.unit,s===t.LABEL&&(y="SELECTLABEL",g=null==E?void 0:E.valueList),s===t.DATE&&(y="DATE_OUT"),s===t.DATE_TIME&&(y="DATETIME_OUT")):s===t.SELECT&&(null==u?void 0:u.list)&&(null==u?void 0:u.list.length)<10&&(y="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(y="INPUTNUMBER_RANGE"),s===t.DATE&&(y=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(y=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==u?void 0:u.manualMapping)&&(y=t.SELECTDYNAMIC);const A={isRender:!0,widgetType:y,originType:s,valueList:null==(a=null==u?void 0:u.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:g,defValueUnit:v,optionSetting:c,multiple:c===e.MULTIPLE||y===t.SELECTLABEL,manualMapping:null==u?void 0:u.manualMapping,showWholeOption:null==u?void 0:u.showWholeOption,dynamicOptionInfo:null==u?void 0:u.dynamicOptionInfo,classifyStr:null==E?void 0:E.classifyStr,linkageFieldKeys:null!=(o=null==E?void 0:E.linkageFieldKeys)?o:[]};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:A,rangeFilter:T,unit:null!=v?v:"",isAccurateSearchVal:!1,_extendData:null!=n?n:{}}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(n)&&l.multiple?i:i[0]},transformClassifyChild:function(e,i){const n={};return e&&e.length>0&&e.forEach((e=>{const r=e.field_key;n[r]="";const u=i.find((e=>e.name===r));if(u){const i=Array.isArray(e.value)&&u.type===t.SELECT?e.value:e.value.toString();if(n[r]=i,e.unit&&e.unit!==o.CUSTOM){let i="";u.type===t.DATE&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD",u.optionType):a(e.unit,"YYYY-MM-DD")),u.type===t.DATE_TIME&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):a(e.unit,"YYYY-MM-DD HH:mm:ss")),n[r]=i}}})),n},transformParams:function(e){const l={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP];return e&&e.length>0&&e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>n(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(l[e.accurateSearchKey]=e.isAccurateSearch?1:0),l[o]=t)})),l}}}export{u as default};
|