cnhis-design-vue 3.1.54 → 3.1.55-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.
Files changed (135) hide show
  1. package/README.md +87 -87
  2. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  3. package/es/components/body-select/src/index.vue2.js +1 -1
  4. package/es/components/button-print/index.d.ts +13 -0
  5. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  6. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  7. package/es/components/callback/src/components/render/popupMaps.d.ts +13 -6
  8. package/es/components/chat-sdk/index.d.ts +2 -0
  9. package/es/components/chat-sdk/index.js +1 -0
  10. package/es/components/chat-sdk/src/chatSDK.d.ts +24 -0
  11. package/es/components/chat-sdk/src/chatSDK.js +1 -0
  12. package/es/components/chat-sdk/src/components/recordingDialog.vue.d.ts +26 -0
  13. package/es/components/chat-sdk/src/components/recordingDialog.vue.js +1 -0
  14. package/es/components/chat-sdk/src/components/recordingDialog.vue2.js +1 -0
  15. package/es/components/chat-sdk/src/utils/recordingDialog.d.ts +8 -0
  16. package/es/components/chat-sdk/src/utils/recordingDialog.js +1 -0
  17. package/es/components/chat-sdk/style/index.css +1 -0
  18. package/es/components/classification/index.d.ts +486 -1
  19. package/es/components/classification/src/components/search-filter/index.vue.d.ts +473 -1
  20. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  21. package/es/components/classification/src/components/set-classification/index.vue.d.ts +473 -1
  22. package/es/components/classification/src/index.vue.d.ts +486 -1
  23. package/es/components/classification/src/index.vue2.js +1 -1
  24. package/es/components/classification/style/index.css +1 -1
  25. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  26. package/es/components/fabric-chart/index.d.ts +1 -0
  27. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -0
  28. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  29. package/es/components/fabric-chart/src/constants/index.d.ts +1 -0
  30. package/es/components/fabric-chart/src/constants/index.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +5 -0
  35. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +1 -1
  38. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +1 -1
  39. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +3 -3
  41. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  42. package/es/components/form-config/index.d.ts +71 -57
  43. package/es/components/form-config/src/FormConfig.vue.d.ts +71 -57
  44. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -6
  45. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +28 -21
  46. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -5
  47. package/es/components/form-render/index.d.ts +13 -6
  48. package/es/components/form-render/index.js +1 -1
  49. package/es/components/form-render/src/FormRender.vue.d.ts +13 -6
  50. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  51. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -6
  52. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  53. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  54. package/es/components/form-render/src/components/renderer/select.js +1 -1
  55. package/es/components/form-render/src/hooks/index.d.ts +20 -9
  56. package/es/components/form-render/src/hooks/index.js +1 -1
  57. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  58. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  59. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
  60. package/es/components/form-render/src/hooks/useFormEvent.d.ts +14 -3
  61. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  62. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +1 -1
  63. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  64. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +3 -2
  65. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  66. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +13 -4
  67. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
  68. package/es/components/form-render/src/types/index.d.ts +10 -5
  69. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
  70. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  72. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +7 -3
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  74. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  75. package/es/components/index.css +1 -1
  76. package/es/components/index.d.ts +1 -0
  77. package/es/components/index.js +1 -1
  78. package/es/components/info-header/index.d.ts +26 -12
  79. package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -12
  80. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -6
  81. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -6
  82. package/es/components/quick-search/style/index.css +1 -1
  83. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  84. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  85. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  86. package/es/components/shortcut-setter/index.d.ts +18 -11
  87. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -11
  88. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  89. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +320 -0
  90. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
  91. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
  92. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
  93. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
  94. package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
  95. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
  96. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
  97. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
  98. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
  99. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
  100. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
  101. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
  102. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
  103. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
  104. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
  105. package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
  106. package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
  107. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
  108. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
  109. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
  110. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +474 -0
  111. package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
  112. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
  113. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  114. package/es/components/table-filter/src/constants/index.js +1 -1
  115. package/es/env.d.ts +25 -25
  116. package/es/shared/assets/img/failure.png.js +1 -1
  117. package/es/shared/assets/img/no-permission.png.js +1 -1
  118. package/es/shared/assets/img/nodata.png.js +1 -1
  119. package/es/shared/assets/img/notfound.png.js +1 -1
  120. package/es/shared/assets/img/qr.png.js +1 -1
  121. package/es/shared/assets/img/success.png.js +1 -1
  122. package/es/shared/assets/img/video.png.js +1 -1
  123. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  124. package/es/shared/assets/img/xb_big.png.js +1 -1
  125. package/es/shared/assets/img/xb_small.png.js +1 -1
  126. package/es/shared/package.json.js +1 -1
  127. package/es/shared/utils/business.js +1 -1
  128. package/package.json +3 -2
  129. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  130. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  131. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  132. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  133. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  134. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  135. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -44,6 +44,10 @@ declare const _default: import("vue").DefineComponent<{
44
44
  type: ObjectConstructor;
45
45
  default: () => {};
46
46
  };
