hoeditor-web 3.0.59 → 3.0.60
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/lib/hoeditor.umd.js +137 -39
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -18675,7 +18675,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
18675
18675
|
|
|
18676
18676
|
/***/ }),
|
|
18677
18677
|
|
|
18678
|
-
/***/
|
|
18678
|
+
/***/ 66591:
|
|
18679
18679
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18680
18680
|
|
|
18681
18681
|
"use strict";
|
|
@@ -18687,7 +18687,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18687
18687
|
"default": function() { return /* binding */ table_TableFormula; }
|
|
18688
18688
|
});
|
|
18689
18689
|
|
|
18690
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=template&id=
|
|
18690
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=template&id=19467076&
|
|
18691
18691
|
var render = function render() {
|
|
18692
18692
|
var _vm = this,
|
|
18693
18693
|
_c = _vm._self._c;
|
|
@@ -18916,7 +18916,9 @@ var render = function render() {
|
|
|
18916
18916
|
"width": "152px"
|
|
18917
18917
|
}
|
|
18918
18918
|
}, [_vm._v("分值区间及映射值")]), _c('ul', [_vm._l(_vm.ftScoreMapping.items, function (item, index) {
|
|
18919
|
-
return _c('li',
|
|
18919
|
+
return _c('li', {
|
|
18920
|
+
key: index
|
|
18921
|
+
}, [_c('a-input-number', {
|
|
18920
18922
|
staticClass: "ft-score-mapping-input",
|
|
18921
18923
|
attrs: {
|
|
18922
18924
|
"controls": false,
|
|
@@ -19030,7 +19032,7 @@ var render = function render() {
|
|
|
19030
19032
|
},
|
|
19031
19033
|
expression: "form.columns"
|
|
19032
19034
|
}
|
|
19033
|
-
})], 1)]) : _vm._e(), _vm.formula === 'ftCalcDays' ? _c('section', {
|
|
19035
|
+
})], 1)]) : _vm._e(), _vm.formula === 'ftCalcDays' || _vm.formula === 'ftCalcTime' ? _c('section', {
|
|
19034
19036
|
staticClass: "costum-row-columns"
|
|
19035
19037
|
}, [_c('div', {
|
|
19036
19038
|
staticClass: "ho-table-features-list"
|
|
@@ -19250,7 +19252,7 @@ var TableFormula = __webpack_require__(90832);
|
|
|
19250
19252
|
console.warn("\u5206\u503C\u6620\u5C04\u516C\u5F0F\u89E3\u6790\u5931\u8D25\uFF1A".concat(node.formulaStr));
|
|
19251
19253
|
}
|
|
19252
19254
|
}
|
|
19253
|
-
} else if (this.formula === 'ftCalcDays') {
|
|
19255
|
+
} else if (this.formula === 'ftCalcDays' || this.formula === "ftCalcTime") {
|
|
19254
19256
|
if (node.formulaStr) {
|
|
19255
19257
|
this.startDateCode = node.formulaStr.split(',')[0];
|
|
19256
19258
|
this.endDateCode = node.formulaStr.split(',')[1];
|
|
@@ -19311,6 +19313,8 @@ var TableFormula = __webpack_require__(90832);
|
|
|
19311
19313
|
this.vueController.insertTableFormula("".concat(this.bodySurfaceAreaWeight).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea);
|
|
19312
19314
|
} else if (this.formula === 'ftCalcDays') {
|
|
19313
19315
|
this.vueController.insertTableFormula("".concat(this.startDateCode, ",").concat(this.endDateCode).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftCalcDays */.a.ftCalcDays);
|
|
19316
|
+
} else if (this.formula === "ftCalcTime") {
|
|
19317
|
+
this.vueController.insertTableFormula("".concat(this.startDateCode, ",").concat(this.endDateCode).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftCalcTime */.a.ftCalcTime);
|
|
19314
19318
|
}
|
|
19315
19319
|
this.handleClose();
|
|
19316
19320
|
},
|
|
@@ -19332,10 +19336,10 @@ var TableFormula = __webpack_require__(90832);
|
|
|
19332
19336
|
});
|
|
19333
19337
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=script&lang=js&
|
|
19334
19338
|
/* harmony default export */ var table_TableFormulavue_type_script_lang_js_ = (TableFormulavue_type_script_lang_js_);
|
|
19335
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=
|
|
19339
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=19467076&prod&lang=scss&
|
|
19336
19340
|
// extracted by mini-css-extract-plugin
|
|
19337
19341
|
|
|
19338
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=
|
|
19342
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=19467076&prod&lang=scss&
|
|
19339
19343
|
|
|
19340
19344
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19341
19345
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -59358,6 +59362,7 @@ var FormularType;
|
|
|
59358
59362
|
FormularType[FormularType["ftScoreMapping"] = 6] = "ftScoreMapping";
|
|
59359
59363
|
FormularType[FormularType["ftBodySurfaceArea"] = 7] = "ftBodySurfaceArea";
|
|
59360
59364
|
FormularType[FormularType["ftCalcDays"] = 8] = "ftCalcDays";
|
|
59365
|
+
FormularType[FormularType["ftCalcTime"] = 9] = "ftCalcTime";
|
|
59361
59366
|
})(FormularType || (FormularType = {}));
|
|
59362
59367
|
var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
59363
59368
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TableFormula, _ControlNode);
|
|
@@ -59468,6 +59473,9 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
59468
59473
|
if (this.formularType === FormularType.ftCalcDays) {
|
|
59469
59474
|
this.clacDays();
|
|
59470
59475
|
}
|
|
59476
|
+
if (this.formularType === FormularType.ftCalcTime) {
|
|
59477
|
+
this.clacTime();
|
|
59478
|
+
}
|
|
59471
59479
|
}
|
|
59472
59480
|
}
|
|
59473
59481
|
}, {
|
|
@@ -60257,6 +60265,82 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60257
60265
|
}
|
|
60258
60266
|
return strRet;
|
|
60259
60267
|
}
|
|
60268
|
+
}, {
|
|
60269
|
+
key: "clacTime",
|
|
60270
|
+
value: function clacTime() {
|
|
60271
|
+
var strRet = " ";
|
|
60272
|
+
var table = this.getParentCell().table;
|
|
60273
|
+
var arrStr = this.formulaStr.split(",");
|
|
60274
|
+
if (arrStr.length < 2) {
|
|
60275
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_38__/* ["default"].warn */ .Z.warn("开始时间和结束时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
60276
|
+
return strRet;
|
|
60277
|
+
}
|
|
60278
|
+
var _this$getRowColByCell29 = this.getRowColByCellAdress(arrStr[0]),
|
|
60279
|
+
_this$getRowColByCell30 = (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell29, 2),
|
|
60280
|
+
rysjRow = _this$getRowColByCell30[0],
|
|
60281
|
+
rysjCol = _this$getRowColByCell30[1];
|
|
60282
|
+
var _this$getRowColByCell31 = this.getRowColByCellAdress(arrStr[1]),
|
|
60283
|
+
_this$getRowColByCell32 = (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell31, 2),
|
|
60284
|
+
cysjRow = _this$getRowColByCell32[0],
|
|
60285
|
+
cysjCol = _this$getRowColByCell32[1];
|
|
60286
|
+
if (rysjRow >= 0 && rysjCol >= 0 && cysjRow >= 0 && cysjCol >= 0) {
|
|
60287
|
+
if (!table.rows[rysjRow]) return strRet;
|
|
60288
|
+
if (!table.rows[cysjRow]) return strRet;
|
|
60289
|
+
var rCell = table.rows[rysjRow][rysjCol];
|
|
60290
|
+
var cCell = table.rows[cysjRow][cysjCol];
|
|
60291
|
+
if (rCell && cCell) {
|
|
60292
|
+
var rysj = rCell.getCellText();
|
|
60293
|
+
var cysj = cCell.getCellText();
|
|
60294
|
+
if (!rysj || !cysj) return strRet;
|
|
60295
|
+
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(rysj) && (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(cysj)) {
|
|
60296
|
+
var rDate = new Date(rysj);
|
|
60297
|
+
var cDate = new Date(cysj);
|
|
60298
|
+
var rHour = rDate.getHours();
|
|
60299
|
+
var cHour = cDate.getHours();
|
|
60300
|
+
if (rHour === 0 && cHour === 0) {
|
|
60301
|
+
// 将日期转换为 UTC 时间戳
|
|
60302
|
+
var rTime = Date.UTC(rDate.getFullYear(), rDate.getMonth(), rDate.getDate());
|
|
60303
|
+
var cTime = Date.UTC(cDate.getFullYear(), cDate.getMonth(), cDate.getDate());
|
|
60304
|
+
// 计算日期相差的毫秒数
|
|
60305
|
+
var diff = Math.abs(cTime - rTime);
|
|
60306
|
+
// 将毫秒数转换为天数
|
|
60307
|
+
var subTime = Math.floor(diff / (1000 * 60 * 60 * 24));
|
|
60308
|
+
if (subTime == 0) subTime = 1;
|
|
60309
|
+
return subTime.toString() + "天";
|
|
60310
|
+
} else {
|
|
60311
|
+
var _rTime = rDate.getTime();
|
|
60312
|
+
var _cTime = cDate.getTime();
|
|
60313
|
+
// 计算日期相差的毫秒数
|
|
60314
|
+
var _subTime = ((_cTime - _rTime + 1) / (1000 * 3600 * 24)).toString();
|
|
60315
|
+
var dayData = _subTime.split('.');
|
|
60316
|
+
var day = Number(dayData[0]);
|
|
60317
|
+
var hour = 0;
|
|
60318
|
+
var minute = 0;
|
|
60319
|
+
if (dayData.length > 1) {
|
|
60320
|
+
var hourData = (Number("0." + dayData[1]) * 24).toFixed(10).toString().split('.');
|
|
60321
|
+
hour = Number(hourData[0]);
|
|
60322
|
+
if (hourData.length > 1) {
|
|
60323
|
+
var minuteData = (Number("0." + hourData[1]) * 60).toFixed(5).toString().split('.');
|
|
60324
|
+
minute = Number(minuteData[0]);
|
|
60325
|
+
}
|
|
60326
|
+
}
|
|
60327
|
+
if (day > 0) {
|
|
60328
|
+
hour += day * 24;
|
|
60329
|
+
}
|
|
60330
|
+
var timeStr = "";
|
|
60331
|
+
if (hour > 0) {
|
|
60332
|
+
timeStr += hour.toString() + "小时";
|
|
60333
|
+
}
|
|
60334
|
+
if (minute > 0) {
|
|
60335
|
+
timeStr += minute.toString() + "分";
|
|
60336
|
+
}
|
|
60337
|
+
return timeStr;
|
|
60338
|
+
}
|
|
60339
|
+
}
|
|
60340
|
+
}
|
|
60341
|
+
}
|
|
60342
|
+
return strRet;
|
|
60343
|
+
}
|
|
60260
60344
|
}, {
|
|
60261
60345
|
key: "isCellInFormula",
|
|
60262
60346
|
value: function isCellInFormula(acell, r, c) {
|
|
@@ -60330,6 +60414,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60330
60414
|
this._text = this.clacBodySurfaceArea();
|
|
60331
60415
|
} else if (this.formularType === FormularType.ftCalcDays) {
|
|
60332
60416
|
this._text = this.clacDays();
|
|
60417
|
+
} else if (this.formularType === FormularType.ftCalcTime) {
|
|
60418
|
+
this._text = this.clacTime();
|
|
60333
60419
|
}
|
|
60334
60420
|
this.node2DrawNode();
|
|
60335
60421
|
}
|
|
@@ -84456,7 +84542,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
84456
84542
|
// value.parentNode.update();
|
|
84457
84543
|
// }
|
|
84458
84544
|
var isCellInFormula = value.isCellInFormula(cell, r, c);
|
|
84459
|
-
if (isCellInFormula || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea || value.formularType === TableFormula/* FormularType.ftCalcDays */.a.ftCalcDays) {
|
|
84545
|
+
if (isCellInFormula || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea || value.formularType === TableFormula/* FormularType.ftCalcDays */.a.ftCalcDays || value.formularType === TableFormula/* FormularType.ftCalcTime */.a.ftCalcTime) {
|
|
84460
84546
|
//const str = value.formulaStr;
|
|
84461
84547
|
value.updateResult();
|
|
84462
84548
|
value.getParentCell().drawCell.needUpdate = true;
|
|
@@ -87152,7 +87238,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
87152
87238
|
n = 0;
|
|
87153
87239
|
case 14:
|
|
87154
87240
|
if (!(n < nodes.length)) {
|
|
87155
|
-
_context2.next =
|
|
87241
|
+
_context2.next = 37;
|
|
87156
87242
|
break;
|
|
87157
87243
|
}
|
|
87158
87244
|
node = nodes[n];
|
|
@@ -87164,15 +87250,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
87164
87250
|
this._isError = true;
|
|
87165
87251
|
return _context2.abrupt("return");
|
|
87166
87252
|
case 20:
|
|
87167
|
-
if (nodes.length === 1 && node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && !node.isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
87168
|
-
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
87169
|
-
}
|
|
87170
87253
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
87171
|
-
_context2.next =
|
|
87254
|
+
_context2.next = 30;
|
|
87172
87255
|
break;
|
|
87173
87256
|
}
|
|
87174
87257
|
if (node.isAllowDelete) {
|
|
87175
|
-
_context2.next =
|
|
87258
|
+
_context2.next = 30;
|
|
87176
87259
|
break;
|
|
87177
87260
|
}
|
|
87178
87261
|
tip = "";
|
|
@@ -87191,18 +87274,22 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
87191
87274
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_39__/* ["default"].warn */ .Z.warn(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。");
|
|
87192
87275
|
this._isError = true;
|
|
87193
87276
|
return _context2.abrupt("return");
|
|
87194
|
-
case
|
|
87277
|
+
case 30:
|
|
87195
87278
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
87196
|
-
_context2.next =
|
|
87279
|
+
_context2.next = 34;
|
|
87197
87280
|
break;
|
|
87198
87281
|
}
|
|
87199
87282
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_39__/* ["default"].warn */ .Z.warn("该签名元素不允许删除!");
|
|
87200
87283
|
this._isError = true;
|
|
87201
87284
|
return _context2.abrupt("return");
|
|
87202
|
-
case
|
|
87285
|
+
case 34:
|
|
87203
87286
|
n++;
|
|
87204
87287
|
_context2.next = 14;
|
|
87205
87288
|
break;
|
|
87289
|
+
case 37:
|
|
87290
|
+
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
87291
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
87292
|
+
}
|
|
87206
87293
|
case 38:
|
|
87207
87294
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
87208
87295
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
@@ -196144,7 +196231,7 @@ var map = {
|
|
|
196144
196231
|
"./table/TableColProperty.vue": 2116,
|
|
196145
196232
|
"./table/TableForm.vue": 19064,
|
|
196146
196233
|
"./table/TableFormTree.vue": 39703,
|
|
196147
|
-
"./table/TableFormula.vue":
|
|
196234
|
+
"./table/TableFormula.vue": 66591,
|
|
196148
196235
|
"./table/TableProperty.vue": 47130,
|
|
196149
196236
|
"./table/TableRowProperty.vue": 5218,
|
|
196150
196237
|
"./textDialog/TextDialog.vue": 74353,
|
|
@@ -232553,19 +232640,19 @@ var es_string_match = __webpack_require__(4723);
|
|
|
232553
232640
|
var es_number_constructor = __webpack_require__(9653);
|
|
232554
232641
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
232555
232642
|
var es_json_stringify = __webpack_require__(38862);
|
|
232556
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
232557
|
-
var
|
|
232643
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=3b98bb65&
|
|
232644
|
+
var HoDocvue_type_template_id_3b98bb65_render = function render() {
|
|
232558
232645
|
var _vm = this,
|
|
232559
232646
|
_c = _vm._self._c;
|
|
232560
232647
|
return _c('div', {
|
|
232561
232648
|
class: _vm.docClassNames,
|
|
232562
232649
|
style: {
|
|
232563
|
-
minWidth: _vm.
|
|
232650
|
+
minWidth: _vm.normalWidth + 'px'
|
|
232564
232651
|
}
|
|
232565
232652
|
}, [_vm.drawPageLength > 0 ? _c('div', {
|
|
232566
232653
|
staticClass: "editor",
|
|
232567
232654
|
style: {
|
|
232568
|
-
minWidth: _vm.
|
|
232655
|
+
minWidth: _vm.normalWidth + 'px'
|
|
232569
232656
|
},
|
|
232570
232657
|
on: {
|
|
232571
232658
|
"click": function click($event) {
|
|
@@ -232699,7 +232786,7 @@ var HoDocvue_type_template_id_74c3d312_render = function render() {
|
|
|
232699
232786
|
}
|
|
232700
232787
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
232701
232788
|
};
|
|
232702
|
-
var
|
|
232789
|
+
var HoDocvue_type_template_id_3b98bb65_staticRenderFns = [];
|
|
232703
232790
|
|
|
232704
232791
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
232705
232792
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -235637,7 +235724,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235637
235724
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235638
235725
|
var MarkNode = __webpack_require__(57727);
|
|
235639
235726
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235640
|
-
/* harmony default export */ var version = ('3.0.
|
|
235727
|
+
/* harmony default export */ var version = ('3.0.60');
|
|
235641
235728
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235642
235729
|
var PoperTipText = __webpack_require__(15845);
|
|
235643
235730
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -235787,6 +235874,13 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
235787
235874
|
computed: {
|
|
235788
235875
|
docClassNames: function docClassNames() {
|
|
235789
235876
|
return this.hoEditorFactoryIdList.length === 1 ? 'edit-area edit-area-padding' : 'edit-area';
|
|
235877
|
+
},
|
|
235878
|
+
normalWidth: function normalWidth() {
|
|
235879
|
+
var width = this.canvasParams.width / DrawConfig/* DrawConfig.instance */.f.instance().transformScale;
|
|
235880
|
+
if (width % 2 === 1) {
|
|
235881
|
+
return width + 1;
|
|
235882
|
+
}
|
|
235883
|
+
return width;
|
|
235790
235884
|
}
|
|
235791
235885
|
},
|
|
235792
235886
|
watch: {
|
|
@@ -236345,10 +236439,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
236345
236439
|
});
|
|
236346
236440
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
236347
236441
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
236348
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236442
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=3b98bb65&prod&lang=scss&
|
|
236349
236443
|
// extracted by mini-css-extract-plugin
|
|
236350
236444
|
|
|
236351
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236445
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=3b98bb65&prod&lang=scss&
|
|
236352
236446
|
|
|
236353
236447
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
236354
236448
|
|
|
@@ -236361,8 +236455,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
236361
236455
|
|
|
236362
236456
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
236363
236457
|
components_HoDocvue_type_script_lang_js_,
|
|
236364
|
-
|
|
236365
|
-
|
|
236458
|
+
HoDocvue_type_template_id_3b98bb65_render,
|
|
236459
|
+
HoDocvue_type_template_id_3b98bb65_staticRenderFns,
|
|
236366
236460
|
false,
|
|
236367
236461
|
null,
|
|
236368
236462
|
null,
|
|
@@ -241394,7 +241488,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
241394
241488
|
var formularNodes = hoEditorFactory.drawTree.formularNodes;
|
|
241395
241489
|
var tableArr = [];
|
|
241396
241490
|
formularNodes.forEach(function (value, key) {
|
|
241397
|
-
if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea || value.formularType === TableFormula/* FormularType.ftCalcDays */.a.ftCalcDays) {
|
|
241491
|
+
if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea || value.formularType === TableFormula/* FormularType.ftCalcDays */.a.ftCalcDays || value.formularType === TableFormula/* FormularType.ftCalcTime */.a.ftCalcTime) {
|
|
241398
241492
|
value.updateResult();
|
|
241399
241493
|
value.getParentCell().drawCell.needUpdate = true;
|
|
241400
241494
|
var table = value.getParentCell().table;
|
|
@@ -256213,12 +256307,12 @@ var formularType = {
|
|
|
256213
256307
|
5: 'pregnantWeeks',
|
|
256214
256308
|
6: 'ftScoreMapping',
|
|
256215
256309
|
7: 'bodySurfaceArea',
|
|
256216
|
-
8: 'ftCalcDays'
|
|
256310
|
+
8: 'ftCalcDays',
|
|
256311
|
+
9: 'ftCalcTime' //计算时间差
|
|
256217
256312
|
};
|
|
256218
256313
|
|
|
256219
256314
|
var getFormula = function getFormula(tableFormular) {
|
|
256220
256315
|
// 获取公式类型
|
|
256221
|
-
|
|
256222
256316
|
return formularType[tableFormular.formularType];
|
|
256223
256317
|
};
|
|
256224
256318
|
// EXTERNAL MODULE: ./src/components/common/commondata/index.ts
|
|
@@ -261405,8 +261499,8 @@ var ToolTablevue_type_template_id_c3a519ae_render = function render() {
|
|
|
261405
261499
|
};
|
|
261406
261500
|
var ToolTablevue_type_template_id_c3a519ae_staticRenderFns = [];
|
|
261407
261501
|
|
|
261408
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=
|
|
261409
|
-
var
|
|
261502
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=2517920a&
|
|
261503
|
+
var HoTableFeaturesvue_type_template_id_2517920a_render = function render() {
|
|
261410
261504
|
var _vm = this,
|
|
261411
261505
|
_c = _vm._self._c;
|
|
261412
261506
|
return _c('div', {
|
|
@@ -261453,7 +261547,9 @@ var HoTableFeaturesvue_type_template_id_9b687288_render = function render() {
|
|
|
261453
261547
|
key: "bodySurfaceArea"
|
|
261454
261548
|
}, [_vm._v("体表面积")]), _c('a-menu-item', {
|
|
261455
261549
|
key: "ftCalcDays"
|
|
261456
|
-
}, [_vm._v("计算住院天数")])
|
|
261550
|
+
}, [_vm._v("计算住院天数")]), _c('a-menu-item', {
|
|
261551
|
+
key: "ftCalcTime"
|
|
261552
|
+
}, [_vm._v("时间计算")])], 1)], 1)], 2)], 1) : _vm._e(), _vm.table.insertRowAbove && _vm.tableProperty.canAddRow ? _c('div', {
|
|
261457
261553
|
directives: [{
|
|
261458
261554
|
name: "debounce",
|
|
261459
261555
|
rawName: "v-debounce:1000.click",
|
|
@@ -261611,7 +261707,7 @@ var HoTableFeaturesvue_type_template_id_9b687288_render = function render() {
|
|
|
261611
261707
|
staticClass: "ho-emr-tool-item"
|
|
261612
261708
|
}, [_c('span', [_vm._v("取消合并单元格")])]) : _vm._e()]);
|
|
261613
261709
|
};
|
|
261614
|
-
var
|
|
261710
|
+
var HoTableFeaturesvue_type_template_id_2517920a_staticRenderFns = [];
|
|
261615
261711
|
|
|
261616
261712
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=script&lang=js&
|
|
261617
261713
|
|
|
@@ -261772,7 +261868,8 @@ var HoTableFeaturesvue_type_template_id_9b687288_staticRenderFns = [];
|
|
|
261772
261868
|
expectedDate: '预产期计算公式',
|
|
261773
261869
|
ftScoreMapping: '分值映射计算公式',
|
|
261774
261870
|
bodySurfaceArea: '体表面积公式',
|
|
261775
|
-
ftCalcDays: '计算住院天数公式'
|
|
261871
|
+
ftCalcDays: '计算住院天数公式',
|
|
261872
|
+
ftCalcTime: "时间计算公式"
|
|
261776
261873
|
};
|
|
261777
261874
|
if (formula[formulaType] === 'code') {
|
|
261778
261875
|
this.setCellCode();
|
|
@@ -261847,8 +261944,8 @@ var HoTableFeaturesvue_type_template_id_9b687288_staticRenderFns = [];
|
|
|
261847
261944
|
;
|
|
261848
261945
|
var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
261849
261946
|
insert_HoTableFeaturesvue_type_script_lang_js_,
|
|
261850
|
-
|
|
261851
|
-
|
|
261947
|
+
HoTableFeaturesvue_type_template_id_2517920a_render,
|
|
261948
|
+
HoTableFeaturesvue_type_template_id_2517920a_staticRenderFns,
|
|
261852
261949
|
false,
|
|
261853
261950
|
null,
|
|
261854
261951
|
null,
|
|
@@ -263318,7 +263415,8 @@ var popper = __webpack_require__(95551);
|
|
|
263318
263415
|
pregnantWeeks: '孕周公式',
|
|
263319
263416
|
ftScoreMapping: '分值映射公式',
|
|
263320
263417
|
bodySurfaceArea: '体表面积公式',
|
|
263321
|
-
ftCalcDays: '计算住院天数公式'
|
|
263418
|
+
ftCalcDays: '计算住院天数公式',
|
|
263419
|
+
ftCalcTime: "时间计算公式"
|
|
263322
263420
|
},
|
|
263323
263421
|
isPasted: false,
|
|
263324
263422
|
isWebview: false,
|