@icos-desktop/react-components 2.1.4 → 2.1.6
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 +31 -28
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.js
CHANGED
@@ -4339,6 +4339,7 @@ function getRegionInfo(params) {
|
|
4339
4339
|
url: '/v2/open/gis/geom-list',
|
4340
4340
|
method: 'GET',
|
4341
4341
|
params: params,
|
4342
|
+
paramsSerializer: function (params) { return qs.stringify(params, { arrayFormat: 'repeat' }); },
|
4342
4343
|
})];
|
4343
4344
|
});
|
4344
4345
|
});
|
@@ -6874,7 +6875,8 @@ var showTotal$1 = function (total) {
|
|
6874
6875
|
};
|
6875
6876
|
var SenseTable = forwardRef(function (props, ref) {
|
6876
6877
|
var _a;
|
6877
|
-
var
|
6878
|
+
var _b, _c;
|
6879
|
+
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
6880
|
// proTableContainerHeight,
|
6879
6881
|
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
6882
|
var PAGINATION = {
|
@@ -6887,27 +6889,27 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
6887
6889
|
hideOnSinglePage: false,
|
6888
6890
|
showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
|
6889
6891
|
};
|
6890
|
-
var
|
6892
|
+
var _f = App.useApp(), message = _f.message, modal = _f.modal;
|
6891
6893
|
var showContextMenu = useContextMenu({ id: ContextMenu$3.id }).show;
|
6892
|
-
var
|
6893
|
-
var
|
6894
|
+
var _g = useKsCode(), ksCodeLoaded = _g.loaded;
|
6895
|
+
var _h = useEntityClass(), entityClassLoaded = _h.loaded;
|
6894
6896
|
// 分页
|
6895
|
-
var
|
6897
|
+
var _j = useState(__assign({}, PAGINATION)), pagination = _j[0], setPagination = _j[1];
|
6896
6898
|
// 排序
|
6897
|
-
var
|
6899
|
+
var _k = useState(null), sorter = _k[0], setSorter = _k[1];
|
6898
6900
|
// 当前高亮的行
|
6899
|
-
var
|
6901
|
+
var _l = useState(null), highlightId = _l[0], setHighlightId = _l[1];
|
6900
6902
|
// 表格选中
|
6901
|
-
var
|
6903
|
+
var _m = useState([]); _m[0]; _m[1];
|
6902
6904
|
// 当前操作行
|
6903
|
-
var
|
6905
|
+
var _o = useState(null), curRecord = _o[0], setCurRecord = _o[1];
|
6904
6906
|
// 显示全部标签弹窗
|
6905
|
-
var
|
6907
|
+
var _p = useState(false), showTagsModal = _p[0], setShowTagsModal = _p[1];
|
6906
6908
|
// 当前右键的所属台账id
|
6907
|
-
var
|
6909
|
+
var _q = useState(null), curBookId = _q[0], setCurBookId = _q[1];
|
6908
6910
|
// 搜索参数
|
6909
|
-
var
|
6910
|
-
var
|
6911
|
+
var _r = useState(), searchParams = _r[0], setSearchParams = _r[1];
|
6912
|
+
var _s = useExportModal$1(), onExport = _s.onExport, ExportModal = _s.ExportModal;
|
6911
6913
|
// 资源权限
|
6912
6914
|
var authTypes = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
6913
6915
|
var res;
|
@@ -7079,7 +7081,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7079
7081
|
return columns;
|
7080
7082
|
};
|
7081
7083
|
// 表格数据
|
7082
|
-
var
|
7084
|
+
var _t = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
7083
7085
|
var filterParams, sortParams, res, header;
|
7084
7086
|
var _a, _b, _c, _d, _e;
|
7085
7087
|
return __generator(this, function (_f) {
|
@@ -7128,7 +7130,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7128
7130
|
JSON.stringify(filter),
|
7129
7131
|
sorter,
|
7130
7132
|
],
|
7131
|
-
}), loading =
|
7133
|
+
}), loading = _t.loading, _u = _t.data, _v = _u === void 0 ? {} : _u, header = _v.header, columns = _v.columns, dataSource = _v.dataSource, refresh = _t.refresh;
|
7132
7134
|
// 触发刷新
|
7133
7135
|
var handleRefresh = function () {
|
7134
7136
|
refresh();
|
@@ -7209,7 +7211,10 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7209
7211
|
return (React__default.createElement("div", { className: styles$T.container },
|
7210
7212
|
React__default.createElement("div", { className: classNames(styles$T.table, (_a = {},
|
7211
7213
|
_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: {
|
7214
|
+
_a)), style: {
|
7215
|
+
// '--row-selected-num': selectedRowKeys.length
|
7216
|
+
'--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,
|
7217
|
+
} },
|
7213
7218
|
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
7219
|
// rowSelection={tableProps?.rowSelection ?? rowSelection}
|
7215
7220
|
// containerHeight={proTableContainerHeight}
|
@@ -13766,7 +13771,9 @@ var AdvancedSearch = function (_a) {
|
|
13766
13771
|
data: item,
|
13767
13772
|
}); }), true);
|
13768
13773
|
if (!(region === null || region === void 0 ? void 0 : region.length)) return [3 /*break*/, 2];
|
13769
|
-
return [4 /*yield*/, getRegionInfo({
|
13774
|
+
return [4 /*yield*/, getRegionInfo({
|
13775
|
+
regionId: region.map(function (item) { return (typeof item === 'string' ? item : item.value); }),
|
13776
|
+
})];
|
13770
13777
|
case 1:
|
13771
13778
|
regionInfos = _a.sent();
|
13772
13779
|
(regionInfos || []).forEach(function (item) {
|
@@ -13938,7 +13945,9 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13938
13945
|
return getPointPolygonGeom([+p[0], +p[1]], pointRange_1);
|
13939
13946
|
}), true), (selectLines || []).map(function (item) { return getLinePolygonGeom(item, pointRange_1); }), true), (selectPolygons || []).map(function (item) { return wkt.parse(item); }), true);
|
13940
13947
|
if (!region) return [3 /*break*/, 2];
|
13941
|
-
return [4 /*yield*/, getRegionInfo({
|
13948
|
+
return [4 /*yield*/, getRegionInfo({
|
13949
|
+
regionId: region.map(function (item) { return (typeof item === 'string' ? item : item.value); }),
|
13950
|
+
})];
|
13942
13951
|
case 1:
|
13943
13952
|
regionInfos = _a.sent();
|
13944
13953
|
(regionInfos || []).forEach(function (item) {
|
@@ -14101,21 +14110,15 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
14101
14110
|
console.log('params', params);
|
14102
14111
|
console.log('timeSpaceParams', timeSpaceParams);
|
14103
14112
|
form.resetFields();
|
14104
|
-
handleSetFieldsValue(params);
|
14113
|
+
handleSetFieldsValue(__assign(__assign({}, params), timeSpaceParams));
|
14105
14114
|
if (timeSpaceParams) {
|
14106
14115
|
setTimeout(function () {
|
14107
14116
|
handleSetFieldsValue(timeSpaceParams);
|
14108
14117
|
}, 10);
|
14109
|
-
setTimeout(function () {
|
14110
|
-
handleSetFieldsValue(timeSpaceParams);
|
14111
|
-
}, 40);
|
14112
|
-
setTimeout(function () {
|
14113
|
-
handleSetFieldsValue(timeSpaceParams);
|
14114
|
-
}, 70);
|
14115
14118
|
}
|
14116
14119
|
setTimeout(function () {
|
14117
14120
|
handleSearch();
|
14118
|
-
},
|
14121
|
+
}, 20);
|
14119
14122
|
};
|
14120
14123
|
// 修改当前选中的分类
|
14121
14124
|
var handleChangeCategory = function (value) {
|
@@ -16511,11 +16514,11 @@ var CcosVideoPlayer = function (props) {
|
|
16511
16514
|
CcosVideoPlayer.settings = settings$1;
|
16512
16515
|
|
16513
16516
|
try {
|
16514
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.
|
16517
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.6","branch":"release_v2.1.0","buildDate":"2025-05-16 18:32:37"}');
|
16515
16518
|
}
|
16516
16519
|
catch (err) {
|
16517
16520
|
console.warn(err);
|
16518
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.
|
16521
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.6","branch":"release_v2.1.0","buildDate":"2025-05-16 18:32:37"}';
|
16519
16522
|
}
|
16520
16523
|
|
16521
16524
|
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 };
|