@icos-desktop/react-components 2.0.39 → 2.0.41
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/icos-desktop.d.ts +17 -1
- package/dist/icos-desktop.js +63 -63
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.d.ts
CHANGED
@@ -414,7 +414,7 @@ interface SenseContentTableProps extends TableProps {
|
|
414
414
|
/**
|
415
415
|
* 实体记录唯一标识
|
416
416
|
*/
|
417
|
-
senseGlobalCodes
|
417
|
+
senseGlobalCodes?: string[];
|
418
418
|
/**
|
419
419
|
* 数据表名
|
420
420
|
*/
|
@@ -454,6 +454,10 @@ interface SenseContentTableProps extends TableProps {
|
|
454
454
|
* 已选行数,用于显示数量
|
455
455
|
*/
|
456
456
|
selectedRowLength?: number;
|
457
|
+
/**
|
458
|
+
* 表格默认分页条数,默认 1000
|
459
|
+
*/
|
460
|
+
pageSize?: number;
|
457
461
|
/**
|
458
462
|
* 单击实体
|
459
463
|
* @param record
|
@@ -779,6 +783,10 @@ interface SenseFullTableProps {
|
|
779
783
|
* 地理层级路径节点id,实体记录所属地理层级路径只要包含此值即返回,`leftRegionId`无值时有效
|
780
784
|
*/
|
781
785
|
pathRegionId?: string;
|
786
|
+
/**
|
787
|
+
* 实体记录表格默认分页条数
|
788
|
+
*/
|
789
|
+
sensePageSize?: number;
|
782
790
|
/**
|
783
791
|
* 扩展筛选字段
|
784
792
|
* @param filterConfig
|
@@ -1050,6 +1058,10 @@ interface SenseTableProps extends TableProps {
|
|
1050
1058
|
* 获取写权限数据
|
1051
1059
|
*/
|
1052
1060
|
writeAuth?: boolean;
|
1061
|
+
/**
|
1062
|
+
* 表格默认分页条数,默认 1000
|
1063
|
+
*/
|
1064
|
+
pageSize?: number;
|
1053
1065
|
/**
|
1054
1066
|
* 单击实体
|
1055
1067
|
* @param record
|
@@ -1323,6 +1335,10 @@ interface TagConfigProps {
|
|
1323
1335
|
* 视图编码
|
1324
1336
|
*/
|
1325
1337
|
viewCode?: string;
|
1338
|
+
/**
|
1339
|
+
* 每页条数
|
1340
|
+
*/
|
1341
|
+
pageSize?: number;
|
1326
1342
|
/**
|
1327
1343
|
* 自定义表格列
|
1328
1344
|
*/
|
package/dist/icos-desktop.js
CHANGED
@@ -4777,7 +4777,7 @@ var Modal = function (props) {
|
|
4777
4777
|
};
|
4778
4778
|
|
4779
4779
|
// 分页
|
4780
|
-
var PAGINATION
|
4780
|
+
var PAGINATION = {
|
4781
4781
|
current: 1,
|
4782
4782
|
total: 0,
|
4783
4783
|
pageSize: 50,
|
@@ -4810,7 +4810,7 @@ var TargetModal = function (props) {
|
|
4810
4810
|
var bookGroupId = props.bookGroupId, viewCode = props.viewCode, open = props.open, onCancel = props.onCancel, onOk = props.onOk;
|
4811
4811
|
var message = App.useApp().message;
|
4812
4812
|
// 分页
|
4813
|
-
var _a = useState(__assign({}, PAGINATION
|
4813
|
+
var _a = useState(__assign({}, PAGINATION)), pagination = _a[0], setPagination = _a[1];
|
4814
4814
|
// 搜索关键词
|
4815
4815
|
var _b = useState(''), keywordValue = _b[0], setKeywordValue = _b[1];
|
4816
4816
|
var _c = useState(''), keyword = _c[0], setKeyword = _c[1];
|
@@ -4824,7 +4824,7 @@ var TargetModal = function (props) {
|
|
4824
4824
|
if (!open) return [3 /*break*/, 2];
|
4825
4825
|
return [4 /*yield*/, getTargetGroupBook({
|
4826
4826
|
page: pagination.current || 1,
|
4827
|
-
pageSize: pagination.pageSize || PAGINATION
|
4827
|
+
pageSize: pagination.pageSize || PAGINATION.pageSize,
|
4828
4828
|
templateId: bookGroupId,
|
4829
4829
|
viewCode: viewCode,
|
4830
4830
|
bookName: keyword,
|
@@ -4832,7 +4832,7 @@ var TargetModal = function (props) {
|
|
4832
4832
|
case 1:
|
4833
4833
|
res_1 = _a.sent();
|
4834
4834
|
if (res_1) {
|
4835
|
-
setPagination(__assign(__assign({}, pagination), { total: res_1.total ? (res_1.total > 10000 ? 10000 : res_1.total) : 0, current: res_1.pageNum || 1, pageSize: res_1.pageSize || pagination.pageSize || PAGINATION
|
4835
|
+
setPagination(__assign(__assign({}, pagination), { total: res_1.total ? (res_1.total > 10000 ? 10000 : res_1.total) : 0, current: res_1.pageNum || 1, pageSize: res_1.pageSize || pagination.pageSize || PAGINATION.pageSize, showTotal: function () { return showTotal$2(res_1.total); } }));
|
4836
4836
|
return [2 /*return*/, res_1 === null || res_1 === void 0 ? void 0 : res_1.list];
|
4837
4837
|
}
|
4838
4838
|
setPagination(__assign(__assign({}, pagination), { total: 0 }));
|
@@ -4870,7 +4870,7 @@ var TargetModal = function (props) {
|
|
4870
4870
|
setKeywordValue('');
|
4871
4871
|
setKeyword('');
|
4872
4872
|
setSelected(null);
|
4873
|
-
setPagination(__assign({}, PAGINATION
|
4873
|
+
setPagination(__assign({}, PAGINATION));
|
4874
4874
|
}
|
4875
4875
|
}, [open]);
|
4876
4876
|
return (React__default.createElement(Modal, { title: "\u9009\u62E9\u76EE\u6807\u53F0\u8D26", open: open, width: 800, onCancel: onCancel, onOk: handleOk, destroyOnClose: true },
|
@@ -5382,7 +5382,7 @@ var ProTable = function (_a) {
|
|
5382
5382
|
}, [token.colorTextSecondary]);
|
5383
5383
|
return (React__default.createElement(ResizeObserver, { onResize: handleTableResize },
|
5384
5384
|
React__default.createElement("div", { className: styles$$.container },
|
5385
|
-
React__default.createElement(Table, __assign({}, props, { pagination: pagination, scroll: { x: tableWidth, y: tableHeight }, columns: columnsMerge })))));
|
5385
|
+
React__default.createElement(Table, __assign({}, props, { pagination: pagination, scroll: __assign({ x: tableWidth, y: tableHeight }, props.scroll), columns: columnsMerge })))));
|
5386
5386
|
};
|
5387
5387
|
var ProTable$1 = memo(ProTable);
|
5388
5388
|
|
@@ -5954,7 +5954,7 @@ var BookTable = forwardRef(function (props, ref) {
|
|
5954
5954
|
var showContextMenu = useContextMenu({ id: ContextMenu$4.id }).show;
|
5955
5955
|
var _c = useExportModal$2(), onExport = _c.onExport, ExportModal = _c.ExportModal;
|
5956
5956
|
// 分页
|
5957
|
-
var _d = useState(__assign({}, PAGINATION
|
5957
|
+
var _d = useState(__assign({}, PAGINATION)), pagination = _d[0], setPagination = _d[1];
|
5958
5958
|
// 排序
|
5959
5959
|
var _e = useState(null), sorter = _e[0], setSorter = _e[1];
|
5960
5960
|
// 当前高亮的行
|
@@ -5983,7 +5983,7 @@ var BookTable = forwardRef(function (props, ref) {
|
|
5983
5983
|
return [4 /*yield*/, getBookList$1(__assign(__assign(__assign({ viewCodes: viewCodes, displayWay: displayWay, templateId: templateId, nodeCode: nodeCode, keyword: keyword }, filterParams), sortParams), { page: pagination.current, pageSize: pagination.pageSize }))];
|
5984
5984
|
case 1:
|
5985
5985
|
res = _b.sent();
|
5986
|
-
setPagination(__assign(__assign({}, pagination), { total: (res === null || res === void 0 ? void 0 : res.total) ? (res.total > 10000 ? 10000 : res.total) : 0, current: (res === null || res === void 0 ? void 0 : res.pageNum) || 1, pageSize: (res === null || res === void 0 ? void 0 : res.pageSize) || PAGINATION
|
5986
|
+
setPagination(__assign(__assign({}, pagination), { total: (res === null || res === void 0 ? void 0 : res.total) ? (res.total > 10000 ? 10000 : res.total) : 0, current: (res === null || res === void 0 ? void 0 : res.pageNum) || 1, pageSize: (res === null || res === void 0 ? void 0 : res.pageSize) || PAGINATION.pageSize, showTotal: function () { return showTotal$1(res === null || res === void 0 ? void 0 : res.total); } }));
|
5987
5987
|
return [2 /*return*/, res === null || res === void 0 ? void 0 : res.list];
|
5988
5988
|
}
|
5989
5989
|
});
|
@@ -6829,16 +6829,6 @@ var css_248z$T = ".SenseTable-module_container__lRFoG {\n display: flex;\n fle
|
|
6829
6829
|
var styles$T = {"container":"SenseTable-module_container__lRFoG","table":"SenseTable-module_table__eaYbL","sense-title":"SenseTable-module_sense-title__Ie03d","sense-title-label":"SenseTable-module_sense-title-label__sytbJ","hidden-row-selected-num":"SenseTable-module_hidden-row-selected-num__YujuX","tag-values":"SenseTable-module_tag-values__yPnOe","tag-value":"SenseTable-module_tag-value__Wl1T9","tag-delete":"SenseTable-module_tag-delete__o0rmm","tag-more":"SenseTable-module_tag-more__se-HA","row-highlight":"SenseTable-module_row-highlight__s0Lck","highlight":"SenseTable-module_highlight__TwSNe"};
|
6830
6830
|
styleInject(css_248z$T);
|
6831
6831
|
|
6832
|
-
var PAGINATION$1 = {
|
6833
|
-
current: 1,
|
6834
|
-
total: 0,
|
6835
|
-
pageSize: 1000,
|
6836
|
-
pageSizeOptions: [10, 20, 50, 100, 500, 1000],
|
6837
|
-
showSizeChanger: true,
|
6838
|
-
showQuickJumper: true,
|
6839
|
-
hideOnSinglePage: false,
|
6840
|
-
showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
|
6841
|
-
};
|
6842
6832
|
// 显示总数 最大展示10000条
|
6843
6833
|
var showTotal = function (total) {
|
6844
6834
|
if (total === void 0) { total = 0; }
|
@@ -6852,28 +6842,38 @@ var showTotal = function (total) {
|
|
6852
6842
|
};
|
6853
6843
|
var SenseTable = forwardRef(function (props, ref) {
|
6854
6844
|
var _a;
|
6855
|
-
var bookId = props.bookId, bookIds = props.bookIds, templateId = props.templateId, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, viewCodes = props.viewCodes, keyword = props.keyword, filter = props.filter, filterConfig = props.filterConfig, extendColumnParams = props.extendColumnParams, _b = props.hideColumns, hideColumns = _b === void 0 ? [] : _b, customColumns = props.customColumns, contextMenuConfig = props.contextMenuConfig, enableTag = props.enableTag, writeAuth = props.writeAuth, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["bookId", "bookIds", "templateId", "leafRegionId", "pathRegionId", "viewCodes", "keyword", "filter", "filterConfig", "extendColumnParams", "hideColumns", "customColumns", "contextMenuConfig", "enableTag", "writeAuth", "onClick", "onDoubleClick", "onShowSense", "onEditSense", "onRefresh", "proTableContainerHeight"]);
|
6856
|
-
var
|
6845
|
+
var bookId = props.bookId, bookIds = props.bookIds, templateId = props.templateId, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, viewCodes = props.viewCodes, keyword = props.keyword, filter = props.filter, filterConfig = props.filterConfig, extendColumnParams = props.extendColumnParams, _b = props.hideColumns, hideColumns = _b === void 0 ? [] : _b, customColumns = props.customColumns, contextMenuConfig = props.contextMenuConfig, enableTag = props.enableTag, writeAuth = props.writeAuth, _c = props.pageSize, pageSize = _c === void 0 ? 1000 : _c, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["bookId", "bookIds", "templateId", "leafRegionId", "pathRegionId", "viewCodes", "keyword", "filter", "filterConfig", "extendColumnParams", "hideColumns", "customColumns", "contextMenuConfig", "enableTag", "writeAuth", "pageSize", "onClick", "onDoubleClick", "onShowSense", "onEditSense", "onRefresh", "proTableContainerHeight"]);
|
6846
|
+
var PAGINATION = {
|
6847
|
+
current: 1,
|
6848
|
+
total: 0,
|
6849
|
+
pageSize: pageSize || 1000,
|
6850
|
+
pageSizeOptions: [10, 20, 50, 100, 500, 1000],
|
6851
|
+
showSizeChanger: true,
|
6852
|
+
showQuickJumper: true,
|
6853
|
+
hideOnSinglePage: false,
|
6854
|
+
showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
|
6855
|
+
};
|
6856
|
+
var _d = App.useApp(), message = _d.message, modal = _d.modal;
|
6857
6857
|
var showContextMenu = useContextMenu({ id: ContextMenu$3.id }).show;
|
6858
|
-
var
|
6859
|
-
var
|
6858
|
+
var _e = useKsCode(), ksCodeLoaded = _e.loaded;
|
6859
|
+
var _f = useEntityClass(), entityClassLoaded = _f.loaded;
|
6860
6860
|
// 分页
|
6861
|
-
var
|
6861
|
+
var _g = useState(__assign({}, PAGINATION)), pagination = _g[0], setPagination = _g[1];
|
6862
6862
|
// 排序
|
6863
|
-
var
|
6863
|
+
var _h = useState(null), sorter = _h[0], setSorter = _h[1];
|
6864
6864
|
// 当前高亮的行
|
6865
|
-
var
|
6865
|
+
var _j = useState(null), highlightId = _j[0], setHighlightId = _j[1];
|
6866
6866
|
// 表格选中
|
6867
|
-
var
|
6867
|
+
var _k = useState([]), selectedRowKeys = _k[0]; _k[1];
|
6868
6868
|
// 当前操作行
|
6869
|
-
var
|
6869
|
+
var _l = useState(null), curRecord = _l[0], setCurRecord = _l[1];
|
6870
6870
|
// 显示全部标签弹窗
|
6871
|
-
var
|
6871
|
+
var _m = useState(false), showTagsModal = _m[0], setShowTagsModal = _m[1];
|
6872
6872
|
// 当前右键的所属台账id
|
6873
|
-
var
|
6873
|
+
var _o = useState(null), curBookId = _o[0], setCurBookId = _o[1];
|
6874
6874
|
// 搜索参数
|
6875
|
-
var
|
6876
|
-
var
|
6875
|
+
var _p = useState(), searchParams = _p[0], setSearchParams = _p[1];
|
6876
|
+
var _q = useExportModal$1(), onExport = _q.onExport, ExportModal = _q.ExportModal;
|
6877
6877
|
// 资源权限
|
6878
6878
|
var authTypes = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
6879
6879
|
var res;
|
@@ -7045,7 +7045,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7045
7045
|
return columns;
|
7046
7046
|
};
|
7047
7047
|
// 表格数据
|
7048
|
-
var
|
7048
|
+
var _r = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
7049
7049
|
var filterParams, sortParams, res, header;
|
7050
7050
|
var _a, _b, _c, _d, _e;
|
7051
7051
|
return __generator(this, function (_f) {
|
@@ -7062,7 +7062,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7062
7062
|
return [4 /*yield*/, getSenseList(__assign(__assign(__assign({ bookId: bookId, bookIds: bookIds, templateId: templateId, leafRegionId: leafRegionId, pathRegionId: pathRegionId, viewCodes: viewCodes, keyword: keyword }, filterParams), sortParams), { extendColumnParams: extendColumnParams, page: pagination.current, pageSize: pagination.pageSize, writeAuth: writeAuth }))];
|
7063
7063
|
case 1:
|
7064
7064
|
res = _f.sent();
|
7065
|
-
setPagination(__assign(__assign({}, pagination), { total: ((_a = res === null || res === void 0 ? void 0 : res.body) === null || _a === void 0 ? void 0 : _a.total) ? (res.body.total > 10000 ? 10000 : res.body.total) : 0, current: ((_b = res === null || res === void 0 ? void 0 : res.body) === null || _b === void 0 ? void 0 : _b.pageNum) || 1, pageSize: ((_c = res === null || res === void 0 ? void 0 : res.body) === null || _c === void 0 ? void 0 : _c.pageSize) || PAGINATION
|
7065
|
+
setPagination(__assign(__assign({}, pagination), { total: ((_a = res === null || res === void 0 ? void 0 : res.body) === null || _a === void 0 ? void 0 : _a.total) ? (res.body.total > 10000 ? 10000 : res.body.total) : 0, current: ((_b = res === null || res === void 0 ? void 0 : res.body) === null || _b === void 0 ? void 0 : _b.pageNum) || 1, pageSize: ((_c = res === null || res === void 0 ? void 0 : res.body) === null || _c === void 0 ? void 0 : _c.pageSize) || PAGINATION.pageSize, showTotal: function () { var _a; return showTotal((_a = res === null || res === void 0 ? void 0 : res.body) === null || _a === void 0 ? void 0 : _a.total); } }));
|
7066
7066
|
header = (_d = res === null || res === void 0 ? void 0 : res.header) === null || _d === void 0 ? void 0 : _d.filter(function (item) { return !(hideColumns === null || hideColumns === void 0 ? void 0 : hideColumns.includes(item.code)); });
|
7067
7067
|
return [2 /*return*/, {
|
7068
7068
|
header: __spreadArray(__spreadArray([], header, true), [
|
@@ -7094,7 +7094,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7094
7094
|
JSON.stringify(filter),
|
7095
7095
|
sorter,
|
7096
7096
|
],
|
7097
|
-
}), loading =
|
7097
|
+
}), loading = _r.loading, _s = _r.data, _t = _s === void 0 ? {} : _s, header = _t.header, columns = _t.columns, dataSource = _t.dataSource, refresh = _r.refresh;
|
7098
7098
|
// 触发刷新
|
7099
7099
|
var handleRefresh = function () {
|
7100
7100
|
refresh();
|
@@ -8932,7 +8932,7 @@ var ErrorMsgModal = function (_a) {
|
|
8932
8932
|
var _b = useState([]), header = _b[0], setHeader = _b[1];
|
8933
8933
|
var _c = useState(''), operateMsg = _c[0], setOperateMsg = _c[1];
|
8934
8934
|
var _d = useState([]), dataSource = _d[0], setDataSource = _d[1];
|
8935
|
-
var _e = useState(__assign({}, PAGINATION
|
8935
|
+
var _e = useState(__assign({}, PAGINATION)), pagination = _e[0], setPagination = _e[1];
|
8936
8936
|
var _f = useState(false), loading = _f[0], setLoading = _f[1];
|
8937
8937
|
var columns = header.map(function (item) { return ({
|
8938
8938
|
dataIndex: item.code,
|
@@ -9012,7 +9012,7 @@ var ImportTable = function () {
|
|
9012
9012
|
});
|
9013
9013
|
}); }, {
|
9014
9014
|
refreshDeps: [params],
|
9015
|
-
defaultParams: [PAGINATION
|
9015
|
+
defaultParams: [PAGINATION],
|
9016
9016
|
}).tableProps;
|
9017
9017
|
var columns = [
|
9018
9018
|
{
|
@@ -10139,29 +10139,29 @@ var css_248z$B = ".SenseContentTable-module_container__tE9m5 {\n display: flex;
|
|
10139
10139
|
var styles$B = {"container":"SenseContentTable-module_container__tE9m5","filter":"SenseContentTable-module_filter__j0qaP","btns":"SenseContentTable-module_btns__3OS4x","table":"SenseContentTable-module_table__RBtdO","hidden-row-selected-num":"SenseContentTable-module_hidden-row-selected-num__cdzcv"};
|
10140
10140
|
styleInject(css_248z$B);
|
10141
10141
|
|
10142
|
-
var PAGINATION = {
|
10143
|
-
current: 1,
|
10144
|
-
total: 0,
|
10145
|
-
pageSize: 1000,
|
10146
|
-
pageSizeOptions: [10, 20, 50, 100, 500, 1000],
|
10147
|
-
showSizeChanger: true,
|
10148
|
-
showQuickJumper: true,
|
10149
|
-
hideOnSinglePage: false,
|
10150
|
-
showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
|
10151
|
-
};
|
10152
10142
|
var SenseContentTable = forwardRef(function (props, ref) {
|
10153
10143
|
var _a;
|
10154
10144
|
var _b, _c;
|
10155
|
-
var senseGlobalCodes = props.senseGlobalCodes, tableName = props.tableName, extraParams = props.extraParams, timeFieldName = props.timeFieldName, timeFieldFormat = props.timeFieldFormat, filterConfig = props.filterConfig, showExportButton = props.showExportButton, customButtons = props.customButtons, customColumns = props.customColumns, selectedRowLength = props.selectedRowLength, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["senseGlobalCodes", "tableName", "extraParams", "timeFieldName", "timeFieldFormat", "filterConfig", "showExportButton", "customButtons", "customColumns", "selectedRowLength", "onClick", "onDoubleClick", "onRefresh", "proTableContainerHeight"]);
|
10156
|
-
var
|
10145
|
+
var senseGlobalCodes = props.senseGlobalCodes, tableName = props.tableName, extraParams = props.extraParams, timeFieldName = props.timeFieldName, timeFieldFormat = props.timeFieldFormat, filterConfig = props.filterConfig, showExportButton = props.showExportButton, customButtons = props.customButtons, customColumns = props.customColumns, selectedRowLength = props.selectedRowLength, _d = props.pageSize, pageSize = _d === void 0 ? 1000 : _d, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["senseGlobalCodes", "tableName", "extraParams", "timeFieldName", "timeFieldFormat", "filterConfig", "showExportButton", "customButtons", "customColumns", "selectedRowLength", "pageSize", "onClick", "onDoubleClick", "onRefresh", "proTableContainerHeight"]);
|
10146
|
+
var PAGINATION = {
|
10147
|
+
current: 1,
|
10148
|
+
total: 0,
|
10149
|
+
pageSize: pageSize || 1000,
|
10150
|
+
pageSizeOptions: [10, 20, 50, 100, 500, 1000],
|
10151
|
+
showSizeChanger: true,
|
10152
|
+
showQuickJumper: true,
|
10153
|
+
hideOnSinglePage: false,
|
10154
|
+
showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
|
10155
|
+
};
|
10156
|
+
var _e = useExportModal(), onExport = _e.onExport, ExportModal = _e.ExportModal;
|
10157
10157
|
// 分页
|
10158
|
-
var
|
10158
|
+
var _f = useState(__assign({}, PAGINATION)), pagination = _f[0], setPagination = _f[1];
|
10159
10159
|
// 筛选参数
|
10160
|
-
var
|
10160
|
+
var _g = useState({}), filter = _g[0], setFilter = _g[1];
|
10161
10161
|
// 表格选中
|
10162
10162
|
// const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
10163
10163
|
// 接口参数
|
10164
|
-
var
|
10164
|
+
var _h = useState({}), apiParams = _h[0], setApiParams = _h[1];
|
10165
10165
|
var token = theme.useToken().token;
|
10166
10166
|
// 获取筛选参数
|
10167
10167
|
var getFilterParams = function () {
|
@@ -10195,11 +10195,11 @@ var SenseContentTable = forwardRef(function (props, ref) {
|
|
10195
10195
|
};
|
10196
10196
|
// 获取表头数据
|
10197
10197
|
var getColumns = function (header) {
|
10198
|
-
var columns = header.map(function (item) { return (__assign({ title: item.name, key: item.code, dataIndex: item.code,
|
10198
|
+
var columns = header.map(function (item) { return (__assign({ title: item.name, key: item.code, dataIndex: item.code, sorter: false, ellipsis: true }, customColumns === null || customColumns === void 0 ? void 0 : customColumns[item.code])); });
|
10199
10199
|
return columns;
|
10200
10200
|
};
|
10201
10201
|
// 表格数据
|
10202
|
-
var
|
10202
|
+
var _j = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
10203
10203
|
var filterParams, res;
|
10204
10204
|
var _a, _b, _c, _d;
|
10205
10205
|
return __generator(this, function (_e) {
|
@@ -10220,7 +10220,7 @@ var SenseContentTable = forwardRef(function (props, ref) {
|
|
10220
10220
|
});
|
10221
10221
|
}); }, {
|
10222
10222
|
refreshDeps: [JSON.stringify(senseGlobalCodes), tableName, JSON.stringify(filter)],
|
10223
|
-
}), loading =
|
10223
|
+
}), loading = _j.loading, _k = _j.data, _l = _k === void 0 ? {} : _k, header = _l.header, columns = _l.columns, dataSource = _l.dataSource, refresh = _j.refresh;
|
10224
10224
|
// 显示按钮
|
10225
10225
|
var showButtons = function () {
|
10226
10226
|
if (customButtons) {
|
@@ -10284,7 +10284,7 @@ var SenseContentTable = forwardRef(function (props, ref) {
|
|
10284
10284
|
// rowClassName={rowClassName}
|
10285
10285
|
onChange: handleChangeTable,
|
10286
10286
|
// rowSelection={rowSelection}
|
10287
|
-
containerHeight: proTableContainerHeight }, tableProps))),
|
10287
|
+
containerHeight: proTableContainerHeight, scroll: { x: 'max-content', y: null } }, tableProps))),
|
10288
10288
|
React__default.createElement(ExportModal, null)));
|
10289
10289
|
});
|
10290
10290
|
|
@@ -12092,7 +12092,7 @@ styleInject(css_248z$c);
|
|
12092
12092
|
|
12093
12093
|
var SenseFullTable = forwardRef(function (props, ref) {
|
12094
12094
|
var _a;
|
12095
|
-
var _b = props.viewType, viewType = _b === void 0 ? 'system' : _b, _c = props.views, views = _c === void 0 ? [] : _c, showView = props.showView, showCatalog = props.showCatalog, showBreadcrumb = props.showBreadcrumb, showBookGroupTable = props.showBookGroupTable, showBookTable = props.showBookTable, showSenseTable = props.showSenseTable, customButtons = props.customButtons, showExportButton = props.showExportButton, showImportButton = props.showImportButton, importHiddenGeolevel = props.importHiddenGeolevel, bookContextMenuConfig = props.bookContextMenuConfig, senseContextMenuConfig = props.senseContextMenuConfig, extendColumnParams = props.extendColumnParams, hideColumns = props.hideColumns, customColumns = props.customColumns, enableTag = props.enableTag, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, extendFilter = props.extendFilter, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, proTableContainerHeight = props.proTableContainerHeight;
|
12095
|
+
var _b = props.viewType, viewType = _b === void 0 ? 'system' : _b, _c = props.views, views = _c === void 0 ? [] : _c, showView = props.showView, showCatalog = props.showCatalog, showBreadcrumb = props.showBreadcrumb, showBookGroupTable = props.showBookGroupTable, showBookTable = props.showBookTable, showSenseTable = props.showSenseTable, customButtons = props.customButtons, showExportButton = props.showExportButton, showImportButton = props.showImportButton, importHiddenGeolevel = props.importHiddenGeolevel, bookContextMenuConfig = props.bookContextMenuConfig, senseContextMenuConfig = props.senseContextMenuConfig, extendColumnParams = props.extendColumnParams, hideColumns = props.hideColumns, customColumns = props.customColumns, enableTag = props.enableTag, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, sensePageSize = props.sensePageSize, extendFilter = props.extendFilter, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, proTableContainerHeight = props.proTableContainerHeight;
|
12096
12096
|
// 台账表格 ref
|
12097
12097
|
var bookTableRef = useRef();
|
12098
12098
|
// 实体记录表格 ref
|
@@ -12236,7 +12236,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12236
12236
|
};
|
12237
12237
|
// 实体记录
|
12238
12238
|
var renderSense = function (templateId, bookId) {
|
12239
|
-
return (React__default.createElement(SenseTable, { ref: senseTableRef, viewCodes: [activeViewCode], bookId: bookId, templateId: templateId, leafRegionId: leafRegionId, pathRegionId: pathRegionId, keyword: keyword, filter: filter, filterConfig: filterConfig, extendColumnParams: extendColumnParams, hideColumns: hideColumns, customColumns: customColumns, contextMenuConfig: senseContextMenuConfig, enableTag: enableTag, onShowSense: onShowSense, onEditSense: onEditSense, onClick: onClickSense, onDoubleClick: onDoubleClickSense, onRefresh: refreshTabItems }));
|
12239
|
+
return (React__default.createElement(SenseTable, { ref: senseTableRef, viewCodes: [activeViewCode], bookId: bookId, templateId: templateId, leafRegionId: leafRegionId, pathRegionId: pathRegionId, keyword: keyword, filter: filter, filterConfig: filterConfig, extendColumnParams: extendColumnParams, hideColumns: hideColumns, customColumns: customColumns, contextMenuConfig: senseContextMenuConfig, enableTag: enableTag, pageSize: sensePageSize, onShowSense: onShowSense, onEditSense: onEditSense, onClick: onClickSense, onDoubleClick: onDoubleClickSense, onRefresh: refreshTabItems }));
|
12240
12240
|
};
|
12241
12241
|
// 渲染内容
|
12242
12242
|
var renderMain = function () {
|
@@ -15885,7 +15885,7 @@ styleInject(css_248z$3);
|
|
15885
15885
|
|
15886
15886
|
var Search$1 = Input.Search;
|
15887
15887
|
var SenseList = function (_a) {
|
15888
|
-
var name = _a.name, bookId = _a.bookId, selectedTag = _a.selectedTag, templateId = _a.templateId, viewCode = _a.viewCode, customColumns = _a.customColumns;
|
15888
|
+
var name = _a.name, bookId = _a.bookId, selectedTag = _a.selectedTag, templateId = _a.templateId, viewCode = _a.viewCode, pageSize = _a.pageSize, customColumns = _a.customColumns;
|
15889
15889
|
var showContextMenu = useContextMenu({ id: ContextMenu.id }).show;
|
15890
15890
|
var _b = App.useApp(), modal = _b.modal, message = _b.message;
|
15891
15891
|
var _c = useState([]), selectBookIds = _c[0], setSelectBookIds = _c[1];
|
@@ -15980,7 +15980,7 @@ var SenseList = function (_a) {
|
|
15980
15980
|
bookId ? null : (React__default.createElement(Select, { style: { width: 260 }, placeholder: "\u8BF7\u9009\u62E9\u6240\u5C5E\u53F0\u8D26", options: bookOptions, onChange: handleChangeSelectBookIds, value: selectBookIds, fieldNames: { label: 'bookName', value: 'bookId' }, mode: "multiple", maxTagCount: "responsive", showSearch: true, filterOption: function (k, option) { return option.bookName.includes(k); } })),
|
15981
15981
|
React__default.createElement(Search$1, { style: { width: 200 }, placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD", onSearch: handleSearch, allowClear: true }))),
|
15982
15982
|
React__default.createElement("div", { className: styles$3.main },
|
15983
|
-
React__default.createElement(SenseTable, { ref: senseTableRef, bookId: bookId, bookIds: selectBookIds, keyword: keyword, templateId: templateId, viewCodes: viewCode ? [viewCode] : undefined, rowSelection: rowSelection, onRow: onRow, enableTag: "edit", customColumns: customColumns, writeAuth: true })),
|
15983
|
+
React__default.createElement(SenseTable, { ref: senseTableRef, bookId: bookId, bookIds: selectBookIds, keyword: keyword, templateId: templateId, viewCodes: viewCode ? [viewCode] : undefined, pageSize: pageSize, rowSelection: rowSelection, onRow: onRow, enableTag: "edit", customColumns: customColumns, writeAuth: true })),
|
15984
15984
|
React__default.createElement(ContextMenu, { disabled: !selectedTag })));
|
15985
15985
|
};
|
15986
15986
|
|
@@ -16133,13 +16133,13 @@ var styles$1 = {"container":"TagConfig-module_container__YV3Kx"};
|
|
16133
16133
|
styleInject(css_248z$1);
|
16134
16134
|
|
16135
16135
|
var TagConfig = function (props) {
|
16136
|
-
var name = props.name, templateId = props.templateId, bookId = props.bookId, viewCode = props.viewCode, customColumns = props.customColumns;
|
16136
|
+
var name = props.name, templateId = props.templateId, bookId = props.bookId, viewCode = props.viewCode, pageSize = props.pageSize, customColumns = props.customColumns;
|
16137
16137
|
var _a = useState(null), selectedTag = _a[0], setSelectedTag = _a[1];
|
16138
16138
|
return (React__default.createElement(Splitter, { className: styles$1.container },
|
16139
16139
|
React__default.createElement(Splitter.Panel, { defaultSize: 240, min: 180, max: 600 },
|
16140
16140
|
React__default.createElement(TagList, { templateId: templateId, selectedTag: selectedTag, setSelectedTag: setSelectedTag })),
|
16141
16141
|
React__default.createElement(Splitter.Panel, null,
|
16142
|
-
React__default.createElement(SenseList, { name: name, bookId: bookId, templateId: templateId, viewCode: viewCode, selectedTag: selectedTag, customColumns: customColumns }))));
|
16142
|
+
React__default.createElement(SenseList, { name: name, bookId: bookId, templateId: templateId, viewCode: viewCode, pageSize: pageSize, selectedTag: selectedTag, customColumns: customColumns }))));
|
16143
16143
|
};
|
16144
16144
|
|
16145
16145
|
var settings$2 = {
|
@@ -16274,11 +16274,11 @@ var CcosVideoPlayer = function (props) {
|
|
16274
16274
|
CcosVideoPlayer.settings = settings$1;
|
16275
16275
|
|
16276
16276
|
try {
|
16277
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.
|
16277
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.41","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-04-28 15:43:21"}');
|
16278
16278
|
}
|
16279
16279
|
catch (err) {
|
16280
16280
|
console.warn(err);
|
16281
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.
|
16281
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.41","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-04-28 15:43:21"}';
|
16282
16282
|
}
|
16283
16283
|
|
16284
16284
|
export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProSearch, ProTable$1 as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseContentTable, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };
|