cnhis-design-vue 3.1.54-beta.20 → 3.1.54-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/chat-sdk/src/chatSDK.d.ts +12 -0
- package/es/components/chat-sdk/src/chatSDK.js +1 -1
- package/es/components/classification/index.d.ts +498 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +485 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +485 -1
- package/es/components/classification/src/index.vue.d.ts +498 -1
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/classification/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +45 -45
- package/es/components/form-config/src/FormConfig.vue.d.ts +45 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +15 -15
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -5
- package/es/components/index.css +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +5 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +332 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +486 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
- package/es/components/table-filter/src/constants/index.d.ts +1 -0
- package/es/components/table-filter/src/constants/index.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +3 -2
|
@@ -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
|
-
|
|
593
|
+
ClassifyFilterConditionByApi: import("vue").DefineComponent<{
|
|
585
594
|
actionList_prop: {
|
|
586
595
|
type: PropType<IClassifyListType>;
|
|
587
596
|
default: () => {};
|
|
@@ -1688,6 +1697,489 @@ 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
|
+
presetVal: {
|
|
1826
|
+
type: StringConstructor;
|
|
1827
|
+
default: null;
|
|
1828
|
+
};
|
|
1829
|
+
isAccurate: {
|
|
1830
|
+
type: BooleanConstructor;
|
|
1831
|
+
};
|
|
1832
|
+
}, {
|
|
1833
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1834
|
+
paramCfg: {
|
|
1835
|
+
type: ObjectConstructor;
|
|
1836
|
+
default: null;
|
|
1837
|
+
};
|
|
1838
|
+
modelValue: {
|
|
1839
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1840
|
+
default: null;
|
|
1841
|
+
};
|
|
1842
|
+
presetVal: {
|
|
1843
|
+
type: StringConstructor;
|
|
1844
|
+
default: null;
|
|
1845
|
+
};
|
|
1846
|
+
isAccurate: {
|
|
1847
|
+
type: BooleanConstructor;
|
|
1848
|
+
};
|
|
1849
|
+
}>> & {
|
|
1850
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1851
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
1852
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1853
|
+
}>>;
|
|
1854
|
+
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
|
|
1855
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
1856
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
1857
|
+
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
1858
|
+
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
1859
|
+
biType: import("vue").ComputedRef<any>;
|
|
1860
|
+
Date: import("vue").DefineComponent<{
|
|
1861
|
+
componentCfg: {
|
|
1862
|
+
type: ObjectConstructor;
|
|
1863
|
+
};
|
|
1864
|
+
paramCfg: {
|
|
1865
|
+
type: ObjectConstructor;
|
|
1866
|
+
default: null;
|
|
1867
|
+
};
|
|
1868
|
+
modelValue: {
|
|
1869
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1870
|
+
default: null;
|
|
1871
|
+
};
|
|
1872
|
+
}, {
|
|
1873
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1874
|
+
componentCfg: {
|
|
1875
|
+
type: ObjectConstructor;
|
|
1876
|
+
};
|
|
1877
|
+
paramCfg: {
|
|
1878
|
+
type: ObjectConstructor;
|
|
1879
|
+
default: null;
|
|
1880
|
+
};
|
|
1881
|
+
modelValue: {
|
|
1882
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1883
|
+
default: null;
|
|
1884
|
+
};
|
|
1885
|
+
}>> & {
|
|
1886
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1887
|
+
}>>;
|
|
1888
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
1889
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
1890
|
+
dateType: any;
|
|
1891
|
+
valueFormat: import("vue").ComputedRef<string>;
|
|
1892
|
+
compType: import("vue").ComputedRef<any>;
|
|
1893
|
+
CDatePicker: import("../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
1894
|
+
updateUnchangedValue: {
|
|
1895
|
+
type: BooleanConstructor;
|
|
1896
|
+
};
|
|
1897
|
+
onConfirm: {
|
|
1898
|
+
type: FunctionConstructor;
|
|
1899
|
+
};
|
|
1900
|
+
formattedValue: {
|
|
1901
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
1902
|
+
};
|
|
1903
|
+
placeholder: {
|
|
1904
|
+
type: StringConstructor;
|
|
1905
|
+
};
|
|
1906
|
+
allowedInvalidValue: {
|
|
1907
|
+
type: StringConstructor;
|
|
1908
|
+
};
|
|
1909
|
+
}, {
|
|
1910
|
+
attrs: {
|
|
1911
|
+
[x: string]: unknown;
|
|
1912
|
+
};
|
|
1913
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1914
|
+
updateUnchangedValue: {
|
|
1915
|
+
type: BooleanConstructor;
|
|
1916
|
+
};
|
|
1917
|
+
onConfirm: {
|
|
1918
|
+
type: FunctionConstructor;
|
|
1919
|
+
};
|
|
1920
|
+
formattedValue: {
|
|
1921
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
1922
|
+
};
|
|
1923
|
+
placeholder: {
|
|
1924
|
+
type: StringConstructor;
|
|
1925
|
+
};
|
|
1926
|
+
allowedInvalidValue: {
|
|
1927
|
+
type: StringConstructor;
|
|
1928
|
+
};
|
|
1929
|
+
}>> & {
|
|
1930
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1931
|
+
}>>;
|
|
1932
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
1933
|
+
datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
|
|
1934
|
+
panelInstRef: import("vue").Ref<null>;
|
|
1935
|
+
placeholderRef: import("vue").Ref<any>;
|
|
1936
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
1937
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
1938
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
1939
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
1940
|
+
focus: () => any;
|
|
1941
|
+
blur: () => any;
|
|
1942
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
|
1943
|
+
onUpdateShow: (show: boolean) => void;
|
|
1944
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
|
1945
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
1946
|
+
NDatePicker: any;
|
|
1947
|
+
}, 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<{
|
|
1948
|
+
updateUnchangedValue: {
|
|
1949
|
+
type: BooleanConstructor;
|
|
1950
|
+
};
|
|
1951
|
+
onConfirm: {
|
|
1952
|
+
type: FunctionConstructor;
|
|
1953
|
+
};
|
|
1954
|
+
formattedValue: {
|
|
1955
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
1956
|
+
};
|
|
1957
|
+
placeholder: {
|
|
1958
|
+
type: StringConstructor;
|
|
1959
|
+
};
|
|
1960
|
+
allowedInvalidValue: {
|
|
1961
|
+
type: StringConstructor;
|
|
1962
|
+
};
|
|
1963
|
+
}>> & {
|
|
1964
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1965
|
+
}, {
|
|
1966
|
+
updateUnchangedValue: boolean;
|
|
1967
|
+
}>>;
|
|
1968
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1969
|
+
componentCfg: {
|
|
1970
|
+
type: ObjectConstructor;
|
|
1971
|
+
};
|
|
1972
|
+
paramCfg: {
|
|
1973
|
+
type: ObjectConstructor;
|
|
1974
|
+
default: null;
|
|
1975
|
+
};
|
|
1976
|
+
modelValue: {
|
|
1977
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1978
|
+
default: null;
|
|
1979
|
+
};
|
|
1980
|
+
}>> & {
|
|
1981
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1982
|
+
}, {
|
|
1983
|
+
modelValue: string | number | unknown[];
|
|
1984
|
+
paramCfg: Record<string, any>;
|
|
1985
|
+
}>;
|
|
1986
|
+
InputFilter: import("vue").DefineComponent<{
|
|
1987
|
+
paramCfg: {
|
|
1988
|
+
type: ObjectConstructor;
|
|
1989
|
+
default: null;
|
|
1990
|
+
};
|
|
1991
|
+
modelValue: {
|
|
1992
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1993
|
+
default: null;
|
|
1994
|
+
};
|
|
1995
|
+
}, {
|
|
1996
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1997
|
+
paramCfg: {
|
|
1998
|
+
type: ObjectConstructor;
|
|
1999
|
+
default: null;
|
|
2000
|
+
};
|
|
2001
|
+
modelValue: {
|
|
2002
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2003
|
+
default: null;
|
|
2004
|
+
};
|
|
2005
|
+
}>> & {
|
|
2006
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2007
|
+
}>>;
|
|
2008
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
2009
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
2010
|
+
NInput: any;
|
|
2011
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2012
|
+
paramCfg: {
|
|
2013
|
+
type: ObjectConstructor;
|
|
2014
|
+
default: null;
|
|
2015
|
+
};
|
|
2016
|
+
modelValue: {
|
|
2017
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2018
|
+
default: null;
|
|
2019
|
+
};
|
|
2020
|
+
}>> & {
|
|
2021
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2022
|
+
}, {
|
|
2023
|
+
modelValue: string | number | unknown[];
|
|
2024
|
+
paramCfg: Record<string, any>;
|
|
2025
|
+
}>;
|
|
2026
|
+
InputNumber: import("vue").DefineComponent<{
|
|
2027
|
+
modelValue: {
|
|
2028
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2029
|
+
default: null;
|
|
2030
|
+
};
|
|
2031
|
+
}, {
|
|
2032
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2033
|
+
modelValue: {
|
|
2034
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2035
|
+
default: null;
|
|
2036
|
+
};
|
|
2037
|
+
}>> & {
|
|
2038
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2039
|
+
}>>;
|
|
2040
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
2041
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
2042
|
+
NInputNumber: any;
|
|
2043
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2044
|
+
modelValue: {
|
|
2045
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2046
|
+
default: null;
|
|
2047
|
+
};
|
|
2048
|
+
}>> & {
|
|
2049
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2050
|
+
}, {
|
|
2051
|
+
modelValue: string | number | unknown[];
|
|
2052
|
+
}>;
|
|
2053
|
+
SelectFilter: import("vue").DefineComponent<{
|
|
2054
|
+
paramCfg: {
|
|
2055
|
+
type: ObjectConstructor;
|
|
2056
|
+
default: null;
|
|
2057
|
+
};
|
|
2058
|
+
modelValue: {
|
|
2059
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2060
|
+
default: null;
|
|
2061
|
+
};
|
|
2062
|
+
}, {
|
|
2063
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2064
|
+
paramCfg: {
|
|
2065
|
+
type: ObjectConstructor;
|
|
2066
|
+
default: null;
|
|
2067
|
+
};
|
|
2068
|
+
modelValue: {
|
|
2069
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2070
|
+
default: null;
|
|
2071
|
+
};
|
|
2072
|
+
}>> & {
|
|
2073
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2074
|
+
}>>;
|
|
2075
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
2076
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
2077
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
2078
|
+
widgetOptions: import("vue").ComputedRef<any>;
|
|
2079
|
+
NSelect: any;
|
|
2080
|
+
WidgetOptionEnums: {
|
|
2081
|
+
RADIO: string;
|
|
2082
|
+
MULTIPLE: string;
|
|
2083
|
+
ALL: string;
|
|
2084
|
+
SELECT_TIME: string;
|
|
2085
|
+
PAST_TIME: string;
|
|
2086
|
+
FUTURE_TIME: string;
|
|
2087
|
+
};
|
|
2088
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2089
|
+
paramCfg: {
|
|
2090
|
+
type: ObjectConstructor;
|
|
2091
|
+
default: null;
|
|
2092
|
+
};
|
|
2093
|
+
modelValue: {
|
|
2094
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2095
|
+
default: null;
|
|
2096
|
+
};
|
|
2097
|
+
}>> & {
|
|
2098
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2099
|
+
}, {
|
|
2100
|
+
modelValue: string | number | unknown[];
|
|
2101
|
+
paramCfg: Record<string, any>;
|
|
2102
|
+
}>;
|
|
2103
|
+
WidgetTypeEnums: {
|
|
2104
|
+
INPUT_NUMBER: string;
|
|
2105
|
+
INPUT: string;
|
|
2106
|
+
SELECT: string;
|
|
2107
|
+
DATE: string;
|
|
2108
|
+
DATE_OUT: string;
|
|
2109
|
+
DATE_TIME: string;
|
|
2110
|
+
DATETIME_OUT: string;
|
|
2111
|
+
CHECKBOX_GROUP: string;
|
|
2112
|
+
INPUTNUMBER_RANGE: string;
|
|
2113
|
+
DATE_RANGE_OUT: string;
|
|
2114
|
+
DATE_RANGE_INNER: string;
|
|
2115
|
+
DATETIME_RANGE_OUT: string;
|
|
2116
|
+
DATETIME_RANGE_INNER: string;
|
|
2117
|
+
LABEL: string;
|
|
2118
|
+
SELECTLABEL: string;
|
|
2119
|
+
SELECTDYNAMIC: string;
|
|
2120
|
+
};
|
|
2121
|
+
}, 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<{
|
|
2122
|
+
paramCfg: {
|
|
2123
|
+
type: ObjectConstructor;
|
|
2124
|
+
default: null;
|
|
2125
|
+
};
|
|
2126
|
+
modelValue: {
|
|
2127
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2128
|
+
default: null;
|
|
2129
|
+
};
|
|
2130
|
+
presetVal: {
|
|
2131
|
+
type: StringConstructor;
|
|
2132
|
+
default: null;
|
|
2133
|
+
};
|
|
2134
|
+
isAccurate: {
|
|
2135
|
+
type: BooleanConstructor;
|
|
2136
|
+
};
|
|
2137
|
+
}>> & {
|
|
2138
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2139
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
2140
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
2141
|
+
}, {
|
|
2142
|
+
modelValue: string | number | unknown[];
|
|
2143
|
+
paramCfg: Record<string, any>;
|
|
2144
|
+
presetVal: string;
|
|
2145
|
+
isAccurate: boolean;
|
|
2146
|
+
}>;
|
|
2147
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2148
|
+
actionList_prop: {
|
|
2149
|
+
type: PropType<IClassifyListType>;
|
|
2150
|
+
default: () => {};
|
|
2151
|
+
};
|
|
2152
|
+
conditionList: {
|
|
2153
|
+
type: ArrayConstructor;
|
|
2154
|
+
default: () => never[];
|
|
2155
|
+
};
|
|
2156
|
+
tableId: {
|
|
2157
|
+
type: StringConstructor;
|
|
2158
|
+
default: string;
|
|
2159
|
+
};
|
|
2160
|
+
searchFieldList: {
|
|
2161
|
+
type: ArrayConstructor;
|
|
2162
|
+
default: () => never[];
|
|
2163
|
+
};
|
|
2164
|
+
showItemName: {
|
|
2165
|
+
type: BooleanConstructor;
|
|
2166
|
+
default: boolean;
|
|
2167
|
+
};
|
|
2168
|
+
hideAddBtn: {
|
|
2169
|
+
type: BooleanConstructor;
|
|
2170
|
+
default: boolean;
|
|
2171
|
+
};
|
|
2172
|
+
}>> & {
|
|
2173
|
+
onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
2174
|
+
onSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
2175
|
+
}, {
|
|
2176
|
+
searchFieldList: unknown[];
|
|
2177
|
+
tableId: string;
|
|
2178
|
+
conditionList: unknown[];
|
|
2179
|
+
actionList_prop: IClassifyListType;
|
|
2180
|
+
showItemName: boolean;
|
|
2181
|
+
hideAddBtn: boolean;
|
|
2182
|
+
}>;
|
|
1691
2183
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancelSaveAdd"[], "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1692
2184
|
visible: {
|
|
1693
2185
|
type: BooleanConstructor;
|
|
@@ -1784,6 +2276,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1784
2276
|
type: ObjectConstructor;
|
|
1785
2277
|
default: () => {};
|
|
1786
2278
|
};
|
|
2279
|
+
filterType: {
|
|
2280
|
+
type: StringConstructor;
|
|
2281
|
+
default: string;
|
|
2282
|
+
};
|
|
1787
2283
|
}>> & {
|
|
1788
2284
|
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
1789
2285
|
onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
|
|
@@ -1799,5 +2295,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1799
2295
|
hideConditionChangeSetting: number;
|
|
1800
2296
|
hideClearConditionChange: number;
|
|
1801
2297
|
isShowResetButton: boolean;
|
|
2298
|
+
filterType: string;
|
|
1802
2299
|
}>;
|
|
1803
2300
|
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};
|