@icos-desktop/react-components 2.1.3 → 2.1.5
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.js +29 -28
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.js
CHANGED
@@ -6874,7 +6874,8 @@ var showTotal$1 = function (total) {
|
|
6874
6874
|
};
|
6875
6875
|
var SenseTable = forwardRef(function (props, ref) {
|
6876
6876
|
var _a;
|
6877
|
-
var
|
6877
|
+
var _b, _c;
|
6878
|
+
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, _d = props.hideColumns, hideColumns = _d === void 0 ? [] : _d, customColumns = props.customColumns, contextMenuConfig = props.contextMenuConfig, enableTag = props.enableTag, writeAuth = props.writeAuth, _e = props.pageSize, pageSize = _e === void 0 ? 1000 : _e, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onRefresh = props.onRefresh,
|
6878
6879
|
// proTableContainerHeight,
|
6879
6880
|
tableProps = __rest(props, ["bookId", "bookIds", "templateId", "leafRegionId", "pathRegionId", "viewCodes", "keyword", "filter", "filterConfig", "extendColumnParams", "hideColumns", "customColumns", "contextMenuConfig", "enableTag", "writeAuth", "pageSize", "onClick", "onDoubleClick", "onShowSense", "onEditSense", "onRefresh"]);
|
6880
6881
|
var PAGINATION = {
|
@@ -6887,27 +6888,27 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
6887
6888
|
hideOnSinglePage: false,
|
6888
6889
|
showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
|
6889
6890
|
};
|
6890
|
-
var
|
6891
|
+
var _f = App.useApp(), message = _f.message, modal = _f.modal;
|
6891
6892
|
var showContextMenu = useContextMenu({ id: ContextMenu$3.id }).show;
|
6892
|
-
var
|
6893
|
-
var
|
6893
|
+
var _g = useKsCode(), ksCodeLoaded = _g.loaded;
|
6894
|
+
var _h = useEntityClass(), entityClassLoaded = _h.loaded;
|
6894
6895
|
// 分页
|
6895
|
-
var
|
6896
|
+
var _j = useState(__assign({}, PAGINATION)), pagination = _j[0], setPagination = _j[1];
|
6896
6897
|
// 排序
|
6897
|
-
var
|
6898
|
+
var _k = useState(null), sorter = _k[0], setSorter = _k[1];
|
6898
6899
|
// 当前高亮的行
|
6899
|
-
var
|
6900
|
+
var _l = useState(null), highlightId = _l[0], setHighlightId = _l[1];
|
6900
6901
|
// 表格选中
|
6901
|
-
var
|
6902
|
+
var _m = useState([]); _m[0]; _m[1];
|
6902
6903
|
// 当前操作行
|
6903
|
-
var
|
6904
|
+
var _o = useState(null), curRecord = _o[0], setCurRecord = _o[1];
|
6904
6905
|
// 显示全部标签弹窗
|
6905
|
-
var
|
6906
|
+
var _p = useState(false), showTagsModal = _p[0], setShowTagsModal = _p[1];
|
6906
6907
|
// 当前右键的所属台账id
|
6907
|
-
var
|
6908
|
+
var _q = useState(null), curBookId = _q[0], setCurBookId = _q[1];
|
6908
6909
|
// 搜索参数
|
6909
|
-
var
|
6910
|
-
var
|
6910
|
+
var _r = useState(), searchParams = _r[0], setSearchParams = _r[1];
|
6911
|
+
var _s = useExportModal$1(), onExport = _s.onExport, ExportModal = _s.ExportModal;
|
6911
6912
|
// 资源权限
|
6912
6913
|
var authTypes = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
6913
6914
|
var res;
|
@@ -7079,7 +7080,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7079
7080
|
return columns;
|
7080
7081
|
};
|
7081
7082
|
// 表格数据
|
7082
|
-
var
|
7083
|
+
var _t = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
7083
7084
|
var filterParams, sortParams, res, header;
|
7084
7085
|
var _a, _b, _c, _d, _e;
|
7085
7086
|
return __generator(this, function (_f) {
|
@@ -7128,7 +7129,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7128
7129
|
JSON.stringify(filter),
|
7129
7130
|
sorter,
|
7130
7131
|
],
|
7131
|
-
}), loading =
|
7132
|
+
}), loading = _t.loading, _u = _t.data, _v = _u === void 0 ? {} : _u, header = _v.header, columns = _v.columns, dataSource = _v.dataSource, refresh = _t.refresh;
|
7132
7133
|
// 触发刷新
|
7133
7134
|
var handleRefresh = function () {
|
7134
7135
|
refresh();
|
@@ -7209,7 +7210,10 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7209
7210
|
return (React__default.createElement("div", { className: styles$T.container },
|
7210
7211
|
React__default.createElement("div", { className: classNames(styles$T.table, (_a = {},
|
7211
7212
|
_a[styles$T['hidden-row-selected-num']] = !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.rowSelection) === undefined,
|
7212
|
-
_a)), style: {
|
7213
|
+
_a)), style: {
|
7214
|
+
// '--row-selected-num': selectedRowKeys.length
|
7215
|
+
'--row-selected-num': (_c = (_b = tableProps === null || tableProps === void 0 ? void 0 : tableProps.rowSelection) === null || _b === void 0 ? void 0 : _b.selectedRowKeys) === null || _c === void 0 ? void 0 : _c.length,
|
7216
|
+
} },
|
7213
7217
|
React__default.createElement(ProTable$1, __assign({ header: header, columns: columns, dataSource: dataSource, loading: loading, pagination: pagination, size: "small", rowKey: "sense_global_code", onRow: onRow, rowClassName: rowClassName, onChange: handleChangeTable,
|
7214
7218
|
// rowSelection={tableProps?.rowSelection ?? rowSelection}
|
7215
7219
|
// containerHeight={proTableContainerHeight}
|
@@ -13895,6 +13899,8 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13895
13899
|
var _d = useState(''), activeCategory = _d[0], setActiveCategory = _d[1];
|
13896
13900
|
// 显示高级搜索
|
13897
13901
|
var _e = useState(false), isShowAdvanced = _e[0], setIsShowAdvanced = _e[1];
|
13902
|
+
// 透传参数
|
13903
|
+
var customFieldParamsRef = useRef();
|
13898
13904
|
// 触发搜索
|
13899
13905
|
var handleSearch = function () {
|
13900
13906
|
form.validateFields().then(function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -13919,6 +13925,7 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13919
13925
|
keyword: keyword,
|
13920
13926
|
senseObjCodes: senseObjCodes,
|
13921
13927
|
tagCodes: tagCodes,
|
13928
|
+
customFieldParams: customFieldParamsRef.current,
|
13922
13929
|
};
|
13923
13930
|
if (searchMode === SEARCH_MODE.TIME || searchMode === SEARCH_MODE.TIME_SPACE) {
|
13924
13931
|
timeRange = values.timeRange;
|
@@ -13995,13 +14002,13 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13995
14002
|
var handleAiSearch = function (res) {
|
13996
14003
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
13997
14004
|
console.log('aiSearch', res);
|
14005
|
+
// 透传参数
|
14006
|
+
customFieldParamsRef.current = res.customFieldParams;
|
13998
14007
|
// 搜索参数
|
13999
14008
|
var params = {
|
14000
14009
|
keyword: res.keyword || '',
|
14001
14010
|
senseObjCodes: res.senseObjCodes || [],
|
14002
14011
|
tagCodes: res.tagCodes || [],
|
14003
|
-
// 透传参数
|
14004
|
-
customFieldParams: res.customFieldParams,
|
14005
14012
|
};
|
14006
14013
|
// 时空搜索参数
|
14007
14014
|
var timeSpaceParams = {};
|
@@ -14098,21 +14105,15 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
14098
14105
|
console.log('params', params);
|
14099
14106
|
console.log('timeSpaceParams', timeSpaceParams);
|
14100
14107
|
form.resetFields();
|
14101
|
-
handleSetFieldsValue(params);
|
14108
|
+
handleSetFieldsValue(__assign(__assign({}, params), timeSpaceParams));
|
14102
14109
|
if (timeSpaceParams) {
|
14103
14110
|
setTimeout(function () {
|
14104
14111
|
handleSetFieldsValue(timeSpaceParams);
|
14105
14112
|
}, 10);
|
14106
|
-
setTimeout(function () {
|
14107
|
-
handleSetFieldsValue(timeSpaceParams);
|
14108
|
-
}, 40);
|
14109
|
-
setTimeout(function () {
|
14110
|
-
handleSetFieldsValue(timeSpaceParams);
|
14111
|
-
}, 70);
|
14112
14113
|
}
|
14113
14114
|
setTimeout(function () {
|
14114
14115
|
handleSearch();
|
14115
|
-
},
|
14116
|
+
}, 20);
|
14116
14117
|
};
|
14117
14118
|
// 修改当前选中的分类
|
14118
14119
|
var handleChangeCategory = function (value) {
|
@@ -16508,11 +16509,11 @@ var CcosVideoPlayer = function (props) {
|
|
16508
16509
|
CcosVideoPlayer.settings = settings$1;
|
16509
16510
|
|
16510
16511
|
try {
|
16511
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.
|
16512
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.5","branch":"release_v2.1.0","buildDate":"2025-05-15 15:30:16"}');
|
16512
16513
|
}
|
16513
16514
|
catch (err) {
|
16514
16515
|
console.warn(err);
|
16515
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.
|
16516
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.5","branch":"release_v2.1.0","buildDate":"2025-05-15 15:30:16"}';
|
16516
16517
|
}
|
16517
16518
|
|
16518
16519
|
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 };
|