cnhis-design-vue 3.1.54-beta.2 → 3.1.54-beta.21

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 (158) 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 +16 -1
  6. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  7. package/es/components/callback/src/components/render/popupMaps.d.ts +54 -14
  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 +7 -0
  11. package/es/components/chat-sdk/src/chatSDK.js +1 -0
  12. package/es/components/classification/index.d.ts +498 -1
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +485 -1
  14. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  15. package/es/components/classification/src/components/set-classification/index.vue.d.ts +485 -1
  16. package/es/components/classification/src/index.vue.d.ts +500 -1
  17. package/es/components/classification/src/index.vue2.js +1 -1
  18. package/es/components/classification/style/index.css +1 -1
  19. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  20. package/es/components/fabric-chart/index.d.ts +1 -0
  21. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -0
  22. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  23. package/es/components/fabric-chart/src/constants/index.d.ts +1 -0
  24. package/es/components/fabric-chart/src/constants/index.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +18 -1
  27. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +5 -0
  30. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +1 -1
  37. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +1 -1
  38. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  39. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  40. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +10 -4
  42. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  43. package/es/components/form-config/index.d.ts +135 -111
  44. package/es/components/form-config/src/FormConfig.vue.d.ts +136 -112
  45. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -14
  46. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +53 -41
  47. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +17 -17
  48. package/es/components/form-config/src/constants/index.d.ts +4 -4
  49. package/es/components/form-config/src/types/index.d.ts +3 -3
  50. package/es/components/form-render/index.d.ts +26 -14
  51. package/es/components/form-render/index.js +1 -1
  52. package/es/components/form-render/src/FormRender.vue.d.ts +27 -15
  53. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  54. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -14
  55. package/es/components/form-render/src/components/renderer/date.js +1 -1
  56. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  57. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  58. package/es/components/form-render/src/components/renderer/select.js +1 -1
  59. package/es/components/form-render/src/hooks/index.d.ts +20 -9
  60. package/es/components/form-render/src/hooks/index.js +1 -1
  61. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  62. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  63. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
  64. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
  65. package/es/components/form-render/src/hooks/useFormEvent.d.ts +12 -3
  66. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  67. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +1 -1
  68. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  69. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -2
  70. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +2 -2
  71. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +7 -5
  72. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  73. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +13 -4
  74. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
  75. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  76. package/es/components/form-render/src/types/index.d.ts +6 -6
  77. package/es/components/iho-table/index.d.ts +28 -0
  78. package/es/components/iho-table/src/IhoTable.vue.d.ts +28 -0
  79. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
  80. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +8 -3
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  87. package/es/components/iho-table/src/types/index.d.ts +7 -5
  88. package/es/components/index.css +1 -1
  89. package/es/components/index.d.ts +1 -0
  90. package/es/components/index.js +1 -1
  91. package/es/components/info-header/index.d.ts +62 -38
  92. package/es/components/info-header/src/InfoHeader.vue.d.ts +62 -38
  93. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -2
  94. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -2
  95. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +28 -16
  96. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -14
  97. package/es/components/quick-search/style/index.css +1 -1
  98. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  99. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  100. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  101. package/es/components/shortcut-setter/index.d.ts +33 -21
  102. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +33 -21
  103. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  104. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +332 -0
  105. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
  106. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
  107. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
  108. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
  109. package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
  110. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
  111. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
  112. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
  113. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
  114. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
  115. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
  116. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
  117. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
  118. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
  119. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
  120. package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
  121. package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
  122. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
  123. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
  124. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
  125. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +486 -0
  126. package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
  127. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
  128. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  129. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  130. package/es/components/table-filter/src/constants/index.js +1 -1
  131. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  132. package/es/env.d.ts +25 -25
  133. package/es/shared/assets/img/failure.png.js +1 -1
  134. package/es/shared/assets/img/no-permission.png.js +1 -1
  135. package/es/shared/assets/img/nodata.png.js +1 -1
  136. package/es/shared/assets/img/notfound.png.js +1 -1
  137. package/es/shared/assets/img/qr.png.js +1 -1
  138. package/es/shared/assets/img/success.png.js +1 -1
  139. package/es/shared/assets/img/video.png.js +1 -1
  140. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  141. package/es/shared/assets/img/xb_big.png.js +1 -1
  142. package/es/shared/assets/img/xb_small.png.js +1 -1
  143. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  144. package/es/shared/package.json.js +1 -1
  145. package/es/shared/types/business.d.ts +61 -53
  146. package/es/shared/utils/business.d.ts +11 -7
  147. package/es/shared/utils/business.js +1 -1
  148. package/es/shared/utils/index.js +1 -1
  149. package/package.json +2 -2
  150. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  151. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  152. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  153. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  154. package/es/components/fabric-chart/src/hooks/electrocardiogram/constants/index.d.ts +0 -2
  155. package/es/components/fabric-chart/src/hooks/electrocardiogram/constants/index.js +0 -1
  156. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  157. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  158. 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,491 @@ 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
