cnhis-design-vue 3.1.46-beta.3 → 3.1.46-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/button-print/index.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +1 -1
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.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/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +23 -1
- package/es/components/form-config/src/FormConfig.vue.d.ts +23 -1
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +11 -0
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -1
- package/es/components/form-render/index.d.ts +11 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +12 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +7 -0
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -0
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/iho-table/index.d.ts +14 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +14 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.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 +3 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +26 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +11 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +11 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/index.d.ts +8 -8
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +16 -16
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +123 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +88 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +123 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +4 -0
- package/es/components/select-person/src/types/enums.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +11 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +11 -0
- package/es/components/table-export-field/index.d.ts +1057 -0
- package/es/components/table-export-field/index.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +270 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +700 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
- package/es/components/table-export-field/src/constants/index.d.ts +3 -0
- package/es/components/table-export-field/src/constants/index.js +1 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
- package/es/components/table-export-field/src/index.vue.d.ts +1058 -0
- package/es/components/table-export-field/src/index.vue.js +1 -0
- package/es/components/table-export-field/src/index.vue2.js +1 -0
- package/es/components/table-export-field/src/tool.d.ts +1 -0
- package/es/components/table-export-field/src/tool.js +1 -0
- package/es/components/table-export-field/src/types/index.d.ts +6 -0
- package/es/components/table-export-field/src/types/index.js +1 -0
- package/es/components/table-export-field/style/index.css +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +6 -0
- package/es/shared/types/index.d.ts +1 -0
- package/es/shared/utils/business.d.ts +6 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
|
@@ -58,6 +58,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
|
+
isSearchFilter: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
61
65
|
treeSetting: {
|
|
62
66
|
type: PropType<ITreeOption>;
|
|
63
67
|
default: () => {};
|
|
@@ -112,6 +116,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
116
|
type: BooleanConstructor;
|
|
113
117
|
default: boolean;
|
|
114
118
|
};
|
|
119
|
+
isSearchFilter: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
115
123
|
treeSetting: {
|
|
116
124
|
type: PropType<ITreeOption>;
|
|
117
125
|
default: () => {};
|
|
@@ -174,6 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
182
|
setAllCheckedKeys: (tree: TreeOption[]) => void;
|
|
175
183
|
setAllCheckedKeysWithChild: (tree: TreeOption[]) => void;
|
|
176
184
|
setAllCheckedKeysWithParent: (tree: TreeOption[]) => void;
|
|
185
|
+
searchSetting: () => string;
|
|
177
186
|
onSearch: () => Promise<void>;
|
|
178
187
|
onClear: () => void;
|
|
179
188
|
setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
|
|
@@ -187,6 +196,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
196
|
clearAll: () => void;
|
|
188
197
|
closeTag: (tag: ITag) => void;
|
|
189
198
|
notifyCheck: (keys: IKey[]) => void;
|
|
199
|
+
getCheckWithLevel: () => {
|
|
200
|
+
[x: string]: any;
|
|
201
|
+
key: IKey;
|
|
202
|
+
name: string;
|
|
203
|
+
}[];
|
|
190
204
|
NButton: any;
|
|
191
205
|
NInput: any;
|
|
192
206
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -397,6 +411,110 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
397
411
|
treeData: any[];
|
|
398
412
|
checkedKeys: (string | number)[];
|
|
399
413
|
}>;
|
|
414
|
+
SearchOrgAndStaff: import("vue").DefineComponent<{
|
|
415
|
+
treeData: {
|
|
416
|
+
type: PropType<any[]>;
|
|
417
|
+
default: () => never[];
|
|
418
|
+
};
|
|
419
|
+
checkedKeys: {
|
|
420
|
+
type: PropType<(string | number)[]>;
|
|
421
|
+
default: () => never[];
|
|
422
|
+
};
|
|
423
|
+
}, {
|
|
424
|
+
$message: import("naive-ui").MessageApi;
|
|
425
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
426
|
+
treeData: {
|
|
427
|
+
type: PropType<any[]>;
|
|
428
|
+
default: () => never[];
|
|
429
|
+
};
|
|
430
|
+
checkedKeys: {
|
|
431
|
+
type: PropType<(string | number)[]>;
|
|
432
|
+
default: () => never[];
|
|
433
|
+
};
|
|
434
|
+
}>> & {
|
|
435
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
436
|
+
}>>;
|
|
437
|
+
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
438
|
+
staffDataRef: import("vue").ComputedRef<any[]>;
|
|
439
|
+
staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
440
|
+
staffContainerProps: {
|
|
441
|
+
ref: import("vue").Ref<any>;
|
|
442
|
+
onScroll: () => void;
|
|
443
|
+
style: Partial<CSSStyleDeclaration>;
|
|
444
|
+
};
|
|
445
|
+
staffWrapperProps: import("vue").ComputedRef<{
|
|
446
|
+
style: {
|
|
447
|
+
width: string;
|
|
448
|
+
height: string;
|
|
449
|
+
marginTop: string;
|
|
450
|
+
};
|
|
451
|
+
}>;
|
|
452
|
+
staffContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
453
|
+
orgDataRef: import("vue").ComputedRef<any[]>;
|
|
454
|
+
orgList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
455
|
+
orgContainerProps: {
|
|
456
|
+
ref: import("vue").Ref<any>;
|
|
457
|
+
onScroll: () => void;
|
|
458
|
+
style: Partial<CSSStyleDeclaration>;
|
|
459
|
+
};
|
|
460
|
+
orgWrapperProps: import("vue").ComputedRef<{
|
|
461
|
+
style: {
|
|
462
|
+
width: string;
|
|
463
|
+
height: string;
|
|
464
|
+
marginTop: string;
|
|
465
|
+
};
|
|
466
|
+
}>;
|
|
467
|
+
orgContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
468
|
+
searchCheckKeys: import("vue").Ref<(string | number)[]>;
|
|
469
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
470
|
+
handleClick: (tree: any) => void;
|
|
471
|
+
handleStaffClick: (baseKeys: (string | number)[], currentTree: {
|
|
472
|
+
[key: string]: any;
|
|
473
|
+
key: string | number;
|
|
474
|
+
children: any[];
|
|
475
|
+
parentNode: any;
|
|
476
|
+
}, value: string | number) => false | undefined;
|
|
477
|
+
findParent: (baseKeys: (string | number)[], currentTree: {
|
|
478
|
+
[key: string]: any;
|
|
479
|
+
key: string | number;
|
|
480
|
+
children: any[];
|
|
481
|
+
parentNode: any;
|
|
482
|
+
}) => false | undefined;
|
|
483
|
+
handleOrgClick: (baseKeys: (string | number)[], currentTree: {
|
|
484
|
+
[key: string]: any;
|
|
485
|
+
key: string | number;
|
|
486
|
+
children: any[];
|
|
487
|
+
parentNode: any;
|
|
488
|
+
}, value: string | number) => void;
|
|
489
|
+
handleFindChildren: (treeList: {
|
|
490
|
+
[key: string]: any;
|
|
491
|
+
key: string | number;
|
|
492
|
+
children: any[];
|
|
493
|
+
parentNode: any;
|
|
494
|
+
}[]) => void;
|
|
495
|
+
checkInitTree: (tree: {
|
|
496
|
+
[key: string]: any;
|
|
497
|
+
key: string | number;
|
|
498
|
+
children: any[];
|
|
499
|
+
parentNode: any;
|
|
500
|
+
}, baseKey: string | number) => false | undefined;
|
|
501
|
+
ref: typeof ref;
|
|
502
|
+
NEmpty: any;
|
|
503
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
504
|
+
treeData: {
|
|
505
|
+
type: PropType<any[]>;
|
|
506
|
+
default: () => never[];
|
|
507
|
+
};
|
|
508
|
+
checkedKeys: {
|
|
509
|
+
type: PropType<(string | number)[]>;
|
|
510
|
+
default: () => never[];
|
|
511
|
+
};
|
|
512
|
+
}>> & {
|
|
513
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
514
|
+
}, {
|
|
515
|
+
treeData: any[];
|
|
516
|
+
checkedKeys: (string | number)[];
|
|
517
|
+
}>;
|
|
400
518
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
401
519
|
defaultList: {
|
|
402
520
|
type: PropType<(IKey | ITag)[]>;
|
|
@@ -438,6 +556,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
438
556
|
type: BooleanConstructor;
|
|
439
557
|
default: boolean;
|
|
440
558
|
};
|
|
559
|
+
isSearchFilter: {
|
|
560
|
+
type: BooleanConstructor;
|
|
561
|
+
default: boolean;
|
|
562
|
+
};
|
|
441
563
|
treeSetting: {
|
|
442
564
|
type: PropType<ITreeOption>;
|
|
443
565
|
default: () => {};
|
|
@@ -464,6 +586,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
464
586
|
showClear: boolean;
|
|
465
587
|
multiple: boolean;
|
|
466
588
|
searchInner: boolean;
|
|
589
|
+
isSearchFilter: boolean;
|
|
467
590
|
treeSetting: ITreeOption;
|
|
468
591
|
queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
|
|
469
592
|
queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as t,watch as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as t,watch as n,openBlock as a,createBlock as u,unref as i,withCtx as r,createVNode as c,withKeys as o,createTextVNode as d,toDisplayString as s,withDirectives as h,vShow as v,createCommentVNode as p,createElementBlock as f,Fragment as y,mergeProps as k,createElementVNode as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as S,NInputGroup as C,NInput as w,NButton as L,NCheckbox as x,NTree as j,NIcon as T,NTooltip as N}from"naive-ui";import{CloseCircleSharp as I}from"@vicons/ionicons5";import{searchFilterTree as D,getExpandedKeys as $}from"./utils/index.js";import{cloneDeep as B}from"lodash-es";import{SearchTypeConfig as F}from"./types/enums.js";import K from"./SearchMultiple.vue.js";import O from"./SearchOrgAndStaff.vue.js";const q={key:0},A={class:"c-select-person__scroll",style:{height:"342px"}};var E=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},searchInner:{type:Boolean,default:!1},isSearchFilter:{type:Boolean,default:!1},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check","checkWithLevel"],setup(e,{expose:E,emit:P}){const R=e,U=l(""),W=l(!1),G=l([]),H=l([]),M=l([]),z=l([]),J=l([]),Q=l(!1),V=B(function e(l){return l.forEach((l=>{var t;if(null==(t=l.children)?void 0:t.length){const t=ie(l.children,[]);l.innerItemsNum=t.length,l.innerLeafs=t,e(l.children)}})),re(l,"")}(R.data));let X=[];const Y=t((()=>!!R.queryLoadChildData)),Z=t((()=>{var e,l;return null!=(l=null==(e=null==R?void 0:R.treeSetting)?void 0:e.checkStrategy)?l:"child"}));function ee(e){e.disabled||e.children||!e.key||X.push(e.key)}function le(e){e.disabled||e.tempTitle||!e.key||X.push(e.key)}async function te(e){if(R.queryLoadChildData){const l=await R.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function ne(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function ae({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||Y.value&&!(null==e?void 0:e.isLeaf)){const l=R.wordbook.user_count_obj&&e[R.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return c("span",null,[`${e.title}${t}`])}return c(N,{trigger:"hover"},{default:()=>c("span",null,[e.title]),trigger:()=>c("span",null,[e.title])})}function ue(e){return e[R.wordbookChild.user_name_obj]||e[R.wordbook.parent_name_obj]||e.orgName||e.title||""}function ie(e,l){return e.forEach((e=>{var t;(null==(t=e.children)?void 0:t.length)?ie(e.children,l):!e.disabled&&l.push(e)})),l}function re(e,l){return e&&0!==e.length?e.map((e=>{var t;const n=ue(e),a=l?`${n}/${l}`:n;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?re(null==e?void 0:e.children,a):[]}})):[]}async function ce(){if(Q.value=!!U.value.trim(),Y.value)M.value=await R.queryTreeSearch(U.value);else{const e=function(){const e={[F.SEARCH_ORG_STAFF]:R.isSearchFilter,[F.SEARCH_ORG]:R.searchInner},l=Object.keys(e).find((l=>e[l]));return null!=l?l:""}();M.value=D(e,V,U.value)}H.value=M.value.length&&U.value?$(M.value):[]}function oe(){setTimeout((()=>{ce()}))}function de(e,l){var t,n;switch(null!=(n=null==(t=null==R?void 0:R.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(!n.children||n.isLeaf)&&(l&&!G.value.includes(n.key)&&G.value.push(n.key),!l)){const e=G.value.findIndex((e=>e===n.key));G.value.splice(e,1)}n.children&&de(n.children,l)}}(e,l);break;case"parent":!function(e,l){G.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&!n.tempTitle&&(l&&!G.value.includes(n.key)&&G.value.push(n.key),!l)){const e=G.value.findIndex((e=>e===n.key));G.value.splice(e,1)}}}(e,l)}}function se(e){de(M.value,e)}function he(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=J.value.map((e=>e.key));G.value.includes(n.key)&&!a.includes(n.key)&&z.value.push({key:n.key,name:n.title,parentName:n.tempTitle,innerItemsNum:n.innerItemsNum,innerLeafs:n.innerLeafs}),(null==(l=n.children)?void 0:l.length)&&he(n.children)}}function ve(e){G.value=e}function pe(){G.value=[]}function fe(e){G.value=e}return function e(l,t){var n,a,u,i;for(let r=0,c=l.length;r<c;r++){const c=l[r];switch(c.title=ue(c),c.label=ue(c),c.parentNode=t,c.key||(c.key=c[R.wordbookChild.user_id_obj]||c[R.wordbook.parent_id_obj]||Date.now()),(null==(n=c.children)?void 0:n.length)?(e(c.children,c),ne(c)):0===(null==(a=c.children)?void 0:a.length)&&Reflect.deleteProperty(c,"children"),null!=(i=null==(u=null==R?void 0:R.treeSetting)?void 0:u.checkStrategy)?i:"child"){case"child":ee(c);break;case"parent":le(c)}}}(V,null),M.value=V,R.defaultList.length>0&&(Y.value?(R.defaultList.forEach((e=>G.value.push(e.key))),z.value=B(R.defaultList),J.value=B(R.defaultList)):(R.defaultList.forEach((e=>G.value.push(e))),he(V))),n((()=>G),(e=>{z.value=J.value.filter((l=>e.value.includes(l.key))),e.value.length&&he(Y.value?M.value:V),W.value=X.every((e=>z.value.findIndex((l=>l.key===e))>-1));const l=z.value.filter((l=>e.value.includes(l.key)));P("check",e.value),P("checkWithLevel",l)}),{deep:!0}),E({getCheckWithLevel:function(){const e=G.value,l=z.value.filter((l=>e.includes(l.key)));return null!=l?l:[]}}),(l,t)=>(a(),u(i(b),{cols:2,class:"c-select-person"},{default:r((()=>[c(i(_),null,{default:r((()=>[c(i(S),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:r((()=>[c(i(C),{style:{"margin-bottom":"12px"}},{default:r((()=>[c(i(w),{clearable:"",value:U.value,"onUpdate:value":t[0]||(t[0]=e=>U.value=e),placeholder:e.searchPlaceholder,onClear:oe,onKeyup:o(ce,["enter"])},null,8,["value","placeholder","onKeyup"]),c(i(L),{type:"primary",onClick:ce},{default:r((()=>[d(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple&&!Q.value?h((a(),u(i(x),{key:0,checked:W.value,"onUpdate:checked":[t[1]||(t[1]=e=>W.value=e),se]},{default:r((()=>[d(" 全选 ")])),_:1},8,["checked"])),[[v,i(X).length<1e3]]):p("v-if",!0),p(" 支持选人 "),e.searchInner&&e.multiple&&Q.value&&"parent"===i(Z)?(a(),u(K,{key:1,treeData:M.value,checkedKeys:G.value,onNotifyCheck:fe},null,8,["treeData","checkedKeys"])):e.isSearchFilter&&e.multiple&&Q.value&&"parent"===i(Z)?(a(),f(y,{key:2},[p(" 同时兼容选人和选部门 "),c(O,{treeData:M.value,checkedKeys:G.value,onNotifyCheck:fe},null,8,["treeData","checkedKeys"])],2112)):(a(),u(i(j),k({key:3,"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":G.value,"expanded-keys":H.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>H.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":G.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>G.value=e),data:M.value,"check-strategy":"child","render-label":ae},e.treeSetting,{"onUpdate:checkedKeys":ve,onLoad:te}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"]))])),_:1})])),_:1}),c(i(_),null,{default:r((()=>[c(i(S),{vertical:"",style:{"padding-left":"12px"}},{default:r((()=>[c(i(S),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:r((()=>[e.showCount?(a(),f("span",q,"已选择:"+s(z.value.length),1)):p("v-if",!0),e.showClear?(a(),f("span",{key:1,class:"c-select-person__clear-btn",onClick:pe},"清空")):p("v-if",!0)])),_:1}),m("div",A,[(a(!0),f(y,null,g(z.value,(e=>(a(),f("span",{class:"c-select-person__tag-item",key:e.key},[d(s(e.name)+" "+s(e.parentName?`(${e.parentName})`:"")+" "+s(e.innerItemsNum?`(${e.innerItemsNum})`:"")+" ",1),c(i(T),{class:"tag-close",component:i(I),onClick:l=>function(e){G.value=G.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={SEARCH_ORG_STAFF:"isSearchFilter",SEARCH_ORG:"searchInner"};export{e as SearchTypeConfig};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type TreeOption } from 'naive-ui';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function searchFilterTree(attr: string, data: TreeOption[], keyword: string): any[];
|
|
3
3
|
export declare function getExpandedKeys(tree: TreeOption[]): (string | number)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cloneDeep as n}from"lodash-es";function
|
|
1
|
+
import{cloneDeep as n}from"lodash-es";import{SearchTypeConfig as i}from"../types/enums.js";function e(e,c,o){const h=n(c);if(o.trim()){let n=[];switch(e){case i.SEARCH_ORG_STAFF:n=function(n,i){return t(n,i,[])}(h,o);break;case i.SEARCH_ORG:n=function(n,i){return l(n,[]).filter((n=>{var e;return null==(e=n.title)?void 0:e.includes(i.trim())}))}(h,o)}return n}return r(h,o),u(h)}function r(n,i){n.forEach((n=>{var e,l;if(n.visible=null==(e=n.title)?void 0:e.includes(i.trim()),null==(l=n.children)?void 0:l.length)if(r(n.children,i),n.visible)c(n.children);else{n.children.some((n=>n.visible))&&(n.visible=!0)}}))}function l(n,i){return n.forEach((n=>{var e;(null==(e=n.children)?void 0:e.length)?l(n.children,i):i.push(n)})),i}function t(n,i,e){return n.forEach((n=>{var r,l;(null==(r=n.title)?void 0:r.includes(i.trim()))&&!n.disabled&&e.push(n),(null==(l=n.children)?void 0:l.length)&&t(n.children,i,e)})),e}function c(n){n.forEach((n=>{var i;n.visible=!0,(null==(i=n.children)?void 0:i.length)&&c(n.children)}))}function u(n){return n.filter((n=>{var i;return!!n.visible&&((null==(i=n.children)?void 0:i.length)&&(n.children=u(n.children)),!0)}))}function o(n){const i=[];return function n(e){for(let r=0,l=e.length;r<l;r++){const l=e[r];l.children&&(i.push(l.key),n(l.children))}}(n),i}export{o as getExpandedKeys,e as searchFilterTree};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}.c-select-person .select-person__multiple-search{display:flex;flex-direction:column}.c-select-person .select-person__multiple-search .n-checkbox{height:30px;overflow:hidden}
|
|
1
|
+
.c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}.c-select-person .select-person__multiple-search{display:flex;flex-direction:column}.c-select-person .select-person__multiple-search .n-checkbox{height:30px;overflow:hidden}.c-select-person .select-person__multiple-search .search_item{cursor:pointer;margin:5px;padding:5px}.c-select-person .select-person__multiple-search .search_item .title{font-size:14px}.c-select-person .select-person__multiple-search .search_item .desc{color:#7d88b5;font-size:12px;margin-top:5px}.c-select-person .select-person__multiple-search .search_item:hover{background:#f1f1f1}.c-select-person .select-person__multiple-search .search_disabled{color:#c2c2c2;cursor:not-allowed}.c-select-person .select-person__multiple-search .search_disabled .desc{color:#c2c2c2}.c-select-person .n-empty{margin-top:30px}
|
|
@@ -1867,6 +1867,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1867
1867
|
lowCodeReactions: {
|
|
1868
1868
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
1869
1869
|
};
|
|
1870
|
+
operationalForm: {
|
|
1871
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
1872
|
+
};
|
|
1870
1873
|
linebarAutoHidden: {
|
|
1871
1874
|
type: BooleanConstructor;
|
|
1872
1875
|
};
|
|
@@ -2004,6 +2007,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2004
2007
|
lowCodeReactions: {
|
|
2005
2008
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
2006
2009
|
};
|
|
2010
|
+
operationalForm: {
|
|
2011
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
2012
|
+
};
|
|
2007
2013
|
linebarAutoHidden: {
|
|
2008
2014
|
type: BooleanConstructor;
|
|
2009
2015
|
};
|
|
@@ -2061,6 +2067,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2061
2067
|
}>;
|
|
2062
2068
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
2063
2069
|
triggerAllReactionsHandler: () => void;
|
|
2070
|
+
operationalFormHandler: (field: string) => void;
|
|
2071
|
+
triggerAllOperationalFormHandler: () => void;
|
|
2064
2072
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2065
2073
|
[key: symbol]: any;
|
|
2066
2074
|
[key: `x-${string}`]: any;
|
|
@@ -2467,6 +2475,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2467
2475
|
lowCodeReactions: {
|
|
2468
2476
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
2469
2477
|
};
|
|
2478
|
+
operationalForm: {
|
|
2479
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
2480
|
+
};
|
|
2470
2481
|
linebarAutoHidden: {
|
|
2471
2482
|
type: BooleanConstructor;
|
|
2472
2483
|
};
|
|
@@ -1869,6 +1869,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1869
1869
|
lowCodeReactions: {
|
|
1870
1870
|
type: import("vue").PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
1871
1871
|
};
|
|
1872
|
+
operationalForm: {
|
|
1873
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
1874
|
+
};
|
|
1872
1875
|
linebarAutoHidden: {
|
|
1873
1876
|
type: BooleanConstructor;
|
|
1874
1877
|
};
|
|
@@ -2006,6 +2009,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2006
2009
|
lowCodeReactions: {
|
|
2007
2010
|
type: import("vue").PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2008
2011
|
};
|
|
2012
|
+
operationalForm: {
|
|
2013
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2014
|
+
};
|
|
2009
2015
|
linebarAutoHidden: {
|
|
2010
2016
|
type: BooleanConstructor;
|
|
2011
2017
|
};
|
|
@@ -2063,6 +2069,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2063
2069
|
}>;
|
|
2064
2070
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
2065
2071
|
triggerAllReactionsHandler: () => void;
|
|
2072
|
+
operationalFormHandler: (field: string) => void;
|
|
2073
|
+
triggerAllOperationalFormHandler: () => void;
|
|
2066
2074
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2067
2075
|
[key: symbol]: any;
|
|
2068
2076
|
[key: `x-${string}`]: any;
|
|
@@ -2469,6 +2477,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2469
2477
|
lowCodeReactions: {
|
|
2470
2478
|
type: import("vue").PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2471
2479
|
};
|
|
2480
|
+
operationalForm: {
|
|
2481
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2482
|
+
};
|
|
2472
2483
|
linebarAutoHidden: {
|
|
2473
2484
|
type: BooleanConstructor;
|
|
2474
2485
|
};
|