@bit-sun/business-component 4.2.0-alpha.2 → 4.2.0-alpha.4
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/dist/components/Business/AddSelectBusiness/index.d.ts +4 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -2
- package/dist/components/Business/CommonAlert/index.d.ts +2 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -2
- package/dist/components/Business/PropertyModal/index.d.ts +2 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -2
- package/dist/components/Functional/AuthButton/index.d.ts +2 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +128 -23
- package/dist/index.js +128 -23
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -19
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +0 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +96 -7
- package/src/components/Functional/SearchSelect/index.tsx +1 -1
- package/src/components/Functional/SearchSelect/utils.tsx +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
type mediaListType = {
|
|
4
4
|
type: number;
|
|
@@ -49,24 +49,24 @@ declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
|
49
49
|
};
|
|
50
50
|
submit: any;
|
|
51
51
|
};
|
|
52
|
-
declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
53
|
-
declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
54
|
-
declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
55
|
-
declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
56
|
-
declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
|
|
57
|
-
declare const handleTextTooltip: (text: any) => JSX.Element;
|
|
58
|
-
declare const handleTextBreakSpaces: (text: any) => JSX.Element;
|
|
59
|
-
declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
60
|
-
declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
52
|
+
declare const textIcon: (type: string | number, text?: string) => React.JSX.Element | undefined;
|
|
53
|
+
declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
54
|
+
declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
55
|
+
declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
56
|
+
declare const handleTextLineFeed: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
57
|
+
declare const handleTextTooltip: (text: any) => React.JSX.Element;
|
|
58
|
+
declare const handleTextBreakSpaces: (text: any) => React.JSX.Element;
|
|
59
|
+
declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
|
|
60
|
+
declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
|
|
61
61
|
declare const handleCommonTimeRender: (text: any, format?: any) => any;
|
|
62
|
-
declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
63
|
-
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
62
|
+
declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
63
|
+
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
64
64
|
type tableColumnsImageType = {
|
|
65
65
|
width?: number | string;
|
|
66
66
|
height?: number | string;
|
|
67
67
|
[key: string]: any;
|
|
68
68
|
};
|
|
69
|
-
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
69
|
+
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
|
|
70
70
|
interface ColumnsEditInterfave {
|
|
71
71
|
text?: string;
|
|
72
72
|
record?: any;
|
|
@@ -82,7 +82,7 @@ interface ColumnsEditInterfave {
|
|
|
82
82
|
};
|
|
83
83
|
[key: string]: any;
|
|
84
84
|
}
|
|
85
|
-
declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
85
|
+
declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
|
|
86
86
|
type UserColumnsType = {
|
|
87
87
|
name: string;
|
|
88
88
|
department?: string;
|
|
@@ -90,13 +90,13 @@ type UserColumnsType = {
|
|
|
90
90
|
company?: string;
|
|
91
91
|
avatar?: string;
|
|
92
92
|
};
|
|
93
|
-
declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
94
|
-
declare const userInfoCard: (props: any) => JSX.Element;
|
|
93
|
+
declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
|
|
94
|
+
declare const userInfoCard: (props: any) => React.JSX.Element;
|
|
95
95
|
declare const getItemDefaultWidth: (item: any) => number;
|
|
96
|
-
declare const sulaTableRenderTooltip: ({ text }: any) => JSX.Element;
|
|
96
|
+
declare const sulaTableRenderTooltip: ({ text }: any) => React.JSX.Element;
|
|
97
97
|
declare const renderNumberText: ({ text }: any) => any;
|
|
98
98
|
declare const renderFixed2: (text: any) => any;
|
|
99
|
-
declare const handleTextWarpCustom: (text: any, style?: {}) => JSX.Element;
|
|
99
|
+
declare const handleTextWarpCustom: (text: any, style?: {}) => React.JSX.Element;
|
|
100
100
|
declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
101
|
-
declare const handleTextWarp: (text: any) => JSX.Element;
|
|
101
|
+
declare const handleTextWarp: (text: any) => React.JSX.Element;
|
|
102
102
|
export { getSkuImg, updateGuanDate, textIcon, handleTextDoubleOrId, handleTextDouble, handleTextOverflow, handleTextLineFeed, handleTextTooltip, handleTextBreakSpaces, handleStatusBadge, HandleTotalCount, handleTooltip, handleCommonTimeRender, handleTooltipHours, tableColumnsImage, ColumnsEdit, userColumns, userInfoCard, getItemDefaultWidth, renderNumberText, sulaTableRenderTooltip, renderFixed2, handleTextWarpCustom, handleTextWarp, calculateValidPeriod };
|
package/package.json
CHANGED
|
@@ -20,7 +20,6 @@ import { arrayMoveImmutable } from 'array-move';
|
|
|
20
20
|
import close from '../../../assets/close.svg';
|
|
21
21
|
import drag from '../../../assets/drag.svg';
|
|
22
22
|
import shezhi from '../../../assets/icon-shezhi.svg';
|
|
23
|
-
import shezhi from '../../../assets/icon-shezhi.svg';
|
|
24
23
|
import './index.less';
|
|
25
24
|
import ENUM from '@/utils/enumConfig';
|
|
26
25
|
import { handleRequestUrl, judgeIsRequestSuccess } from '@/utils/requestUtils';
|
|
@@ -42,8 +42,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// 格式化树选择器数据源
|
|
45
|
-
const mapSearchTree = (treeDataItem: any, resKeyValue: any, disabledJudge?: any) => {
|
|
46
|
-
const haveChildren = Array.isArray(treeDataItem
|
|
45
|
+
const mapSearchTree = (treeDataItem: any, resKeyValue: any, disabledJudge?: any, childrenKey?: any) => {
|
|
46
|
+
const haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
|
|
47
47
|
return {
|
|
48
48
|
title: treeDataItem[resKeyValue[1]],
|
|
49
49
|
value: treeDataItem[resKeyValue[0]],
|
|
@@ -51,10 +51,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
51
51
|
data: { ...treeDataItem },
|
|
52
52
|
isLeaf: !haveChildren,
|
|
53
53
|
disabled: disabledJudge!==undefined? disabledJudge : haveChildren,
|
|
54
|
-
children: haveChildren ? treeDataItem.
|
|
54
|
+
children: haveChildren ? treeDataItem[childrenKey].map((i: any) => mapSearchTree(i, resKeyValue, disabledJudge, childrenKey)) : [],
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
const formatTreeDataSource = (reData: any, position: number, changePosition: number,changeSearchForm: any,resKeyValue=['id', 'name']) => {
|
|
57
|
+
const formatTreeDataSource = (reData: any, position: number, changePosition: number,changeSearchForm: any,resKeyValue=['id', 'name'], childrenKey = 'children') => {
|
|
58
58
|
let data = reData && reData[position]?.data;
|
|
59
59
|
let disabledJudge;
|
|
60
60
|
if(data && typeof data === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
|
|
@@ -64,7 +64,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
64
64
|
const formatData = (data &&
|
|
65
65
|
Array.isArray(data) &&
|
|
66
66
|
data.length &&
|
|
67
|
-
data.map((ites: any) => mapSearchTree(ites, resKeyValue, disabledJudge))) ||
|
|
67
|
+
data.map((ites: any) => mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey))) ||
|
|
68
68
|
[]
|
|
69
69
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
70
70
|
}
|
|
@@ -1836,6 +1836,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1836
1836
|
mappingValueField: 'code',
|
|
1837
1837
|
otherParams: {
|
|
1838
1838
|
sorter: 'desc-id',
|
|
1839
|
+
'qp-status-in': 10,
|
|
1839
1840
|
...(requestConfigProp?.addOtherParams || {}),
|
|
1840
1841
|
}, // 默认参数
|
|
1841
1842
|
sourceName: 'code',
|
|
@@ -1845,7 +1846,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1845
1846
|
{ name: 'name*multiInput', label: '商店名称', type: 'multipleQueryInput' },
|
|
1846
1847
|
{ name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
|
|
1847
1848
|
{ name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
|
|
1848
|
-
{ name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
1849
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
1849
1850
|
{ name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
1850
1851
|
type: 'select',
|
|
1851
1852
|
props: {
|
|
@@ -1860,6 +1861,58 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1860
1861
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1861
1862
|
},
|
|
1862
1863
|
} },
|
|
1864
|
+
{ name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
|
|
1865
|
+
type: 'treeSelect',
|
|
1866
|
+
props: {
|
|
1867
|
+
multiple: true,
|
|
1868
|
+
treeData: [],
|
|
1869
|
+
treeCheckable: false,
|
|
1870
|
+
notFoundContent: '暂无数据',
|
|
1871
|
+
allowClear: true,
|
|
1872
|
+
showSearch: true,
|
|
1873
|
+
showArrow: true,
|
|
1874
|
+
maxTagCount: 1,
|
|
1875
|
+
optionFilterProp: 'children',
|
|
1876
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1877
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1878
|
+
disabledJude: (data: any) => data['parentCode'] === '0',
|
|
1879
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1880
|
+
},
|
|
1881
|
+
} },
|
|
1882
|
+
{ name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
|
|
1883
|
+
type: 'treeSelect',
|
|
1884
|
+
props: {
|
|
1885
|
+
multiple: true,
|
|
1886
|
+
treeData: [],
|
|
1887
|
+
treeCheckable: false,
|
|
1888
|
+
notFoundContent: '暂无数据',
|
|
1889
|
+
allowClear: true,
|
|
1890
|
+
showSearch: true,
|
|
1891
|
+
showArrow: true,
|
|
1892
|
+
maxTagCount: 1,
|
|
1893
|
+
optionFilterProp: 'children',
|
|
1894
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1895
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1896
|
+
disabledJude: (data: any) => data['parent'] === '0',
|
|
1897
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1898
|
+
},
|
|
1899
|
+
} },
|
|
1900
|
+
{ name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
|
|
1901
|
+
type: 'select',
|
|
1902
|
+
props: {
|
|
1903
|
+
mode: 'multiple',
|
|
1904
|
+
notFoundContent: '暂无数据',
|
|
1905
|
+
allowClear: true,
|
|
1906
|
+
showSearch: true,
|
|
1907
|
+
showArrow: true,
|
|
1908
|
+
maxTagCount: 1,
|
|
1909
|
+
optionFilterProp: 'children',
|
|
1910
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1911
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1912
|
+
},
|
|
1913
|
+
} ,
|
|
1914
|
+
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
1915
|
+
},
|
|
1863
1916
|
]
|
|
1864
1917
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1865
1918
|
Promise.all([
|
|
@@ -1868,8 +1921,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1868
1921
|
'qp-realOrg-eq': true,
|
|
1869
1922
|
'qp-status-eq': 10
|
|
1870
1923
|
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1924
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
|
|
1925
|
+
'qp-status-eq': 10,
|
|
1926
|
+
'qp-isMain-eq': 1,
|
|
1927
|
+
'qp-type-in': '1,2',
|
|
1928
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1929
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
|
|
1930
|
+
'qp-status-eq': 1,
|
|
1931
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1871
1932
|
]).then((x: any)=>{
|
|
1872
|
-
formatSource(x,0,
|
|
1933
|
+
formatSource(x,0, 3, tableSearchForm);
|
|
1934
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['id','name'], 'channelInfoSon')
|
|
1935
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children')
|
|
1873
1936
|
})
|
|
1874
1937
|
modalTableProps = {
|
|
1875
1938
|
modalTableTitle: '选择商店',
|
|
@@ -1879,34 +1942,60 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1879
1942
|
title: '序号',
|
|
1880
1943
|
dataIndex: 'keyIndex',
|
|
1881
1944
|
defaultSort: 0,
|
|
1945
|
+
width: 60,
|
|
1882
1946
|
},
|
|
1883
1947
|
{
|
|
1884
1948
|
title: '商店编码',
|
|
1885
1949
|
dataIndex: 'code',
|
|
1886
1950
|
defaultSort: 1,
|
|
1951
|
+
width: 100,
|
|
1887
1952
|
},
|
|
1888
1953
|
{
|
|
1889
1954
|
title: '商店名称',
|
|
1890
1955
|
dataIndex: 'name',
|
|
1891
1956
|
defaultSort: 2,
|
|
1957
|
+
width: 120,
|
|
1892
1958
|
},
|
|
1893
1959
|
{
|
|
1894
1960
|
title: '商店类型',
|
|
1895
1961
|
dataIndex: 'type',
|
|
1896
1962
|
defaultSort: 3,
|
|
1963
|
+
width: 100,
|
|
1897
1964
|
render: (text: number) => shopFile2Type.find((i: any) => i.value === text)?.text,
|
|
1898
1965
|
},
|
|
1899
1966
|
{
|
|
1900
1967
|
title: '启用状态',
|
|
1901
1968
|
dataIndex: 'status',
|
|
1969
|
+
width: 80,
|
|
1902
1970
|
render: (text: number) => shopFile2Status.find((i: any) => i.value === text)?.text,
|
|
1903
1971
|
},
|
|
1904
1972
|
{
|
|
1905
1973
|
title: '所属销售组织',
|
|
1906
1974
|
dataIndex: 'orgName',
|
|
1907
1975
|
defaultSort: 4,
|
|
1976
|
+
width: 95,
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
title: '所属销售渠道',
|
|
1980
|
+
dataIndex: 'channelName',
|
|
1981
|
+
defaultSort: 5,
|
|
1982
|
+
width: 100,
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
title: '营销区域',
|
|
1986
|
+
dataIndex: 'commonRelationAreaName',
|
|
1987
|
+
defaultSort: 6,
|
|
1988
|
+
width: 100,
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
title: '店铺性质',
|
|
1992
|
+
dataIndex: 'businessType',
|
|
1993
|
+
defaultSort: 7,
|
|
1994
|
+
render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
|
|
1995
|
+
width: 80,
|
|
1908
1996
|
},
|
|
1909
1997
|
],
|
|
1998
|
+
noEmptySearchField: true,
|
|
1910
1999
|
...modalTableBusProps
|
|
1911
2000
|
}
|
|
1912
2001
|
}
|
|
@@ -83,7 +83,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
83
83
|
const isFormPage = pathname.match(pattern)?.length > 0;
|
|
84
84
|
|
|
85
85
|
const initPagination = { showQuickJumper: true, showSizeChanger: true, showTotal: (total: any) => `共 ${total} 条`, pageSize: tableInitPageSize }
|
|
86
|
-
const tableInitPagination = { ...initPagination, total: 0, current: 1 }
|
|
86
|
+
const tableInitPagination = { ...initPagination, total: 0, current: 1, pageSizeOptions: [10, 20, 50, 100, 500, 1000] }
|
|
87
87
|
const disabled = !!noOperate || selectProps?.disabled || props?.disabled;
|
|
88
88
|
const isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
89
89
|
const isHaveDValue = () => {
|
|
@@ -403,7 +403,10 @@ export const maxTagPlaceholder = (selectedValues: any, { selectProps, onChange,
|
|
|
403
403
|
// 弹窗数据表头处理
|
|
404
404
|
export const handleTableColumns = (tableColumns: any) => {
|
|
405
405
|
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
406
|
-
|
|
406
|
+
let showTableColumns = tableColumns?.filter((s: any) => typeof s.defaultSort == 'number') || tableColumns || [];
|
|
407
|
+
|
|
408
|
+
showTableColumns = showTableColumns?.length ? showTableColumns : tableColumns;
|
|
409
|
+
|
|
407
410
|
return showTableColumns?.sort((a: any,b: any)=> a.defaultSort-b.defaultSort)||[]
|
|
408
411
|
};
|
|
409
412
|
|