@icos-desktop/react-components 2.0.56 → 2.0.58
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 +4 -0
- package/dist/icos-desktop.js +48 -33
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.d.ts
CHANGED
@@ -751,6 +751,10 @@ interface SenseFullTableProps {
|
|
751
751
|
* 显示导入数据按钮,为`true`时默认打开台账组导入,可按视图配置对应为台账导入/台账组导入,例如:`{ viewCode: 'book | bookGroup' }`
|
752
752
|
*/
|
753
753
|
showImportButton?: boolean | Record<string, 'book' | 'bookGroup'>;
|
754
|
+
/**
|
755
|
+
* 导入按钮显示弹窗提示
|
756
|
+
*/
|
757
|
+
importButtonTips?: string;
|
754
758
|
/**
|
755
759
|
* 台账组功能导入数据隐藏根据地理层级自动匹配,可按视图配置,例如:`{ viewCode: true }`
|
756
760
|
*/
|
package/dist/icos-desktop.js
CHANGED
@@ -12149,43 +12149,44 @@ styleInject(css_248z$c);
|
|
12149
12149
|
|
12150
12150
|
var SenseFullTable = forwardRef(function (props, ref) {
|
12151
12151
|
var _a;
|
12152
|
-
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;
|
12152
|
+
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, importButtonTips = props.importButtonTips, 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;
|
12153
12153
|
// 台账表格 ref
|
12154
12154
|
var bookTableRef = useRef();
|
12155
12155
|
// 实体记录表格 ref
|
12156
12156
|
var senseTableRef = useRef();
|
12157
|
+
var _d = Modal$1.useModal(), modal = _d[0], contextHolder = _d[1];
|
12157
12158
|
// 当前选中的视图编码
|
12158
|
-
var
|
12159
|
+
var _e = useState(''), activeViewCode = _e[0], setActiveViewCode = _e[1];
|
12159
12160
|
// 当前选中的目录展示方式
|
12160
|
-
var
|
12161
|
+
var _f = useState(), displayWay = _f[0], setDisplayWay = _f[1];
|
12161
12162
|
// 当前选中的目录编码
|
12162
|
-
var
|
12163
|
+
var _g = useState(), nodeCode = _g[0], setNodeCode = _g[1];
|
12163
12164
|
// 目录面包屑
|
12164
|
-
var
|
12165
|
+
var _h = useState([]), catalogBreadcrumb = _h[0], setCatalogBreadcrumb = _h[1];
|
12165
12166
|
// Tabs 选中的 key
|
12166
|
-
var
|
12167
|
+
var _j = useState('book'), tabsActiveKey = _j[0], setTabsActiveKey = _j[1];
|
12167
12168
|
// 当前显示的表格
|
12168
|
-
var
|
12169
|
+
var _k = useState(''), activeTable = _k[0], setActiveTable = _k[1];
|
12169
12170
|
// 当前选中的台账组
|
12170
|
-
var
|
12171
|
+
var _l = useState(null), bookGroup = _l[0], setBookGroup = _l[1];
|
12171
12172
|
// 当前选中的台账
|
12172
|
-
var
|
12173
|
+
var _m = useState(null), book = _m[0], setBook = _m[1];
|
12173
12174
|
// 台账导入的台账id
|
12174
|
-
var
|
12175
|
+
var _o = useState(''), importBookId = _o[0], setImportBookId = _o[1];
|
12175
12176
|
// 搜索关键词
|
12176
|
-
var
|
12177
|
-
var
|
12177
|
+
var _p = useState(''), keywordValue = _p[0], setKeywordValue = _p[1];
|
12178
|
+
var _q = useState(''), keyword = _q[0], setKeyword = _q[1];
|
12178
12179
|
// 筛选
|
12179
|
-
var
|
12180
|
-
var
|
12180
|
+
var _r = useState(null), filter = _r[0], setFilter = _r[1];
|
12181
|
+
var _s = useState(null), filterConfig = _s[0], setFilterConfig = _s[1];
|
12181
12182
|
// 显示实体导入弹窗
|
12182
|
-
var
|
12183
|
+
var _t = useState(false), openBookGroupImportModal = _t[0], setOpenBookGroupImportModal = _t[1];
|
12183
12184
|
// 显示实体上传弹窗
|
12184
|
-
var
|
12185
|
+
var _u = useState(false), openBookImportModal = _u[0], setOpenBookImportModal = _u[1];
|
12185
12186
|
// 显示 Tabs
|
12186
12187
|
var showTabs = bookGroup && !book && showBookTable && showSenseTable;
|
12187
12188
|
var token = theme.useToken().token;
|
12188
|
-
var
|
12189
|
+
var _v = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
12189
12190
|
var res;
|
12190
12191
|
return __generator(this, function (_a) {
|
12191
12192
|
switch (_a.label) {
|
@@ -12200,7 +12201,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12200
12201
|
}); }, {
|
12201
12202
|
ready: !!showTabs,
|
12202
12203
|
refreshDeps: [showTabs],
|
12203
|
-
}), tabItems =
|
12204
|
+
}), tabItems = _v.data, refreshTabItems = _v.refresh;
|
12204
12205
|
// 设置选中的分类
|
12205
12206
|
var handleChangeActiveViewCode = function (key) {
|
12206
12207
|
if (showCatalog) {
|
@@ -12216,7 +12217,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12216
12217
|
setActiveViewCode(key);
|
12217
12218
|
};
|
12218
12219
|
// 面包屑, 当前页面名称
|
12219
|
-
var
|
12220
|
+
var _w = useMemo(function () {
|
12220
12221
|
var _a;
|
12221
12222
|
var list = [];
|
12222
12223
|
if (catalogBreadcrumb) {
|
@@ -12268,7 +12269,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12268
12269
|
}
|
12269
12270
|
var name = ((_a = list[list.length - 1]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
12270
12271
|
return [list, name];
|
12271
|
-
}, [catalogBreadcrumb, activeViewCode, bookGroup, book]), breadcrumbItems =
|
12272
|
+
}, [catalogBreadcrumb, activeViewCode, bookGroup, book]), breadcrumbItems = _w[0]; _w[1];
|
12272
12273
|
// 台账组
|
12273
12274
|
var renderBookGroup = function () {
|
12274
12275
|
return (React__default.createElement(BookGroupTable, { viewCodes: [activeViewCode], displayWay: displayWay, nodeCode: nodeCode, keyword: keyword, filter: filter, onDoubleClick: function (data) {
|
@@ -12324,19 +12325,32 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12324
12325
|
};
|
12325
12326
|
// 导入数据
|
12326
12327
|
var handleImport = function () {
|
12327
|
-
|
12328
|
+
var run = function () {
|
12329
|
+
if (typeof showImportButton === 'boolean') {
|
12330
|
+
setOpenBookGroupImportModal(true);
|
12331
|
+
return;
|
12332
|
+
}
|
12333
|
+
if (showImportButton[activeViewCode] === 'book') {
|
12334
|
+
setOpenBookImportModal(true);
|
12335
|
+
return;
|
12336
|
+
}
|
12337
|
+
if (showImportButton[activeViewCode] === 'bookGroup') {
|
12338
|
+
setOpenBookGroupImportModal(true);
|
12339
|
+
return;
|
12340
|
+
}
|
12328
12341
|
setOpenBookGroupImportModal(true);
|
12329
|
-
|
12330
|
-
|
12331
|
-
|
12332
|
-
|
12333
|
-
|
12342
|
+
};
|
12343
|
+
if (importButtonTips) {
|
12344
|
+
modal.info({
|
12345
|
+
content: importButtonTips,
|
12346
|
+
onOk: function () {
|
12347
|
+
run();
|
12348
|
+
},
|
12349
|
+
});
|
12334
12350
|
}
|
12335
|
-
|
12336
|
-
|
12337
|
-
return;
|
12351
|
+
else {
|
12352
|
+
run();
|
12338
12353
|
}
|
12339
|
-
setOpenBookGroupImportModal(true);
|
12340
12354
|
};
|
12341
12355
|
// 判断导入数据隐藏地理层级导入
|
12342
12356
|
var hiddenGeolevel = (function () {
|
@@ -12462,7 +12476,8 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12462
12476
|
React__default.createElement(BookGroupImport, { viewCode: activeViewCode, bookGroupId: bookGroup === null || bookGroup === void 0 ? void 0 : bookGroup.bookGroupId, onCancel: handleCloseBookGroupImportModal, onSuccess: handleCloseBookGroupImportModal, hiddenGeolevel: hiddenGeolevel }))),
|
12463
12477
|
React__default.createElement(Modal, { title: "\u5BFC\u5165\u6570\u636E", width: 600, open: openBookImportModal, onCancel: handleCloseBookImportModal, footer: null, destroyOnClose: true },
|
12464
12478
|
React__default.createElement("div", { style: { height: 600, marginBottom: 8 } },
|
12465
|
-
React__default.createElement(BookImport, { bookId: (book === null || book === void 0 ? void 0 : book.bookId) || importBookId, onCancel: handleCloseBookImportModal })))
|
12479
|
+
React__default.createElement(BookImport, { bookId: (book === null || book === void 0 ? void 0 : book.bookId) || importBookId, onCancel: handleCloseBookImportModal }))),
|
12480
|
+
contextHolder));
|
12466
12481
|
});
|
12467
12482
|
|
12468
12483
|
var settings$c = {
|
@@ -16348,11 +16363,11 @@ var CcosVideoPlayer = function (props) {
|
|
16348
16363
|
CcosVideoPlayer.settings = settings$1;
|
16349
16364
|
|
16350
16365
|
try {
|
16351
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.
|
16366
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.58","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-06-13 18:01:40"}');
|
16352
16367
|
}
|
16353
16368
|
catch (err) {
|
16354
16369
|
console.warn(err);
|
16355
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.
|
16370
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.58","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-06-13 18:01:40"}';
|
16356
16371
|
}
|
16357
16372
|
|
16358
16373
|
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 };
|