47
+ filterType: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
47
51
  }, {
48
52
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
49
53
  transformClassifyChild: (conObjList: any, searchFieldList: any[]) => {};
@@ -93,6 +97,10 @@ declare const _default: import("vue").DefineComponent<{
93
97
  type: ObjectConstructor;
94
98
  default: () => {};
95
99
  };
100
+ filterType: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
96
104
  }>> & {
97
105
  onChangeSearch?: ((...args: any[]) => any) | undefined;
98
106
  onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
@@ -570,6 +578,7 @@ declare const _default: import("vue").DefineComponent<{
570
578
  }>;
571
579
  conditionApiRef: any;
572
580
  filterTimer: any;
581
+ classifyfilterType: String;
573
582
  init: () => void;
574
583
  clearTimer: () => void;
575
584
  handleInitConditions: () => void;
@@ -581,7 +590,7 @@ declare const _default: import("vue").DefineComponent<{
581
590
  NModal: any;
582
591
  NCard: any;
583
592
  NButton: any;
584
- SearchConditionByApi: import("vue").DefineComponent<{
593
+ ClassifyFilterConditionByApi: import("vue").DefineComponent<{
585
594
  actionList_prop: {
586
595
  type: PropType<IClassifyListType>;
587
596
  default: () => {};
@@ -1688,6 +1697,477 @@ declare const _default: import("vue").DefineComponent<{
1688
1697
  showItemName: boolean;
1689
1698
  hideAddBtn: boolean;
1690
1699
  }>;
1700
+ BiFilterConditionByApi: import("vue").DefineComponent<{
1701
+ actionList_prop: {
1702
+ type: PropType<IClassifyListType>;
1703
+ default: () => {};
1704
+ };
1705
+ conditionList: {
1706
+ type: ArrayConstructor;
1707
+ default: () => never[];
1708
+ };
1709
+ tableId: {
1710
+ type: StringConstructor;
1711
+ default: string;
1712
+ };
1713
+ searchFieldList: {
1714
+ type: ArrayConstructor;
1715
+ default: () => never[];
1716
+ };
1717
+ showItemName: {
1718
+ type: BooleanConstructor;
1719
+ default: boolean;
1720
+ };
1721
+ hideAddBtn: {
1722
+ type: BooleanConstructor;
1723
+ default: boolean;
1724
+ };
1725
+ }, {
1726
+ $message: import("naive-ui").MessageApi;
1727
+ menuProps: {
1728
+ class: string;
1729
+ };
1730
+ dateCons: string[];
1731
+ textCons: string[];
1732
+ numberCons: string[];
1733
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1734
+ actionList_prop: {
1735
+ type: PropType<IClassifyListType>;
1736
+ default: () => {};
1737
+ };
1738
+ conditionList: {
1739
+ type: ArrayConstructor;
1740
+ default: () => never[];
1741
+ };
1742
+ tableId: {
1743
+ type: StringConstructor;
1744
+ default: string;
1745
+ };
1746
+ searchFieldList: {
1747
+ type: ArrayConstructor;
1748
+ default: () => never[];
1749
+ };
1750
+ showItemName: {
1751
+ type: BooleanConstructor;
1752
+ default: boolean;
1753
+ };
1754
+ hideAddBtn: {
1755
+ type: BooleanConstructor;
1756
+ default: boolean;
1757
+ };
1758
+ }>> & {
1759
+ onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
1760
+ onSaveAdd?: ((...args: any[]) => any) | undefined;
1761
+ }>>;
1762
+ emit: (event: "cancelSaveAdd" | "saveAdd", ...args: any[]) => void;
1763
+ $attrs: {
1764
+ [x: string]: unknown;
1765
+ };
1766
+ FormState: any;
1767
+ loading: import("vue").Ref<boolean>;
1768
+ parentInputRef: import("vue").Ref<any>;
1769
+ parentInputAddRef: import("vue").Ref<any>;
1770
+ sqlExpression: any;
1771
+ DisplayCategoryState: {
1772
+ addDisplayCategory: string;
1773
+ displayCategories: {
1774
+ disabled: boolean;
1775
+ value: string;
1776
+ }[];
1777
+ displayCategoryOriginLen: number;
1778
+ showAdd: boolean;
1779
+ };
1780
+ isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
1781
+ editDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType, cb?: any) => void;
1782
+ handleDisplayCategorySelect: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1783
+ handleDisplayCategoryRemove: (index: number, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1784
+ handleDisplayCategoryAdd: (cb?: any) => void;
1785
+ handlerBlur: () => void;
1786
+ initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
1787
+ FilterConditionsState: any;
1788
+ paramOptions: import("vue").ComputedRef<any>;
1789
+ addFilterCondition: () => void;
1790
+ delFilterCondition: (index: number) => void;
1791
+ updateKey: (index: number, val: any) => void;
1792
+ updateCondition: (index: number, val: any) => void;
1793
+ getParamCfg: (key: string) => any;
1794
+ initFilterConditions: (tableId: string, rawConditions: import("../../../../es/components/table-filter/src/types").ISearchConfigType[]) => Promise<void>;
1795
+ getRawFilterConditions: () => any;
1796
+ isShowValueCfg: (con: string) => boolean;
1797
+ handleEditDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1798
+ handleDisplayCategoryAddState: () => void;
1799
+ findConditionByDisplayCategory: (sid: string) => unknown;
1800
+ handleDisplayCategorySelectProxy: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1801
+ clearFormData: () => void;
1802
+ handleInitConditions: () => Promise<void>;
1803
+ validate: () => Promise<unknown>;
1804
+ saveAdd: () => void;
1805
+ cancelSaveAdd: () => void;
1806
+ checkActionList: () => any;
1807
+ NSpin: any;
1808
+ NIcon: any;
1809
+ NInput: any;
1810
+ NButton: any;
1811
+ NTooltip: any;
1812
+ NSelect: any;
1813
+ 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<{}>>, {}>;
1814
+ 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<{}>>, {}>;
1815
+ 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<{}>>, {}>;
1816
+ ValueCfg: import("vue").DefineComponent<{
1817
+ paramCfg: {
1818
+ type: ObjectConstructor;
1819
+ default: null;
1820
+ };
1821
+ modelValue: {
1822
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1823
+ default: null;
1824
+ };
1825
+ modelValues: {
1826
+ type: ArrayConstructor;
1827
+ default: () => never[];
1828
+ };
1829
+ }, {
1830
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1831
+ paramCfg: {
1832
+ type: ObjectConstructor;
1833
+ default: null;
1834
+ };
1835
+ modelValue: {
1836
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1837
+ default: null;
1838
+ };
1839
+ modelValues: {
1840
+ type: ArrayConstructor;
1841
+ default: () => never[];
1842
+ };
1843
+ }>> & {
1844
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1845
+ "onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
1846
+ }>>;
1847
+ emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
1848
+ valueCp: import("vue").WritableComputedRef<any>;
1849
+ valuesCp: import("vue").WritableComputedRef<any>;
1850
+ isSelectMode: import("vue").ComputedRef<boolean>;
1851
+ isSelectMultiple: import("vue").ComputedRef<boolean>;
1852
+ biType: import("vue").ComputedRef<any>;
1853
+ Date: import("vue").DefineComponent<{
1854
+ componentCfg: {
1855
+ type: ObjectConstructor;
1856
+ };
1857
+ paramCfg: {
1858
+ type: ObjectConstructor;
1859
+ default: null;
1860
+ };
1861
+ modelValue: {
1862
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1863
+ default: null;
1864
+ };
1865
+ }, {
1866
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1867
+ componentCfg: {
1868
+ type: ObjectConstructor;
1869
+ };
1870
+ paramCfg: {
1871
+ type: ObjectConstructor;
1872
+ default: null;
1873
+ };
1874
+ modelValue: {
1875
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1876
+ default: null;
1877
+ };
1878
+ }>> & {
1879
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1880
+ }>>;
1881
+ emit: (event: "update:modelValue", ...args: any[]) => void;
1882
+ valueCp: import("vue").WritableComputedRef<any>;
1883
+ dateType: any;
1884
+ valueFormat: import("vue").ComputedRef<string>;
1885
+ compType: import("vue").ComputedRef<any>;
1886
+ CDatePicker: import("../..").SFCWithInstall<import("vue").DefineComponent<{
1887
+ updateUnchangedValue: {
1888
+ type: BooleanConstructor;
1889
+ };
1890
+ onConfirm: {
1891
+ type: FunctionConstructor;
1892
+ };
1893
+ formattedValue: {
1894
+ type: PropType<(string | [string, string]) | null | undefined>;
1895
+ };
1896
+ placeholder: {
1897
+ type: StringConstructor;
1898
+ };
1899
+ allowedInvalidValue: {
1900
+ type: StringConstructor;
1901
+ };
1902
+ }, {
1903
+ attrs: {
1904
+ [x: string]: unknown;
1905
+ };
1906
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1907
+ updateUnchangedValue: {
1908
+ type: BooleanConstructor;
1909
+ };
1910
+ onConfirm: {
1911
+ type: FunctionConstructor;
1912
+ };
1913
+ formattedValue: {
1914
+ type: PropType<(string | [string, string]) | null | undefined>;
1915
+ };
1916
+ placeholder: {
1917
+ type: StringConstructor;
1918
+ };
1919
+ allowedInvalidValue: {
1920
+ type: StringConstructor;
1921
+ };
1922
+ }>> & {
1923
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1924
+ }>>;
1925
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
1926
+ datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
1927
+ panelInstRef: import("vue").Ref<null>;
1928
+ placeholderRef: import("vue").Ref<any>;
1929
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
1930
+ isDateTime: import("vue").ComputedRef<boolean>;
1931
+ formatRef: import("vue").ComputedRef<string>;
1932
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
1933
+ focus: () => any;
1934
+ blur: () => any;
1935
+ handleConfirm: (target: HTMLInputElement) => void;
1936
+ onUpdateShow: (show: boolean) => void;
1937
+ onConfirm: (...args: any[]) => Promise<void>;
1938
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1939
+ NDatePicker: any;
1940
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1941
+ updateUnchangedValue: {
1942
+ type: BooleanConstructor;
1943
+ };
1944
+ onConfirm: {
1945
+ type: FunctionConstructor;
1946
+ };
1947
+ formattedValue: {
1948
+ type: PropType<(string | [string, string]) | null | undefined>;
1949
+ };
1950
+ placeholder: {
1951
+ type: StringConstructor;
1952
+ };
1953
+ allowedInvalidValue: {
1954
+ type: StringConstructor;
1955
+ };
1956
+ }>> & {
1957
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1958
+ }, {
1959
+ updateUnchangedValue: boolean;
1960
+ }>>;
1961
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1962
+ componentCfg: {
1963
+ type: ObjectConstructor;
1964
+ };
1965
+ paramCfg: {
1966
+ type: ObjectConstructor;
1967
+ default: null;
1968
+ };
1969
+ modelValue: {
1970
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1971
+ default: null;
1972
+ };
1973
+ }>> & {
1974
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1975
+ }, {
1976
+ modelValue: string | number | unknown[];
1977
+ paramCfg: Record<string, any>;
1978
+ }>;
1979
+ InputFilter: import("vue").DefineComponent<{
1980
+ paramCfg: {
1981
+ type: ObjectConstructor;
1982
+ default: null;
1983
+ };
1984
+ modelValue: {
1985
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1986
+ default: null;
1987
+ };
1988
+ }, {
1989
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1990
+ paramCfg: {
1991
+ type: ObjectConstructor;
1992
+ default: null;
1993
+ };
1994
+ modelValue: {
1995
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1996
+ default: null;
1997
+ };
1998
+ }>> & {
1999
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2000
+ }>>;
2001
+ emit: (event: "update:modelValue", ...args: any[]) => void;
2002
+ valueCp: import("vue").WritableComputedRef<any>;
2003
+ NInput: any;
2004
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2005
+ paramCfg: {
2006
+ type: ObjectConstructor;
2007
+ default: null;
2008
+ };
2009
+ modelValue: {
2010
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2011
+ default: null;
2012
+ };
2013
+ }>> & {
2014
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2015
+ }, {
2016
+ modelValue: string | number | unknown[];
2017
+ paramCfg: Record<string, any>;
2018
+ }>;
2019
+ InputNumber: import("vue").DefineComponent<{
2020
+ modelValue: {
2021
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2022
+ default: null;
2023
+ };
2024
+ }, {
2025
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2026
+ modelValue: {
2027
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2028
+ default: null;
2029
+ };
2030
+ }>> & {
2031
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2032
+ }>>;
2033
+ emit: (event: "update:modelValue", ...args: any[]) => void;
2034
+ valueCp: import("vue").WritableComputedRef<any>;
2035
+ NInputNumber: any;
2036
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2037
+ modelValue: {
2038
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2039
+ default: null;
2040
+ };
2041
+ }>> & {
2042
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2043
+ }, {
2044
+ modelValue: string | number | unknown[];
2045
+ }>;
2046
+ SelectFilter: import("vue").DefineComponent<{
2047
+ paramCfg: {
2048
+ type: ObjectConstructor;
2049
+ default: null;
2050
+ };
2051
+ modelValue: {
2052
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2053
+ default: null;
2054
+ };
2055
+ }, {
2056
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2057
+ paramCfg: {
2058
+ type: ObjectConstructor;
2059
+ default: null;
2060
+ };
2061
+ modelValue: {
2062
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2063
+ default: null;
2064
+ };
2065
+ }>> & {
2066
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2067
+ }>>;
2068
+ emit: (event: "update:modelValue", ...args: any[]) => void;
2069
+ valueCp: import("vue").WritableComputedRef<any>;
2070
+ optionSetting: import("vue").ComputedRef<any>;
2071
+ widgetOptions: import("vue").ComputedRef<any>;
2072
+ NSelect: any;
2073
+ WidgetOptionEnums: {
2074
+ RADIO: string;
2075
+ MULTIPLE: string;
2076
+ ALL: string;
2077
+ SELECT_TIME: string;
2078
+ PAST_TIME: string;
2079
+ FUTURE_TIME: string;
2080
+ };
2081
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2082
+ paramCfg: {
2083
+ type: ObjectConstructor;
2084
+ default: null;
2085
+ };
2086
+ modelValue: {
2087
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2088
+ default: null;
2089
+ };
2090
+ }>> & {
2091
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2092
+ }, {
2093
+ modelValue: string | number | unknown[];
2094
+ paramCfg: Record<string, any>;
2095
+ }>;
2096
+ WidgetTypeEnums: {
2097
+ INPUT_NUMBER: string;
2098
+ INPUT: string;
2099
+ SELECT: string;
2100
+ DATE: string;
2101
+ DATE_OUT: string;
2102
+ DATE_TIME: string;
2103
+ DATETIME_OUT: string;
2104
+ CHECKBOX_GROUP: string;
2105
+ INPUTNUMBER_RANGE: string;
2106
+ DATE_RANGE_OUT: string;
2107
+ DATE_RANGE_INNER: string;
2108
+ DATETIME_RANGE_OUT: string;
2109
+ DATETIME_RANGE_INNER: string;
2110
+ LABEL: string;
2111
+ SELECTLABEL: string;
2112
+ SELECTDYNAMIC: string;
2113
+ };
2114
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2115
+ paramCfg: {
2116
+ type: ObjectConstructor;
2117
+ default: null;
2118
+ };
2119
+ modelValue: {
2120
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2121
+ default: null;
2122
+ };
2123
+ modelValues: {
2124
+ type: ArrayConstructor;
2125
+ default: () => never[];
2126
+ };
2127
+ }>> & {
2128
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2129
+ "onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
2130
+ }, {
2131
+ modelValue: string | number | unknown[];
2132
+ paramCfg: Record<string, any>;
2133
+ modelValues: unknown[];
2134
+ }>;
2135
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2136
+ actionList_prop: {
2137
+ type: PropType<IClassifyListType>;
2138
+ default: () => {};
2139
+ };
2140
+ conditionList: {
2141
+ type: ArrayConstructor;
2142
+ default: () => never[];
2143
+ };
2144
+ tableId: {
2145
+ type: StringConstructor;
2146
+ default: string;
2147
+ };
2148
+ searchFieldList: {
2149
+ type: ArrayConstructor;
2150
+ default: () => never[];
2151
+ };
2152
+ showItemName: {
2153
+ type: BooleanConstructor;
2154
+ default: boolean;
2155
+ };
2156
+ hideAddBtn: {
2157
+ type: BooleanConstructor;
2158
+ default: boolean;
2159
+ };
2160
+ }>> & {
2161
+ onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
2162
+ onSaveAdd?: ((...args: any[]) => any) | undefined;
2163
+ }, {
2164
+ searchFieldList: unknown[];
2165
+ tableId: string;
2166
+ conditionList: unknown[];
2167
+ actionList_prop: IClassifyListType;
2168
+ showItemName: boolean;
2169
+ hideAddBtn: boolean;
2170
+ }>;
1691
2171
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancelSaveAdd"[], "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1692
2172
  visible: {
1693
2173
  type: BooleanConstructor;
@@ -1784,6 +2264,10 @@ declare const _default: import("vue").DefineComponent<{
1784
2264
  type: ObjectConstructor;
1785
2265
  default: () => {};
1786
2266
  };
2267
+ filterType: {
2268
+ type: StringConstructor;
2269
+ default: string;
2270
+ };
1787
2271
  }>> & {
1788
2272
  onChangeSearch?: ((...args: any[]) => any) | undefined;
1789
2273
  onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
@@ -1799,5 +2283,6 @@ declare const _default: import("vue").DefineComponent<{
1799
2283
  hideConditionChangeSetting: number;
1800
2284
  hideClearConditionChange: number;
1801
2285
  isShowResetButton: boolean;
2286
+ filterType: string;
1802
2287
  }>;
1803
2288
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as s,watch as o,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as m,toDisplayString as g,createCommentVNode as v,createElementVNode as C,Fragment as y,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import{vFlexibleResize as J}from"../../../shared/directive/flexibleResize.js";import{InjectionFilterApiConfig as M}from"../../table-filter/src/constants/index.js";import{root_isShowResetButton as A}from"./const/index.js";import E from"../../table-filter/src/hooks/useMixins.js";import F from"../../table-filter/src/hooks/useAdvanced.js";const T={key:0,class:"header"},R={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},se={key:0,class:"main-wrapper"},oe=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>({})},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:pe}){const me=e,{handleGetConfigApi:ge}=E(),{transformClassifyChild:ve}=F(),Ce=i(),ye=x(),ke=n(null);let Se=n(150),be=n(!1),xe=n([]),Oe=n([]),_e=n([]),we=n(2),Ie=n({name:"全部数据",sid:"all_data"}),Le=n([]),Ne=n(""),ze=n(!1),je=n("全部数据");l(A,me.isShowResetButton),l(M,me.filterApiConfig);let Be=t((()=>0===we.value?{marginRight:"8px"}:2===we.value?{display:"inline-block"}:{})),Pe=t((()=>{let e=Oe.value.filter((e=>-1!==me.conditionSid.indexOf(e.sid)));if(-1!==me.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Je=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ue(n,l)+i}));function Me(e){e.open?e.open=!1:e.open=!0}function Ae(e,i,n){je.value=e.name;let l=function(e){let i=[];return xe.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,me.conditionSid));We(!1);const t=ve(null==e?void 0:e.conObj,me.searchFieldList);pe("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ee(){let e="";if(2===we.value)e=0;else{let i=we.value;e=++i}Se.value=150,Fe(e)}async function Fe(e,i){let n={tableId:me.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ge(n,"requestSaveListPersonaSetting",{},me.filterApiConfig)&&pe("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){ze.value=!0,We(!1)}function Re(e){ze.value=e}function We(e){be.value=void 0===e?!be.value:e}function qe(){if(!me.tableId)return ye.warning("请传入tableId");xe.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=me.conditionMap;Le.value=JSON.parse(JSON.stringify(e))||[],_e.value=JSON.parse(JSON.stringify(i)),Oe.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Le.value.length&&(Le.value=["未分类"]),Le.value.forEach((e=>{let i={name:e,children:[]};Oe.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==me.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=ve(null==n?void 0:n.conObj,me.searchFieldList);pe("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),xe.value=n,0===we.value&&(l=!0,xe.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function Ge({distance:e}){const i=Se.value+e;Se.value=Math.min(Math.max(i,50),650)}function Qe(){Fe(we.value,Se.value)}async function $e(){await Ke(me.tableId),Ve()}async function De(e){await Ke(me.tableId),He()}function Ve(e){He(e).then((e=>({})))}function He(e,i={}){if(!me.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(me.conditionMap));return new Promise(((i,l)=>{var t,a,s,o,d,c,r;if(Object.keys(n).length>0){_e.value=n.conditionList||[],Le.value=n.displayCategoryList||[];let l={conditionList:_e.value,displayCategoryList:Le.value};pe("getQuickSearchListObj",l),Ne.value=null!=(t=n.settingId)?t:"";const h=_e.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(s=null==(a=Ce.tableOptions)?void 0:a.filterCondition)?void 0:s.displayCategory)&&e&&i({name:null==(d=null==(o=Ce.tableOptions)?void 0:o.filterCondition)?void 0:d.name,sid:null==(r=null==(c=Ce.tableOptions)?void 0:c.filterCondition)?void 0:r.displayCategory}),i(h)}else i({})}))}async function Ke(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ge(i,"requestTableCondiTionList",{},me.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ue(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{s((()=>{let i=e.composedPath&&e.composedPath();ke.value&&i.includes(ke.value)||We(!1)}))}))})),o((()=>me.tableId),(e=>{e&&Ve(!0)}),{immediate:!0,deep:!0}),o((()=>me.curClassificationIndex),(e=>{void 0!==e&&(we.value=e,qe())}),{immediate:!0,deep:!0}),o((()=>me.curClassificationWidth),(e=>{e&&(Se.value=Number(e)||150)}),{immediate:!0}),o((()=>me.conditionMap),(e=>{!async function(){try{await qe()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(we)]),style:u(h(Be))},[0===h(we)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(Se)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",T,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])):v("v-if",!0),C("ul",R,[(d(!0),c(y,null,k(h(xe),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[C("span",{class:r(["parent",{open:i.open}]),onClick:e=>Me(i)},[C("span",null,g(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,q),i.open?(d(!0),c(y,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Ae(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}])},[C("span",Q,g(Ue(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[C("span",null,g(h(Je)(e)),1)])),_:2},1024)):v("v-if",!0)],8,G)))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},g(i.name),11,W))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",$,[C("div",D,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[V,m(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:Ge,onEnd:Qe}]]):v("v-if",!0),1===h(we)?(d(),c(y,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(_e).filter((e=>e.isShow)).length>0?(d(),c("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",K,[C("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[m(" 全部数据 "),h(Ie).digital||0===h(Ie).digital?(d(),c(y,{key:0},[m(" ("+g(h(Ie).digital||0)+") ",1)],64)):v("v-if",!0)],2),C("div",U,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])])):v("v-if",!0),C("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(y,null,k(h(xe).slice(1),((e,i)=>(d(),c(y,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(y,{key:1},[C("span",Y,g(e.name),1),C("div",Z,[(d(!0),c(y,null,k(e.children,((i,n)=>(d(),c(y,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Ae(i,0,e)},g(Ue(i.name,null==i?void 0:i.isPublic)),11,ee)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Ae(e)},g(e.name)+" "+g(e.digital),11,X))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ie,[C("div",ne,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(y,null,k(h(xe).slice(1),(e=>(d(),c(y,null,[e.children&&0!==e.children.length?(d(!0),c(y,{key:1},k(e.children,((i,n)=>(d(),c(y,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[m(g(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Ae(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[m(g(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Ae(e)},null,8,["component","onClick"])]))],64)))),256)),C("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[le,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(we)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ke},[C("span",{class:"title",onClick:n[3]||(n[3]=()=>We())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[C("span",te,g(h(Pe)),1)])),default:b((()=>[C("span",ae,g(h(Pe)),1)])),_:1}),p(h(O),{component:h(be)?h(B):h(L)},null,8,["component"])]),h(be)?(d(),c("div",se,[C("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(y,null,k(h(xe),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Me(i)},[m(g(i.name)+g(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,ce)):v("v-if",!0),i.open?(d(!0),c(y,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Ae(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}])},[C("span",null,g(Ue(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[C("span",null,g(h(Je)(e)),1)])),_:2},1024)):v("v-if",!0)],8,re)))),128)):v("v-if",!0)],64)):(d(),c(y,{key:0},[C("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},g(i.name),11,oe),C("div",de,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",he,[C("div",ue,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[fe,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(_e),displayCategoryList:h(Le),settingId:h(Ne),tableId:e.tableId,classifyModal:h(ze),onSaveGetTableCondiTionList:De,onCondiTionListInit:$e,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal"])],6))}});export{pe as default};
1
+ import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as s,watch as o,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as m,toDisplayString as g,createCommentVNode as v,createElementVNode as y,Fragment as C,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import{vFlexibleResize as J}from"../../../shared/directive/flexibleResize.js";import{InjectionFilterApiConfig as M,InjectionClassifyfilterType as A}from"../../table-filter/src/constants/index.js";import{root_isShowResetButton as T}from"./const/index.js";import E from"../../table-filter/src/hooks/useMixins.js";import F from"../../table-filter/src/hooks/useAdvanced.js";const R={key:0,class:"header"},W={class:"tree"},q=["onClick"],G=["onClick"],Q=["onClick"],$={class:"child-item-name"},D={key:1,class:"tree-type-footer"},V={class:"selected-num"},H=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),K={key:0,class:"tile-type classify-1"},U={key:0,class:"header"},X={class:"right-setting"},Y=["onClick"],Z={class:"parent ellips"},ee={class:"children"},ie=["onClick"],ne={key:1,class:"selected-list"},le={class:"selected-num"},te=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),ae={class:"name"},se={class:"name"},oe={key:0,class:"main-wrapper"},de=["onClick"],ce={class:"tree-footer"},re=["onClick"],he=["onClick"],ue={key:0,class:"select-type-footer"},fe={class:"selected-num"},pe=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var me=e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>({})},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})},filterType:{type:String,default:"1"}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:me}){const ge=e,{handleGetConfigApi:ve}=E(),{transformClassifyChild:ye}=F(),Ce=i(),ke=x(),Se=n(null);let be=n(150),xe=n(!1),Oe=n([]),_e=n([]),we=n([]),Ie=n(2),Le=n({name:"全部数据",sid:"all_data"}),Ne=n([]),ze=n(""),je=n(!1),Be=n("全部数据");l(T,ge.isShowResetButton),l(M,ge.filterApiConfig),l(A,ge.filterType);let Pe=t((()=>0===Ie.value?{marginRight:"8px"}:2===Ie.value?{display:"inline-block"}:{})),Je=t((()=>{let e=_e.value.filter((e=>-1!==ge.conditionSid.indexOf(e.sid)));if(-1!==ge.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Me=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Xe(n,l)+i}));function Ae(e){e.open?e.open=!1:e.open=!0}function Te(e,i,n){Be.value=e.name;let l=function(e){let i=[];return Oe.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,ge.conditionSid));qe(!1);const t=ye(null==e?void 0:e.conObj,ge.searchFieldList);me("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ee(){let e="";if(2===Ie.value)e=0;else{let i=Ie.value;e=++i}be.value=150,Fe(e)}async function Fe(e,i){let n={tableId:ge.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ve(n,"requestSaveListPersonaSetting",{},ge.filterApiConfig)&&me("setClassificationIndex",e)}catch(e){console.log(e)}}function Re(){je.value=!0,qe(!1)}function We(e){je.value=e}function qe(e){xe.value=void 0===e?!xe.value:e}function Ge(){if(!ge.tableId)return ke.warning("请传入tableId");Oe.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=ge.conditionMap;Ne.value=JSON.parse(JSON.stringify(e))||[],we.value=JSON.parse(JSON.stringify(i)),_e.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Ne.value.length&&(Ne.value=["未分类"]),Ne.value.forEach((e=>{let i={name:e,children:[]};_e.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==ge.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=ye(null==n?void 0:n.conObj,ge.searchFieldList);me("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),Oe.value=n,0===Ie.value&&(l=!0,Oe.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function Qe({distance:e}){const i=be.value+e;be.value=Math.min(Math.max(i,50),650)}function $e(){Fe(Ie.value,be.value)}async function De(){await Ue(ge.tableId),He()}async function Ve(e){await Ue(ge.tableId),Ke()}function He(e){Ke(e).then((e=>({})))}function Ke(e,i={}){if(!ge.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(ge.conditionMap));return new Promise(((i,l)=>{var t,a,s,o,d,c,r;if(Object.keys(n).length>0){we.value=n.conditionList||[],Ne.value=n.displayCategoryList||[];let l={conditionList:we.value,displayCategoryList:Ne.value};me("getQuickSearchListObj",l),ze.value=null!=(t=n.settingId)?t:"";const h=we.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(s=null==(a=Ce.tableOptions)?void 0:a.filterCondition)?void 0:s.displayCategory)&&e&&i({name:null==(d=null==(o=Ce.tableOptions)?void 0:o.filterCondition)?void 0:d.name,sid:null==(r=null==(c=Ce.tableOptions)?void 0:c.filterCondition)?void 0:r.displayCategory}),i(h)}else i({})}))}async function Ue(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ve(i,"requestTableCondiTionList",{},ge.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Xe(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{s((()=>{let i=e.composedPath&&e.composedPath();Se.value&&i.includes(Se.value)||qe(!1)}))}))})),o((()=>ge.tableId),(e=>{e&&He(!0)}),{immediate:!0,deep:!0}),o((()=>ge.curClassificationIndex),(e=>{void 0!==e&&(Ie.value=e,Ge())}),{immediate:!0,deep:!0}),o((()=>ge.curClassificationWidth),(e=>{e&&(be.value=Number(e)||150)}),{immediate:!0}),o((()=>ge.conditionMap),(e=>{!async function(){try{await Ge()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(Ie)]),style:u(h(Pe))},[0===h(Ie)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(be)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])):v("v-if",!0),y("ul",W,[(d(!0),c(C,null,k(h(Oe),((i,n)=>(d(),c(C,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(C,{key:1},[y("span",{class:r(["parent",{open:i.open}]),onClick:e=>Ae(i)},[y("span",null,g(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,G),i.open?(d(!0),c(C,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Te(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[y("span",{class:r(["child-item",{selected:e.selected}])},[y("span",$,g(Xe(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[y("span",null,g(h(Me)(e)),1)])),_:2},1024)):v("v-if",!0)],8,Q)))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Te(i)},g(i.name),11,q))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",D,[y("div",V,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),y("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[H,m(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:Qe,onEnd:$e}]]):v("v-if",!0),1===h(Ie)?(d(),c(C,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(we).filter((e=>e.isShow)).length>0?(d(),c("div",K,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",U,[y("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[m(" 全部数据 "),h(Le).digital||0===h(Le).digital?(d(),c(C,{key:0},[m(" ("+g(h(Le).digital||0)+") ",1)],64)):v("v-if",!0)],2),y("div",X,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])])):v("v-if",!0),y("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(C,null,k(h(Oe).slice(1),((e,i)=>(d(),c(C,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(C,{key:1},[y("span",Z,g(e.name),1),y("div",ee,[(d(!0),c(C,null,k(e.children,((i,n)=>(d(),c(C,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Te(i,0,e)},g(Xe(i.name,null==i?void 0:i.isPublic)),11,ie)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Te(e)},g(e.name)+" "+g(e.digital),11,Y))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ne,[y("div",le,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(C,null,k(h(Oe).slice(1),(e=>(d(),c(C,null,[e.children&&0!==e.children.length?(d(!0),c(C,{key:1},k(e.children,((i,n)=>(d(),c(C,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[m(g(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Te(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[m(g(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Te(e)},null,8,["component","onClick"])]))],64)))),256)),y("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[te,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(Ie)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:Se},[y("span",{class:"title",onClick:n[3]||(n[3]=()=>qe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[y("span",ae,g(h(Je)),1)])),default:b((()=>[y("span",se,g(h(Je)),1)])),_:1}),p(h(O),{component:h(xe)?h(B):h(L)},null,8,["component"])]),h(xe)?(d(),c("div",oe,[y("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(C,null,k(h(Oe),((i,n)=>(d(),c(C,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(C,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Ae(i)},[m(g(i.name)+g(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,re)):v("v-if",!0),i.open?(d(!0),c(C,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Te(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[y("span",{class:r(["child-item",{selected:e.selected}])},[y("span",null,g(Xe(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[y("span",null,g(h(Me)(e)),1)])),_:2},1024)):v("v-if",!0)],8,he)))),128)):v("v-if",!0)],64)):(d(),c(C,{key:0},[y("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Te(i)},g(i.name),11,de),y("div",ce,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ue,[y("div",fe,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),y("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[pe,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(we),displayCategoryList:h(Ne),settingId:h(ze),tableId:e.tableId,classifyModal:h(je),onSaveGetTableCondiTionList:Ve,onCondiTionListInit:De,onSetClassifyModal:We},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal"])],6))}});export{me as default};