+ * 改变展示方式
1788
+ */
1789
+ FilterConditionsState: any;
1790
+ paramOptions: import("vue").ComputedRef<any>;
1791
+ addFilterCondition: () => void;
1792
+ delFilterCondition: (index: number) => void;
1793
+ updateKey: (index: number, val: any) => void;
1794
+ updateCondition: (index: number, val: any) => void;
1795
+ getParamCfg: (key: string) => any;
1796
+ initFilterConditions: (tableId: string, rawConditions: import("../../../../es/components/table-filter/src/types").ISearchConfigType[]) => Promise<void>;
1797
+ getRawFilterConditions: () => any;
1798
+ isShowValueCfg: (con: string) => boolean;
1799
+ handleEditDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1800
+ handleDisplayCategoryAddState: () => void;
1801
+ findConditionByDisplayCategory: (sid: string) => unknown;
1802
+ handleDisplayCategorySelectProxy: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1803
+ clearFormData: () => void;
1804
+ handleInitConditions: () => Promise<void>;
1805
+ validate: () => Promise<unknown>;
1806
+ saveAdd: () => void;
1807
+ cancelSaveAdd: () => void;
1808
+ checkActionList: () => any;
1809
+ NSpin: any;
1810
+ NIcon: any;
1811
+ NInput: any;
1812
+ NButton: any;
1813
+ NTooltip: any;
1814
+ NSelect: any;
1815
+ 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<{}>>, {}>;
1816
+ 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<{}>>, {}>;
1817
+ 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<{}>>, {}>;
1818
+ ValueCfg: import("vue").DefineComponent<{
1819
+ paramCfg: {
1820
+ type: ObjectConstructor;
1821
+ default: null;
1822
+ };
1823
+ modelValue: {
1824
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1825
+ default: null;
1826
+ };
1827
+ presetVal: {
1828
+ type: StringConstructor;
1829
+ default: null;
1830
+ };
1831
+ isAccurate: {
1832
+ type: BooleanConstructor;
1833
+ };
1834
+ }, {
1835
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1836
+ paramCfg: {
1837
+ type: ObjectConstructor;
1838
+ default: null;
1839
+ };
1840
+ modelValue: {
1841
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1842
+ default: null;
1843
+ };
1844
+ presetVal: {
1845
+ type: StringConstructor;
1846
+ default: null;
1847
+ };
1848
+ isAccurate: {
1849
+ type: BooleanConstructor;
1850
+ };
1851
+ }>> & {
1852
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1853
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
1854
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
1855
+ }>>;
1856
+ emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
1857
+ valueCp: import("vue").WritableComputedRef<any>;
1858
+ presetValCp: import("vue").WritableComputedRef<string>;
1859
+ isAccurateCp: import("vue").WritableComputedRef<boolean>;
1860
+ isSelectMode: import("vue").ComputedRef<boolean>;
1861
+ biType: import("vue").ComputedRef<any>;
1862
+ Date: import("vue").DefineComponent<{
1863
+ componentCfg: {
1864
+ type: ObjectConstructor;
1865
+ };
1866
+ paramCfg: {
1867
+ type: ObjectConstructor;
1868
+ default: null;
1869
+ };
1870
+ modelValue: {
1871
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1872
+ default: null;
1873
+ };
1874
+ }, {
1875
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1876
+ componentCfg: {
1877
+ type: ObjectConstructor;
1878
+ };
1879
+ paramCfg: {
1880
+ type: ObjectConstructor;
1881
+ default: null;
1882
+ };
1883
+ modelValue: {
1884
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1885
+ default: null;
1886
+ };
1887
+ }>> & {
1888
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1889
+ }>>;
1890
+ emit: (event: "update:modelValue", ...args: any[]) => void;
1891
+ valueCp: import("vue").WritableComputedRef<any>;
1892
+ dateType: any;
1893
+ valueFormat: import("vue").ComputedRef<string>;
1894
+ compType: import("vue").ComputedRef<any>;
1895
+ CDatePicker: import("../..").SFCWithInstall<import("vue").DefineComponent<{
1896
+ updateUnchangedValue: {
1897
+ type: BooleanConstructor;
1898
+ };
1899
+ onConfirm: {
1900
+ type: FunctionConstructor;
1901
+ };
1902
+ formattedValue: {
1903
+ type: PropType<(string | [string, string]) | null | undefined>;
1904
+ };
1905
+ placeholder: {
1906
+ type: StringConstructor;
1907
+ };
1908
+ allowedInvalidValue: {
1909
+ type: StringConstructor;
1910
+ };
1911
+ }, {
1912
+ attrs: {
1913
+ [x: string]: unknown;
1914
+ };
1915
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1916
+ updateUnchangedValue: {
1917
+ type: BooleanConstructor;
1918
+ };
1919
+ onConfirm: {
1920
+ type: FunctionConstructor;
1921
+ };
1922
+ formattedValue: {
1923
+ type: PropType<(string | [string, string]) | null | undefined>;
1924
+ };
1925
+ placeholder: {
1926
+ type: StringConstructor;
1927
+ };
1928
+ allowedInvalidValue: {
1929
+ type: StringConstructor;
1930
+ };
1931
+ }>> & {
1932
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1933
+ }>>;
1934
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
1935
+ datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
1936
+ panelInstRef: import("vue").Ref<null>;
1937
+ placeholderRef: import("vue").Ref<any>;
1938
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
1939
+ isDateTime: import("vue").ComputedRef<boolean>;
1940
+ formatRef: import("vue").ComputedRef<string>;
1941
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
1942
+ focus: () => any;
1943
+ blur: () => any;
1944
+ handleConfirm: (target: HTMLInputElement) => void;
1945
+ onUpdateShow: (show: boolean) => void;
1946
+ onConfirm: (...args: any[]) => Promise<void>;
1947
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1948
+ NDatePicker: any;
1949
+ }, 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<{
1950
+ updateUnchangedValue: {
1951
+ type: BooleanConstructor;
1952
+ };
1953
+ onConfirm: {
1954
+ type: FunctionConstructor;
1955
+ };
1956
+ formattedValue: {
1957
+ type: PropType<(string | [string, string]) | null | undefined>;
1958
+ };
1959
+ placeholder: {
1960
+ type: StringConstructor;
1961
+ };
1962
+ allowedInvalidValue: {
1963
+ type: StringConstructor;
1964
+ };
1965
+ }>> & {
1966
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1967
+ }, {
1968
+ updateUnchangedValue: boolean;
1969
+ }>>;
1970
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1971
+ componentCfg: {
1972
+ type: ObjectConstructor;
1973
+ };
1974
+ paramCfg: {
1975
+ type: ObjectConstructor;
1976
+ default: null;
1977
+ };
1978
+ modelValue: {
1979
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1980
+ default: null;
1981
+ };
1982
+ }>> & {
1983
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1984
+ }, {
1985
+ modelValue: string | number | unknown[];
1986
+ paramCfg: Record<string, any>;
1987
+ }>;
1988
+ InputFilter: import("vue").DefineComponent<{
1989
+ paramCfg: {
1990
+ type: ObjectConstructor;
1991
+ default: null;
1992
+ };
1993
+ modelValue: {
1994
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1995
+ default: null;
1996
+ };
1997
+ }, {
1998
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1999
+ paramCfg: {
2000
+ type: ObjectConstructor;
2001
+ default: null;
2002
+ };
2003
+ modelValue: {
2004
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2005
+ default: null;
2006
+ };
2007
+ }>> & {
2008
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2009
+ }>>;
2010
+ emit: (event: "update:modelValue", ...args: any[]) => void;
2011
+ valueCp: import("vue").WritableComputedRef<any>;
2012
+ NInput: any;
2013
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2014
+ paramCfg: {
2015
+ type: ObjectConstructor;
2016
+ default: null;
2017
+ };
2018
+ modelValue: {
2019
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2020
+ default: null;
2021
+ };
2022
+ }>> & {
2023
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2024
+ }, {
2025
+ modelValue: string | number | unknown[];
2026
+ paramCfg: Record<string, any>;
2027
+ }>;
2028
+ InputNumber: import("vue").DefineComponent<{
2029
+ modelValue: {
2030
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2031
+ default: null;
2032
+ };
2033
+ }, {
2034
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2035
+ modelValue: {
2036
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2037
+ default: null;
2038
+ };
2039
+ }>> & {
2040
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2041
+ }>>;
2042
+ emit: (event: "update:modelValue", ...args: any[]) => void;
2043
+ valueCp: import("vue").WritableComputedRef<any>;
2044
+ NInputNumber: any;
2045
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2046
+ modelValue: {
2047
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2048
+ default: null;
2049
+ };
2050
+ }>> & {
2051
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2052
+ }, {
2053
+ modelValue: string | number | unknown[];
2054
+ }>;
2055
+ SelectFilter: import("vue").DefineComponent<{
2056
+ paramCfg: {
2057
+ type: ObjectConstructor;
2058
+ default: null;
2059
+ };
2060
+ modelValue: {
2061
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2062
+ default: null;
2063
+ };
2064
+ }, {
2065
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2066
+ paramCfg: {
2067
+ type: ObjectConstructor;
2068
+ default: null;
2069
+ };
2070
+ modelValue: {
2071
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2072
+ default: null;
2073
+ };
2074
+ }>> & {
2075
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2076
+ }>>;
2077
+ emit: (event: "update:modelValue", ...args: any[]) => void;
2078
+ valueCp: import("vue").WritableComputedRef<any>;
2079
+ optionSetting: import("vue").ComputedRef<any>;
2080
+ widgetOptions: import("vue").ComputedRef<any>;
2081
+ NSelect: any;
2082
+ WidgetOptionEnums: {
2083
+ RADIO: string;
2084
+ MULTIPLE: string;
2085
+ ALL: string;
2086
+ SELECT_TIME: string;
2087
+ PAST_TIME: string;
2088
+ FUTURE_TIME: string;
2089
+ };
2090
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2091
+ paramCfg: {
2092
+ type: ObjectConstructor;
2093
+ default: null;
2094
+ };
2095
+ modelValue: {
2096
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2097
+ default: null;
2098
+ };
2099
+ }>> & {
2100
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2101
+ }, {
2102
+ modelValue: string | number | unknown[];
2103
+ paramCfg: Record<string, any>;
2104
+ }>;
2105
+ WidgetTypeEnums: {
2106
+ INPUT_NUMBER: string;
2107
+ INPUT: string;
2108
+ SELECT: string;
2109
+ DATE: string;
2110
+ DATE_OUT: string;
2111
+ DATE_TIME: string;
2112
+ DATETIME_OUT: string;
2113
+ CHECKBOX_GROUP: string;
2114
+ INPUTNUMBER_RANGE: string;
2115
+ DATE_RANGE_OUT: string;
2116
+ DATE_RANGE_INNER: string;
2117
+ DATETIME_RANGE_OUT: string;
2118
+ DATETIME_RANGE_INNER: string;
2119
+ LABEL: string;
2120
+ SELECTLABEL: string;
2121
+ SELECTDYNAMIC: string;
2122
+ };
2123
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2124
+ paramCfg: {
2125
+ type: ObjectConstructor;
2126
+ default: null;
2127
+ };
2128
+ modelValue: {
2129
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
2130
+ default: null;
2131
+ };
2132
+ presetVal: {
2133
+ type: StringConstructor;
2134
+ default: null;
2135
+ };
2136
+ isAccurate: {
2137
+ type: BooleanConstructor;
2138
+ };
2139
+ }>> & {
2140
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2141
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
2142
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
2143
+ }, {
2144
+ modelValue: string | number | unknown[];
2145
+ paramCfg: Record<string, any>;
2146
+ presetVal: string;
2147
+ isAccurate: boolean;
2148
+ }>;
2149
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2150
+ actionList_prop: {
2151
+ type: PropType<IClassifyListType>;
2152
+ default: () => {};
2153
+ };
2154
+ conditionList: {
2155
+ type: ArrayConstructor;
2156
+ default: () => never[];
2157
+ };
2158
+ tableId: {
2159
+ type: StringConstructor;
2160
+ default: string;
2161
+ };
2162
+ searchFieldList: {
2163
+ type: ArrayConstructor;
2164
+ default: () => never[];
2165
+ };
2166
+ showItemName: {
2167
+ type: BooleanConstructor;
2168
+ default: boolean;
2169
+ };
2170
+ hideAddBtn: {
2171
+ type: BooleanConstructor;
2172
+ default: boolean;
2173
+ };
2174
+ }>> & {
2175
+ onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
2176
+ onSaveAdd?: ((...args: any[]) => any) | undefined;
2177
+ }, {
2178
+ searchFieldList: unknown[];
2179
+ tableId: string;
2180
+ conditionList: unknown[];
2181
+ actionList_prop: IClassifyListType;
2182
+ showItemName: boolean;
2183
+ hideAddBtn: boolean;
2184
+ }>;
1691
2185
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancelSaveAdd"[], "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1692
2186
  visible: {
1693
2187
  type: BooleanConstructor;
@@ -1784,6 +2278,10 @@ declare const _default: import("vue").DefineComponent<{
1784
2278
  type: ObjectConstructor;
1785
2279
  default: () => {};
1786
2280
  };
2281
+ filterType: {
2282
+ type: StringConstructor;
2283
+ default: string;
2284
+ };
1787
2285
  }>> & {
1788
2286
  onChangeSearch?: ((...args: any[]) => any) | undefined;
1789
2287
  onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
@@ -1799,5 +2297,6 @@ declare const _default: import("vue").DefineComponent<{
1799
2297
  hideConditionChangeSetting: number;
1800
2298
  hideClearConditionChange: number;
1801
2299
  isShowResetButton: boolean;
2300
+ filterType: string;
1802
2301
  }>;
1803
2302
  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};