polyfill-common 2.1.11 → 2.1.14
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/index.js +159 -86
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
- package/src/index.js +0 -1806
package/dist/index.js
CHANGED
|
@@ -1118,7 +1118,7 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1118
1118
|
}, {
|
|
1119
1119
|
key: "forceUpdateFun",
|
|
1120
1120
|
value: (function () {
|
|
1121
|
-
var _forceUpdateFun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1121
|
+
var _forceUpdateFun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(elSrc, contentValueTemp, attrTemp, editAreaTmp, valueDefaultPropsTemp, versionControl, playInput) {
|
|
1122
1122
|
var _this4 = this,
|
|
1123
1123
|
_bse_options,
|
|
1124
1124
|
_bse_options$find,
|
|
@@ -1129,8 +1129,8 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1129
1129
|
_this$getOptions4,
|
|
1130
1130
|
_this$getOptions5;
|
|
1131
1131
|
var editArea, currentNodeTemp, _iterator4, _step4, input, _iterator5, _step5, _contentValueTemp$inc, _contentValueTemp$inc2, _input, bse_options, bse_options_cache_axios_obj, matchLabel, emspLen, createText, addOrder, addCommaFullstop, diagnoseMapping, filterShowList, diagnoseNewAttr, addOrderNumber, addChinaOrderNumber, showDiagnoseType, showDiagnoseTitle, signTitleLabel, signDateLabel, sectionStart, splitCharList, diagnoseTypeLabel, showDescribe, _comChildLi, diagnoseSingMapping, signOtherUserInfo, comSignList, elSrcSpanWarp, surgeryNewAttr, surgeryMapping, innerHTMLStr, _contentValueTemp, CheckIsChinese, addressArr, showLabel, addCode, _addCode, addressNewAttr, singMapping, bse_signList_temp, signNewAttr, bse_signList, showList, mode, jobsort, bae_signList_temp, dateNewAttr, currentDate, valueArr;
|
|
1132
|
-
return _regeneratorRuntime().wrap(function
|
|
1133
|
-
while (1) switch (
|
|
1132
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
1133
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
1134
1134
|
case 0:
|
|
1135
1135
|
editArea = editAreaTmp || this.getEditorPageArea();
|
|
1136
1136
|
currentNodeTemp = function (_elSrc$querySelector) {
|
|
@@ -1178,50 +1178,50 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
}();
|
|
1180
1180
|
if (currentNodeTemp) {
|
|
1181
|
-
|
|
1181
|
+
_context4.next = 4;
|
|
1182
1182
|
break;
|
|
1183
1183
|
}
|
|
1184
|
-
return
|
|
1184
|
+
return _context4.abrupt("return");
|
|
1185
1185
|
case 4:
|
|
1186
|
-
|
|
1187
|
-
|
|
1186
|
+
_context4.t0 = attrTemp.type;
|
|
1187
|
+
_context4.next = _context4.t0 === "radio" ? 7 : _context4.t0 === "checkbox" ? 29 : _context4.t0 === "select" ? 32 : _context4.t0 === "diagnose" ? 44 : _context4.t0 === "surgery" ? 64 : _context4.t0 === "address" ? 71 : _context4.t0 === "sign" ? 96 : _context4.t0 === "date" ? 106 : _context4.t0 === "bloodPressure" ? 108 : _context4.t0 === "picturePlaceholder" ? 112 : 114;
|
|
1188
1188
|
break;
|
|
1189
1189
|
case 7:
|
|
1190
1190
|
_iterator4 = _createForOfIteratorHelper([].slice.call(currentNodeTemp.querySelectorAll("input")));
|
|
1191
|
-
|
|
1191
|
+
_context4.prev = 8;
|
|
1192
1192
|
_iterator4.s();
|
|
1193
1193
|
case 10:
|
|
1194
1194
|
if ((_step4 = _iterator4.n()).done) {
|
|
1195
|
-
|
|
1195
|
+
_context4.next = 20;
|
|
1196
1196
|
break;
|
|
1197
1197
|
}
|
|
1198
1198
|
input = _step4.value;
|
|
1199
1199
|
if (![input.getAttribute("value"), input.getAttribute("label")].includes(contentValueTemp)) {
|
|
1200
|
-
|
|
1200
|
+
_context4.next = 17;
|
|
1201
1201
|
break;
|
|
1202
1202
|
}
|
|
1203
1203
|
input.setAttribute('checked', 'checked');
|
|
1204
1204
|
// input.checked = true
|
|
1205
|
-
return
|
|
1205
|
+
return _context4.abrupt("break", 20);
|
|
1206
1206
|
case 17:
|
|
1207
1207
|
input.removeAttribute('checked');
|
|
1208
1208
|
// input.checked = false
|
|
1209
1209
|
case 18:
|
|
1210
|
-
|
|
1210
|
+
_context4.next = 10;
|
|
1211
1211
|
break;
|
|
1212
1212
|
case 20:
|
|
1213
|
-
|
|
1213
|
+
_context4.next = 25;
|
|
1214
1214
|
break;
|
|
1215
1215
|
case 22:
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
_iterator4.e(
|
|
1216
|
+
_context4.prev = 22;
|
|
1217
|
+
_context4.t1 = _context4["catch"](8);
|
|
1218
|
+
_iterator4.e(_context4.t1);
|
|
1219
1219
|
case 25:
|
|
1220
|
-
|
|
1220
|
+
_context4.prev = 25;
|
|
1221
1221
|
_iterator4.f();
|
|
1222
|
-
return
|
|
1222
|
+
return _context4.finish(25);
|
|
1223
1223
|
case 28:
|
|
1224
|
-
return
|
|
1224
|
+
return _context4.abrupt("break", 116);
|
|
1225
1225
|
case 29:
|
|
1226
1226
|
_iterator5 = _createForOfIteratorHelper([].slice.call(currentNodeTemp.querySelectorAll("input")));
|
|
1227
1227
|
try {
|
|
@@ -1240,19 +1240,19 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1240
1240
|
} finally {
|
|
1241
1241
|
_iterator5.f();
|
|
1242
1242
|
}
|
|
1243
|
-
return
|
|
1243
|
+
return _context4.abrupt("break", 116);
|
|
1244
1244
|
case 32:
|
|
1245
1245
|
bse_options = [];
|
|
1246
1246
|
if (!(attrTemp.bse_card === 'axios')) {
|
|
1247
|
-
|
|
1247
|
+
_context4.next = 40;
|
|
1248
1248
|
break;
|
|
1249
1249
|
}
|
|
1250
|
-
|
|
1250
|
+
_context4.next = 36;
|
|
1251
1251
|
return awaitDictoryResultMiddle.call(this, attrTemp, versionControl);
|
|
1252
1252
|
case 36:
|
|
1253
|
-
bse_options_cache_axios_obj =
|
|
1253
|
+
bse_options_cache_axios_obj = _context4.sent;
|
|
1254
1254
|
bse_options = this.getRadioCheckDynamicMappingValue(bse_options_cache_axios_obj);
|
|
1255
|
-
|
|
1255
|
+
_context4.next = 41;
|
|
1256
1256
|
break;
|
|
1257
1257
|
case 40:
|
|
1258
1258
|
bse_options = attrTemp.bse_options;
|
|
@@ -1261,7 +1261,7 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1261
1261
|
return [f.value, f.label].includes(contentValueTemp);
|
|
1262
1262
|
})) === null || _bse_options$find === void 0 ? void 0 : _bse_options$find.label;
|
|
1263
1263
|
currentNodeTemp.querySelector("label").innerHTML = matchLabel || '';
|
|
1264
|
-
return
|
|
1264
|
+
return _context4.abrupt("break", 116);
|
|
1265
1265
|
case 44:
|
|
1266
1266
|
/* 递归算出树形数据 用于诊断控件层级渲染 */
|
|
1267
1267
|
emspLen = function emspLen(level, inx, sectionStart, showDiagnoseType, showDiagnoseTitle) {
|
|
@@ -1389,31 +1389,50 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1389
1389
|
}[modeName]();
|
|
1390
1390
|
}).join(""));
|
|
1391
1391
|
};
|
|
1392
|
-
diagnoseSingMapping = _objectSpread(_objectSpread({}, optionsDefault.signFieldsMapping), (_this$getOptions3 = this.getOptions()) === null || _this$getOptions3 === void 0 ? void 0 : _this$getOptions3.signFieldsMapping); //
|
|
1393
|
-
|
|
1394
|
-
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
while (1) switch (_context.prev = _context.next) {
|
|
1392
|
+
diagnoseSingMapping = _objectSpread(_objectSpread({}, optionsDefault.signFieldsMapping), (_this$getOptions3 = this.getOptions()) === null || _this$getOptions3 === void 0 ? void 0 : _this$getOptions3.signFieldsMapping); // 预取其它用户签名信息
|
|
1393
|
+
_context4.next = 58;
|
|
1394
|
+
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1395
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1396
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1398
1397
|
case 0:
|
|
1399
|
-
if (!
|
|
1400
|
-
|
|
1398
|
+
if (!attrTemp.showList.includes('签名')) {
|
|
1399
|
+
_context2.next = 4;
|
|
1401
1400
|
break;
|
|
1402
1401
|
}
|
|
1403
|
-
|
|
1404
|
-
return new Promise(function (
|
|
1405
|
-
|
|
1406
|
-
|
|
1402
|
+
_context2.next = 3;
|
|
1403
|
+
return new Promise(/*#__PURE__*/function () {
|
|
1404
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve) {
|
|
1405
|
+
var _filterShowList;
|
|
1406
|
+
var diagInfo, userInfo;
|
|
1407
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1408
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1409
|
+
case 0:
|
|
1410
|
+
diagInfo = (_filterShowList = filterShowList) === null || _filterShowList === void 0 || (_filterShowList = _filterShowList[0]) === null || _filterShowList === void 0 || (_filterShowList = _filterShowList.bse_children) === null || _filterShowList === void 0 || (_filterShowList = _filterShowList[0].bse_children) === null || _filterShowList === void 0 ? void 0 : _filterShowList[0];
|
|
1411
|
+
_context.next = 3;
|
|
1412
|
+
return _this4.findSignUserInfoResult.call(_this4, _defineProperty(_defineProperty({}, diagnoseSingMapping['工号'], diagInfo === null || diagInfo === void 0 ? void 0 : diagInfo.diagDrCode), diagnoseSingMapping['姓名'], diagInfo === null || diagInfo === void 0 ? void 0 : diagInfo.diagDrName));
|
|
1413
|
+
case 3:
|
|
1414
|
+
userInfo = _context.sent;
|
|
1415
|
+
resolve(userInfo);
|
|
1416
|
+
case 5:
|
|
1417
|
+
case "end":
|
|
1418
|
+
return _context.stop();
|
|
1419
|
+
}
|
|
1420
|
+
}, _callee);
|
|
1421
|
+
}));
|
|
1422
|
+
return function (_x8) {
|
|
1423
|
+
return _ref3.apply(this, arguments);
|
|
1424
|
+
};
|
|
1425
|
+
}());
|
|
1407
1426
|
case 3:
|
|
1408
|
-
return
|
|
1427
|
+
return _context2.abrupt("return", _context2.sent);
|
|
1409
1428
|
case 4:
|
|
1410
1429
|
case "end":
|
|
1411
|
-
return
|
|
1430
|
+
return _context2.stop();
|
|
1412
1431
|
}
|
|
1413
|
-
},
|
|
1432
|
+
}, _callee2);
|
|
1414
1433
|
}))();
|
|
1415
1434
|
case 58:
|
|
1416
|
-
signOtherUserInfo =
|
|
1435
|
+
signOtherUserInfo = _context4.sent;
|
|
1417
1436
|
// 预取其它用户签名信息(requestOtherUserInfoExtra)
|
|
1418
1437
|
comSignList = function comSignList(modeName, signMappingAttr, signTitleLabel, signDateLabel, showDiagnoseTypeTmp, showDiagnoseTitleTmp, attrTemp) {
|
|
1419
1438
|
var diagnoseArr = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : [];
|
|
@@ -1477,7 +1496,7 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1477
1496
|
elSrcSpanWarp.classList.contains("text-zero") && elSrcSpanWarp.classList.remove("text-zero");
|
|
1478
1497
|
}
|
|
1479
1498
|
currentNodeTemp.querySelector("label").innerHTML = filterShowList.length ? "".concat(_comChildLi(filterShowList, attrTemp.mode, 0, showDiagnoseType, showDiagnoseTitle, diagnoseMapping)).concat(comSignList(attrTemp.mode, diagnoseSingMapping, signTitleLabel, signDateLabel, showDiagnoseType, showDiagnoseTitle, attrTemp, filterShowList)) : "";
|
|
1480
|
-
return
|
|
1499
|
+
return _context4.abrupt("break", 116);
|
|
1481
1500
|
case 64:
|
|
1482
1501
|
surgeryNewAttr = _objectSpread(_objectSpread({}, attrTemp), {}, {
|
|
1483
1502
|
bse_surgeryList: contentValueTemp !== null && contentValueTemp !== void 0 ? contentValueTemp : []
|
|
@@ -1498,29 +1517,29 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1498
1517
|
innerHTMLStr = '';
|
|
1499
1518
|
}
|
|
1500
1519
|
currentNodeTemp.querySelector("label").innerHTML = innerHTMLStr || '';
|
|
1501
|
-
return
|
|
1520
|
+
return _context4.abrupt("break", 116);
|
|
1502
1521
|
case 71:
|
|
1503
1522
|
CheckIsChinese = function CheckIsChinese(str, val) {
|
|
1504
1523
|
return new RegExp("[".concat(str, "]+"), "g").test(val);
|
|
1505
1524
|
};
|
|
1506
1525
|
addressArr = [], showLabel = '';
|
|
1507
1526
|
if (!Array.isArray(contentValueTemp)) {
|
|
1508
|
-
|
|
1527
|
+
_context4.next = 81;
|
|
1509
1528
|
break;
|
|
1510
1529
|
}
|
|
1511
1530
|
addCode = JSON.parse(JSON.stringify(contentValueTemp)).pop();
|
|
1512
|
-
|
|
1531
|
+
_context4.next = 77;
|
|
1513
1532
|
return this.getAddressInfoList(addCode, attrTemp);
|
|
1514
1533
|
case 77:
|
|
1515
|
-
addressArr =
|
|
1534
|
+
addressArr = _context4.sent;
|
|
1516
1535
|
showLabel = addressArr.map(function (m) {
|
|
1517
1536
|
return m.label;
|
|
1518
1537
|
}).join('/') || "";
|
|
1519
|
-
|
|
1538
|
+
_context4.next = 92;
|
|
1520
1539
|
break;
|
|
1521
1540
|
case 81:
|
|
1522
1541
|
if (!CheckIsChinese("\\u4E00-\\u9FFF", contentValueTemp)) {
|
|
1523
|
-
|
|
1542
|
+
_context4.next = 86;
|
|
1524
1543
|
break;
|
|
1525
1544
|
}
|
|
1526
1545
|
// *特殊中文直接渲染中文不发请求
|
|
@@ -1529,7 +1548,7 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1529
1548
|
name: contentValueTemp
|
|
1530
1549
|
}];
|
|
1531
1550
|
showLabel = contentValueTemp;
|
|
1532
|
-
|
|
1551
|
+
_context4.next = 92;
|
|
1533
1552
|
break;
|
|
1534
1553
|
case 86:
|
|
1535
1554
|
_addCode = ''; // 用于接口查询code
|
|
@@ -1539,10 +1558,10 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1539
1558
|
} else {
|
|
1540
1559
|
_addCode = contentValueTemp;
|
|
1541
1560
|
}
|
|
1542
|
-
|
|
1561
|
+
_context4.next = 90;
|
|
1543
1562
|
return this.getAddressInfoList(_addCode, attrTemp);
|
|
1544
1563
|
case 90:
|
|
1545
|
-
addressArr =
|
|
1564
|
+
addressArr = _context4.sent;
|
|
1546
1565
|
showLabel = addressArr.map(function (m) {
|
|
1547
1566
|
return m.label;
|
|
1548
1567
|
}).join('/') || "";
|
|
@@ -1552,10 +1571,64 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1552
1571
|
});
|
|
1553
1572
|
currentNodeTemp.setAttribute("bse", encodeURIComponent(JSON.stringify(addressNewAttr)));
|
|
1554
1573
|
currentNodeTemp.querySelector("label").innerHTML = showLabel;
|
|
1555
|
-
return
|
|
1574
|
+
return _context4.abrupt("break", 116);
|
|
1556
1575
|
case 96:
|
|
1557
1576
|
singMapping = _objectSpread(_objectSpread({}, optionsDefault.signFieldsMapping), (_this$getOptions5 = this.getOptions()) === null || _this$getOptions5 === void 0 ? void 0 : _this$getOptions5.signFieldsMapping);
|
|
1558
|
-
|
|
1577
|
+
_context4.next = 99;
|
|
1578
|
+
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
1579
|
+
var _this4$getOptions$cla;
|
|
1580
|
+
var insideCarseSheet, _iterator6, _step6, rest, userInfo;
|
|
1581
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1582
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
1583
|
+
case 0:
|
|
1584
|
+
// 判断是否在caresheet内
|
|
1585
|
+
insideCarseSheet = (_this4$getOptions$cla = _this4.getOptions().classList) === null || _this4$getOptions$cla === void 0 ? void 0 : _this4$getOptions$cla.includes("bse-caresheet");
|
|
1586
|
+
if (!insideCarseSheet) {
|
|
1587
|
+
_context3.next = 21;
|
|
1588
|
+
break;
|
|
1589
|
+
}
|
|
1590
|
+
// 过滤签名字符串
|
|
1591
|
+
_iterator6 = _createForOfIteratorHelper(contentValueTemp);
|
|
1592
|
+
_context3.prev = 3;
|
|
1593
|
+
_iterator6.s();
|
|
1594
|
+
case 5:
|
|
1595
|
+
if ((_step6 = _iterator6.n()).done) {
|
|
1596
|
+
_context3.next = 13;
|
|
1597
|
+
break;
|
|
1598
|
+
}
|
|
1599
|
+
rest = _step6.value;
|
|
1600
|
+
_context3.next = 9;
|
|
1601
|
+
return _this4.findSignUserInfoResult.call(_this4, _defineProperty(_defineProperty({}, singMapping['工号'], rest[singMapping['工号']]), singMapping['姓名'], rest[singMapping['姓名']]));
|
|
1602
|
+
case 9:
|
|
1603
|
+
userInfo = _context3.sent;
|
|
1604
|
+
if (userInfo[singMapping["签名"]]) {
|
|
1605
|
+
// 签名存在,在替换
|
|
1606
|
+
rest[singMapping["签名"]] = userInfo[singMapping["签名"]];
|
|
1607
|
+
}
|
|
1608
|
+
case 11:
|
|
1609
|
+
_context3.next = 5;
|
|
1610
|
+
break;
|
|
1611
|
+
case 13:
|
|
1612
|
+
_context3.next = 18;
|
|
1613
|
+
break;
|
|
1614
|
+
case 15:
|
|
1615
|
+
_context3.prev = 15;
|
|
1616
|
+
_context3.t0 = _context3["catch"](3);
|
|
1617
|
+
_iterator6.e(_context3.t0);
|
|
1618
|
+
case 18:
|
|
1619
|
+
_context3.prev = 18;
|
|
1620
|
+
_iterator6.f();
|
|
1621
|
+
return _context3.finish(18);
|
|
1622
|
+
case 21:
|
|
1623
|
+
return _context3.abrupt("return", contentValueTemp !== null && contentValueTemp !== void 0 ? contentValueTemp : []);
|
|
1624
|
+
case 22:
|
|
1625
|
+
case "end":
|
|
1626
|
+
return _context3.stop();
|
|
1627
|
+
}
|
|
1628
|
+
}, _callee3, null, [[3, 15, 18, 21]]);
|
|
1629
|
+
}))();
|
|
1630
|
+
case 99:
|
|
1631
|
+
bse_signList_temp = _context4.sent;
|
|
1559
1632
|
signNewAttr = _objectSpread(_objectSpread({}, attrTemp), {}, {
|
|
1560
1633
|
bse_signList: bse_signList_temp
|
|
1561
1634
|
});
|
|
@@ -1578,8 +1651,8 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1578
1651
|
}
|
|
1579
1652
|
}).join(" "), "</text>");
|
|
1580
1653
|
}).join(mode === "vertical" ? "" : " / "));
|
|
1581
|
-
return
|
|
1582
|
-
case
|
|
1654
|
+
return _context4.abrupt("break", 116);
|
|
1655
|
+
case 106:
|
|
1583
1656
|
if (currentNodeTemp.querySelector("label")) {
|
|
1584
1657
|
dateNewAttr = _objectSpread(_objectSpread({}, attrTemp), {}, {
|
|
1585
1658
|
date: contentValueTemp
|
|
@@ -1592,27 +1665,27 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1592
1665
|
currentNodeTemp.querySelector("label").innerHTML = contentValueTemp ? attrTemp.datetype === 'age' ? calculateAge(contentValueTemp) : dateFormat(contentValueTemp, attrTemp.dateformat) : '';
|
|
1593
1666
|
}
|
|
1594
1667
|
}
|
|
1595
|
-
return
|
|
1596
|
-
case
|
|
1668
|
+
return _context4.abrupt("break", 116);
|
|
1669
|
+
case 108:
|
|
1597
1670
|
valueArr = contentValueTemp.split('|');
|
|
1598
1671
|
currentNodeTemp.querySelector(".extensional").innerHTML = valueArr[0] || '';
|
|
1599
1672
|
currentNodeTemp.querySelector(".diastolic").innerHTML = valueArr[1] || '';
|
|
1600
|
-
return
|
|
1601
|
-
case 110:
|
|
1602
|
-
currentNodeTemp.querySelector("label") && (currentNodeTemp.querySelector("label").innerHTML = contentValueTemp ? "<img width=\"".concat(attrTemp.width, "\" height=\"").concat(attrTemp.height, "\" src=\"").concat(contentValueTemp, "\" />") : "<svg width=\"".concat(attrTemp.width, "\" height=\"").concat(attrTemp.height, "\" viewBox=\"0 0 200 200\"><rect width=\"200\" height=\"200\" fill=\"transparent\" stroke=\"black\" stroke-width=\"2\" stroke-dasharray=\"5, 5\" rx=\"10\" ry=\"10\"></rect><text x=\"50%\" y=\"50%\" text-anchor=\"middle\" dominant-baseline=\"central\">\u56FE\u7247\u5360\u4F4D\u533A</text><text font-size=\"200\" fill=\"transparent\" stroke-opacity=\"0.1\" stroke-dasharray=\"5, 5\" stroke=\"black\" stroke-width=\"1\" x=\"50%\" y=\"50%\" text-anchor=\"middle\" dominant-baseline=\"central\">+</text></svg>"));
|
|
1603
|
-
return _context2.abrupt("break", 114);
|
|
1673
|
+
return _context4.abrupt("break", 116);
|
|
1604
1674
|
case 112:
|
|
1675
|
+
currentNodeTemp.querySelector("label") && (currentNodeTemp.querySelector("label").innerHTML = contentValueTemp ? "<img width=\"".concat(attrTemp.width, "\" height=\"").concat(attrTemp.height, "\" src=\"").concat(contentValueTemp, "\" />") : "<svg width=\"".concat(attrTemp.width, "\" height=\"").concat(attrTemp.height, "\" viewBox=\"0 0 200 200\"><rect width=\"200\" height=\"200\" fill=\"transparent\" stroke=\"black\" stroke-width=\"2\" stroke-dasharray=\"5, 5\" rx=\"10\" ry=\"10\"></rect><text x=\"50%\" y=\"50%\" text-anchor=\"middle\" dominant-baseline=\"central\">\u56FE\u7247\u5360\u4F4D\u533A</text><text font-size=\"200\" fill=\"transparent\" stroke-opacity=\"0.1\" stroke-dasharray=\"5, 5\" stroke=\"black\" stroke-width=\"1\" x=\"50%\" y=\"50%\" text-anchor=\"middle\" dominant-baseline=\"central\">+</text></svg>"));
|
|
1676
|
+
return _context4.abrupt("break", 116);
|
|
1677
|
+
case 114:
|
|
1605
1678
|
if (playInput) {
|
|
1606
1679
|
palyInput(currentNodeTemp, contentValueTemp);
|
|
1607
1680
|
} else {
|
|
1608
1681
|
currentNodeTemp.querySelector("label") && (currentNodeTemp.querySelector("label").innerHTML = contentValueTemp !== null && contentValueTemp !== void 0 ? contentValueTemp : '');
|
|
1609
1682
|
}
|
|
1610
|
-
return
|
|
1611
|
-
case
|
|
1683
|
+
return _context4.abrupt("break", 116);
|
|
1684
|
+
case 116:
|
|
1612
1685
|
case "end":
|
|
1613
|
-
return
|
|
1686
|
+
return _context4.stop();
|
|
1614
1687
|
}
|
|
1615
|
-
},
|
|
1688
|
+
}, _callee4, this, [[8, 22, 25, 28]]);
|
|
1616
1689
|
}));
|
|
1617
1690
|
function forceUpdateFun(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
|
1618
1691
|
return _forceUpdateFun.apply(this, arguments);
|
|
@@ -1681,11 +1754,11 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1681
1754
|
}, current);
|
|
1682
1755
|
var splitSurRow = merge.querySelector('tbody tr');
|
|
1683
1756
|
if (colgroups && colgroups.cur) {
|
|
1684
|
-
var
|
|
1685
|
-
|
|
1757
|
+
var _iterator7 = _createForOfIteratorHelper(colgroups.cur),
|
|
1758
|
+
_step7;
|
|
1686
1759
|
try {
|
|
1687
|
-
for (
|
|
1688
|
-
var td =
|
|
1760
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
1761
|
+
var td = _step7.value;
|
|
1689
1762
|
var splitTdDom = bse_dragger.comMatchCellByColIndex(splitSurRow, td.colIndex).matchCell;
|
|
1690
1763
|
td.cell.style.height = parseInt(td.cell.style.height) + parseInt(splitTdDom === null || splitTdDom === void 0 ? void 0 : splitTdDom.style.height) + 'px'; // + 2
|
|
1691
1764
|
|
|
@@ -1698,9 +1771,9 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1698
1771
|
td.cell.setAttribute('rowspan', +td.cell.getAttribute('rowspan') + +(splitTdDom === null || splitTdDom === void 0 ? void 0 : splitTdDom.getAttribute('rowspan')) - 1);
|
|
1699
1772
|
}
|
|
1700
1773
|
} catch (err) {
|
|
1701
|
-
|
|
1774
|
+
_iterator7.e(err);
|
|
1702
1775
|
} finally {
|
|
1703
|
-
|
|
1776
|
+
_iterator7.f();
|
|
1704
1777
|
}
|
|
1705
1778
|
}
|
|
1706
1779
|
splitSurRow === null || splitSurRow === void 0 || splitSurRow.remove();
|
|
@@ -1782,17 +1855,17 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1782
1855
|
}, {
|
|
1783
1856
|
key: "setAndDrawAllTestListByPageNum",
|
|
1784
1857
|
value: (function () {
|
|
1785
|
-
var _setAndDrawAllTestListByPageNum = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1858
|
+
var _setAndDrawAllTestListByPageNum = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
1786
1859
|
var _this5 = this;
|
|
1787
1860
|
var pageNumber,
|
|
1788
1861
|
allTestData,
|
|
1789
|
-
|
|
1790
|
-
return _regeneratorRuntime().wrap(function
|
|
1791
|
-
while (1) switch (
|
|
1862
|
+
_args6 = arguments;
|
|
1863
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
1864
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1792
1865
|
case 0:
|
|
1793
|
-
pageNumber =
|
|
1794
|
-
allTestData =
|
|
1795
|
-
return
|
|
1866
|
+
pageNumber = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : 1;
|
|
1867
|
+
allTestData = _args6.length > 1 ? _args6[1] : undefined;
|
|
1868
|
+
return _context6.abrupt("return", new Promise(function (reslove) {
|
|
1796
1869
|
_this5.temperatureIntance.clearnByPageNumber(pageNumber).then(function () {
|
|
1797
1870
|
var temperDataList = allTestData.temperDataList;
|
|
1798
1871
|
var target = _this5.getEditorPageByNum(pageNumber).querySelector('.bse-content_editable');
|
|
@@ -1827,10 +1900,10 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1827
1900
|
});
|
|
1828
1901
|
target.appendChild(div);
|
|
1829
1902
|
}
|
|
1830
|
-
requestAnimationFrame(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1903
|
+
requestAnimationFrame(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
1831
1904
|
var footTarget;
|
|
1832
|
-
return _regeneratorRuntime().wrap(function
|
|
1833
|
-
while (1) switch (
|
|
1905
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
1906
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
1834
1907
|
case 0:
|
|
1835
1908
|
/** 数据存储 */
|
|
1836
1909
|
if (temperDataList.length) {
|
|
@@ -1841,23 +1914,23 @@ var Polyfill = /*#__PURE__*/function () {
|
|
|
1841
1914
|
_this5.temperatureIntance._renderingOrClearnBaseInfo(pageNumber);
|
|
1842
1915
|
}
|
|
1843
1916
|
footTarget = _this5.getEditorPageByNum(pageNumber).querySelector('.bse-footer_editable');
|
|
1844
|
-
|
|
1917
|
+
_context5.next = 4;
|
|
1845
1918
|
return _this5.updateReplaceApi(allTestData, footTarget, undefined, true, undefined, undefined, Object.keys(allTestData));
|
|
1846
1919
|
case 4:
|
|
1847
1920
|
reslove(true);
|
|
1848
1921
|
case 5:
|
|
1849
1922
|
case "end":
|
|
1850
|
-
return
|
|
1923
|
+
return _context5.stop();
|
|
1851
1924
|
}
|
|
1852
|
-
},
|
|
1925
|
+
}, _callee5);
|
|
1853
1926
|
})));
|
|
1854
1927
|
});
|
|
1855
1928
|
}));
|
|
1856
1929
|
case 3:
|
|
1857
1930
|
case "end":
|
|
1858
|
-
return
|
|
1931
|
+
return _context6.stop();
|
|
1859
1932
|
}
|
|
1860
|
-
},
|
|
1933
|
+
}, _callee6);
|
|
1861
1934
|
}));
|
|
1862
1935
|
function setAndDrawAllTestListByPageNum() {
|
|
1863
1936
|
return _setAndDrawAllTestListByPageNum.apply(this, arguments);
|