@icos-desktop/react-components 1.2.0-beta.15 → 1.2.0-beta.16
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 +19 -7
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.js
CHANGED
@@ -6398,7 +6398,6 @@ var SenseForm = forwardRef(function (props, ref) {
|
|
6398
6398
|
jmtAddressRef.current = jmtAddress;
|
6399
6399
|
iframe = document.createElement('iframe');
|
6400
6400
|
src = "".concat(jmtAddress, "/k-public-pages/#/pages/icos/entityInfo?modalId=").concat(uuid, "&zmhtUrlToken=").concat(token);
|
6401
|
-
// let src = `http://localhost:8088/#/pages/icos/entityInfo?modalId=${uuid}&zmhtUrlToken=${token}`;
|
6402
6401
|
if (disabled) {
|
6403
6402
|
src += '&disabled=true';
|
6404
6403
|
}
|
@@ -8319,11 +8318,13 @@ var MatchField = function (_a) {
|
|
8319
8318
|
useEffect(function () {
|
8320
8319
|
var mapping = [];
|
8321
8320
|
Object.keys(fieldMap).forEach(function (key) {
|
8322
|
-
var _a;
|
8323
|
-
if ((_a = fieldMap[key]) === null || _a === void 0 ? void 0 : _a.checked) {
|
8321
|
+
var _a, _b;
|
8322
|
+
if (((_a = fieldMap[key]) === null || _a === void 0 ? void 0 : _a.checked) || ((_b = fieldMap[key]) === null || _b === void 0 ? void 0 : _b.required)) {
|
8324
8323
|
mapping.push({
|
8325
8324
|
source: fieldMap[key].fieldId,
|
8326
8325
|
target: key,
|
8326
|
+
checked: fieldMap[key].checked,
|
8327
|
+
required: fieldMap[key].required,
|
8327
8328
|
});
|
8328
8329
|
}
|
8329
8330
|
});
|
@@ -9561,7 +9562,7 @@ var Existing = forwardRef(function (_a, ref) {
|
|
9561
9562
|
}); };
|
9562
9563
|
// 导入
|
9563
9564
|
var handleImport = function () { return __awaiter(void 0, void 0, void 0, function () {
|
9564
|
-
var bookMappingOk, senseGlobalCodes, res_1, err_2;
|
9565
|
+
var bookMappingOk, fieldMappingOk, senseGlobalCodes, res_1, err_2;
|
9565
9566
|
var _a, _b, _c;
|
9566
9567
|
return __generator(this, function (_d) {
|
9567
9568
|
switch (_d.label) {
|
@@ -9588,6 +9589,17 @@ var Existing = forwardRef(function (_a, ref) {
|
|
9588
9589
|
message.error('请设置匹配字段');
|
9589
9590
|
return [2 /*return*/];
|
9590
9591
|
}
|
9592
|
+
fieldMappingOk = true;
|
9593
|
+
fieldMapping.forEach(function (item) {
|
9594
|
+
console.log(item);
|
9595
|
+
if (item.required && (!item.source || !item.checked)) {
|
9596
|
+
fieldMappingOk = false;
|
9597
|
+
}
|
9598
|
+
});
|
9599
|
+
if (!fieldMappingOk) {
|
9600
|
+
message.error('请设置必填字段对应的匹配字段');
|
9601
|
+
return [2 /*return*/];
|
9602
|
+
}
|
9591
9603
|
if (((_a = sourceData === null || sourceData === void 0 ? void 0 : sourceData.data) === null || _a === void 0 ? void 0 : _a.type) === 'sense') {
|
9592
9604
|
senseGlobalCodes = (_b = sourceData === null || sourceData === void 0 ? void 0 : sourceData.data) === null || _b === void 0 ? void 0 : _b.keys;
|
9593
9605
|
}
|
@@ -9602,7 +9614,7 @@ var Existing = forwardRef(function (_a, ref) {
|
|
9602
9614
|
target: bookGroupId,
|
9603
9615
|
},
|
9604
9616
|
bookMapping: bookMapping,
|
9605
|
-
fieldMapping: fieldMapping,
|
9617
|
+
fieldMapping: fieldMapping.map(function (item) { return ({ source: item.source, target: item.target }); }),
|
9606
9618
|
senseGlobalCodes: senseGlobalCodes,
|
9607
9619
|
})];
|
9608
9620
|
case 2:
|
@@ -13642,11 +13654,11 @@ var CcosVideoPlayer = function (props) {
|
|
13642
13654
|
CcosVideoPlayer.settings = settings$1;
|
13643
13655
|
|
13644
13656
|
try {
|
13645
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"1.2.0-beta.
|
13657
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"1.2.0-beta.16","branch":"remotes/origin/release_v1.2.0","buildDate":"2025-02-13 18:32:31"}');
|
13646
13658
|
}
|
13647
13659
|
catch (err) {
|
13648
13660
|
console.warn(err);
|
13649
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"1.2.0-beta.
|
13661
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"1.2.0-beta.16","branch":"remotes/origin/release_v1.2.0","buildDate":"2025-02-13 18:32:31"}';
|
13650
13662
|
}
|
13651
13663
|
|
13652
13664
|
export { BookGroupTable, BookTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosVideoPlayer, OrgTreeSelect, PersonSelector, ProTable$1 as ProTable, Provider, RegionTreeSelect, RelationGraph, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseImport, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseUpload, SenseView, TagTreeSelect, VideoPlayer, setCconfig as config };
|