hoeditor-web 2.0.68 → 2.0.72
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.common.js +1693 -976
- package/lib/hoeditor.css +4 -4
- package/lib/hoeditor.umd.js +1693 -976
- package/lib/hoeditor.umd.min.js +9 -9
- package/package.json +4 -5
package/lib/hoeditor.common.js
CHANGED
|
@@ -13504,8 +13504,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13504
13504
|
|
|
13505
13505
|
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
13506
13506
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
13507
|
-
|
|
13508
|
-
curRange
|
|
13507
|
+
|
|
13508
|
+
if (curRange.isEmpty && curRange.endPath == firstPath) {
|
|
13509
|
+
var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
13510
|
+
curRange.endPath = lastPath;
|
|
13511
|
+
}
|
|
13509
13512
|
}
|
|
13510
13513
|
|
|
13511
13514
|
if (!curRange.isEmpty) {
|
|
@@ -14061,7 +14064,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14061
14064
|
var preNode = node.previousLeaf();
|
|
14062
14065
|
var nextNode = node.nextLeaf();
|
|
14063
14066
|
|
|
14064
|
-
if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
14067
|
+
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
14065
14068
|
var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
14066
14069
|
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, node.name === "" ? "医师签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
14067
14070
|
hoEditorFactory.undoService.begin();
|
|
@@ -16771,11 +16774,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16771
16774
|
|
|
16772
16775
|
}, {
|
|
16773
16776
|
key: "insertEmptySignNode",
|
|
16774
|
-
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
16777
|
+
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
16775
16778
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16776
16779
|
var startPath = domRange.startPath;
|
|
16777
16780
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16778
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime); //插入该表达式节点
|
|
16781
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute); //插入该表达式节点
|
|
16779
16782
|
|
|
16780
16783
|
hoEditorFactory.undoService.begin();
|
|
16781
16784
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -16796,7 +16799,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16796
16799
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
16797
16800
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16798
16801
|
var startPath = domRange.startPath;
|
|
16799
|
-
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16802
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(startPath); // if (type == 1 && imgSrc != "" && imgWidth > 0 && parentNode instanceof CellNode) {
|
|
16803
|
+
// const cellWidth = parentNode.drawCell.dWidth;
|
|
16804
|
+
// const cellHeight = parentNode.getCellHeight();
|
|
16805
|
+
// if (cellWidth < imgWidth) {
|
|
16806
|
+
// imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
|
|
16807
|
+
// imgWidth = (cellWidth - 10);
|
|
16808
|
+
// }
|
|
16809
|
+
// }
|
|
16810
|
+
|
|
16800
16811
|
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 1, type, name, 0, "医师签名", signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition); //插入该表达式节点
|
|
16801
16812
|
|
|
16802
16813
|
hoEditorFactory.undoService.begin();
|
|
@@ -18477,7 +18488,15 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
18477
18488
|
var indexNode = slib.indexOf(np.node.parentNode);
|
|
18478
18489
|
_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_24__/* .BaseCombineNode.insertChild */ .V.insertChild(np.node.parentNode.parentNode, slib, indexNode + 1, node);
|
|
18479
18490
|
} else {
|
|
18480
|
-
var
|
|
18491
|
+
var childNodes = np.node.parentNode.childNodes;
|
|
18492
|
+
var index = childNodes.indexOf(np.node) + 1;
|
|
18493
|
+
|
|
18494
|
+
if (np.node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_35__/* .TextInputFieldNode */ .re && childNodes.length === 3 && childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_36__/* .MarkNode */ .j && childNodes[1].MarkNodeType === 1) {
|
|
18495
|
+
if (np.node == childNodes[0]) {
|
|
18496
|
+
childNodes.splice(1, 1);
|
|
18497
|
+
}
|
|
18498
|
+
}
|
|
18499
|
+
|
|
18481
18500
|
_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_24__/* .BaseCombineNode.insertChild */ .V.insertChild(np.node.parentNode, np.node.parentNode.childNodes, index, node);
|
|
18482
18501
|
} // (np.node as BaseCombineNode).insertChild(this.childIndex, this.node);
|
|
18483
18502
|
|
|
@@ -26334,7 +26353,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26334
26353
|
}
|
|
26335
26354
|
}], [{
|
|
26336
26355
|
key: "json2Node",
|
|
26337
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste) {
|
|
26356
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
|
|
26338
26357
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
26339
26358
|
var rowNo = parseInt(json.rowNo);
|
|
26340
26359
|
var colNo = parseInt(json.colNo);
|
|
@@ -26405,7 +26424,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26405
26424
|
cellNode.childNodes[0].styleIndex = Number(item[0].textStyleNo ? item[0].textStyleNo : 0);
|
|
26406
26425
|
|
|
26407
26426
|
for (var j = 1; j < item.length; j++) {
|
|
26408
|
-
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste);
|
|
26427
|
+
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
26409
26428
|
|
|
26410
26429
|
if (convertNode) {
|
|
26411
26430
|
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_36__/* .TextNode */ .R) {
|
|
@@ -26413,7 +26432,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26413
26432
|
cellNode.addChild(convertNode);
|
|
26414
26433
|
}
|
|
26415
26434
|
} else {
|
|
26416
|
-
|
|
26435
|
+
if (isClearSign) {
|
|
26436
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N) {
|
|
26437
|
+
if (convertNode.isTemplate) {
|
|
26438
|
+
cellNode.addChild(convertNode);
|
|
26439
|
+
}
|
|
26440
|
+
} else {
|
|
26441
|
+
cellNode.addChild(convertNode);
|
|
26442
|
+
}
|
|
26443
|
+
} else {
|
|
26444
|
+
cellNode.addChild(convertNode);
|
|
26445
|
+
}
|
|
26417
26446
|
}
|
|
26418
26447
|
}
|
|
26419
26448
|
|
|
@@ -28963,7 +28992,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28963
28992
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
28964
28993
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40561);
|
|
28965
28994
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
28966
|
-
/* harmony import */ var
|
|
28995
|
+
/* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63756);
|
|
28967
28996
|
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(98199);
|
|
28968
28997
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41005);
|
|
28969
28998
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50369);
|
|
@@ -28983,8 +29012,8 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28983
29012
|
/*
|
|
28984
29013
|
* @Author: your name
|
|
28985
29014
|
* @Date: 2021-08-11 11:37:11
|
|
28986
|
-
* @LastEditTime:
|
|
28987
|
-
* @LastEditors:
|
|
29015
|
+
* @LastEditTime: 2022-07-19 16:09:57
|
|
29016
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
28988
29017
|
* @Description: In User Settings Edit
|
|
28989
29018
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\LabelNode.ts
|
|
28990
29019
|
*/
|
|
@@ -29038,7 +29067,7 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
29038
29067
|
}
|
|
29039
29068
|
|
|
29040
29069
|
var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
|
|
29041
|
-
var dNode = new
|
|
29070
|
+
var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_6__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
|
|
29042
29071
|
|
|
29043
29072
|
this._drawNodes.push(dNode);
|
|
29044
29073
|
}
|
|
@@ -29070,14 +29099,20 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
29070
29099
|
|
|
29071
29100
|
if (_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__/* .PaintState.psPreview */ .Dh.psPreview && _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__/* .PaintState.psPrint */ .Dh.psPrint) {
|
|
29072
29101
|
//const color = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).option.getColorByLevel(0);
|
|
29102
|
+
for (var i = 0; i < drawNode.children.length; i++) {
|
|
29103
|
+
if (drawNode.children[i].name === "backColor") {
|
|
29104
|
+
drawNode.children.splice(i, 1);
|
|
29105
|
+
}
|
|
29106
|
+
}
|
|
29107
|
+
|
|
29073
29108
|
var backColor = new createjs.Shape();
|
|
29074
29109
|
backColor.graphics.clear().beginFill("#C9CCCD").drawRect(0, -drawNode.dHeight, drawNode.dWidth, drawNode.dHeight + 2);
|
|
29075
29110
|
backColor.name = "backColor";
|
|
29076
29111
|
drawNode.addChildAt(backColor, 0);
|
|
29077
29112
|
} else {
|
|
29078
|
-
for (var
|
|
29079
|
-
if (drawNode.children[
|
|
29080
|
-
drawNode.children.splice(
|
|
29113
|
+
for (var _i = drawNode.children.length - 1; _i >= 0; _i--) {
|
|
29114
|
+
if (drawNode.children[_i].name === "backColor") {
|
|
29115
|
+
drawNode.children.splice(_i, 1);
|
|
29081
29116
|
}
|
|
29082
29117
|
}
|
|
29083
29118
|
}
|
|
@@ -33347,6 +33382,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
33347
33382
|
//const styles = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles;
|
|
33348
33383
|
// const cbStyle = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles[this._styleIndex === -1 ? 0 : this._styleIndex]
|
|
33349
33384
|
// .combineStyle;
|
|
33385
|
+
this._drawNodes.length = 0;
|
|
33350
33386
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
33351
33387
|
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
33352
33388
|
var cbStyle;
|
|
@@ -33864,7 +33900,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33864
33900
|
|
|
33865
33901
|
var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(SignNode);
|
|
33866
33902
|
|
|
33867
|
-
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition) {
|
|
33903
|
+
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute) {
|
|
33868
33904
|
var _this;
|
|
33869
33905
|
|
|
33870
33906
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
@@ -33908,11 +33944,22 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33908
33944
|
|
|
33909
33945
|
_this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
33910
33946
|
|
|
33947
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
33948
|
+
|
|
33911
33949
|
_this.number = number;
|
|
33912
33950
|
_this._type = type;
|
|
33913
33951
|
_this._signor = signor;
|
|
33914
33952
|
_this._signTime = signTime;
|
|
33915
33953
|
_this._imgSrc = imgSrc;
|
|
33954
|
+
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
33955
|
+
|
|
33956
|
+
if (type == 3) {
|
|
33957
|
+
// 兼容旧的患者签名
|
|
33958
|
+
_this._attribute = 1;
|
|
33959
|
+
} // if(attribute == 1) { // 患者签名修改 type == 3
|
|
33960
|
+
// this._type = 3;
|
|
33961
|
+
// }
|
|
33962
|
+
|
|
33916
33963
|
|
|
33917
33964
|
if (fingerPrintSrc) {
|
|
33918
33965
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -33958,7 +34005,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33958
34005
|
});
|
|
33959
34006
|
};
|
|
33960
34007
|
|
|
33961
|
-
|
|
34008
|
+
if (customProperty) {
|
|
34009
|
+
assignvalue(_this._customProperty, customProperty);
|
|
34010
|
+
}
|
|
33962
34011
|
|
|
33963
34012
|
_this.node2DrawNodeRange(0, 0);
|
|
33964
34013
|
|
|
@@ -34168,6 +34217,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34168
34217
|
this.node2DrawNodeRange(0, 0);
|
|
34169
34218
|
}
|
|
34170
34219
|
}
|
|
34220
|
+
}, {
|
|
34221
|
+
key: "attribute",
|
|
34222
|
+
get: function get() {
|
|
34223
|
+
return this._attribute;
|
|
34224
|
+
},
|
|
34225
|
+
set: function set(value) {
|
|
34226
|
+
if (this._attribute !== value) {
|
|
34227
|
+
this._attribute = value;
|
|
34228
|
+
}
|
|
34229
|
+
}
|
|
34171
34230
|
/**
|
|
34172
34231
|
*
|
|
34173
34232
|
* @param drawTree 绘制树
|
|
@@ -34189,7 +34248,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34189
34248
|
this.styleIndex = 0;
|
|
34190
34249
|
}
|
|
34191
34250
|
|
|
34192
|
-
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition);
|
|
34251
|
+
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty);
|
|
34193
34252
|
|
|
34194
34253
|
this._drawNodes.push(dNode);
|
|
34195
34254
|
}
|
|
@@ -34223,15 +34282,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34223
34282
|
if (isDisPlay) {
|
|
34224
34283
|
drawNode.alpha = 1;
|
|
34225
34284
|
|
|
34226
|
-
if (this.imgSrc === "") {
|
|
34227
|
-
var color = hoEditorFactory.option.getColorByLevel(
|
|
34285
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34286
|
+
var color = hoEditorFactory.option.getColorByLevel(13);
|
|
34228
34287
|
var backColor = new createjs.Shape();
|
|
34229
34288
|
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
|
|
34230
34289
|
backColor.name = "backColor";
|
|
34231
34290
|
drawNode.addChildAt(backColor, 0);
|
|
34232
34291
|
}
|
|
34233
34292
|
} else {
|
|
34234
|
-
if (this.imgSrc === "") {
|
|
34293
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34235
34294
|
drawNode.alpha = 0;
|
|
34236
34295
|
} else {
|
|
34237
34296
|
for (var i = drawNode.children.length - 1; i >= 0; i--) {
|
|
@@ -34272,7 +34331,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34272
34331
|
isFront: this.isFront,
|
|
34273
34332
|
allowEditSignTime: this.allowEditSignTime,
|
|
34274
34333
|
fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
|
|
34275
|
-
fingerPosition: clearSign ? 0 : this.fingerPosition
|
|
34334
|
+
fingerPosition: clearSign ? 0 : this.fingerPosition,
|
|
34335
|
+
attribute: this.attribute
|
|
34276
34336
|
};
|
|
34277
34337
|
|
|
34278
34338
|
if (isCopy) {
|
|
@@ -34293,14 +34353,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34293
34353
|
}
|
|
34294
34354
|
}], [{
|
|
34295
34355
|
key: "json2Node",
|
|
34296
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
34356
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign) {
|
|
34297
34357
|
//const width = Number(json.width);
|
|
34298
|
-
var number = Number(json.number);
|
|
34299
|
-
var type = Number(json.type);
|
|
34300
|
-
var imgWidth = Number(json.imgWidth);
|
|
34301
|
-
var imgHeight = Number(json.imgHeight);
|
|
34358
|
+
var number = isClearSign ? 0 : Number(json.number);
|
|
34359
|
+
var type = isClearSign ? 0 : Number(json.type);
|
|
34360
|
+
var imgWidth = isClearSign ? 0 : Number(json.imgWidth);
|
|
34361
|
+
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
34302
34362
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
34303
|
-
var
|
|
34363
|
+
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
34364
|
+
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute);
|
|
34304
34365
|
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0; //signNode.number = number;
|
|
34305
34366
|
//signNode.width = width;
|
|
34306
34367
|
|
|
@@ -38350,7 +38411,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38350
38411
|
}
|
|
38351
38412
|
}], [{
|
|
38352
38413
|
key: "json2Node",
|
|
38353
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
38414
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
38354
38415
|
json = this.transType(json);
|
|
38355
38416
|
var tableProperty = json.tableProperty;
|
|
38356
38417
|
tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
|
|
@@ -38571,7 +38632,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38571
38632
|
|
|
38572
38633
|
var colNo = parseInt(_node.colNo);
|
|
38573
38634
|
existMap.set(_rowNo + "-" + colNo, 1);
|
|
38574
|
-
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste);
|
|
38635
|
+
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
|
|
38575
38636
|
}
|
|
38576
38637
|
} // console.log("json2node", 8);
|
|
38577
38638
|
//console.log(existMap);
|
|
@@ -38764,7 +38825,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38764
38825
|
/*
|
|
38765
38826
|
* @Author: your name
|
|
38766
38827
|
* @Date: 2020-11-03 15:17:54
|
|
38767
|
-
* @LastEditTime: 2022-
|
|
38828
|
+
* @LastEditTime: 2022-07-13 14:11:55
|
|
38768
38829
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38769
38830
|
* @Description: In User Settings Edit
|
|
38770
38831
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -40590,7 +40651,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40590
40651
|
}
|
|
40591
40652
|
}], [{
|
|
40592
40653
|
key: "json2Node",
|
|
40593
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
40654
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
40594
40655
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
40595
40656
|
delete json.nodeType;
|
|
40596
40657
|
this.transType(json);
|
|
@@ -40621,7 +40682,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40621
40682
|
if (Array.isArray(item)) {
|
|
40622
40683
|
//数组
|
|
40623
40684
|
for (var i = 0; i < item.length; i++) {
|
|
40624
|
-
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp);
|
|
40685
|
+
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
|
|
40625
40686
|
|
|
40626
40687
|
if (node) {
|
|
40627
40688
|
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40629,7 +40690,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40629
40690
|
nodes.push(node);
|
|
40630
40691
|
}
|
|
40631
40692
|
} else {
|
|
40632
|
-
|
|
40693
|
+
if (isClearSign) {
|
|
40694
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40695
|
+
if (node.isTemplate) {
|
|
40696
|
+
nodes.push(node);
|
|
40697
|
+
}
|
|
40698
|
+
} else {
|
|
40699
|
+
nodes.push(node);
|
|
40700
|
+
}
|
|
40701
|
+
} else {
|
|
40702
|
+
nodes.push(node);
|
|
40703
|
+
}
|
|
40633
40704
|
}
|
|
40634
40705
|
}
|
|
40635
40706
|
|
|
@@ -40643,7 +40714,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40643
40714
|
}
|
|
40644
40715
|
} else {
|
|
40645
40716
|
//单个对象
|
|
40646
|
-
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp);
|
|
40717
|
+
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
40647
40718
|
|
|
40648
40719
|
if (_node2) {
|
|
40649
40720
|
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40651,7 +40722,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40651
40722
|
nodes.push(_node2);
|
|
40652
40723
|
}
|
|
40653
40724
|
} else {
|
|
40654
|
-
nodes.push(
|
|
40725
|
+
//nodes.push(node);
|
|
40726
|
+
if (isClearSign) {
|
|
40727
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40728
|
+
if (_node2.isTemplate) {
|
|
40729
|
+
nodes.push(_node2);
|
|
40730
|
+
}
|
|
40731
|
+
} else {
|
|
40732
|
+
nodes.push(_node2);
|
|
40733
|
+
}
|
|
40734
|
+
} else {
|
|
40735
|
+
nodes.push(_node2);
|
|
40736
|
+
}
|
|
40655
40737
|
}
|
|
40656
40738
|
}
|
|
40657
40739
|
|
|
@@ -46735,8 +46817,8 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
46735
46817
|
/*
|
|
46736
46818
|
* @Author: your name
|
|
46737
46819
|
* @Date: 2020-11-27 15:24:11
|
|
46738
|
-
* @LastEditTime:
|
|
46739
|
-
* @LastEditors:
|
|
46820
|
+
* @LastEditTime: 2022-07-19 16:11:44
|
|
46821
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
46740
46822
|
* @Description: In User Settings Edit
|
|
46741
46823
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawDateTime.ts
|
|
46742
46824
|
*/
|
|
@@ -46828,8 +46910,8 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
46828
46910
|
/*
|
|
46829
46911
|
* @Author: your name
|
|
46830
46912
|
* @Date: 2020-11-30 10:59:00
|
|
46831
|
-
* @LastEditTime: 2022-
|
|
46832
|
-
* @LastEditors:
|
|
46913
|
+
* @LastEditTime: 2022-07-19 16:10:16
|
|
46914
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
46833
46915
|
* @Description: In User Settings Edit
|
|
46834
46916
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawDownListNode.ts
|
|
46835
46917
|
*/
|
|
@@ -47848,6 +47930,14 @@ var getPrototypeOf = __webpack_require__(24084);
|
|
|
47848
47930
|
var inherits = __webpack_require__(99640);
|
|
47849
47931
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 2 modules
|
|
47850
47932
|
var createSuper = __webpack_require__(28214);
|
|
47933
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
47934
|
+
var es_function_name = __webpack_require__(68309);
|
|
47935
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
47936
|
+
var es_array_includes = __webpack_require__(26699);
|
|
47937
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
47938
|
+
var es_string_includes = __webpack_require__(32023);
|
|
47939
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
47940
|
+
var es_array_splice = __webpack_require__(40561);
|
|
47851
47941
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
47852
47942
|
var es_error_cause = __webpack_require__(21703);
|
|
47853
47943
|
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
@@ -48202,6 +48292,10 @@ var DrawPageTable = __webpack_require__(46002);
|
|
|
48202
48292
|
|
|
48203
48293
|
|
|
48204
48294
|
|
|
48295
|
+
|
|
48296
|
+
|
|
48297
|
+
|
|
48298
|
+
|
|
48205
48299
|
|
|
48206
48300
|
|
|
48207
48301
|
var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
@@ -48231,7 +48325,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48231
48325
|
|
|
48232
48326
|
_this._dHeight = dHeight; // ((this as unknown) as DrawInfos).dHeight = dWidth;
|
|
48233
48327
|
|
|
48234
|
-
_this._discriminator = IDrawInfos/* gDrawIntfID */.t;
|
|
48328
|
+
_this._discriminator = IDrawInfos/* gDrawIntfID */.t; //this._marker = new createjs.Shape();
|
|
48329
|
+
|
|
48235
48330
|
_this._topBorder = new createjs.Rectangle(dLeft, dTop, dWidth, 2);
|
|
48236
48331
|
_this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
|
|
48237
48332
|
_this._rightBorder = new createjs.Rectangle(dLeft + dWidth - 2, dTop, 2, dHeight);
|
|
@@ -48270,7 +48365,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48270
48365
|
|
|
48271
48366
|
|
|
48272
48367
|
return _this;
|
|
48273
|
-
} //
|
|
48368
|
+
} //private _marker: createjs.Shape;
|
|
48369
|
+
// public ge t pageIndex(): number {
|
|
48274
48370
|
// return this._pageIndex;
|
|
48275
48371
|
// }
|
|
48276
48372
|
// public set pageIndex(value: number) {
|
|
@@ -48655,6 +48751,38 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48655
48751
|
value: function endPaintBackGround(newHeight) {
|
|
48656
48752
|
this._backImg.cache(-1, -1, this._dWidth + 1, newHeight + 1);
|
|
48657
48753
|
}
|
|
48754
|
+
}, {
|
|
48755
|
+
key: "paintMarker",
|
|
48756
|
+
value: function paintMarker(r, c) {
|
|
48757
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
48758
|
+
|
|
48759
|
+
for (var i = this.children.length - 1; i >= 0; i--) {
|
|
48760
|
+
if (this.children[i].name && this.children[i].name.includes("markline")) {
|
|
48761
|
+
this.children.splice(i, 1);
|
|
48762
|
+
}
|
|
48763
|
+
}
|
|
48764
|
+
|
|
48765
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
48766
|
+
var markerLine1 = new createjs.Shape();
|
|
48767
|
+
var markerLine2 = new createjs.Shape();
|
|
48768
|
+
var markerLine3 = new createjs.Shape();
|
|
48769
|
+
var markerLine4 = new createjs.Shape();
|
|
48770
|
+
var width = this.dWidth;
|
|
48771
|
+
var height = this.dHeight;
|
|
48772
|
+
markerLine1.name = "markline1";
|
|
48773
|
+
markerLine2.name = "markline2";
|
|
48774
|
+
markerLine3.name = "markline3";
|
|
48775
|
+
markerLine4.name = "markline4";
|
|
48776
|
+
markerLine1.graphics.beginStroke("#FB0101").moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7);
|
|
48777
|
+
markerLine2.graphics.beginStroke("#FB0101").moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5);
|
|
48778
|
+
markerLine3.graphics.beginStroke("#FB0101").moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3);
|
|
48779
|
+
markerLine4.graphics.beginStroke("#FB0101").moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
|
|
48780
|
+
this.addChild(markerLine1);
|
|
48781
|
+
this.addChild(markerLine2);
|
|
48782
|
+
this.addChild(markerLine3);
|
|
48783
|
+
this.addChild(markerLine4);
|
|
48784
|
+
}
|
|
48785
|
+
}
|
|
48658
48786
|
}, {
|
|
48659
48787
|
key: "paintCellBackground",
|
|
48660
48788
|
value: function paintCellBackground(newHeight, r, c) {
|
|
@@ -49606,6 +49734,10 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49606
49734
|
}, {
|
|
49607
49735
|
key: "paintCellBorder",
|
|
49608
49736
|
value: function paintCellBorder(partCell, r, c, newHeight) {
|
|
49737
|
+
if (partCell.cell.cellProperty.editorProperty !== 0) {
|
|
49738
|
+
partCell.paintMarker(r, c);
|
|
49739
|
+
}
|
|
49740
|
+
|
|
49609
49741
|
partCell.startPaintBackGround();
|
|
49610
49742
|
partCell.paintCellBackground(newHeight, r, c);
|
|
49611
49743
|
partCell.endPaintBackGround(newHeight);
|
|
@@ -51347,7 +51479,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
51347
51479
|
/*
|
|
51348
51480
|
* @Author: your name
|
|
51349
51481
|
* @Date: 2021-09-01 16:51:49
|
|
51350
|
-
* @LastEditTime: 2022-
|
|
51482
|
+
* @LastEditTime: 2022-07-19 09:47:55
|
|
51351
51483
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
51352
51484
|
* @Description: In User Settings Edit
|
|
51353
51485
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -51358,7 +51490,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51358
51490
|
|
|
51359
51491
|
var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(DrawSignNode);
|
|
51360
51492
|
|
|
51361
|
-
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition) {
|
|
51493
|
+
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty) {
|
|
51362
51494
|
var _this;
|
|
51363
51495
|
|
|
51364
51496
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
|
|
@@ -51370,12 +51502,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51370
51502
|
_this._imgSrc = '';
|
|
51371
51503
|
_this._fingerPrintSrc = '';
|
|
51372
51504
|
_this._fingerPosition = 0;
|
|
51505
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
51506
|
+
|
|
51507
|
+
_this._abi02 = "";
|
|
51373
51508
|
_this._number = number;
|
|
51374
51509
|
_this._imgSrc = imgSrc;
|
|
51375
51510
|
_this._type = type;
|
|
51376
51511
|
_this._signName = name;
|
|
51377
51512
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
51378
|
-
_this._fingerPosition = fingerPosition;
|
|
51513
|
+
_this._fingerPosition = fingerPosition;
|
|
51514
|
+
_this._attribute = attribute;
|
|
51515
|
+
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
|
|
51379
51516
|
|
|
51380
51517
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
51381
51518
|
|
|
@@ -51415,6 +51552,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51415
51552
|
} else {
|
|
51416
51553
|
_this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
|
|
51417
51554
|
}
|
|
51555
|
+
|
|
51556
|
+
if (_this.attribute === 2 && _this._abi02 !== "") {
|
|
51557
|
+
_this._drawAbi02 = new createjs.Text(_this._abi02 + ":", _this._textStyle, '#000000');
|
|
51558
|
+
_this.dWidth += _this._drawAbi02.getMeasuredWidth();
|
|
51559
|
+
}
|
|
51418
51560
|
}
|
|
51419
51561
|
|
|
51420
51562
|
if (type === 2) {
|
|
@@ -51528,6 +51670,26 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51528
51670
|
this._textStyle = value;
|
|
51529
51671
|
}
|
|
51530
51672
|
}
|
|
51673
|
+
}, {
|
|
51674
|
+
key: "attribute",
|
|
51675
|
+
get: function get() {
|
|
51676
|
+
return this._attribute;
|
|
51677
|
+
},
|
|
51678
|
+
set: function set(value) {
|
|
51679
|
+
if (this._attribute !== value) {
|
|
51680
|
+
this._attribute = value;
|
|
51681
|
+
}
|
|
51682
|
+
}
|
|
51683
|
+
}, {
|
|
51684
|
+
key: "abi02",
|
|
51685
|
+
get: function get() {
|
|
51686
|
+
return this._abi02;
|
|
51687
|
+
},
|
|
51688
|
+
set: function set(value) {
|
|
51689
|
+
if (this._abi02 !== value) {
|
|
51690
|
+
this._abi02 = value;
|
|
51691
|
+
}
|
|
51692
|
+
}
|
|
51531
51693
|
}, {
|
|
51532
51694
|
key: "drawWriteSignNode",
|
|
51533
51695
|
value: function drawWriteSignNode(node) {
|
|
@@ -51725,22 +51887,54 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51725
51887
|
}
|
|
51726
51888
|
}
|
|
51727
51889
|
|
|
51728
|
-
_this3.
|
|
51890
|
+
if (_this3.attribute === 2 && _this3.abi02 !== "") {
|
|
51891
|
+
var abi02Text = new createjs.Text(_this3.abi02 + ":", _this3.textStyle, '#000000');
|
|
51892
|
+
abi02Text.textBaseline = 'alphabetic';
|
|
51893
|
+
abi02Text.textAlign = 'left';
|
|
51894
|
+
|
|
51895
|
+
_this3.addChildAt(abi02Text, 0);
|
|
51896
|
+
|
|
51897
|
+
bitmap.x = abi02Text.getMeasuredWidth();
|
|
51898
|
+
|
|
51899
|
+
_this3.addChildAt(bitmap);
|
|
51900
|
+
} else {
|
|
51901
|
+
_this3.addChildAt(bitmap, 0);
|
|
51902
|
+
}
|
|
51729
51903
|
|
|
51730
51904
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51731
51905
|
hoEditorFactory.loadImageCount++;
|
|
51732
51906
|
|
|
51733
51907
|
image.onload = function () {
|
|
51734
51908
|
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51735
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51736
|
-
|
|
51737
|
-
var
|
|
51909
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height; // 处理宽高和实际宽高相反的问题 --- 2.0.66版本问题 --2.0.68后版本临时处理 再过几个版本后可以删掉
|
|
51910
|
+
|
|
51911
|
+
var node = _this3.node;
|
|
51912
|
+
var nodeImageWidth = node.imgWidth;
|
|
51913
|
+
var nodeImageHeight = node.imgHeight;
|
|
51914
|
+
|
|
51915
|
+
if (image.naturalWidth > image.naturalHeight && nodeImageWidth < nodeImageHeight || image.naturalWidth < image.naturalHeight && node.imgWidth > node.imgHeight) {
|
|
51916
|
+
node.imgWidth = nodeImageHeight;
|
|
51917
|
+
node.imgHeight = nodeImageWidth;
|
|
51918
|
+
}
|
|
51919
|
+
|
|
51920
|
+
var width = hitWidth * hoEditorFactory.signHeight / image.naturalHeight; //+ this._drawText.getMeasuredWidth();
|
|
51921
|
+
|
|
51922
|
+
drawNode.dWidth = width;
|
|
51923
|
+
|
|
51924
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51925
|
+
drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
|
|
51926
|
+
}
|
|
51738
51927
|
|
|
51739
51928
|
if (_this3.number === 2) {
|
|
51740
|
-
|
|
51929
|
+
drawNode.dWidth += _this3._drawText.getMeasuredWidth();
|
|
51930
|
+
}
|
|
51931
|
+
|
|
51932
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51933
|
+
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -hoEditorFactory.signHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51934
|
+
} else {
|
|
51935
|
+
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51741
51936
|
}
|
|
51742
51937
|
|
|
51743
|
-
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51744
51938
|
var hitArea = new createjs.Shape();
|
|
51745
51939
|
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
51746
51940
|
|
|
@@ -57556,7 +57750,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57556
57750
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
57557
57751
|
|
|
57558
57752
|
try {
|
|
57559
|
-
//
|
|
57753
|
+
//console.time("文档change事件");
|
|
57560
57754
|
this._inChanging = true;
|
|
57561
57755
|
var startUpdateLine;
|
|
57562
57756
|
this.adjustEventPath(e);
|
|
@@ -57951,7 +58145,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57951
58145
|
|
|
57952
58146
|
if (hoEditorFactory.docTree.curOnDragNode) {
|
|
57953
58147
|
this._caret.visible = false;
|
|
57954
|
-
} //
|
|
58148
|
+
} //console.timeEnd("文档change事件");
|
|
57955
58149
|
|
|
57956
58150
|
|
|
57957
58151
|
return true;
|
|
@@ -59634,8 +59828,8 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
59634
59828
|
}
|
|
59635
59829
|
|
|
59636
59830
|
if (dPage && dPage.selectContainer) {
|
|
59637
|
-
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#
|
|
59638
|
-
shape.alpha = 0.
|
|
59831
|
+
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FB0451");
|
|
59832
|
+
shape.alpha = 0.3;
|
|
59639
59833
|
dPage.selectContainer.addChild(shape);
|
|
59640
59834
|
|
|
59641
59835
|
if (dPages.indexOf(dPage) < 0) {
|
|
@@ -62663,7 +62857,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62663
62857
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39873);
|
|
62664
62858
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37174);
|
|
62665
62859
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
|
|
62666
|
-
/* harmony import */ var
|
|
62860
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(22342);
|
|
62667
62861
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
62668
62862
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
62669
62863
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -62704,6 +62898,8 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62704
62898
|
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(98390);
|
|
62705
62899
|
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(12019);
|
|
62706
62900
|
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(34450);
|
|
62901
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(2242);
|
|
62902
|
+
|
|
62707
62903
|
|
|
62708
62904
|
|
|
62709
62905
|
|
|
@@ -62779,7 +62975,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62779
62975
|
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
62780
62976
|
}
|
|
62781
62977
|
|
|
62782
|
-
(0,
|
|
62978
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
62783
62979
|
key: "undo",
|
|
62784
62980
|
value: function undo() {
|
|
62785
62981
|
//2.插入删除的节点
|
|
@@ -63058,7 +63254,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63058
63254
|
key: "spliteNode",
|
|
63059
63255
|
value: function spliteNode(Arange) {
|
|
63060
63256
|
var _this = this,
|
|
63061
|
-
|
|
63257
|
+
_pnode$downListProper;
|
|
63062
63258
|
|
|
63063
63259
|
var s = Arange.npStart.node;
|
|
63064
63260
|
var e = Arange.npEnd.node;
|
|
@@ -63114,8 +63310,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63114
63310
|
|
|
63115
63311
|
this._tmp.start = Arange.startPath;
|
|
63116
63312
|
this._tmp.end = Arange.endPath;
|
|
63313
|
+
var spnode = s.parentNode;
|
|
63314
|
+
var epnode = e.parentNode;
|
|
63315
|
+
var pnode = epnode;
|
|
63316
|
+
|
|
63317
|
+
if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && spnode != epnode) {
|
|
63318
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
63117
63319
|
|
|
63118
|
-
|
|
63320
|
+
if (result < 0) {
|
|
63321
|
+
pnode = spnode;
|
|
63322
|
+
}
|
|
63323
|
+
}
|
|
63324
|
+
|
|
63325
|
+
if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
|
|
63326
|
+
this._tmp.start = pnode.StartMarkNode.getNodePath();
|
|
63327
|
+
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
|
|
63119
63328
|
return true;
|
|
63120
63329
|
}
|
|
63121
63330
|
|
|
@@ -99800,7 +100009,7 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
|
|
|
99800
100009
|
*
|
|
99801
100010
|
* @returns jsPDF
|
|
99802
100011
|
*/jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
|
|
99803
|
-
var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}
|
|
100012
|
+
var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
|
|
99804
100013
|
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
|
|
99805
100014
|
compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
|
|
99806
100015
|
// if(posY) y += posY;
|
|
@@ -100496,7 +100705,7 @@ Context2D.prototype.arcTo=function(x1,y1,x2,y2,radius){throw new Error("arcTo no
|
|
|
100496
100705
|
*/Context2D.prototype.fillText=function(text,x,y,maxWidth){if(isNaN(x)||isNaN(y)||typeof text!=="string"){console.error("jsPDF.context2d.fillText: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.fillText");}maxWidth=isNaN(maxWidth)?undefined:maxWidth;if(isFillTransparent.call(this)){return;}var degs=rad2deg(this.ctx.transform.rotation);// We only use X axis as scale hint
|
|
100497
100706
|
var scale=this.ctx.transform.scaleX;var acharSpace=this.letterSpacing?parseFloat(this.letterSpacing):0.0;//自定义修改 以处理宋体粗体
|
|
100498
100707
|
if(this.font.indexOf("SimSun")>=0&&this.font.indexOf("bold")>=0){//renderingMode: "stroke",
|
|
100499
|
-
putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,renderingMode:"fillThenStroke",charSpace:acharSpace});}else{putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});}};/**
|
|
100708
|
+
putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,renderingMode:"fillThenStroke",charSpace:acharSpace+1});}else{putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});}};/**
|
|
100500
100709
|
* Draws text on the canvas (no fill)
|
|
100501
100710
|
*
|
|
100502
100711
|
* @name strokeText
|
|
@@ -199302,7 +199511,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199302
199511
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199303
199512
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
199304
199513
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199305
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
199514
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=4dbdae0e&
|
|
199306
199515
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
199307
199516
|
var staticRenderFns = []
|
|
199308
199517
|
|
|
@@ -200228,9 +200437,9 @@ function isPromise(obj) {
|
|
|
200228
200437
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200229
200438
|
}
|
|
200230
200439
|
|
|
200231
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
200232
|
-
var
|
|
200233
|
-
var
|
|
200440
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=658730be&
|
|
200441
|
+
var HoDocvue_type_template_id_658730be_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
200442
|
+
var HoDocvue_type_template_id_658730be_staticRenderFns = []
|
|
200234
200443
|
|
|
200235
200444
|
|
|
200236
200445
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -200715,7 +200924,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200715
200924
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
200716
200925
|
}
|
|
200717
200926
|
|
|
200718
|
-
if (np.node.nodeType === BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType.ntControl */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType.ntField */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType.ntSign */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
|
|
200927
|
+
if (np.node.nodeType === BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType.ntControl */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType.ntField */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType.ntSign */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType.ntGestation */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType.ntImage */.Jq.ntImage) {
|
|
200719
200928
|
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
|
|
200720
200929
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
200721
200930
|
}
|
|
@@ -207285,7 +207494,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207285
207494
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207286
207495
|
var ParagraphNode = __webpack_require__(14208);
|
|
207287
207496
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207288
|
-
/* harmony default export */ var version = ('2.0.
|
|
207497
|
+
/* harmony default export */ var version = ('2.0.72');
|
|
207289
207498
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207290
207499
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207291
207500
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -207490,6 +207699,8 @@ var PoperTipText_component = normalizeComponent(
|
|
|
207490
207699
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
207491
207700
|
|
|
207492
207701
|
/* harmony default export */ var poperTipText = (poperTipText_PoperTipText);
|
|
207702
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
207703
|
+
var ImageNode = __webpack_require__(88389);
|
|
207493
207704
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=script&lang=ts&
|
|
207494
207705
|
|
|
207495
207706
|
|
|
@@ -207529,6 +207740,7 @@ var PoperTipText_component = normalizeComponent(
|
|
|
207529
207740
|
|
|
207530
207741
|
|
|
207531
207742
|
|
|
207743
|
+
|
|
207532
207744
|
|
|
207533
207745
|
|
|
207534
207746
|
var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
@@ -208001,6 +208213,12 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
208001
208213
|
} else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression) {
|
|
208002
208214
|
this.handleCellNode(node, node.parentNode, pageIndex); // } else if (node instanceof GestationNode) {
|
|
208003
208215
|
// this.setDblclickNodeValue(node, 'dblclick');
|
|
208216
|
+
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
208217
|
+
this.$emit('dblNodeClick', {
|
|
208218
|
+
node: this.getCurrentSelectNode,
|
|
208219
|
+
type: 'edit-image'
|
|
208220
|
+
}); // } else if (node instanceof GestationNode) {
|
|
208221
|
+
// this.setDblclickNodeValue(node, 'dblclick');
|
|
208004
208222
|
} else {
|
|
208005
208223
|
this.setDblclickNodeValue(node, 'dblclick');
|
|
208006
208224
|
}
|
|
@@ -208225,8 +208443,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208225
208443
|
|
|
208226
208444
|
var HoDoc_component = normalizeComponent(
|
|
208227
208445
|
components_HoDocvue_type_script_lang_ts_,
|
|
208228
|
-
|
|
208229
|
-
|
|
208446
|
+
HoDocvue_type_template_id_658730be_render,
|
|
208447
|
+
HoDocvue_type_template_id_658730be_staticRenderFns,
|
|
208230
208448
|
false,
|
|
208231
208449
|
null,
|
|
208232
208450
|
null,
|
|
@@ -209796,7 +210014,7 @@ var UserInfo = __webpack_require__(75013);
|
|
|
209796
210014
|
/*
|
|
209797
210015
|
* @Author: your name
|
|
209798
210016
|
* @Date: 2021-06-21 17:47:51
|
|
209799
|
-
* @LastEditTime: 2022-07-
|
|
210017
|
+
* @LastEditTime: 2022-07-18 14:39:07
|
|
209800
210018
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
209801
210019
|
* @Description: In User Settings Edit
|
|
209802
210020
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
@@ -209819,6 +210037,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209819
210037
|
|
|
209820
210038
|
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209821
210039
|
|
|
210040
|
+
this._signColor = "transparent"; //签名元素颜色
|
|
210041
|
+
|
|
209822
210042
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209823
210043
|
}
|
|
209824
210044
|
|
|
@@ -209886,9 +210106,17 @@ var Option = /*#__PURE__*/function () {
|
|
|
209886
210106
|
set: function set(value) {
|
|
209887
210107
|
this._downListColor2 = value;
|
|
209888
210108
|
}
|
|
210109
|
+
}, {
|
|
210110
|
+
key: "signColor",
|
|
210111
|
+
get: function get() {
|
|
210112
|
+
return this._signColor;
|
|
210113
|
+
},
|
|
210114
|
+
set: function set(value) {
|
|
210115
|
+
this._signColor = value;
|
|
210116
|
+
}
|
|
209889
210117
|
}, {
|
|
209890
210118
|
key: "setReviewLevelColor",
|
|
209891
|
-
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2) {
|
|
210119
|
+
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2, signColor) {
|
|
209892
210120
|
Lev1Color && (this._reviewLev1Color = Lev1Color);
|
|
209893
210121
|
Lev2Color && (this._reviewLev2Color = Lev2Color);
|
|
209894
210122
|
Lev3Color && (this._reviewLev3Color = Lev3Color);
|
|
@@ -209896,6 +210124,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209896
210124
|
dateTimeColor && (this._dateTimeColor = dateTimeColor);
|
|
209897
210125
|
downListColor && (this._downListColor = downListColor);
|
|
209898
210126
|
downListColor2 && (this._downListColor2 = downListColor2);
|
|
210127
|
+
signColor && (this._signColor = signColor);
|
|
209899
210128
|
}
|
|
209900
210129
|
}, {
|
|
209901
210130
|
key: "getColorByLevel",
|
|
@@ -209914,6 +210143,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209914
210143
|
return this._reviewLev2Color;
|
|
209915
210144
|
} else if (level === 3) {
|
|
209916
210145
|
return this._reviewLev3Color;
|
|
210146
|
+
} else if (level === 13) {
|
|
210147
|
+
return this._signColor;
|
|
209917
210148
|
} else {
|
|
209918
210149
|
return "transparent";
|
|
209919
210150
|
}
|
|
@@ -210093,8 +210324,6 @@ var jquery_default = /*#__PURE__*/__webpack_require__.n(jquery);
|
|
|
210093
210324
|
var TextStyle = __webpack_require__(74163);
|
|
210094
210325
|
// EXTERNAL MODULE: ./src/editor/dom/domNode/Paragraph.ts
|
|
210095
210326
|
var Paragraph = __webpack_require__(53570);
|
|
210096
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
210097
|
-
var ImageNode = __webpack_require__(88389);
|
|
210098
210327
|
;// CONCATENATED MODULE: ./src/editor/utils/HTMLConverter.ts
|
|
210099
210328
|
|
|
210100
210329
|
|
|
@@ -211934,7 +212163,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211934
212163
|
}
|
|
211935
212164
|
}, {
|
|
211936
212165
|
key: "xml2Doc",
|
|
211937
|
-
value: function xml2Doc(xml) {
|
|
212166
|
+
value: function xml2Doc(xml, isClearSign) {
|
|
211938
212167
|
// xml = this.replaceNodesName(xml);
|
|
211939
212168
|
// const x2js = new X2JS({ stripWhitespaces: false });
|
|
211940
212169
|
// const object = x2js.xml2js(xml);
|
|
@@ -211986,7 +212215,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211986
212215
|
var aobject = this.xml2Object(xml);
|
|
211987
212216
|
|
|
211988
212217
|
if (aobject) {
|
|
211989
|
-
return this.json2Doc(aobject);
|
|
212218
|
+
return this.json2Doc(aobject, isClearSign);
|
|
211990
212219
|
} // if (json.rvxml) {
|
|
211991
212220
|
// const rvxml = json.rvxml;
|
|
211992
212221
|
// return;
|
|
@@ -212578,7 +212807,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212578
212807
|
}
|
|
212579
212808
|
}, {
|
|
212580
212809
|
key: "json2Doc",
|
|
212581
|
-
value: function json2Doc(xx) {
|
|
212810
|
+
value: function json2Doc(xx, isClearSign) {
|
|
212582
212811
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
212583
212812
|
/*
|
|
212584
212813
|
const pushChildNodes = (
|
|
@@ -212705,11 +212934,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212705
212934
|
var histories = xx.userHistories;
|
|
212706
212935
|
var historiesArr = histories.userHistory;
|
|
212707
212936
|
|
|
212937
|
+
if (historiesArr.length == undefined) {
|
|
212938
|
+
historiesArr = Array(historiesArr);
|
|
212939
|
+
}
|
|
212940
|
+
|
|
212708
212941
|
for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
|
|
212709
212942
|
var historyObj = historiesArr[_i10];
|
|
212710
212943
|
var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
|
|
212711
212944
|
Object.assign(history, historyObj);
|
|
212712
|
-
history.permissionLevel = Number(historyObj.
|
|
212945
|
+
history.permissionLevel = Number(historyObj.permissionLevel);
|
|
212713
212946
|
hoEditorFactory.docTree.userHistories.push(history);
|
|
212714
212947
|
}
|
|
212715
212948
|
|
|
@@ -212851,7 +213084,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212851
213084
|
}
|
|
212852
213085
|
|
|
212853
213086
|
var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
|
|
212854
|
-
headerDocTree.subDocNodes, null, headerNode.subDocNodes);
|
|
213087
|
+
headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
|
|
212855
213088
|
|
|
212856
213089
|
if (node) {
|
|
212857
213090
|
node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212911,7 +213144,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212911
213144
|
}
|
|
212912
213145
|
|
|
212913
213146
|
var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
|
|
212914
|
-
footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
|
|
213147
|
+
footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
|
|
212915
213148
|
|
|
212916
213149
|
if (_node2) {
|
|
212917
213150
|
_node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212956,7 +213189,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212956
213189
|
continue;
|
|
212957
213190
|
}
|
|
212958
213191
|
|
|
212959
|
-
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes);
|
|
213192
|
+
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
212960
213193
|
|
|
212961
213194
|
if (_node3) {
|
|
212962
213195
|
// if (node instanceof BaseCombineNode && temp.childNode) {
|
|
@@ -213100,7 +213333,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213100
213333
|
}
|
|
213101
213334
|
}, {
|
|
213102
213335
|
key: "convertNode",
|
|
213103
|
-
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
|
|
213336
|
+
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
|
|
213104
213337
|
if (temp === "") {
|
|
213105
213338
|
return undefined;
|
|
213106
213339
|
}
|
|
@@ -213136,7 +213369,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213136
213369
|
return undefined;
|
|
213137
213370
|
}
|
|
213138
213371
|
|
|
213139
|
-
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213372
|
+
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213140
213373
|
return node;
|
|
213141
213374
|
} else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
|
|
213142
213375
|
return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -213173,7 +213406,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213173
213406
|
return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213174
213407
|
}
|
|
213175
213408
|
} else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
|
|
213176
|
-
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213409
|
+
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213177
213410
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
|
|
213178
213411
|
return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213179
213412
|
} else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
|
|
@@ -213189,7 +213422,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213189
213422
|
} else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
|
|
213190
213423
|
return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213191
213424
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
|
|
213192
|
-
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213425
|
+
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
|
|
213193
213426
|
} else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
|
|
213194
213427
|
return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213195
213428
|
}
|
|
@@ -213283,13 +213516,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213283
213516
|
}
|
|
213284
213517
|
}, {
|
|
213285
213518
|
key: "openXml",
|
|
213286
|
-
value: function openXml(xml, callback, isDelBlockLine) {
|
|
213519
|
+
value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
|
|
213287
213520
|
var _this4 = this;
|
|
213288
213521
|
|
|
213289
213522
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
213290
213523
|
this._superiorSign = [];
|
|
213291
213524
|
hoEditorFactory.isThrowError = false;
|
|
213292
|
-
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
|
|
213525
|
+
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
|
|
213293
213526
|
Promise.resolve().then(function () {
|
|
213294
213527
|
hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
213295
213528
|
|
|
@@ -217138,7 +217371,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217138
217371
|
value: function setReviewLevelColor(option) {
|
|
217139
217372
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217140
217373
|
var opt = new Option(this.hoEditorFactoryID);
|
|
217141
|
-
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2);
|
|
217374
|
+
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2, option.signColor);
|
|
217142
217375
|
hoEditorFactory.option = opt;
|
|
217143
217376
|
}
|
|
217144
217377
|
/**
|
|
@@ -218989,12 +219222,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218989
219222
|
/**
|
|
218990
219223
|
* 读取 xml
|
|
218991
219224
|
* @param xml
|
|
219225
|
+
* @param callback 是否回调
|
|
219226
|
+
* @param isDelBlockLine 是否删掉正文末尾的空行
|
|
219227
|
+
* @param isRender
|
|
219228
|
+
* @param isClearSign 加载时是否清空签名元素内容
|
|
218992
219229
|
*/
|
|
218993
219230
|
|
|
218994
219231
|
}, {
|
|
218995
219232
|
key: "openXml",
|
|
218996
219233
|
value: function () {
|
|
218997
|
-
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender) {
|
|
219234
|
+
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender, isClearSign) {
|
|
218998
219235
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
|
|
218999
219236
|
|
|
219000
219237
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
|
|
@@ -219039,7 +219276,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219039
219276
|
}
|
|
219040
219277
|
|
|
219041
219278
|
_context5.next = 15;
|
|
219042
|
-
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
|
|
219279
|
+
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
219043
219280
|
|
|
219044
219281
|
case 15:
|
|
219045
219282
|
case "end":
|
|
@@ -219049,7 +219286,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219049
219286
|
}, _callee5, this);
|
|
219050
219287
|
}));
|
|
219051
219288
|
|
|
219052
|
-
function openXml(_x8, _x9, _x10, _x11) {
|
|
219289
|
+
function openXml(_x8, _x9, _x10, _x11, _x12) {
|
|
219053
219290
|
return _openXml.apply(this, arguments);
|
|
219054
219291
|
}
|
|
219055
219292
|
|
|
@@ -219194,8 +219431,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219194
219431
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
219195
219432
|
var nextNode = node.nextLeaf();
|
|
219196
219433
|
|
|
219197
|
-
if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219198
|
-
var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name === "" ? "签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
219434
|
+
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219435
|
+
var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name === "" ? "签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, '', undefined, node.attribute);
|
|
219199
219436
|
hoEditorFactory.undoService.begin();
|
|
219200
219437
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
219201
219438
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
@@ -219430,7 +219667,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219430
219667
|
|
|
219431
219668
|
}, {
|
|
219432
219669
|
key: "insertEmptySignNode",
|
|
219433
|
-
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
219670
|
+
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
219434
219671
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219435
219672
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219436
219673
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219438,7 +219675,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219438
219675
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219439
219676
|
|
|
219440
219677
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219441
|
-
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
|
|
219678
|
+
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
|
|
219442
219679
|
}
|
|
219443
219680
|
}
|
|
219444
219681
|
/**
|
|
@@ -220036,7 +220273,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220036
220273
|
}, _callee6, this);
|
|
220037
220274
|
}));
|
|
220038
220275
|
|
|
220039
|
-
function updateElementText(
|
|
220276
|
+
function updateElementText(_x13, _x14, _x15) {
|
|
220040
220277
|
return _updateElementText.apply(this, arguments);
|
|
220041
220278
|
}
|
|
220042
220279
|
|
|
@@ -220300,7 +220537,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220300
220537
|
endPath = curDomRange.normalize().endPath;
|
|
220301
220538
|
node = (_hoEditorFactory2$vue = _hoEditorFactory2.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory2$vue === void 0 ? void 0 : _hoEditorFactory2$vue.node;
|
|
220302
220539
|
|
|
220303
|
-
if (!(node instanceof SignNode/* SignNode */.N && node.
|
|
220540
|
+
if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
|
|
220304
220541
|
_context7.next = 8;
|
|
220305
220542
|
break;
|
|
220306
220543
|
}
|
|
@@ -220322,7 +220559,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220322
220559
|
_endPath = _curDomRange2.normalize().endPath;
|
|
220323
220560
|
_node = (_hoEditorFactory3$vue = _hoEditorFactory3.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory3$vue === void 0 ? void 0 : _hoEditorFactory3$vue.node;
|
|
220324
220561
|
|
|
220325
|
-
if (!(_node instanceof SignNode/* SignNode */.N && _node.
|
|
220562
|
+
if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
|
|
220326
220563
|
_context7.next = 21;
|
|
220327
220564
|
break;
|
|
220328
220565
|
}
|
|
@@ -220346,7 +220583,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220346
220583
|
}, _callee7, this);
|
|
220347
220584
|
}));
|
|
220348
220585
|
|
|
220349
|
-
function getBase64(
|
|
220586
|
+
function getBase64(_x16) {
|
|
220350
220587
|
return _getBase.apply(this, arguments);
|
|
220351
220588
|
}
|
|
220352
220589
|
|
|
@@ -220367,18 +220604,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220367
220604
|
|
|
220368
220605
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220369
220606
|
if (node.isTemplate) {
|
|
220370
|
-
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220607
|
+
if (node.imgSrc !== '' || node.fingerPrintSrc !== '') {
|
|
220371
220608
|
this.deleteNode(node);
|
|
220372
220609
|
setTimeout(function () {
|
|
220373
220610
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220374
220611
|
var newNode = newcurDomRange.npEnd.node;
|
|
220375
220612
|
|
|
220376
220613
|
if (newNode instanceof SignNode/* SignNode */.N) {
|
|
220377
|
-
hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220614
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220615
|
+
setTimeout(function () {
|
|
220616
|
+
callback && callback();
|
|
220617
|
+
}, 0);
|
|
220618
|
+
});
|
|
220378
220619
|
}
|
|
220379
220620
|
}, 0);
|
|
220380
220621
|
} else {
|
|
220381
|
-
hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220622
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220623
|
+
setTimeout(function () {
|
|
220624
|
+
callback && callback();
|
|
220625
|
+
}, 0);
|
|
220626
|
+
});
|
|
220382
220627
|
}
|
|
220383
220628
|
} else {
|
|
220384
220629
|
this.deleteNode(node);
|
|
@@ -220802,6 +221047,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220802
221047
|
if (curDomRange.isEmpty) return;
|
|
220803
221048
|
var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
|
|
220804
221049
|
var nodes = result[0];
|
|
221050
|
+
var isHaveParaNodes = false;
|
|
221051
|
+
|
|
221052
|
+
for (var m = 0; m < nodes.length; m++) {
|
|
221053
|
+
if (nodes[m] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
221054
|
+
isHaveParaNodes = true;
|
|
221055
|
+
break;
|
|
221056
|
+
}
|
|
221057
|
+
}
|
|
221058
|
+
|
|
221059
|
+
if (!isHaveParaNodes) {
|
|
221060
|
+
message_box_default().alert("选区内没有换行符,无需清除.");
|
|
221061
|
+
|
|
221062
|
+
return;
|
|
221063
|
+
}
|
|
220805
221064
|
|
|
220806
221065
|
for (var i = 0; i < nodes.length; i++) {
|
|
220807
221066
|
var node = nodes[i];
|
|
@@ -220951,6 +221210,234 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220951
221210
|
});
|
|
220952
221211
|
drawTree.commentsMap = commentsMap;
|
|
220953
221212
|
}
|
|
221213
|
+
}, {
|
|
221214
|
+
key: "SyncElements",
|
|
221215
|
+
value: function SyncElements() {
|
|
221216
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221217
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
221218
|
+
var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
|
|
221219
|
+
var fieldNames = [];
|
|
221220
|
+
var dateNames = [];
|
|
221221
|
+
var downNames = [];
|
|
221222
|
+
hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
|
|
221223
|
+
|
|
221224
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221225
|
+
var node = nodes[i];
|
|
221226
|
+
|
|
221227
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221228
|
+
if (fieldNames.indexOf(node.name) === -1) {
|
|
221229
|
+
fieldNames.push(node.name);
|
|
221230
|
+
var sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221231
|
+
|
|
221232
|
+
for (var j = 0; j < sameNameEles.length; j++) {
|
|
221233
|
+
var ele = sameNameEles[j];
|
|
221234
|
+
if (nodes.indexOf(ele) >= 0) continue;
|
|
221235
|
+
|
|
221236
|
+
if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221237
|
+
ele.setFieldText(node.text);
|
|
221238
|
+
}
|
|
221239
|
+
}
|
|
221240
|
+
}
|
|
221241
|
+
}
|
|
221242
|
+
|
|
221243
|
+
if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221244
|
+
if (dateNames.indexOf(node.name) === -1) {
|
|
221245
|
+
dateNames.push(node.name);
|
|
221246
|
+
|
|
221247
|
+
var _sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221248
|
+
|
|
221249
|
+
for (var _j = 0; _j < _sameNameEles.length; _j++) {
|
|
221250
|
+
var _ele = _sameNameEles[_j];
|
|
221251
|
+
if (nodes.indexOf(_ele) >= 0) continue;
|
|
221252
|
+
|
|
221253
|
+
if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221254
|
+
_ele.setDateTimeText(node.text);
|
|
221255
|
+
}
|
|
221256
|
+
}
|
|
221257
|
+
}
|
|
221258
|
+
}
|
|
221259
|
+
|
|
221260
|
+
if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
221261
|
+
if (downNames.indexOf(node.name) === -1) {
|
|
221262
|
+
downNames.push(node.name);
|
|
221263
|
+
|
|
221264
|
+
var _sameNameEles2 = this.getNodesByName("all", true, node.name);
|
|
221265
|
+
|
|
221266
|
+
for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
|
|
221267
|
+
var _ele2 = _sameNameEles2[_j2];
|
|
221268
|
+
if (nodes.indexOf(_ele2) >= 0) continue;
|
|
221269
|
+
|
|
221270
|
+
if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
|
|
221271
|
+
_ele2.setDownListText(node.text);
|
|
221272
|
+
}
|
|
221273
|
+
}
|
|
221274
|
+
}
|
|
221275
|
+
}
|
|
221276
|
+
}
|
|
221277
|
+
}
|
|
221278
|
+
}, {
|
|
221279
|
+
key: "showElementsEditRecord",
|
|
221280
|
+
value: function showElementsEditRecord(objects) {
|
|
221281
|
+
var comments = [];
|
|
221282
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221283
|
+
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221284
|
+
commentWidthMm: 50
|
|
221285
|
+
}));
|
|
221286
|
+
|
|
221287
|
+
for (var i = 0; i < objects.length; i++) {
|
|
221288
|
+
var object = objects[i];
|
|
221289
|
+
var name = object.name;
|
|
221290
|
+
var oldValue = object.oldValue;
|
|
221291
|
+
var elements = this.getNodesByName("main", true, name);
|
|
221292
|
+
|
|
221293
|
+
for (var j = 0; j < elements.length; j++) {
|
|
221294
|
+
var element = elements[j];
|
|
221295
|
+
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
221296
|
+
var comment = void 0;
|
|
221297
|
+
|
|
221298
|
+
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221299
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
221300
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
221301
|
+
comments.push(comment);
|
|
221302
|
+
}
|
|
221303
|
+
|
|
221304
|
+
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
221305
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
|
|
221306
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
221307
|
+
comments.push(comment);
|
|
221308
|
+
}
|
|
221309
|
+
}
|
|
221310
|
+
}
|
|
221311
|
+
|
|
221312
|
+
comments.forEach(function (comment, index) {
|
|
221313
|
+
index++;
|
|
221314
|
+
var endDrawNode = comment.eNode.drawNodes[0];
|
|
221315
|
+
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
|
|
221316
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
221317
|
+
|
|
221318
|
+
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
221319
|
+
|
|
221320
|
+
var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
221321
|
+
|
|
221322
|
+
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
221323
|
+
var spY = localPos.y;
|
|
221324
|
+
drawArea.removeComment(comment, true);
|
|
221325
|
+
var path = comment.eNode.getNodePath();
|
|
221326
|
+
|
|
221327
|
+
if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
|
|
221328
|
+
spX = spX + comment.eNode.drawNodes[0].dWidth;
|
|
221329
|
+
}
|
|
221330
|
+
|
|
221331
|
+
if (index === 1) {
|
|
221332
|
+
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
221333
|
+
}
|
|
221334
|
+
|
|
221335
|
+
if (index >= 2) {
|
|
221336
|
+
drawArea.repaintRecored(comments, comment, path, spX, spY);
|
|
221337
|
+
}
|
|
221338
|
+
});
|
|
221339
|
+
}
|
|
221340
|
+
}, {
|
|
221341
|
+
key: "clearEditRecords",
|
|
221342
|
+
value: function clearEditRecords() {
|
|
221343
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221344
|
+
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221345
|
+
commentWidthMm: 0
|
|
221346
|
+
}));
|
|
221347
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
221348
|
+
|
|
221349
|
+
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
221350
|
+
var children = drawMainDocs[j].children;
|
|
221351
|
+
|
|
221352
|
+
for (var i = children.length - 1; i >= 0; i--) {
|
|
221353
|
+
var child = children[i];
|
|
221354
|
+
|
|
221355
|
+
if (child.name && child.name.indexOf("recordC") >= 0) {
|
|
221356
|
+
children.splice(i, 1);
|
|
221357
|
+
}
|
|
221358
|
+
}
|
|
221359
|
+
|
|
221360
|
+
hoEditorFactory.drawPageTree.updateDrawPage(j);
|
|
221361
|
+
}
|
|
221362
|
+
}
|
|
221363
|
+
}, {
|
|
221364
|
+
key: "updateImageSrc",
|
|
221365
|
+
value: function updateImageSrc(node, src) {
|
|
221366
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221367
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
221368
|
+
var ePath = node.getNodePath();
|
|
221369
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
|
|
221370
|
+
changeEvent.oldEndPath = ePath;
|
|
221371
|
+
changeEvent.afterChangePath = ePath;
|
|
221372
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
221373
|
+
node.imageDataBase64String = src;
|
|
221374
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
221375
|
+
}
|
|
221376
|
+
}, {
|
|
221377
|
+
key: "setParaCustomProperty",
|
|
221378
|
+
value: function setParaCustomProperty(paragraphNode, customProperty) {
|
|
221379
|
+
paragraphNode.setCustomProperty(customProperty);
|
|
221380
|
+
}
|
|
221381
|
+
/**
|
|
221382
|
+
* 查询是否有空签名元素
|
|
221383
|
+
* @returns boolean
|
|
221384
|
+
*/
|
|
221385
|
+
|
|
221386
|
+
}, {
|
|
221387
|
+
key: "getAllEmptySignNode",
|
|
221388
|
+
value: function getAllEmptySignNode(attribute) {
|
|
221389
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221390
|
+
var hasEmptyPatientSign = false;
|
|
221391
|
+
var patientSignCount = 0;
|
|
221392
|
+
var hasEmptyDoctorSign = false;
|
|
221393
|
+
|
|
221394
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221395
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221396
|
+
var node = nodes[i];
|
|
221397
|
+
|
|
221398
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
221399
|
+
// 有值的患者签名
|
|
221400
|
+
if (attribute == 1 && node.attribute === 1) {
|
|
221401
|
+
patientSignCount++;
|
|
221402
|
+
}
|
|
221403
|
+
|
|
221404
|
+
if (attribute == 1 && node.attribute === 1 && (node.imgSrc !== '' || node.fingerPrintSrc !== '')) {
|
|
221405
|
+
hasEmptyPatientSign = true;
|
|
221406
|
+
break;
|
|
221407
|
+
} // 空的医生签名
|
|
221408
|
+
|
|
221409
|
+
|
|
221410
|
+
if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
|
|
221411
|
+
hasEmptyDoctorSign = true;
|
|
221412
|
+
break;
|
|
221413
|
+
}
|
|
221414
|
+
}
|
|
221415
|
+
|
|
221416
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
|
|
221417
|
+
// 患者签名已存在的情况不在深层调用深层遍历
|
|
221418
|
+
getAllNodes(node.childNodes);
|
|
221419
|
+
}
|
|
221420
|
+
|
|
221421
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 0 && !hasEmptyDoctorSign) {
|
|
221422
|
+
// 医生签名不存在的情况不在深层调用深层遍历
|
|
221423
|
+
getAllNodes(node.childNodes);
|
|
221424
|
+
}
|
|
221425
|
+
}
|
|
221426
|
+
};
|
|
221427
|
+
|
|
221428
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221429
|
+
getAllNodes(mainNodes);
|
|
221430
|
+
|
|
221431
|
+
if (attribute == 1) {
|
|
221432
|
+
if (patientSignCount == 0) {
|
|
221433
|
+
return true;
|
|
221434
|
+
}
|
|
221435
|
+
|
|
221436
|
+
return hasEmptyPatientSign;
|
|
221437
|
+
} else {
|
|
221438
|
+
return hasEmptyDoctorSign;
|
|
221439
|
+
}
|
|
221440
|
+
}
|
|
220954
221441
|
/**
|
|
220955
221442
|
* 查询是否存在医生签名
|
|
220956
221443
|
* @returns boolean
|
|
@@ -220982,174 +221469,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220982
221469
|
getAllNodes(mainNodes);
|
|
220983
221470
|
return isHasDoctorSign;
|
|
220984
221471
|
}
|
|
220985
|
-
}, {
|
|
220986
|
-
key: "SyncElements",
|
|
220987
|
-
value: function SyncElements() {
|
|
220988
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220989
|
-
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220990
|
-
var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
|
|
220991
|
-
var fieldNames = [];
|
|
220992
|
-
var dateNames = [];
|
|
220993
|
-
var downNames = [];
|
|
220994
|
-
hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
|
|
220995
|
-
|
|
220996
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
220997
|
-
var node = nodes[i];
|
|
220998
|
-
|
|
220999
|
-
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221000
|
-
if (fieldNames.indexOf(node.name) === -1) {
|
|
221001
|
-
fieldNames.push(node.name);
|
|
221002
|
-
var sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221003
|
-
|
|
221004
|
-
for (var j = 0; j < sameNameEles.length; j++) {
|
|
221005
|
-
var ele = sameNameEles[j];
|
|
221006
|
-
if (nodes.indexOf(ele) >= 0) continue;
|
|
221007
|
-
|
|
221008
|
-
if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221009
|
-
ele.setFieldText(node.text);
|
|
221010
|
-
}
|
|
221011
|
-
}
|
|
221012
|
-
}
|
|
221013
|
-
}
|
|
221014
|
-
|
|
221015
|
-
if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221016
|
-
if (dateNames.indexOf(node.name) === -1) {
|
|
221017
|
-
dateNames.push(node.name);
|
|
221018
|
-
|
|
221019
|
-
var _sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221020
|
-
|
|
221021
|
-
for (var _j = 0; _j < _sameNameEles.length; _j++) {
|
|
221022
|
-
var _ele = _sameNameEles[_j];
|
|
221023
|
-
if (nodes.indexOf(_ele) >= 0) continue;
|
|
221024
|
-
|
|
221025
|
-
if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221026
|
-
_ele.setDateTimeText(node.text);
|
|
221027
|
-
}
|
|
221028
|
-
}
|
|
221029
|
-
}
|
|
221030
|
-
}
|
|
221031
|
-
|
|
221032
|
-
if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
221033
|
-
if (downNames.indexOf(node.name) === -1) {
|
|
221034
|
-
downNames.push(node.name);
|
|
221035
|
-
|
|
221036
|
-
var _sameNameEles2 = this.getNodesByName("all", true, node.name);
|
|
221037
|
-
|
|
221038
|
-
for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
|
|
221039
|
-
var _ele2 = _sameNameEles2[_j2];
|
|
221040
|
-
if (nodes.indexOf(_ele2) >= 0) continue;
|
|
221041
|
-
|
|
221042
|
-
if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
|
|
221043
|
-
_ele2.setDownListText(node.text);
|
|
221044
|
-
}
|
|
221045
|
-
}
|
|
221046
|
-
}
|
|
221047
|
-
}
|
|
221048
|
-
}
|
|
221049
|
-
}
|
|
221050
|
-
}, {
|
|
221051
|
-
key: "showElementsEditRecord",
|
|
221052
|
-
value: function showElementsEditRecord(objects) {
|
|
221053
|
-
var comments = [];
|
|
221054
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221055
|
-
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221056
|
-
commentWidthMm: 50
|
|
221057
|
-
}));
|
|
221058
|
-
|
|
221059
|
-
for (var i = 0; i < objects.length; i++) {
|
|
221060
|
-
var object = objects[i];
|
|
221061
|
-
var name = object.name;
|
|
221062
|
-
var oldValue = object.oldValue;
|
|
221063
|
-
var elements = this.getNodesByName("main", true, name);
|
|
221064
|
-
|
|
221065
|
-
for (var j = 0; j < elements.length; j++) {
|
|
221066
|
-
var element = elements[j];
|
|
221067
|
-
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
221068
|
-
var comment = void 0;
|
|
221069
|
-
|
|
221070
|
-
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221071
|
-
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
221072
|
-
comment.lineHeight = comment.lineHeight - 20;
|
|
221073
|
-
comments.push(comment);
|
|
221074
|
-
}
|
|
221075
|
-
|
|
221076
|
-
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
221077
|
-
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
|
|
221078
|
-
comment.lineHeight = comment.lineHeight - 20;
|
|
221079
|
-
comments.push(comment);
|
|
221080
|
-
}
|
|
221081
|
-
}
|
|
221082
|
-
}
|
|
221083
|
-
|
|
221084
|
-
comments.forEach(function (comment, index) {
|
|
221085
|
-
index++;
|
|
221086
|
-
var endDrawNode = comment.eNode.drawNodes[0];
|
|
221087
|
-
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
|
|
221088
|
-
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
221089
|
-
|
|
221090
|
-
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
221091
|
-
|
|
221092
|
-
var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
221093
|
-
|
|
221094
|
-
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
221095
|
-
var spY = localPos.y;
|
|
221096
|
-
drawArea.removeComment(comment, true);
|
|
221097
|
-
var path = comment.eNode.getNodePath();
|
|
221098
|
-
|
|
221099
|
-
if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
|
|
221100
|
-
spX = spX + comment.eNode.drawNodes[0].dWidth;
|
|
221101
|
-
}
|
|
221102
|
-
|
|
221103
|
-
if (index === 1) {
|
|
221104
|
-
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
221105
|
-
}
|
|
221106
|
-
|
|
221107
|
-
if (index >= 2) {
|
|
221108
|
-
drawArea.repaintRecored(comments, comment, path, spX, spY);
|
|
221109
|
-
}
|
|
221110
|
-
});
|
|
221111
|
-
}
|
|
221112
|
-
}, {
|
|
221113
|
-
key: "clearEditRecords",
|
|
221114
|
-
value: function clearEditRecords() {
|
|
221115
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221116
|
-
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221117
|
-
commentWidthMm: 0
|
|
221118
|
-
}));
|
|
221119
|
-
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
221120
|
-
|
|
221121
|
-
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
221122
|
-
var children = drawMainDocs[j].children;
|
|
221123
|
-
|
|
221124
|
-
for (var i = children.length - 1; i >= 0; i--) {
|
|
221125
|
-
var child = children[i];
|
|
221126
|
-
|
|
221127
|
-
if (child.name && child.name.indexOf("recordC") >= 0) {
|
|
221128
|
-
children.splice(i, 1);
|
|
221129
|
-
}
|
|
221130
|
-
}
|
|
221131
|
-
|
|
221132
|
-
hoEditorFactory.drawPageTree.updateDrawPage(j);
|
|
221133
|
-
}
|
|
221134
|
-
}
|
|
221135
|
-
}, {
|
|
221136
|
-
key: "updateImageSrc",
|
|
221137
|
-
value: function updateImageSrc(node, src) {
|
|
221138
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221139
|
-
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
221140
|
-
var ePath = node.getNodePath();
|
|
221141
|
-
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
|
|
221142
|
-
changeEvent.oldEndPath = ePath;
|
|
221143
|
-
changeEvent.afterChangePath = ePath;
|
|
221144
|
-
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
221145
|
-
node.imageDataBase64String = src;
|
|
221146
|
-
hoEditorFactory.docTree.change(changeEvent);
|
|
221147
|
-
}
|
|
221148
|
-
}, {
|
|
221149
|
-
key: "setParaCustomProperty",
|
|
221150
|
-
value: function setParaCustomProperty(paragraphNode, customProperty) {
|
|
221151
|
-
paragraphNode.setCustomProperty(customProperty);
|
|
221152
|
-
}
|
|
221153
221472
|
}]);
|
|
221154
221473
|
|
|
221155
221474
|
return VueController;
|
|
@@ -225913,9 +226232,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
225913
226232
|
)
|
|
225914
226233
|
|
|
225915
226234
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
225916
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
225917
|
-
var
|
|
225918
|
-
var
|
|
226235
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=1b898d58&
|
|
226236
|
+
var ControlModalvue_type_template_id_1b898d58_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'edit-image')?_c('CanvasImageDialog',{attrs:{"vueController":_vm.vueController,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'paragraph')?_c('ParagraphDialog',{attrs:{"vueController":_vm.vueController,"controlProperty":_vm.controlProperty,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoParagraph",fn:function(){return [_vm._t("hoParagraphModal")]},proxy:true}],null,true)}):_vm._e()],1)}
|
|
226237
|
+
var ControlModalvue_type_template_id_1b898d58_staticRenderFns = []
|
|
225919
226238
|
|
|
225920
226239
|
|
|
225921
226240
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=62e16cb5&scoped=true&
|
|
@@ -226289,9 +226608,9 @@ var SelectDialog_component = normalizeComponent(
|
|
|
226289
226608
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/index.ts
|
|
226290
226609
|
|
|
226291
226610
|
/* harmony default export */ var selectDialog = (selectDialog_SelectDialog);
|
|
226292
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=
|
|
226293
|
-
var
|
|
226294
|
-
var
|
|
226611
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=f39033d6&
|
|
226612
|
+
var DateDialogvue_type_template_id_f39033d6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("日期时间")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('tabs',{attrs:{"tabKey":_vm.textActiveName}},[_c('tab-pane',{attrs:{"label":"基本属性","notHover":false,"name":"first"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.innerIdentifier),callback:function ($$v) {_vm.innerIdentifier=$$v},expression:"innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.dataMetaIdentifier),callback:function ($$v) {_vm.dataMetaIdentifier=$$v},expression:"dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.identifierFormat),callback:function ($$v) {_vm.identifierFormat=$$v},expression:"identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("输入样式")]),_c('el-select',{attrs:{"placeholder":"输入样式","size":"mini"},model:{value:(_vm.controlStyle),callback:function ($$v) {_vm.controlStyle=$$v},expression:"controlStyle"}},_vm._l((_vm.dateFormatList),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1)]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("日期时间")]),(_vm.controlStyle.includes('MM') && !_vm.controlStyle.includes('dd'))?_c('el-date-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"month","placeholder":"选择月"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e(),(_vm.controlStyle.includes('yyyy') && !_vm.controlStyle.includes('MM'))?_c('el-date-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"year","placeholder":"选择年"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e(),(_vm.controlStyle.includes('dd') && _vm.controlStyle.includes('mm'))?_c('el-date-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"datetime","format":_vm.controlStyle,"placeholder":"日期时间"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e(),(!_vm.controlStyle.includes('dd') && _vm.controlStyle.includes('mm'))?_c('el-time-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"time","format":_vm.controlStyle,"placeholder":"时间"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e(),(!_vm.controlStyle.includes('mm') && _vm.controlStyle.includes('dd'))?_c('el-date-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"date","format":_vm.controlStyle,"placeholder":"日期"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e()],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"size":"mini","placeholder":"提示文本"},model:{value:(_vm.tipText),callback:function ($$v) {_vm.tipText=$$v},expression:"tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{model:{value:(_vm.isReadOnly),callback:function ($$v) {_vm.isReadOnly=$$v},expression:"isReadOnly"}},[_vm._v("内容只读")])],1),_c('div',{staticStyle:{"margin":"0 0 0 20px"}},[_c('el-checkbox',{model:{value:(_vm.isAllowDelete),callback:function ($$v) {_vm.isAllowDelete=$$v},expression:"isAllowDelete"}},[_vm._v("允许删除")])],1),_c('div',{staticClass:"control-item",staticStyle:{"margin-left":"20px"}},[_c('el-checkbox',{model:{value:(_vm.readType),callback:function ($$v) {_vm.readType=$$v},expression:"readType"}},[_vm._v("自动回填")])],1)])])]),_vm._t("hoTextFieldModal")],2)],1),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
226613
|
+
var DateDialogvue_type_template_id_f39033d6_staticRenderFns = []
|
|
226295
226614
|
|
|
226296
226615
|
|
|
226297
226616
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tab/Tab.vue?vue&type=template&id=7c6c4d81&
|
|
@@ -226447,17 +226766,7 @@ var Tab_component = normalizeComponent(
|
|
|
226447
226766
|
)
|
|
226448
226767
|
|
|
226449
226768
|
/* harmony default export */ var Tab = (Tab_component.exports);
|
|
226450
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
226451
|
-
|
|
226452
|
-
|
|
226453
|
-
|
|
226454
|
-
|
|
226455
|
-
|
|
226456
|
-
|
|
226457
|
-
|
|
226458
|
-
|
|
226459
|
-
|
|
226460
|
-
|
|
226769
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=script&lang=js&
|
|
226461
226770
|
|
|
226462
226771
|
|
|
226463
226772
|
|
|
@@ -226469,82 +226778,170 @@ var Tab_component = normalizeComponent(
|
|
|
226469
226778
|
|
|
226470
226779
|
|
|
226471
226780
|
|
|
226781
|
+
//
|
|
226782
|
+
//
|
|
226783
|
+
//
|
|
226784
|
+
//
|
|
226785
|
+
//
|
|
226786
|
+
//
|
|
226787
|
+
//
|
|
226788
|
+
//
|
|
226789
|
+
//
|
|
226790
|
+
//
|
|
226791
|
+
//
|
|
226792
|
+
//
|
|
226793
|
+
//
|
|
226794
|
+
//
|
|
226795
|
+
//
|
|
226796
|
+
//
|
|
226797
|
+
//
|
|
226798
|
+
//
|
|
226799
|
+
//
|
|
226800
|
+
//
|
|
226801
|
+
//
|
|
226802
|
+
//
|
|
226803
|
+
//
|
|
226804
|
+
//
|
|
226805
|
+
//
|
|
226806
|
+
//
|
|
226807
|
+
//
|
|
226808
|
+
//
|
|
226809
|
+
//
|
|
226810
|
+
//
|
|
226811
|
+
//
|
|
226812
|
+
//
|
|
226813
|
+
//
|
|
226814
|
+
//
|
|
226815
|
+
//
|
|
226816
|
+
//
|
|
226817
|
+
//
|
|
226818
|
+
//
|
|
226819
|
+
//
|
|
226820
|
+
//
|
|
226821
|
+
//
|
|
226822
|
+
//
|
|
226823
|
+
//
|
|
226824
|
+
//
|
|
226825
|
+
//
|
|
226826
|
+
//
|
|
226827
|
+
//
|
|
226828
|
+
//
|
|
226829
|
+
//
|
|
226830
|
+
//
|
|
226831
|
+
//
|
|
226832
|
+
//
|
|
226833
|
+
//
|
|
226834
|
+
//
|
|
226835
|
+
//
|
|
226836
|
+
//
|
|
226837
|
+
//
|
|
226838
|
+
//
|
|
226839
|
+
//
|
|
226840
|
+
//
|
|
226841
|
+
//
|
|
226842
|
+
//
|
|
226843
|
+
//
|
|
226844
|
+
//
|
|
226845
|
+
//
|
|
226846
|
+
//
|
|
226847
|
+
//
|
|
226848
|
+
//
|
|
226849
|
+
//
|
|
226850
|
+
//
|
|
226851
|
+
//
|
|
226852
|
+
//
|
|
226853
|
+
//
|
|
226854
|
+
//
|
|
226855
|
+
//
|
|
226856
|
+
//
|
|
226472
226857
|
|
|
226473
226858
|
|
|
226474
|
-
var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
226475
|
-
(0,inherits/* default */.Z)(DateDialog, _Vue);
|
|
226476
|
-
|
|
226477
|
-
var _super = (0,createSuper/* default */.Z)(DateDialog);
|
|
226478
|
-
|
|
226479
|
-
function DateDialog() {
|
|
226480
|
-
var _this;
|
|
226481
226859
|
|
|
226482
|
-
(0,classCallCheck/* default */.Z)(this, DateDialog);
|
|
226483
226860
|
|
|
226484
|
-
_this = _super.apply(this, arguments);
|
|
226485
|
-
_this.dateFormat = util/* dateFormat */.vc;
|
|
226486
|
-
_this.dateFormatList = util/* dateFormatList */.eG;
|
|
226487
|
-
_this.textActiveName = 'first';
|
|
226488
|
-
_this.customPropertyValue = new Object();
|
|
226489
|
-
_this.id = '';
|
|
226490
|
-
_this.name = '';
|
|
226491
|
-
_this.text = '';
|
|
226492
|
-
_this.title = '日期时间';
|
|
226493
|
-
_this.tipText = '';
|
|
226494
|
-
_this.isAllowDelete = false;
|
|
226495
|
-
_this.isReadOnly = false;
|
|
226496
|
-
_this.controlStyle = 'yyyy/MM/dd';
|
|
226497
|
-
_this.innerIdentifier = '';
|
|
226498
|
-
_this.dataMetaIdentifier = '';
|
|
226499
|
-
_this.identifierFormat = '';
|
|
226500
|
-
_this.readType = false;
|
|
226501
|
-
_this.animationClassNames = 'control-modal-contents date-modal animation-in';
|
|
226502
|
-
return _this;
|
|
226503
|
-
}
|
|
226504
226861
|
|
|
226505
|
-
|
|
226506
|
-
|
|
226507
|
-
|
|
226862
|
+
/* harmony default export */ var DateDialogvue_type_script_lang_js_ = ({
|
|
226863
|
+
name: 'DateDialog',
|
|
226864
|
+
components: {
|
|
226865
|
+
Tabs: Tab
|
|
226866
|
+
},
|
|
226867
|
+
data: function data() {
|
|
226868
|
+
return {
|
|
226869
|
+
dateFormat: util/* dateFormat */.vc,
|
|
226870
|
+
dateFormatList: util/* dateFormatList */.eG,
|
|
226871
|
+
textActiveName: 'first',
|
|
226872
|
+
customPropertys: {},
|
|
226873
|
+
// 自定义属性
|
|
226874
|
+
customPropertyValue: new Object(),
|
|
226875
|
+
id: '',
|
|
226876
|
+
name: '',
|
|
226877
|
+
text: '',
|
|
226878
|
+
title: '日期时间',
|
|
226879
|
+
tipText: '',
|
|
226880
|
+
isAllowDelete: false,
|
|
226881
|
+
isReadOnly: false,
|
|
226882
|
+
controlStyle: 'yyyy/MM/dd',
|
|
226883
|
+
innerIdentifier: '',
|
|
226884
|
+
dataMetaIdentifier: '',
|
|
226885
|
+
identifierFormat: '',
|
|
226886
|
+
readType: false,
|
|
226887
|
+
animationClassNames: 'control-modal-contents date-modal animation-in'
|
|
226888
|
+
};
|
|
226889
|
+
},
|
|
226890
|
+
props: {
|
|
226891
|
+
hoEditorFactoryId: {
|
|
226892
|
+
type: String,
|
|
226893
|
+
required: true
|
|
226894
|
+
},
|
|
226895
|
+
controlStatus: {
|
|
226896
|
+
type: String,
|
|
226897
|
+
required: true
|
|
226898
|
+
},
|
|
226899
|
+
vueController: {
|
|
226900
|
+
type: Object,
|
|
226901
|
+
required: true
|
|
226902
|
+
}
|
|
226903
|
+
},
|
|
226904
|
+
inject: ['getCustomProperty'],
|
|
226905
|
+
computed: {
|
|
226906
|
+
customProperty: function customProperty() {
|
|
226508
226907
|
return this.getCustomProperty();
|
|
226509
226908
|
}
|
|
226510
|
-
},
|
|
226511
|
-
|
|
226512
|
-
|
|
226513
|
-
var _this2 = this;
|
|
226514
|
-
|
|
226515
|
-
if (this.controlStatus === 'update') {
|
|
226516
|
-
var updateNode = this.getDateNode();
|
|
226517
|
-
this.id = updateNode.id;
|
|
226518
|
-
this.name = updateNode.name;
|
|
226519
|
-
this.text = updateNode.text && updateNode.text !== updateNode.controlStyle && updateNode.text !== updateNode.name ? this.stringToDate(updateNode.text, updateNode.controlStyle) : '';
|
|
226520
|
-
this.title = updateNode.title;
|
|
226521
|
-
this.tipText = updateNode.tipText;
|
|
226522
|
-
this.isAllowDelete = updateNode.isAllowDelete;
|
|
226523
|
-
this.isReadOnly = updateNode.isReadOnly;
|
|
226524
|
-
this.controlStyle = updateNode.controlStyle;
|
|
226525
|
-
this.innerIdentifier = updateNode.innerIdentifier;
|
|
226526
|
-
this.dataMetaIdentifier = updateNode.dataMetaIdentifier;
|
|
226527
|
-
this.identifierFormat = updateNode.identifierFormat;
|
|
226528
|
-
this.readType = updateNode.readType === 1 ? true : false;
|
|
226909
|
+
},
|
|
226910
|
+
created: function created() {
|
|
226911
|
+
var _this = this;
|
|
226529
226912
|
|
|
226530
|
-
|
|
226531
|
-
|
|
226532
|
-
|
|
226533
|
-
|
|
226534
|
-
|
|
226913
|
+
if (this.controlStatus === 'update') {
|
|
226914
|
+
var updateNode = this.getDateNode();
|
|
226915
|
+
this.id = updateNode.id;
|
|
226916
|
+
this.name = updateNode.name;
|
|
226917
|
+
this.text = updateNode.text && updateNode.text !== updateNode.controlStyle && updateNode.text !== updateNode.name ? this.stringToDate(updateNode.text, updateNode.controlStyle) : '';
|
|
226918
|
+
this.title = updateNode.title;
|
|
226919
|
+
this.tipText = updateNode.tipText;
|
|
226920
|
+
this.isAllowDelete = updateNode.isAllowDelete;
|
|
226921
|
+
this.isReadOnly = updateNode.isReadOnly;
|
|
226922
|
+
this.controlStyle = updateNode.controlStyle;
|
|
226923
|
+
this.innerIdentifier = updateNode.innerIdentifier;
|
|
226924
|
+
this.dataMetaIdentifier = updateNode.dataMetaIdentifier;
|
|
226925
|
+
this.identifierFormat = updateNode.identifierFormat;
|
|
226926
|
+
this.readType = updateNode.readType === 1 ? true : false;
|
|
226535
226927
|
|
|
226536
|
-
|
|
226537
|
-
|
|
226538
|
-
property[key] = _this2.customPropertys[key];
|
|
226539
|
-
});
|
|
226540
|
-
this.customPropertyValue = _objectSpread2({}, property);
|
|
226928
|
+
if ((0,type/* isObject */.Kn)(updateNode.customProperty)) {
|
|
226929
|
+
this.customPropertys = updateNode.customProperty;
|
|
226541
226930
|
} else {
|
|
226542
|
-
this.
|
|
226931
|
+
this.customPropertys = new Object();
|
|
226543
226932
|
}
|
|
226933
|
+
|
|
226934
|
+
var property = new Object();
|
|
226935
|
+
Object.keys(this.customPropertys).forEach(function (key) {
|
|
226936
|
+
property[key] = _this.customPropertys[key];
|
|
226937
|
+
});
|
|
226938
|
+
this.customPropertyValue = _objectSpread2({}, property);
|
|
226939
|
+
} else {
|
|
226940
|
+
this.id = this.vueController.generateID('DT');
|
|
226544
226941
|
}
|
|
226545
|
-
},
|
|
226546
|
-
|
|
226547
|
-
|
|
226942
|
+
},
|
|
226943
|
+
methods: {
|
|
226944
|
+
getDateNode: function getDateNode() {
|
|
226548
226945
|
var _hoEditorFactory$vueC;
|
|
226549
226946
|
|
|
226550
226947
|
var value;
|
|
@@ -226557,15 +226954,11 @@ var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226557
226954
|
}
|
|
226558
226955
|
|
|
226559
226956
|
return value;
|
|
226560
|
-
}
|
|
226561
|
-
|
|
226562
|
-
key: "querySearch",
|
|
226563
|
-
value: function querySearch(queryString, cb) {
|
|
226957
|
+
},
|
|
226958
|
+
querySearch: function querySearch(queryString, cb) {
|
|
226564
226959
|
cb(util/* dateFormatValueList */.dv);
|
|
226565
|
-
}
|
|
226566
|
-
|
|
226567
|
-
key: "stringToDate",
|
|
226568
|
-
value: function stringToDate(value, style) {
|
|
226960
|
+
},
|
|
226961
|
+
stringToDate: function stringToDate(value, style) {
|
|
226569
226962
|
var date = '';
|
|
226570
226963
|
var time = '';
|
|
226571
226964
|
var valueDate = '';
|
|
@@ -226600,11 +226993,9 @@ var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226600
226993
|
}
|
|
226601
226994
|
|
|
226602
226995
|
return valueDate;
|
|
226603
|
-
}
|
|
226604
|
-
|
|
226605
|
-
|
|
226606
|
-
value: function sure() {
|
|
226607
|
-
var _this3 = this;
|
|
226996
|
+
},
|
|
226997
|
+
sure: function sure() {
|
|
226998
|
+
var _this2 = this;
|
|
226608
226999
|
|
|
226609
227000
|
var params = {
|
|
226610
227001
|
id: this.id,
|
|
@@ -226631,37 +227022,17 @@ var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226631
227022
|
}
|
|
226632
227023
|
|
|
226633
227024
|
this.$nextTick(function () {
|
|
226634
|
-
return
|
|
227025
|
+
return _this2.handleClose();
|
|
226635
227026
|
});
|
|
226636
|
-
}
|
|
226637
|
-
|
|
226638
|
-
key: "handleClose",
|
|
226639
|
-
value: function handleClose() {
|
|
227027
|
+
},
|
|
227028
|
+
handleClose: function handleClose() {
|
|
226640
227029
|
this.animationClassNames = 'control-modal-contents date-modal animation-out';
|
|
226641
227030
|
this.$emit('closed');
|
|
226642
227031
|
}
|
|
226643
|
-
}]);
|
|
226644
|
-
|
|
226645
|
-
return DateDialog;
|
|
226646
|
-
}((external_commonjs_vue_commonjs2_vue_root_Vue_default()));
|
|
226647
|
-
|
|
226648
|
-
__decorate([Prop()], DateDialog.prototype, "hoEditorFactoryId", void 0);
|
|
226649
|
-
|
|
226650
|
-
__decorate([Prop()], DateDialog.prototype, "controlStatus", void 0);
|
|
226651
|
-
|
|
226652
|
-
__decorate([Prop()], DateDialog.prototype, "vueController", void 0);
|
|
226653
|
-
|
|
226654
|
-
__decorate([Inject('getCustomProperty')], DateDialog.prototype, "getCustomProperty", void 0);
|
|
226655
|
-
|
|
226656
|
-
DateDialog = __decorate([vue_class_component_esm({
|
|
226657
|
-
name: 'DateDialog',
|
|
226658
|
-
components: {
|
|
226659
|
-
Tabs: Tab
|
|
226660
227032
|
}
|
|
226661
|
-
})
|
|
226662
|
-
|
|
226663
|
-
|
|
226664
|
-
/* harmony default export */ var dateDialog_DateDialogvue_type_script_lang_ts_ = (DateDialogvue_type_script_lang_ts_);
|
|
227033
|
+
});
|
|
227034
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=script&lang=js&
|
|
227035
|
+
/* harmony default export */ var dateDialog_DateDialogvue_type_script_lang_js_ = (DateDialogvue_type_script_lang_js_);
|
|
226665
227036
|
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&lang=scss&
|
|
226666
227037
|
// extracted by mini-css-extract-plugin
|
|
226667
227038
|
|
|
@@ -226677,9 +227048,9 @@ DateDialog = __decorate([vue_class_component_esm({
|
|
|
226677
227048
|
/* normalize component */
|
|
226678
227049
|
|
|
226679
227050
|
var DateDialog_component = normalizeComponent(
|
|
226680
|
-
|
|
226681
|
-
|
|
226682
|
-
|
|
227051
|
+
dateDialog_DateDialogvue_type_script_lang_js_,
|
|
227052
|
+
DateDialogvue_type_template_id_f39033d6_render,
|
|
227053
|
+
DateDialogvue_type_template_id_f39033d6_staticRenderFns,
|
|
226683
227054
|
false,
|
|
226684
227055
|
null,
|
|
226685
227056
|
null,
|
|
@@ -226687,10 +227058,10 @@ var DateDialog_component = normalizeComponent(
|
|
|
226687
227058
|
|
|
226688
227059
|
)
|
|
226689
227060
|
|
|
226690
|
-
/* harmony default export */ var
|
|
227061
|
+
/* harmony default export */ var DateDialog = (DateDialog_component.exports);
|
|
226691
227062
|
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/index.ts
|
|
226692
227063
|
|
|
226693
|
-
/* harmony default export */ var dateDialog = (
|
|
227064
|
+
/* harmony default export */ var dateDialog = (DateDialog);
|
|
226694
227065
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=template&id=5569452d&
|
|
226695
227066
|
var BarCodesvue_type_template_id_5569452d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("条形码")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("条形码内容")]),_c('el-input',{attrs:{"size":"mini","placeholder":"条形码内容不能为空","maxlength":"20","show-word-limit":""},on:{"input":_vm.codeChange},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("是否显示文本")]),_c('el-checkbox',{on:{"change":_vm.codeChange},model:{value:(_vm.isDisplayText),callback:function ($$v) {_vm.isDisplayText=$$v},expression:"isDisplayText"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1),_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{staticClass:"bar-code"},[_c('img',{directives:[{name:"show",rawName:"v-show",value:(_vm.textContent && !_vm.textField),expression:"textContent && !textField"}],ref:"barcode",attrs:{"id":"barcode"}}),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.textContent && _vm.textField),expression:"textContent && textField"}]},[_vm._v(_vm._s(_vm.textField))])])])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
226696
227067
|
var BarCodesvue_type_template_id_5569452d_staticRenderFns = []
|
|
@@ -227379,23 +227750,14 @@ var TextDialog_component = normalizeComponent(
|
|
|
227379
227750
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/index.ts
|
|
227380
227751
|
|
|
227381
227752
|
/* harmony default export */ var textDialog = (textDialog_TextDialog);
|
|
227382
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=
|
|
227383
|
-
var ExpressionFormvue_type_template_id_61f32ecc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.names[_vm.expressStyle]))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.cancel}})]),_c('section',{staticClass:"expression-form"},[(_vm.expressStyle === 'style1')?[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style1-line"}),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),(_vm.isUseDate)?_c('el-date-picker',{attrs:{"prefix-icon":"null","type":"date","size":"small","format":_vm.useDateFormat,"value-format":_vm.useDateFormat,"placeholder":"日期"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e(),(!_vm.isUseDate)?_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e()],1)]),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)]:_vm._e(),(_vm.expressStyle === 'style2')?[_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1)]),_c('div',{staticClass:"line style21-line"}),_c('div',{staticClass:"line style22-line"}),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),(_vm.isUseDate)?_c('el-date-picker',{attrs:{"prefix-icon":"null","type":"date","size":"small","format":_vm.useDateFormat,"value-format":_vm.useDateFormat,"placeholder":"日期"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e(),(!_vm.isUseDate)?_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e()],1),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)])]:_vm._e(),(_vm.expressStyle === 'style3')?[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style31-line"}),_c('div',{staticClass:"line style32-line"}),_c('div',{staticClass:"expression-item",staticStyle:{"margin-left":"73px"}},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)]),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),(_vm.isUseDate)?_c('el-date-picker',{attrs:{"prefix-icon":"null","type":"date","size":"small","format":_vm.useDateFormat,"value-format":_vm.useDateFormat,"placeholder":"日期"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e(),(!_vm.isUseDate)?_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e()],1)]:_vm._e(),(_vm.expressStyle === 'style4')?_c('div',{staticClass:"style4"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style41-line"}),_c('div',{staticClass:"expression-style4"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"line style42-line"}),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)])]):_vm._e(),(_vm.expressStyle === 'style1' || _vm.expressStyle === 'style2' || _vm.expressStyle === 'style3')?[_c('div',{staticClass:"express-date-items"},[_c('el-checkbox',{on:{"change":_vm.useDateChange},model:{value:(_vm.isUseDate),callback:function ($$v) {_vm.isUseDate=$$v},expression:"isUseDate"}},[_vm._v("使用日期")])],1),(_vm.isUseDate)?_c('div',{staticClass:"express-date-items"},[_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},on:{"change":_vm.dateFormatChange},model:{value:(_vm.useDateFormat),callback:function ($$v) {_vm.useDateFormat=$$v},expression:"useDateFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-dd","value":"yyyy-MM-dd"}}),_c('el-option',{attrs:{"label":"yyyy/MM/dd","value":"yyyy/MM/dd"}}),_c('el-option',{attrs:{"label":"yyyy年MM月dd日","value":"yyyy年MM月dd日"}})],1)],1):_vm._e()]:_vm._e(),(_vm.expressStyle === 'style5')?[_c('div',{staticClass:"expression-style5"},[_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('div',{staticStyle:{"width":"100px"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}}),_c('div',{staticStyle:{"width":"100px"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value7),callback:function ($$v) {_vm.$set(_vm.style567, "value7", $$v)},expression:"style567.value7"}})],1)]:_vm._e(),(_vm.expressStyle === 'style6')?[_c('div',{staticClass:"expression-style5"},[_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value7),callback:function ($$v) {_vm.$set(_vm.style567, "value7", $$v)},expression:"style567.value7"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value8),callback:function ($$v) {_vm.$set(_vm.style567, "value8", $$v)},expression:"style567.value8"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value9),callback:function ($$v) {_vm.$set(_vm.style567, "value9", $$v)},expression:"style567.value9"}})],1)]:_vm._e(),(_vm.expressStyle === 'style7')?[_c('div',{staticClass:"expression-style5 style7"},[_c('div',{staticClass:"line style71-line"}),_c('div',{staticClass:"line style72-line"}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}})],1)]:_vm._e(),(_vm.expressStyle === 'style8')?[_c('div',{staticClass:"style89"},[_c('span',{staticClass:"pos-top"},[_vm._v("上颌")]),_c('span',{staticClass:"pos-bottom"},[_vm._v("下颌")]),_c('span',{staticClass:"pos-left"},[_vm._v("左")]),_c('span',{staticClass:"pos-right"},[_vm._v("右")]),_vm._m(0),_c('ul',[_vm._l((['8', '7', '6', '5', '4', '3', '2', '1']),function(item){return _c('li',{key:item + 'a'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topLeft),callback:function ($$v) {_vm.$set(_vm.style89, "topLeft", $$v)},expression:"style89.topLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['1', '2', '3', '4', '5', '6', '7', '8']),function(item){return _c('li',{key:item + 'b'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topRight),callback:function ($$v) {_vm.$set(_vm.style89, "topRight", $$v)},expression:"style89.topRight"}},[_c('el-checkbox-button',{attrs:{"size":"mini","label":item}})],1)],1)})],2),_c('ul',[_vm._l((['8', '7', '6', '5', '4', '3', '2', '1']),function(item){return _c('li',{key:item + 'c'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomLeft),callback:function ($$v) {_vm.$set(_vm.style89, "bottomLeft", $$v)},expression:"style89.bottomLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['1', '2', '3', '4', '5', '6', '7', '8']),function(item){return _c('li',{key:item + 'd'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomRight),callback:function ($$v) {_vm.$set(_vm.style89, "bottomRight", $$v)},expression:"style89.bottomRight"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)})],2)])]:_vm._e(),(_vm.expressStyle === 'style9')?[_c('div',{staticClass:"style89 style9"},[_c('span',{staticClass:"pos-top"},[_vm._v("上颌")]),_c('span',{staticClass:"pos-bottom"},[_vm._v("下颌")]),_c('span',{staticClass:"pos-left"},[_vm._v("左")]),_c('span',{staticClass:"pos-right"},[_vm._v("右")]),_vm._m(1),_c('ul',[_vm._l((['V', 'IV', 'III', 'II', 'I']),function(item){return _c('li',{key:item + 'a'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topLeft),callback:function ($$v) {_vm.$set(_vm.style89, "topLeft", $$v)},expression:"style89.topLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['I', 'II', 'III', 'IV', 'V']),function(item){return _c('li',{key:item + 'b'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topRight),callback:function ($$v) {_vm.$set(_vm.style89, "topRight", $$v)},expression:"style89.topRight"}},[_c('el-checkbox-button',{attrs:{"size":"mini","label":item}})],1)],1)})],2),_c('ul',[_vm._l((['V', 'IV', 'III', 'II', 'I']),function(item){return _c('li',{key:item + 'c'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomLeft),callback:function ($$v) {_vm.$set(_vm.style89, "bottomLeft", $$v)},expression:"style89.bottomLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['I', 'II', 'III', 'IV', 'V']),function(item){return _c('li',{key:item + 'd'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomRight),callback:function ($$v) {_vm.$set(_vm.style89, "bottomRight", $$v)},expression:"style89.bottomRight"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)})],2)])]:_vm._e()],2),_c('footer',{staticClass:"dialog-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")]),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.reset}},[_vm._v("重 置")]):_vm._e(),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.reverse}},[_vm._v("反 选")]):_vm._e(),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.all}},[_vm._v("全 选")]):_vm._e(),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.cancel}},[_vm._v("取 消")])],1)])}
|
|
227384
|
-
var
|
|
227385
|
-
|
|
227386
|
-
|
|
227387
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=61f32ecc&scoped=true&
|
|
227388
|
-
|
|
227389
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=script&lang=ts&
|
|
227390
|
-
|
|
227391
|
-
|
|
227392
|
-
|
|
227393
|
-
|
|
227394
|
-
|
|
227395
|
-
|
|
227753
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=cc393f74&scoped=true&
|
|
227754
|
+
var ExpressionFormvue_type_template_id_cc393f74_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.names[_vm.expressStyle]))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.cancel}})]),_c('section',{staticClass:"expression-form"},[(_vm.expressStyle === 'style1')?[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style1-line"}),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),(_vm.isUseDate)?_c('el-date-picker',{attrs:{"prefix-icon":"null","type":"date","size":"small","format":_vm.useDateFormat,"value-format":_vm.useDateFormat,"placeholder":"日期"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e(),(!_vm.isUseDate)?_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e()],1)]),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)]:_vm._e(),(_vm.expressStyle === 'style2')?[_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1)]),_c('div',{staticClass:"line style21-line"}),_c('div',{staticClass:"line style22-line"}),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),(_vm.isUseDate)?_c('el-date-picker',{attrs:{"prefix-icon":"null","type":"date","size":"small","format":_vm.useDateFormat,"value-format":_vm.useDateFormat,"placeholder":"日期"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e(),(!_vm.isUseDate)?_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e()],1),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)])]:_vm._e(),(_vm.expressStyle === 'style3')?[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style31-line"}),_c('div',{staticClass:"line style32-line"}),_c('div',{staticClass:"expression-item",staticStyle:{"margin-left":"73px"}},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)]),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),(_vm.isUseDate)?_c('el-date-picker',{attrs:{"prefix-icon":"null","type":"date","size":"small","format":_vm.useDateFormat,"value-format":_vm.useDateFormat,"placeholder":"日期"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e(),(!_vm.isUseDate)?_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}}):_vm._e()],1)]:_vm._e(),(_vm.expressStyle === 'style4')?_c('div',{staticClass:"style4"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style41-line"}),_c('div',{staticClass:"expression-style4"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"line style42-line"}),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)])]):_vm._e(),(_vm.expressStyle === 'style1' || _vm.expressStyle === 'style2' || _vm.expressStyle === 'style3')?[_c('div',{staticClass:"express-date-items"},[_c('el-checkbox',{on:{"change":_vm.useDateChange},model:{value:(_vm.isUseDate),callback:function ($$v) {_vm.isUseDate=$$v},expression:"isUseDate"}},[_vm._v("使用日期")])],1),(_vm.isUseDate)?_c('div',{staticClass:"express-date-items"},[_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},on:{"change":_vm.dateFormatChange},model:{value:(_vm.useDateFormat),callback:function ($$v) {_vm.useDateFormat=$$v},expression:"useDateFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-dd","value":"yyyy-MM-dd"}}),_c('el-option',{attrs:{"label":"yyyy/MM/dd","value":"yyyy/MM/dd"}}),_c('el-option',{attrs:{"label":"yyyy年MM月dd日","value":"yyyy年MM月dd日"}})],1)],1):_vm._e()]:_vm._e(),(_vm.expressStyle === 'style5')?[_c('div',{staticClass:"expression-style5"},[_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('div',{staticStyle:{"width":"100px"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}}),_c('div',{staticStyle:{"width":"100px"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value7),callback:function ($$v) {_vm.$set(_vm.style567, "value7", $$v)},expression:"style567.value7"}})],1)]:_vm._e(),(_vm.expressStyle === 'style6')?[_c('div',{staticClass:"expression-style5"},[_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value7),callback:function ($$v) {_vm.$set(_vm.style567, "value7", $$v)},expression:"style567.value7"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value8),callback:function ($$v) {_vm.$set(_vm.style567, "value8", $$v)},expression:"style567.value8"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value9),callback:function ($$v) {_vm.$set(_vm.style567, "value9", $$v)},expression:"style567.value9"}})],1)]:_vm._e(),(_vm.expressStyle === 'style7')?[_c('div',{staticClass:"expression-style5 style7"},[_c('div',{staticClass:"line style71-line"}),_c('div',{staticClass:"line style72-line"}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}})],1)]:_vm._e(),(_vm.expressStyle === 'style8')?[_c('div',{staticClass:"style89"},[_c('span',{staticClass:"pos-top"},[_vm._v("上颌")]),_c('span',{staticClass:"pos-bottom"},[_vm._v("下颌")]),_c('span',{staticClass:"pos-left"},[_vm._v("左")]),_c('span',{staticClass:"pos-right"},[_vm._v("右")]),_vm._m(0),_c('ul',[_vm._l((['8', '7', '6', '5', '4', '3', '2', '1']),function(item){return _c('li',{key:item + 'a'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topLeft),callback:function ($$v) {_vm.$set(_vm.style89, "topLeft", $$v)},expression:"style89.topLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['1', '2', '3', '4', '5', '6', '7', '8']),function(item){return _c('li',{key:item + 'b'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topRight),callback:function ($$v) {_vm.$set(_vm.style89, "topRight", $$v)},expression:"style89.topRight"}},[_c('el-checkbox-button',{attrs:{"size":"mini","label":item}})],1)],1)})],2),_c('ul',[_vm._l((['8', '7', '6', '5', '4', '3', '2', '1']),function(item){return _c('li',{key:item + 'c'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomLeft),callback:function ($$v) {_vm.$set(_vm.style89, "bottomLeft", $$v)},expression:"style89.bottomLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['1', '2', '3', '4', '5', '6', '7', '8']),function(item){return _c('li',{key:item + 'd'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomRight),callback:function ($$v) {_vm.$set(_vm.style89, "bottomRight", $$v)},expression:"style89.bottomRight"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)})],2)])]:_vm._e(),(_vm.expressStyle === 'style9')?[_c('div',{staticClass:"style89 style9"},[_c('span',{staticClass:"pos-top"},[_vm._v("上颌")]),_c('span',{staticClass:"pos-bottom"},[_vm._v("下颌")]),_c('span',{staticClass:"pos-left"},[_vm._v("左")]),_c('span',{staticClass:"pos-right"},[_vm._v("右")]),_vm._m(1),_c('ul',[_vm._l((['V', 'IV', 'III', 'II', 'I']),function(item){return _c('li',{key:item + 'a'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topLeft),callback:function ($$v) {_vm.$set(_vm.style89, "topLeft", $$v)},expression:"style89.topLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['I', 'II', 'III', 'IV', 'V']),function(item){return _c('li',{key:item + 'b'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topRight),callback:function ($$v) {_vm.$set(_vm.style89, "topRight", $$v)},expression:"style89.topRight"}},[_c('el-checkbox-button',{attrs:{"size":"mini","label":item}})],1)],1)})],2),_c('ul',[_vm._l((['V', 'IV', 'III', 'II', 'I']),function(item){return _c('li',{key:item + 'c'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomLeft),callback:function ($$v) {_vm.$set(_vm.style89, "bottomLeft", $$v)},expression:"style89.bottomLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['I', 'II', 'III', 'IV', 'V']),function(item){return _c('li',{key:item + 'd'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomRight),callback:function ($$v) {_vm.$set(_vm.style89, "bottomRight", $$v)},expression:"style89.bottomRight"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)})],2)])]:_vm._e()],2),_c('footer',{staticClass:"dialog-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")]),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.reset}},[_vm._v("重 置")]):_vm._e(),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.reverse}},[_vm._v("反 选")]):_vm._e(),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.all}},[_vm._v("全 选")]):_vm._e(),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.cancel}},[_vm._v("取 消")])],1)])}
|
|
227755
|
+
var ExpressionFormvue_type_template_id_cc393f74_scoped_true_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"titles"},[_c('li',[_vm._v("第三磨牙")]),_c('li',[_vm._v("第二磨牙")]),_c('li',[_vm._v("第一磨牙")]),_c('li',[_vm._v("第二前磨牙")]),_c('li',[_vm._v("第一前磨牙")]),_c('li',[_vm._v("尖牙")]),_c('li',[_vm._v("侧切牙")]),_c('li',[_vm._v("中切牙")]),_c('li',[_vm._v("中切牙")]),_c('li',[_vm._v("侧切牙")]),_c('li',[_vm._v("尖牙")]),_c('li',[_vm._v("第一前磨牙")]),_c('li',[_vm._v("第二前磨牙")]),_c('li',[_vm._v("第一磨牙")]),_c('li',[_vm._v("第二磨牙")]),_c('li',[_vm._v("第三磨牙")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"titles"},[_c('li',[_vm._v("第二乳磨牙")]),_c('li',[_vm._v("第一乳磨牙")]),_c('li',[_vm._v("乳尖牙")]),_c('li',[_vm._v("乳侧切牙")]),_c('li',[_vm._v("乳中切牙")]),_c('li',[_vm._v("乳中切牙")]),_c('li',[_vm._v("乳侧切牙")]),_c('li',[_vm._v("乳尖牙")]),_c('li',[_vm._v("第一乳磨牙")]),_c('li',[_vm._v("第二乳磨牙")])])}]
|
|
227396
227756
|
|
|
227397
227757
|
|
|
227758
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=cc393f74&scoped=true&
|
|
227398
227759
|
|
|
227760
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=script&lang=js&
|
|
227399
227761
|
|
|
227400
227762
|
|
|
227401
227763
|
|
|
@@ -227408,210 +227770,470 @@ var ExpressionFormvue_type_template_id_61f32ecc_scoped_true_staticRenderFns = [f
|
|
|
227408
227770
|
|
|
227409
227771
|
|
|
227410
227772
|
|
|
227411
|
-
var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
227412
|
-
(0,inherits/* default */.Z)(ExpressionForm, _Vue);
|
|
227413
227773
|
|
|
227414
|
-
|
|
227415
|
-
|
|
227416
|
-
|
|
227417
|
-
|
|
227774
|
+
//
|
|
227775
|
+
//
|
|
227776
|
+
//
|
|
227777
|
+
//
|
|
227778
|
+
//
|
|
227779
|
+
//
|
|
227780
|
+
//
|
|
227781
|
+
//
|
|
227782
|
+
//
|
|
227783
|
+
//
|
|
227784
|
+
//
|
|
227785
|
+
//
|
|
227786
|
+
//
|
|
227787
|
+
//
|
|
227788
|
+
//
|
|
227789
|
+
//
|
|
227790
|
+
//
|
|
227791
|
+
//
|
|
227792
|
+
//
|
|
227793
|
+
//
|
|
227794
|
+
//
|
|
227795
|
+
//
|
|
227796
|
+
//
|
|
227797
|
+
//
|
|
227798
|
+
//
|
|
227799
|
+
//
|
|
227800
|
+
//
|
|
227801
|
+
//
|
|
227802
|
+
//
|
|
227803
|
+
//
|
|
227804
|
+
//
|
|
227805
|
+
//
|
|
227806
|
+
//
|
|
227807
|
+
//
|
|
227808
|
+
//
|
|
227809
|
+
//
|
|
227810
|
+
//
|
|
227811
|
+
//
|
|
227812
|
+
//
|
|
227813
|
+
//
|
|
227814
|
+
//
|
|
227815
|
+
//
|
|
227816
|
+
//
|
|
227817
|
+
//
|
|
227818
|
+
//
|
|
227819
|
+
//
|
|
227820
|
+
//
|
|
227821
|
+
//
|
|
227822
|
+
//
|
|
227823
|
+
//
|
|
227824
|
+
//
|
|
227825
|
+
//
|
|
227826
|
+
//
|
|
227827
|
+
//
|
|
227828
|
+
//
|
|
227829
|
+
//
|
|
227830
|
+
//
|
|
227831
|
+
//
|
|
227832
|
+
//
|
|
227833
|
+
//
|
|
227834
|
+
//
|
|
227835
|
+
//
|
|
227836
|
+
//
|
|
227837
|
+
//
|
|
227838
|
+
//
|
|
227839
|
+
//
|
|
227840
|
+
//
|
|
227841
|
+
//
|
|
227842
|
+
//
|
|
227843
|
+
//
|
|
227844
|
+
//
|
|
227845
|
+
//
|
|
227846
|
+
//
|
|
227847
|
+
//
|
|
227848
|
+
//
|
|
227849
|
+
//
|
|
227850
|
+
//
|
|
227851
|
+
//
|
|
227852
|
+
//
|
|
227853
|
+
//
|
|
227854
|
+
//
|
|
227855
|
+
//
|
|
227856
|
+
//
|
|
227857
|
+
//
|
|
227858
|
+
//
|
|
227859
|
+
//
|
|
227860
|
+
//
|
|
227861
|
+
//
|
|
227862
|
+
//
|
|
227863
|
+
//
|
|
227864
|
+
//
|
|
227865
|
+
//
|
|
227866
|
+
//
|
|
227867
|
+
//
|
|
227868
|
+
//
|
|
227869
|
+
//
|
|
227870
|
+
//
|
|
227871
|
+
//
|
|
227872
|
+
//
|
|
227873
|
+
//
|
|
227874
|
+
//
|
|
227875
|
+
//
|
|
227876
|
+
//
|
|
227877
|
+
//
|
|
227878
|
+
//
|
|
227879
|
+
//
|
|
227880
|
+
//
|
|
227881
|
+
//
|
|
227882
|
+
//
|
|
227883
|
+
//
|
|
227884
|
+
//
|
|
227885
|
+
//
|
|
227886
|
+
//
|
|
227887
|
+
//
|
|
227888
|
+
//
|
|
227889
|
+
//
|
|
227890
|
+
//
|
|
227891
|
+
//
|
|
227892
|
+
//
|
|
227893
|
+
//
|
|
227894
|
+
//
|
|
227895
|
+
//
|
|
227896
|
+
//
|
|
227897
|
+
//
|
|
227898
|
+
//
|
|
227899
|
+
//
|
|
227900
|
+
//
|
|
227901
|
+
//
|
|
227902
|
+
//
|
|
227903
|
+
//
|
|
227904
|
+
//
|
|
227905
|
+
//
|
|
227906
|
+
//
|
|
227907
|
+
//
|
|
227908
|
+
//
|
|
227909
|
+
//
|
|
227910
|
+
//
|
|
227911
|
+
//
|
|
227912
|
+
//
|
|
227913
|
+
//
|
|
227914
|
+
//
|
|
227915
|
+
//
|
|
227916
|
+
//
|
|
227917
|
+
//
|
|
227918
|
+
//
|
|
227919
|
+
//
|
|
227920
|
+
//
|
|
227921
|
+
//
|
|
227922
|
+
//
|
|
227923
|
+
//
|
|
227924
|
+
//
|
|
227925
|
+
//
|
|
227926
|
+
//
|
|
227927
|
+
//
|
|
227928
|
+
//
|
|
227929
|
+
//
|
|
227930
|
+
//
|
|
227931
|
+
//
|
|
227932
|
+
//
|
|
227933
|
+
//
|
|
227934
|
+
//
|
|
227935
|
+
//
|
|
227936
|
+
//
|
|
227937
|
+
//
|
|
227938
|
+
//
|
|
227939
|
+
//
|
|
227940
|
+
//
|
|
227941
|
+
//
|
|
227942
|
+
//
|
|
227943
|
+
//
|
|
227944
|
+
//
|
|
227945
|
+
//
|
|
227946
|
+
//
|
|
227947
|
+
//
|
|
227948
|
+
//
|
|
227949
|
+
//
|
|
227950
|
+
//
|
|
227951
|
+
//
|
|
227952
|
+
//
|
|
227953
|
+
//
|
|
227954
|
+
//
|
|
227955
|
+
//
|
|
227956
|
+
//
|
|
227957
|
+
//
|
|
227958
|
+
//
|
|
227959
|
+
//
|
|
227960
|
+
//
|
|
227961
|
+
//
|
|
227962
|
+
//
|
|
227963
|
+
//
|
|
227964
|
+
//
|
|
227965
|
+
//
|
|
227966
|
+
//
|
|
227967
|
+
//
|
|
227968
|
+
//
|
|
227969
|
+
//
|
|
227970
|
+
//
|
|
227971
|
+
//
|
|
227972
|
+
//
|
|
227973
|
+
//
|
|
227974
|
+
//
|
|
227975
|
+
//
|
|
227976
|
+
//
|
|
227977
|
+
//
|
|
227978
|
+
//
|
|
227979
|
+
//
|
|
227980
|
+
//
|
|
227981
|
+
//
|
|
227982
|
+
//
|
|
227983
|
+
//
|
|
227984
|
+
//
|
|
227985
|
+
//
|
|
227986
|
+
//
|
|
227987
|
+
//
|
|
227988
|
+
//
|
|
227989
|
+
//
|
|
227990
|
+
//
|
|
227991
|
+
//
|
|
227992
|
+
//
|
|
227993
|
+
//
|
|
227994
|
+
//
|
|
227995
|
+
//
|
|
227996
|
+
//
|
|
227997
|
+
//
|
|
227998
|
+
//
|
|
227999
|
+
//
|
|
228000
|
+
//
|
|
228001
|
+
//
|
|
228002
|
+
//
|
|
228003
|
+
//
|
|
228004
|
+
//
|
|
228005
|
+
//
|
|
228006
|
+
//
|
|
228007
|
+
//
|
|
228008
|
+
//
|
|
228009
|
+
//
|
|
228010
|
+
//
|
|
228011
|
+
//
|
|
228012
|
+
//
|
|
228013
|
+
//
|
|
228014
|
+
//
|
|
228015
|
+
//
|
|
228016
|
+
//
|
|
228017
|
+
//
|
|
228018
|
+
//
|
|
228019
|
+
//
|
|
228020
|
+
//
|
|
228021
|
+
//
|
|
228022
|
+
//
|
|
228023
|
+
//
|
|
228024
|
+
//
|
|
228025
|
+
//
|
|
228026
|
+
//
|
|
228027
|
+
//
|
|
228028
|
+
//
|
|
228029
|
+
//
|
|
228030
|
+
//
|
|
228031
|
+
//
|
|
228032
|
+
//
|
|
228033
|
+
//
|
|
228034
|
+
//
|
|
228035
|
+
//
|
|
228036
|
+
//
|
|
228037
|
+
//
|
|
228038
|
+
//
|
|
228039
|
+
//
|
|
228040
|
+
//
|
|
228041
|
+
//
|
|
228042
|
+
//
|
|
228043
|
+
//
|
|
228044
|
+
//
|
|
228045
|
+
//
|
|
228046
|
+
//
|
|
228047
|
+
//
|
|
228048
|
+
//
|
|
227418
228049
|
|
|
227419
|
-
|
|
227420
|
-
|
|
227421
|
-
|
|
227422
|
-
|
|
227423
|
-
|
|
227424
|
-
|
|
227425
|
-
|
|
227426
|
-
|
|
227427
|
-
|
|
227428
|
-
|
|
227429
|
-
|
|
227430
|
-
|
|
227431
|
-
|
|
227432
|
-
|
|
227433
|
-
|
|
227434
|
-
|
|
227435
|
-
|
|
227436
|
-
|
|
227437
|
-
|
|
227438
|
-
|
|
227439
|
-
|
|
227440
|
-
|
|
227441
|
-
|
|
227442
|
-
|
|
227443
|
-
|
|
227444
|
-
|
|
227445
|
-
|
|
227446
|
-
|
|
227447
|
-
|
|
227448
|
-
|
|
227449
|
-
|
|
227450
|
-
|
|
227451
|
-
|
|
227452
|
-
|
|
227453
|
-
|
|
227454
|
-
|
|
227455
|
-
|
|
227456
|
-
|
|
227457
|
-
|
|
227458
|
-
|
|
227459
|
-
|
|
227460
|
-
|
|
227461
|
-
|
|
227462
|
-
|
|
227463
|
-
|
|
227464
|
-
|
|
227465
|
-
|
|
227466
|
-
|
|
227467
|
-
|
|
227468
|
-
|
|
227469
|
-
|
|
227470
|
-
|
|
227471
|
-
|
|
227472
|
-
|
|
227473
|
-
|
|
227474
|
-
|
|
227475
|
-
|
|
227476
|
-
|
|
227477
|
-
|
|
227478
|
-
|
|
227479
|
-
|
|
227480
|
-
|
|
227481
|
-
|
|
228050
|
+
/* harmony default export */ var ExpressionFormvue_type_script_lang_js_ = ({
|
|
228051
|
+
name: 'ExpressionForm',
|
|
228052
|
+
data: function data() {
|
|
228053
|
+
return {
|
|
228054
|
+
animationClassNames: 'control-modal-contents express-dialog animation-in',
|
|
228055
|
+
isUseDate: false,
|
|
228056
|
+
useDateFormat: 'yyyy-MM-dd',
|
|
228057
|
+
names: {
|
|
228058
|
+
style1: '经期史',
|
|
228059
|
+
style2: '经期史',
|
|
228060
|
+
style3: '经期史',
|
|
228061
|
+
style4: '经期史',
|
|
228062
|
+
style5: '瞳孔图',
|
|
228063
|
+
style6: '光定位图',
|
|
228064
|
+
style7: '胎心图',
|
|
228065
|
+
style8: '恒牙牙位图',
|
|
228066
|
+
style9: '乳牙牙位图'
|
|
228067
|
+
},
|
|
228068
|
+
menstrualHistory: {
|
|
228069
|
+
menseDays: '',
|
|
228070
|
+
cycleDays: '',
|
|
228071
|
+
menarcheAge: '14',
|
|
228072
|
+
menoPauseAge: '52'
|
|
228073
|
+
},
|
|
228074
|
+
style567: {
|
|
228075
|
+
value1: '1',
|
|
228076
|
+
value2: '2',
|
|
228077
|
+
value3: '3',
|
|
228078
|
+
value4: '4',
|
|
228079
|
+
value5: '5',
|
|
228080
|
+
value6: '6',
|
|
228081
|
+
value7: '7',
|
|
228082
|
+
value8: '8',
|
|
228083
|
+
value9: '9'
|
|
228084
|
+
},
|
|
228085
|
+
style89: {
|
|
228086
|
+
topLeft: [],
|
|
228087
|
+
topRight: [],
|
|
228088
|
+
bottomLeft: [],
|
|
228089
|
+
bottomRight: []
|
|
228090
|
+
},
|
|
228091
|
+
style8: {
|
|
228092
|
+
topLeft: ['8', '7', '6', '5', '4', '3', '2', '1'],
|
|
228093
|
+
topRight: ['1', '2', '3', '4', '5', '6', '7', '8'],
|
|
228094
|
+
bottomLeft: ['8', '7', '6', '5', '4', '3', '2', '1'],
|
|
228095
|
+
bottomRight: ['1', '2', '3', '4', '5', '6', '7', '8']
|
|
228096
|
+
},
|
|
228097
|
+
style9: {
|
|
228098
|
+
topLeft: ['V', 'IV', 'III', 'II', 'I'],
|
|
228099
|
+
topRight: ['I', 'II', 'III', 'IV', 'V'],
|
|
228100
|
+
bottomLeft: ['V', 'IV', 'III', 'II', 'I'],
|
|
228101
|
+
bottomRight: ['I', 'II', 'III', 'IV', 'V']
|
|
228102
|
+
},
|
|
228103
|
+
styleObjectArray: {
|
|
228104
|
+
style1: 1,
|
|
228105
|
+
style2: 1,
|
|
228106
|
+
style3: 1,
|
|
228107
|
+
style4: 1,
|
|
228108
|
+
style5: 2,
|
|
228109
|
+
style6: 2,
|
|
228110
|
+
style7: 2,
|
|
228111
|
+
style8: 3,
|
|
228112
|
+
style9: 3
|
|
228113
|
+
}
|
|
227482
228114
|
};
|
|
227483
|
-
|
|
227484
|
-
|
|
227485
|
-
|
|
227486
|
-
|
|
227487
|
-
|
|
227488
|
-
|
|
227489
|
-
|
|
228115
|
+
},
|
|
228116
|
+
props: {
|
|
228117
|
+
controlProperty: {
|
|
228118
|
+
type: Object,
|
|
228119
|
+
required: true
|
|
228120
|
+
},
|
|
228121
|
+
vueController: {
|
|
228122
|
+
type: Object,
|
|
228123
|
+
required: true
|
|
227490
228124
|
}
|
|
227491
|
-
},
|
|
227492
|
-
|
|
227493
|
-
|
|
228125
|
+
},
|
|
228126
|
+
inject: ['getUpdateNodeValue'],
|
|
228127
|
+
computed: {
|
|
228128
|
+
controlType: function controlType() {
|
|
228129
|
+
return this.controlProperty.controlType;
|
|
228130
|
+
},
|
|
228131
|
+
controlStatus: function controlStatus() {
|
|
227494
228132
|
return this.controlProperty.controlStatus;
|
|
227495
|
-
}
|
|
227496
|
-
|
|
227497
|
-
key: "expressStyle",
|
|
227498
|
-
get: function get() {
|
|
228133
|
+
},
|
|
228134
|
+
expressStyle: function expressStyle() {
|
|
227499
228135
|
return this.controlProperty.expressStyle;
|
|
227500
228136
|
}
|
|
227501
|
-
},
|
|
227502
|
-
|
|
227503
|
-
|
|
227504
|
-
|
|
227505
|
-
var updateNode = this.getUpdateNodeValue();
|
|
228137
|
+
},
|
|
228138
|
+
created: function created() {
|
|
228139
|
+
if (this.controlStatus === 'update') {
|
|
228140
|
+
var updateNode = this.getUpdateNodeValue();
|
|
227506
228141
|
|
|
227507
|
-
|
|
227508
|
-
|
|
227509
|
-
|
|
228142
|
+
if (this.styleObjectArray[this.expressStyle] === 1) {
|
|
228143
|
+
var nodes = updateNode;
|
|
228144
|
+
var regNumber = /^[0-9]*$/; // 数字校验
|
|
227510
228145
|
|
|
227511
|
-
|
|
228146
|
+
var menoPauseAge = nodes[3];
|
|
227512
228147
|
|
|
227513
|
-
|
|
227514
|
-
|
|
228148
|
+
if (!regNumber.test(menoPauseAge) && menoPauseAge) {
|
|
228149
|
+
this.isUseDate = true;
|
|
227515
228150
|
|
|
227516
|
-
|
|
227517
|
-
|
|
227518
|
-
|
|
227519
|
-
|
|
227520
|
-
|
|
227521
|
-
|
|
227522
|
-
}
|
|
228151
|
+
if (menoPauseAge.indexOf('-') !== -1) {
|
|
228152
|
+
this.useDateFormat = 'yyyy-MM-dd';
|
|
228153
|
+
} else if (menoPauseAge.indexOf('/') !== -1) {
|
|
228154
|
+
this.useDateFormat = 'yyyy/MM/dd';
|
|
228155
|
+
} else if (menoPauseAge.indexOf('年') !== -1) {
|
|
228156
|
+
this.useDateFormat = 'yyyy年MM月dd日';
|
|
227523
228157
|
}
|
|
228158
|
+
}
|
|
227524
228159
|
|
|
227525
|
-
|
|
227526
|
-
|
|
227527
|
-
|
|
227528
|
-
|
|
227529
|
-
|
|
227530
|
-
|
|
227531
|
-
|
|
227532
|
-
|
|
228160
|
+
this.menstrualHistory = {
|
|
228161
|
+
menseDays: nodes[0] ? nodes[0].replace('天', '') : '',
|
|
228162
|
+
cycleDays: nodes[1] ? nodes[1].replace('天', '') : '',
|
|
228163
|
+
menarcheAge: nodes[2] ? nodes[2].replace('岁', '') : '',
|
|
228164
|
+
menoPauseAge: menoPauseAge
|
|
228165
|
+
};
|
|
228166
|
+
} else if (this.styleObjectArray[this.expressStyle] === 2) {
|
|
228167
|
+
var _nodes = updateNode;
|
|
227533
228168
|
|
|
227534
|
-
|
|
228169
|
+
var _ref = (0,toConsumableArray/* default */.Z)(_nodes);
|
|
227535
228170
|
|
|
227536
|
-
|
|
227537
|
-
|
|
227538
|
-
|
|
227539
|
-
|
|
227540
|
-
|
|
227541
|
-
|
|
227542
|
-
|
|
227543
|
-
|
|
227544
|
-
|
|
227545
|
-
|
|
227546
|
-
|
|
228171
|
+
this.style567.value1 = _ref[0];
|
|
228172
|
+
this.style567.value2 = _ref[1];
|
|
228173
|
+
this.style567.value3 = _ref[2];
|
|
228174
|
+
this.style567.value4 = _ref[3];
|
|
228175
|
+
this.style567.value5 = _ref[4];
|
|
228176
|
+
this.style567.value6 = _ref[5];
|
|
228177
|
+
this.style567.value7 = _ref[6];
|
|
228178
|
+
this.style567.value8 = _ref[7];
|
|
228179
|
+
this.style567.value9 = _ref[8];
|
|
228180
|
+
} else if (this.styleObjectArray[this.expressStyle] === 3) {
|
|
228181
|
+
var _nodes2 = updateNode;
|
|
227547
228182
|
|
|
227548
|
-
|
|
228183
|
+
var _ref2 = (0,toConsumableArray/* default */.Z)(_nodes2);
|
|
227549
228184
|
|
|
227550
|
-
|
|
227551
|
-
|
|
227552
|
-
|
|
227553
|
-
|
|
227554
|
-
}
|
|
228185
|
+
this.style89.topLeft = _ref2[0];
|
|
228186
|
+
this.style89.topRight = _ref2[1];
|
|
228187
|
+
this.style89.bottomLeft = _ref2[2];
|
|
228188
|
+
this.style89.bottomRight = _ref2[3];
|
|
227555
228189
|
}
|
|
227556
228190
|
}
|
|
227557
|
-
},
|
|
227558
|
-
|
|
227559
|
-
|
|
228191
|
+
},
|
|
228192
|
+
methods: {
|
|
228193
|
+
useDateChange: function useDateChange() {
|
|
227560
228194
|
if (this.isUseDate) {
|
|
227561
228195
|
this.menstrualHistory = _objectSpread2(_objectSpread2({}, this.menstrualHistory), {}, {
|
|
227562
|
-
menoPauseAge:
|
|
228196
|
+
menoPauseAge: ''
|
|
227563
228197
|
});
|
|
227564
228198
|
} else {
|
|
227565
228199
|
this.menstrualHistory = _objectSpread2(_objectSpread2({}, this.menstrualHistory), {}, {
|
|
227566
|
-
menoPauseAge:
|
|
228200
|
+
menoPauseAge: '52'
|
|
227567
228201
|
});
|
|
227568
228202
|
}
|
|
227569
|
-
}
|
|
227570
|
-
|
|
227571
|
-
key: "dateFormatChange",
|
|
227572
|
-
value: function dateFormatChange() {
|
|
228203
|
+
},
|
|
228204
|
+
dateFormatChange: function dateFormatChange() {
|
|
227573
228205
|
if (this.menstrualHistory.menoPauseAge) {
|
|
227574
228206
|
this.menstrualHistory = _objectSpread2(_objectSpread2({}, this.menstrualHistory), {}, {
|
|
227575
228207
|
menoPauseAge: (0,util/* dateFormat */.vc)(this.menstrualHistory.menoPauseAge, this.useDateFormat)
|
|
227576
228208
|
});
|
|
227577
228209
|
}
|
|
227578
|
-
}
|
|
227579
|
-
|
|
227580
|
-
key: "reset",
|
|
227581
|
-
value: function reset() {
|
|
228210
|
+
},
|
|
228211
|
+
reset: function reset() {
|
|
227582
228212
|
this.style89 = {
|
|
227583
228213
|
topLeft: [],
|
|
227584
228214
|
topRight: [],
|
|
227585
228215
|
bottomLeft: [],
|
|
227586
228216
|
bottomRight: []
|
|
227587
228217
|
};
|
|
227588
|
-
}
|
|
228218
|
+
},
|
|
228219
|
+
|
|
227589
228220
|
/** 全选 */
|
|
228221
|
+
all: function all() {
|
|
228222
|
+
if (this.expressStyle === 'style8') this.style89 = Object.assign({}, this.style8);
|
|
228223
|
+
if (this.expressStyle === 'style9') this.style89 = Object.assign({}, this.style9);
|
|
228224
|
+
},
|
|
227590
228225
|
|
|
227591
|
-
}, {
|
|
227592
|
-
key: "all",
|
|
227593
|
-
value: function all() {
|
|
227594
|
-
if (this.expressStyle === "style8") this.style89 = Object.assign({}, this.style8);
|
|
227595
|
-
if (this.expressStyle === "style9") this.style89 = Object.assign({}, this.style9);
|
|
227596
|
-
}
|
|
227597
228226
|
/** 反选 */
|
|
228227
|
+
reverse: function reverse() {
|
|
228228
|
+
this.reverseOrSort('reverse');
|
|
228229
|
+
},
|
|
227598
228230
|
|
|
227599
|
-
}, {
|
|
227600
|
-
key: "reverse",
|
|
227601
|
-
value: function reverse() {
|
|
227602
|
-
this.reverseOrSort("reverse");
|
|
227603
|
-
}
|
|
227604
228231
|
/** 提交前需要对选中值进行排序操作 */
|
|
227605
|
-
|
|
227606
|
-
|
|
227607
|
-
|
|
227608
|
-
|
|
227609
|
-
this
|
|
227610
|
-
}
|
|
227611
|
-
}, {
|
|
227612
|
-
key: "reverseOrSort",
|
|
227613
|
-
value: function reverseOrSort(type) {
|
|
227614
|
-
var _this2 = this;
|
|
228232
|
+
sureSort: function sureSort() {
|
|
228233
|
+
this.reverseOrSort('sort');
|
|
228234
|
+
},
|
|
228235
|
+
reverseOrSort: function reverseOrSort(type) {
|
|
228236
|
+
var _this = this;
|
|
227615
228237
|
|
|
227616
228238
|
var styles = {
|
|
227617
228239
|
topLeft: [],
|
|
@@ -227619,25 +228241,25 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227619
228241
|
bottomLeft: [],
|
|
227620
228242
|
bottomRight: []
|
|
227621
228243
|
};
|
|
227622
|
-
var arr;
|
|
228244
|
+
var arr = [];
|
|
227623
228245
|
|
|
227624
|
-
if (this.expressStyle ===
|
|
228246
|
+
if (this.expressStyle === 'style8') {
|
|
227625
228247
|
arr = Object.assign({}, this.style8);
|
|
227626
|
-
} else if (this.expressStyle ===
|
|
228248
|
+
} else if (this.expressStyle === 'style9') {
|
|
227627
228249
|
arr = Object.assign({}, this.style9);
|
|
227628
228250
|
}
|
|
227629
228251
|
|
|
227630
228252
|
Object.keys(this.style89).map(function (v) {
|
|
227631
228253
|
arr[v].map(function (m) {
|
|
227632
|
-
if (type ===
|
|
227633
|
-
if (!
|
|
228254
|
+
if (type === 'reverse') {
|
|
228255
|
+
if (!_this.style89[v].includes(m)) {
|
|
227634
228256
|
styles[v].push(m);
|
|
227635
228257
|
}
|
|
227636
|
-
} else if (type ===
|
|
227637
|
-
if (
|
|
228258
|
+
} else if (type === 'sort') {
|
|
228259
|
+
if (_this.style89[v].includes(m)) {
|
|
227638
228260
|
styles[v].push(m);
|
|
227639
228261
|
} else {
|
|
227640
|
-
styles[v].push(
|
|
228262
|
+
styles[v].push('');
|
|
227641
228263
|
}
|
|
227642
228264
|
}
|
|
227643
228265
|
|
|
@@ -227645,61 +228267,56 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227645
228267
|
});
|
|
227646
228268
|
});
|
|
227647
228269
|
this.style89 = Object.assign({}, styles);
|
|
227648
|
-
}
|
|
227649
|
-
|
|
227650
|
-
key: "objectToArray",
|
|
227651
|
-
value: function objectToArray(obj) {
|
|
228270
|
+
},
|
|
228271
|
+
objectToArray: function objectToArray(obj) {
|
|
227652
228272
|
var arr = [];
|
|
227653
228273
|
Object.keys(obj).forEach(function (v) {
|
|
227654
228274
|
arr.push(obj[v]);
|
|
227655
228275
|
});
|
|
227656
228276
|
return arr;
|
|
227657
|
-
}
|
|
228277
|
+
},
|
|
228278
|
+
|
|
227658
228279
|
/** 取消 */
|
|
228280
|
+
cancel: function cancel() {
|
|
228281
|
+
this.animationClassNames = 'control-modal-contents express-dialog animation-out';
|
|
228282
|
+
this.$emit('closed');
|
|
228283
|
+
},
|
|
227659
228284
|
|
|
227660
|
-
}, {
|
|
227661
|
-
key: "cancel",
|
|
227662
|
-
value: function cancel() {
|
|
227663
|
-
this.animationClassNames = "control-modal-contents express-dialog animation-out";
|
|
227664
|
-
this.$emit("closed");
|
|
227665
|
-
}
|
|
227666
228285
|
/** 确认提交 */
|
|
227667
|
-
|
|
227668
|
-
|
|
227669
|
-
key: "sure",
|
|
227670
|
-
value: function sure() {
|
|
227671
|
-
if (this.expressStyle === "" || this.expressStyle === "style1" || this.expressStyle === "style2" || this.expressStyle === "style3" || this.expressStyle === "style4") {
|
|
228286
|
+
sure: function sure() {
|
|
228287
|
+
if (this.expressStyle === '' || this.expressStyle === 'style1' || this.expressStyle === 'style2' || this.expressStyle === 'style3' || this.expressStyle === 'style4') {
|
|
227672
228288
|
var reg = /^[\u2E80-\u9FFF]+$/; // 中文校验
|
|
227673
228289
|
|
|
227674
228290
|
if (!reg.test(this.menstrualHistory.menseDays)) {
|
|
227675
|
-
this.menstrualHistory.menseDays = this.menstrualHistory.menseDays +
|
|
228291
|
+
this.menstrualHistory.menseDays = this.menstrualHistory.menseDays + '天';
|
|
227676
228292
|
}
|
|
227677
228293
|
|
|
227678
228294
|
if (!reg.test(this.menstrualHistory.cycleDays)) {
|
|
227679
|
-
this.menstrualHistory.cycleDays = this.menstrualHistory.cycleDays +
|
|
228295
|
+
this.menstrualHistory.cycleDays = this.menstrualHistory.cycleDays + '天';
|
|
227680
228296
|
}
|
|
227681
228297
|
|
|
227682
228298
|
if (!reg.test(this.menstrualHistory.menarcheAge)) {
|
|
227683
|
-
this.menstrualHistory.menarcheAge = this.menstrualHistory.menarcheAge +
|
|
228299
|
+
this.menstrualHistory.menarcheAge = this.menstrualHistory.menarcheAge + '岁';
|
|
227684
228300
|
}
|
|
227685
228301
|
|
|
227686
228302
|
this.insertMenstrualHistory([this.controlStatus, this.expressStyle].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.menstrualHistory))));
|
|
227687
|
-
} else if (this.expressStyle ===
|
|
228303
|
+
} else if (this.expressStyle === 'style5') {
|
|
227688
228304
|
this.insertPupilMap([this.controlStatus].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.style567))));
|
|
227689
|
-
} else if (this.expressStyle ===
|
|
228305
|
+
} else if (this.expressStyle === 'style6') {
|
|
227690
228306
|
this.insertLightLocation([this.controlStatus].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.style567))));
|
|
227691
|
-
} else if (this.expressStyle ===
|
|
228307
|
+
} else if (this.expressStyle === 'style7') {
|
|
227692
228308
|
this.insertFetalHeartMap([this.controlStatus].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.style567))));
|
|
227693
|
-
} else if (this.expressStyle ===
|
|
227694
|
-
this.reverseOrSort(
|
|
228309
|
+
} else if (this.expressStyle === 'style8') {
|
|
228310
|
+
this.reverseOrSort('sort');
|
|
227695
228311
|
this.insertPermanentTeethMap(this.controlStatus, [this.style89.topLeft, this.style89.topRight, this.style89.bottomLeft, this.style89.bottomRight]);
|
|
227696
|
-
} else if (this.expressStyle ===
|
|
227697
|
-
this.reverseOrSort(
|
|
228312
|
+
} else if (this.expressStyle === 'style9') {
|
|
228313
|
+
this.reverseOrSort('sort');
|
|
227698
228314
|
this.insertPrimaryTeethMap(this.controlStatus, [this.style89.topLeft, this.style89.topRight, this.style89.bottomLeft, this.style89.bottomRight]);
|
|
227699
228315
|
} else {}
|
|
227700
228316
|
|
|
227701
228317
|
this.cancel();
|
|
227702
|
-
}
|
|
228318
|
+
},
|
|
228319
|
+
|
|
227703
228320
|
/**
|
|
227704
228321
|
* 经期史
|
|
227705
228322
|
* @menseDays 经期(天)
|
|
@@ -227707,10 +228324,7 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227707
228324
|
* @menarcheAge 初潮年龄
|
|
227708
228325
|
* @menoPauseAge 绝经年龄
|
|
227709
228326
|
*/
|
|
227710
|
-
|
|
227711
|
-
}, {
|
|
227712
|
-
key: "insertMenstrualHistory",
|
|
227713
|
-
value: function insertMenstrualHistory(val) {
|
|
228327
|
+
insertMenstrualHistory: function insertMenstrualHistory(val) {
|
|
227714
228328
|
var _ref3 = (0,toConsumableArray/* default */.Z)(val),
|
|
227715
228329
|
controlStatus = _ref3[0],
|
|
227716
228330
|
expressStyle = _ref3[1],
|
|
@@ -227719,19 +228333,17 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227719
228333
|
menarcheAge = _ref3[4],
|
|
227720
228334
|
menoPauseAge = _ref3[5];
|
|
227721
228335
|
|
|
227722
|
-
if (controlStatus ===
|
|
228336
|
+
if (controlStatus === 'add') {
|
|
227723
228337
|
this.vueController.insertMenstrualHistory(controlStatus, expressStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
227724
228338
|
} else {
|
|
227725
228339
|
this.vueController.updateMenstrualHistory(expressStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
227726
228340
|
}
|
|
227727
|
-
}
|
|
228341
|
+
},
|
|
228342
|
+
|
|
227728
228343
|
/**
|
|
227729
228344
|
* 瞳孔图
|
|
227730
228345
|
*/
|
|
227731
|
-
|
|
227732
|
-
}, {
|
|
227733
|
-
key: "insertPupilMap",
|
|
227734
|
-
value: function insertPupilMap(val) {
|
|
228346
|
+
insertPupilMap: function insertPupilMap(val) {
|
|
227735
228347
|
var _ref4 = (0,toConsumableArray/* default */.Z)(val),
|
|
227736
228348
|
controlStatus = _ref4[0],
|
|
227737
228349
|
value1 = _ref4[1],
|
|
@@ -227742,19 +228354,17 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227742
228354
|
value6 = _ref4[6],
|
|
227743
228355
|
value7 = _ref4[7];
|
|
227744
228356
|
|
|
227745
|
-
if (controlStatus ===
|
|
228357
|
+
if (controlStatus === 'add') {
|
|
227746
228358
|
this.vueController.insertPupilMap(controlStatus, value1, value2, value3, value4, value5, value6, value7);
|
|
227747
228359
|
} else {
|
|
227748
228360
|
this.vueController.updatePupilMap(value1, value2, value3, value4, value5, value6, value7);
|
|
227749
228361
|
}
|
|
227750
|
-
}
|
|
228362
|
+
},
|
|
228363
|
+
|
|
227751
228364
|
/**
|
|
227752
228365
|
* 光定位图
|
|
227753
228366
|
*/
|
|
227754
|
-
|
|
227755
|
-
}, {
|
|
227756
|
-
key: "insertLightLocation",
|
|
227757
|
-
value: function insertLightLocation(val) {
|
|
228367
|
+
insertLightLocation: function insertLightLocation(val) {
|
|
227758
228368
|
var _ref5 = (0,toConsumableArray/* default */.Z)(val),
|
|
227759
228369
|
controlStatus = _ref5[0],
|
|
227760
228370
|
value1 = _ref5[1],
|
|
@@ -227767,19 +228377,17 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227767
228377
|
value8 = _ref5[8],
|
|
227768
228378
|
value9 = _ref5[9];
|
|
227769
228379
|
|
|
227770
|
-
if (controlStatus ===
|
|
228380
|
+
if (controlStatus === 'add') {
|
|
227771
228381
|
this.vueController.insertLightLocation(controlStatus, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
227772
228382
|
} else {
|
|
227773
228383
|
this.vueController.updateLightLocation(value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
227774
228384
|
}
|
|
227775
|
-
}
|
|
228385
|
+
},
|
|
228386
|
+
|
|
227776
228387
|
/**
|
|
227777
228388
|
* 胎心图
|
|
227778
228389
|
*/
|
|
227779
|
-
|
|
227780
|
-
}, {
|
|
227781
|
-
key: "insertFetalHeartMap",
|
|
227782
|
-
value: function insertFetalHeartMap(val) {
|
|
228390
|
+
insertFetalHeartMap: function insertFetalHeartMap(val) {
|
|
227783
228391
|
var _ref6 = (0,toConsumableArray/* default */.Z)(val),
|
|
227784
228392
|
controlStatus = _ref6[0],
|
|
227785
228393
|
value1 = _ref6[1],
|
|
@@ -227789,71 +228397,54 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227789
228397
|
value5 = _ref6[5],
|
|
227790
228398
|
value6 = _ref6[6];
|
|
227791
228399
|
|
|
227792
|
-
if (controlStatus ===
|
|
228400
|
+
if (controlStatus === 'add') {
|
|
227793
228401
|
this.vueController.insertFetalHeartMap(controlStatus, value1, value2, value3, value4, value5, value6);
|
|
227794
228402
|
} else {
|
|
227795
228403
|
this.vueController.updateFetalHeartMap(value1, value2, value3, value4, value5, value6);
|
|
227796
228404
|
}
|
|
227797
|
-
}
|
|
228405
|
+
},
|
|
228406
|
+
|
|
227798
228407
|
/**
|
|
227799
228408
|
* 恒牙牙位图
|
|
227800
228409
|
*/
|
|
227801
|
-
|
|
227802
|
-
}, {
|
|
227803
|
-
key: "insertPermanentTeethMap",
|
|
227804
|
-
value: function insertPermanentTeethMap(controlStatus, val) {
|
|
228410
|
+
insertPermanentTeethMap: function insertPermanentTeethMap(controlStatus, val) {
|
|
227805
228411
|
var _ref7 = (0,toConsumableArray/* default */.Z)(val),
|
|
227806
228412
|
topLeft = _ref7[0],
|
|
227807
228413
|
topRight = _ref7[1],
|
|
227808
228414
|
bottomLeft = _ref7[2],
|
|
227809
228415
|
bottomRight = _ref7[3];
|
|
227810
228416
|
|
|
227811
|
-
if (controlStatus ===
|
|
228417
|
+
if (controlStatus === 'add') {
|
|
227812
228418
|
this.vueController.insertPermanentTeethMap(controlStatus, topLeft, topRight, bottomLeft, bottomRight);
|
|
227813
228419
|
} else {
|
|
227814
228420
|
this.vueController.updatePermanentTeethMap(topLeft, topRight, bottomLeft, bottomRight);
|
|
227815
228421
|
}
|
|
227816
|
-
}
|
|
228422
|
+
},
|
|
228423
|
+
|
|
227817
228424
|
/**
|
|
227818
228425
|
* 乳牙牙位图
|
|
227819
228426
|
*/
|
|
227820
|
-
|
|
227821
|
-
}, {
|
|
227822
|
-
key: "insertPrimaryTeethMap",
|
|
227823
|
-
value: function insertPrimaryTeethMap(controlStatus, val) {
|
|
228427
|
+
insertPrimaryTeethMap: function insertPrimaryTeethMap(controlStatus, val) {
|
|
227824
228428
|
var _ref8 = (0,toConsumableArray/* default */.Z)(val),
|
|
227825
228429
|
topLeft = _ref8[0],
|
|
227826
228430
|
topRight = _ref8[1],
|
|
227827
228431
|
bottomLeft = _ref8[2],
|
|
227828
228432
|
bottomRight = _ref8[3];
|
|
227829
228433
|
|
|
227830
|
-
if (controlStatus ===
|
|
228434
|
+
if (controlStatus === 'add') {
|
|
227831
228435
|
this.vueController.insertPrimaryTeethMap(controlStatus, topLeft, topRight, bottomLeft, bottomRight);
|
|
227832
228436
|
} else {
|
|
227833
228437
|
this.vueController.updatePrimaryTeethMap(topLeft, topRight, bottomLeft, bottomRight);
|
|
227834
228438
|
}
|
|
227835
228439
|
}
|
|
227836
|
-
}
|
|
227837
|
-
|
|
227838
|
-
|
|
227839
|
-
|
|
227840
|
-
|
|
227841
|
-
__decorate([Prop()], ExpressionForm.prototype, "controlProperty", void 0);
|
|
227842
|
-
|
|
227843
|
-
__decorate([Prop()], ExpressionForm.prototype, "vueController", void 0);
|
|
227844
|
-
|
|
227845
|
-
__decorate([Inject("getUpdateNodeValue")], ExpressionForm.prototype, "getUpdateNodeValue", void 0);
|
|
227846
|
-
|
|
227847
|
-
ExpressionForm = __decorate([vue_class_component_esm({
|
|
227848
|
-
name: "ExpressionForm"
|
|
227849
|
-
})], ExpressionForm);
|
|
227850
|
-
/* harmony default export */ var ExpressionFormvue_type_script_lang_ts_ = (ExpressionForm);
|
|
227851
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=script&lang=ts&
|
|
227852
|
-
/* harmony default export */ var expressionForm_ExpressionFormvue_type_script_lang_ts_ = (ExpressionFormvue_type_script_lang_ts_);
|
|
227853
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=61f32ecc&lang=scss&scoped=true&
|
|
228440
|
+
}
|
|
228441
|
+
});
|
|
228442
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=script&lang=js&
|
|
228443
|
+
/* harmony default export */ var expressionForm_ExpressionFormvue_type_script_lang_js_ = (ExpressionFormvue_type_script_lang_js_);
|
|
228444
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=cc393f74&lang=scss&scoped=true&
|
|
227854
228445
|
// extracted by mini-css-extract-plugin
|
|
227855
228446
|
|
|
227856
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=
|
|
228447
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=cc393f74&lang=scss&scoped=true&
|
|
227857
228448
|
|
|
227858
228449
|
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue
|
|
227859
228450
|
|
|
@@ -227865,20 +228456,20 @@ ExpressionForm = __decorate([vue_class_component_esm({
|
|
|
227865
228456
|
/* normalize component */
|
|
227866
228457
|
|
|
227867
228458
|
var ExpressionForm_component = normalizeComponent(
|
|
227868
|
-
|
|
227869
|
-
|
|
227870
|
-
|
|
228459
|
+
expressionForm_ExpressionFormvue_type_script_lang_js_,
|
|
228460
|
+
ExpressionFormvue_type_template_id_cc393f74_scoped_true_render,
|
|
228461
|
+
ExpressionFormvue_type_template_id_cc393f74_scoped_true_staticRenderFns,
|
|
227871
228462
|
false,
|
|
227872
228463
|
null,
|
|
227873
|
-
"
|
|
228464
|
+
"cc393f74",
|
|
227874
228465
|
null
|
|
227875
228466
|
|
|
227876
228467
|
)
|
|
227877
228468
|
|
|
227878
|
-
/* harmony default export */ var
|
|
228469
|
+
/* harmony default export */ var ExpressionForm = (ExpressionForm_component.exports);
|
|
227879
228470
|
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/index.ts
|
|
227880
228471
|
|
|
227881
|
-
/* harmony default export */ var expressionForm = (
|
|
228472
|
+
/* harmony default export */ var expressionForm = (ExpressionForm);
|
|
227882
228473
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=5067453f&scoped=true&
|
|
227883
228474
|
var RadioCheckboxvue_type_template_id_5067453f_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:'control-modal-contents radio-checkbox-modal ' + _vm.animationClassName,style:({ width: _vm.boxGroup === 1 ? '1060px' : '500px' })},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.controlType === 'RadioBox' ? '单选框' : '复选框')+_vm._s(_vm.boxGroup === 1 ? '组' : ''))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("多项")]),_c('el-radio',{staticStyle:{"margin-left":"30px"},attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("单项")])],1),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.groupName),callback:function ($$v) {_vm.groupName=$$v},expression:"groupName"}})],1):_vm._e(),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item",staticStyle:{"padding":"0"}},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.radioCheckBoxGroup,"height":"300px"}},[_c('el-table-column',{attrs:{"label":"文本","width":"160"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}],null,false,4204152597)}),_c('el-table-column',{attrs:{"label":"提示文本","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(scope.row.tipText),callback:function ($$v) {_vm.$set(scope.row, "tipText", $$v)},expression:"scope.row.tipText"}})]}}],null,false,2396764658)}),_c('el-table-column',{attrs:{"label":"数值","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(scope.row.numericValue),callback:function ($$v) {_vm.$set(scope.row, "numericValue", $$v)},expression:"scope.row.numericValue"}})]}}],null,false,3789767535)}),_c('el-table-column',{attrs:{"label":"内部标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"内部标识符"},model:{value:(scope.row.innerIdentifier),callback:function ($$v) {_vm.$set(scope.row, "innerIdentifier", $$v)},expression:"scope.row.innerIdentifier"}})]}}],null,false,1119088692)}),_c('el-table-column',{attrs:{"label":"数据元标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数据元标识符"},model:{value:(scope.row.dataMetaIdentifier),callback:function ($$v) {_vm.$set(scope.row, "dataMetaIdentifier", $$v)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,false,479119831)}),_c('el-table-column',{attrs:{"label":"表示格式","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"表示格式"},model:{value:(scope.row.identifierFormat),callback:function ($$v) {_vm.$set(scope.row, "identifierFormat", $$v)},expression:"scope.row.identifierFormat"}})]}}],null,false,241604674)}),_c('el-table-column',{attrs:{"label":"默认选中","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(_vm.controlType === 'RadioBox')?_c('el-radio',{staticClass:"table-radio",attrs:{"label":scope.row.id},model:{value:(_vm.tableRadio),callback:function ($$v) {_vm.tableRadio=$$v},expression:"tableRadio"}}):_vm._e(),(_vm.controlType === 'CheckBox')?_c('el-checkbox',{model:{value:(scope.row.isSelected),callback:function ($$v) {_vm.$set(scope.row, "isSelected", $$v)},expression:"scope.row.isSelected"}}):_vm._e()]}}],null,false,1265273066)}),_c('el-table-column',{attrs:{"label":"勾选框左对齐","width":"54"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.boxAlign),callback:function ($$v) {_vm.$set(scope.row, "boxAlign", $$v)},expression:"scope.row.boxAlign"}})]}}],null,false,599012276)}),_c('el-table-column',{attrs:{"label":"内容转文本","width":"54"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isTransToText),callback:function ($$v) {_vm.$set(scope.row, "isTransToText", $$v)},expression:"scope.row.isTransToText"}})]}}],null,false,1354544746)}),_c('el-table-column',{attrs:{"label":"编辑文本","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isEditText),callback:function ($$v) {_vm.$set(scope.row, "isEditText", $$v)},expression:"scope.row.isEditText"}})]}}],null,false,3019799127)}),_c('el-table-column',{attrs:{"label":"可以删除","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isAllowDelete),callback:function ($$v) {_vm.$set(scope.row, "isAllowDelete", $$v)},expression:"scope.row.isAllowDelete"}})]}}],null,false,2012793206)}),_c('el-table-column',{attrs:{"label":"自动回填","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.readType),callback:function ($$v) {_vm.$set(scope.row, "readType", $$v)},expression:"scope.row.readType"}})]}}],null,false,373021414)}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]}}],null,false,1240557165)})],1)],1):_vm._e(),(_vm.boxGroup === 0)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.radioCheckbox.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.radioCheckbox.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "innerIdentifier", $$v)},expression:"radioCheckbox.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.radioCheckbox.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "dataMetaIdentifier", $$v)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.radioCheckbox.identifierFormat),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "identifierFormat", $$v)},expression:"radioCheckbox.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.radioCheckbox.groupName),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "groupName", $$v)},expression:"radioCheckbox.groupName"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},model:{value:(_vm.radioCheckbox.text),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "text", $$v)},expression:"radioCheckbox.text"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(_vm.radioCheckbox.tipText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "tipText", $$v)},expression:"radioCheckbox.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isSelected),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isSelected", $$v)},expression:"radioCheckbox.isSelected"}},[_vm._v("处于选择状态")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isAllowDelete", $$v)},expression:"radioCheckbox.isAllowDelete"}},[_vm._v("可以删除")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.boxAlign),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "boxAlign", $$v)},expression:"radioCheckbox.boxAlign"}},[_vm._v("勾选框左对齐")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.readType),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "readType", $$v)},expression:"radioCheckbox.readType"}},[_vm._v("自动回填")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isTransToText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isTransToText", $$v)},expression:"radioCheckbox.isTransToText"}},[_vm._v("内容转文本")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isEditText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isEditText", $$v)},expression:"radioCheckbox.isEditText"}},[_vm._v("编辑文本")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数值")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(_vm.radioCheckbox.numericValue),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "numericValue", $$v)},expression:"radioCheckbox.numericValue"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("附加数据")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"附加数据"},model:{value:(_vm.radioCheckbox.additionalData),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "additionalData", $$v)},expression:"radioCheckbox.additionalData"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"勾选级联对象"},model:{value:(_vm.radioCheckbox.checkCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "checkCascadeObject", $$v)},expression:"radioCheckbox.checkCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("不勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"不勾选级联对象"},model:{value:(_vm.radioCheckbox.unCheckCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "unCheckCascadeObject", $$v)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)]:_vm._e()],2)]),_c('footer',{staticClass:"ho-modal-footer"},[(_vm.boxGroup === 1)?_c('el-button',{staticStyle:{"transform":"translateX(-352px)"},attrs:{"type":"primary","size":"small"},on:{"click":_vm.addBox}},[_vm._v("增加"+_vm._s(_vm.controlType === 'RadioBox' ? '单选项' : '复选项'))]):_vm._e(),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
227884
228475
|
var RadioCheckboxvue_type_template_id_5067453f_scoped_true_staticRenderFns = []
|
|
@@ -228428,9 +229019,9 @@ var CustomAttributes_component = normalizeComponent(
|
|
|
228428
229019
|
;// CONCATENATED MODULE: ./src/components/controls/customAttributes/index.ts
|
|
228429
229020
|
|
|
228430
229021
|
/* harmony default export */ var customAttributes = (CustomAttributes);
|
|
228431
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dataSource/DataSource.vue?vue&type=template&id=
|
|
228432
|
-
var
|
|
228433
|
-
var
|
|
229022
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dataSource/DataSource.vue?vue&type=template&id=65150f69&
|
|
229023
|
+
var DataSourcevue_type_template_id_65150f69_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dataSourceModal",staticClass:"control-modal-contents data-modal",on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("绑定数据源")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"10px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{model:{value:(_vm.dataSource.dataSourceEnabled),callback:function ($$v) {_vm.$set(_vm.dataSource, "dataSourceEnabled", $$v)},expression:"dataSource.dataSourceEnabled"}},[_vm._v("数据源绑定设置有效")])],1)]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-input',{attrs:{"size":"mini","disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"数据源"},model:{value:(_vm.dataSource.dataSource),callback:function ($$v) {_vm.$set(_vm.dataSource, "dataSource", $$v)},expression:"dataSource.dataSource"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("格式化")]),_c('el-input',{attrs:{"size":"mini","disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"格式化"},model:{value:(_vm.dataSource.format),callback:function ($$v) {_vm.$set(_vm.dataSource, "format", $$v)},expression:"dataSource.format"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("访问路径")]),_c('el-input',{attrs:{"size":"mini","disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"访问路径"},model:{value:(_vm.dataSource.visitPath),callback:function ($$v) {_vm.$set(_vm.dataSource, "visitPath", $$v)},expression:"dataSource.visitPath"}})],1),_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{attrs:{"disabled":!_vm.dataSource.dataSourceEnabled},model:{value:(_vm.dataSource.isReadOnly),callback:function ($$v) {_vm.$set(_vm.dataSource, "isReadOnly", $$v)},expression:"dataSource.isReadOnly"}},[_vm._v("只读")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{attrs:{"disabled":!_vm.dataSource.dataSourceEnabled},model:{value:(_vm.dataSource.autoUpdate),callback:function ($$v) {_vm.$set(_vm.dataSource, "autoUpdate", $$v)},expression:"dataSource.autoUpdate"}},[_vm._v("自动更新,当加载文档或者数据源发生改变时自动更新数值")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("执行状态")]),_c('el-select',{staticStyle:{"text-align":"left"},attrs:{"disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"请选择","size":"mini"},model:{value:(_vm.dataSource.executeStatus),callback:function ($$v) {_vm.$set(_vm.dataSource, "executeStatus", $$v)},expression:"dataSource.executeStatus"}},[_c('el-option',{attrs:{"label":"总是执行","value":0}}),_c('el-option',{attrs:{"label":"只执行一次","value":1}}),_c('el-option',{attrs:{"label":"不执行","value":2}})],1)],1)])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229024
|
+
var DataSourcevue_type_template_id_65150f69_staticRenderFns = []
|
|
228434
229025
|
|
|
228435
229026
|
|
|
228436
229027
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dataSource/DataSource.vue?vue&type=script&lang=js&
|
|
@@ -228491,7 +229082,7 @@ var DataSourcevue_type_template_id_4c4cfc34_staticRenderFns = []
|
|
|
228491
229082
|
|
|
228492
229083
|
|
|
228493
229084
|
/* harmony default export */ var DataSourcevue_type_script_lang_js_ = ({
|
|
228494
|
-
name:
|
|
229085
|
+
name: 'DataSourceDialog',
|
|
228495
229086
|
props: {},
|
|
228496
229087
|
inject: ['getDataSource', 'setIsDataSource', 'setDataSource'],
|
|
228497
229088
|
data: function data() {
|
|
@@ -228552,8 +229143,8 @@ var DataSourcevue_type_template_id_4c4cfc34_staticRenderFns = []
|
|
|
228552
229143
|
|
|
228553
229144
|
var DataSource_component = normalizeComponent(
|
|
228554
229145
|
dataSource_DataSourcevue_type_script_lang_js_,
|
|
228555
|
-
|
|
228556
|
-
|
|
229146
|
+
DataSourcevue_type_template_id_65150f69_render,
|
|
229147
|
+
DataSourcevue_type_template_id_65150f69_staticRenderFns,
|
|
228557
229148
|
false,
|
|
228558
229149
|
null,
|
|
228559
229150
|
null,
|
|
@@ -228945,9 +229536,9 @@ var PageInfoes_component = normalizeComponent(
|
|
|
228945
229536
|
;// CONCATENATED MODULE: ./src/components/controls/pageInfoes/index.ts
|
|
228946
229537
|
|
|
228947
229538
|
/* harmony default export */ var pageInfoes = (pageInfoes_PageInfoes);
|
|
228948
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/delimiter/Delimiter.vue?vue&type=template&id=
|
|
228949
|
-
var
|
|
228950
|
-
var
|
|
229539
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/delimiter/Delimiter.vue?vue&type=template&id=228db06f&
|
|
229540
|
+
var Delimitervue_type_template_id_228db06f_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("分割符")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("宽度")]),_c('el-input-number',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini","precision":2,"min":0,"controls":false},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("px")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("颜色")]),_c('ho-color-picker',{model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:"color"}})],1)])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertDelimiter}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229541
|
+
var Delimitervue_type_template_id_228db06f_staticRenderFns = []
|
|
228951
229542
|
|
|
228952
229543
|
|
|
228953
229544
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/colorPicker/HoColorPicker.vue?vue&type=template&id=6f7e38c3&scoped=true&
|
|
@@ -229120,64 +229711,68 @@ var HoColorPicker_component = normalizeComponent(
|
|
|
229120
229711
|
)
|
|
229121
229712
|
|
|
229122
229713
|
/* harmony default export */ var HoColorPicker = (HoColorPicker_component.exports);
|
|
229123
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
229124
|
-
|
|
229125
|
-
|
|
229126
|
-
|
|
229127
|
-
|
|
229128
|
-
|
|
229129
|
-
|
|
229130
|
-
|
|
229131
|
-
|
|
229132
|
-
|
|
229133
|
-
|
|
229134
|
-
|
|
229135
|
-
|
|
229136
|
-
|
|
229137
|
-
|
|
229138
|
-
|
|
229139
|
-
|
|
229140
|
-
|
|
229141
|
-
|
|
229142
|
-
|
|
229143
|
-
|
|
229144
|
-
|
|
229145
|
-
|
|
229146
|
-
|
|
229147
|
-
|
|
229148
|
-
|
|
229149
|
-
|
|
229150
|
-
*/
|
|
229151
|
-
|
|
229714
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/delimiter/Delimiter.vue?vue&type=script&lang=js&
|
|
229715
|
+
//
|
|
229716
|
+
//
|
|
229717
|
+
//
|
|
229718
|
+
//
|
|
229719
|
+
//
|
|
229720
|
+
//
|
|
229721
|
+
//
|
|
229722
|
+
//
|
|
229723
|
+
//
|
|
229724
|
+
//
|
|
229725
|
+
//
|
|
229726
|
+
//
|
|
229727
|
+
//
|
|
229728
|
+
//
|
|
229729
|
+
//
|
|
229730
|
+
//
|
|
229731
|
+
//
|
|
229732
|
+
//
|
|
229733
|
+
//
|
|
229734
|
+
//
|
|
229735
|
+
//
|
|
229736
|
+
//
|
|
229737
|
+
//
|
|
229738
|
+
//
|
|
229739
|
+
//
|
|
229740
|
+
//
|
|
229152
229741
|
|
|
229153
|
-
|
|
229154
|
-
|
|
229155
|
-
|
|
229742
|
+
/* harmony default export */ var Delimitervue_type_script_lang_js_ = ({
|
|
229743
|
+
name: 'Delimiter',
|
|
229744
|
+
components: {
|
|
229745
|
+
HoColorPicker: HoColorPicker
|
|
229746
|
+
},
|
|
229747
|
+
data: function data() {
|
|
229748
|
+
return {
|
|
229749
|
+
width: 1,
|
|
229750
|
+
color: '#000',
|
|
229751
|
+
animationClassNames: 'control-modal-contents delimiter-modal animation-in'
|
|
229752
|
+
};
|
|
229753
|
+
},
|
|
229754
|
+
props: {
|
|
229755
|
+
vueController: {
|
|
229756
|
+
type: Object,
|
|
229757
|
+
required: true
|
|
229758
|
+
}
|
|
229759
|
+
},
|
|
229760
|
+
methods: {
|
|
229761
|
+
/**
|
|
229762
|
+
* 插入分割福
|
|
229763
|
+
*/
|
|
229764
|
+
insertDelimiter: function insertDelimiter() {
|
|
229156
229765
|
this.vueController.insertSeparateChar(this.width, this.color);
|
|
229157
229766
|
this.handleClose();
|
|
229767
|
+
},
|
|
229768
|
+
handleClose: function handleClose() {
|
|
229769
|
+
this.animationClassNames = 'control-modal-contents delimiter-modal animation-out';
|
|
229770
|
+
this.$emit('closed');
|
|
229158
229771
|
}
|
|
229159
|
-
}, {
|
|
229160
|
-
key: "handleClose",
|
|
229161
|
-
value: function handleClose() {
|
|
229162
|
-
this.animationClassNames = "control-modal-contents delimiter-modal animation-out";
|
|
229163
|
-
this.$emit("closed");
|
|
229164
|
-
}
|
|
229165
|
-
}]);
|
|
229166
|
-
|
|
229167
|
-
return Delimiter;
|
|
229168
|
-
}((external_commonjs_vue_commonjs2_vue_root_Vue_default()));
|
|
229169
|
-
|
|
229170
|
-
__decorate([Prop()], Delimiter.prototype, "vueController", void 0);
|
|
229171
|
-
|
|
229172
|
-
Delimiter = __decorate([vue_class_component_esm({
|
|
229173
|
-
name: "Delimiter",
|
|
229174
|
-
components: {
|
|
229175
|
-
HoColorPicker: HoColorPicker
|
|
229176
229772
|
}
|
|
229177
|
-
})
|
|
229178
|
-
|
|
229179
|
-
|
|
229180
|
-
/* harmony default export */ var delimiter_Delimitervue_type_script_lang_ts_ = (Delimitervue_type_script_lang_ts_);
|
|
229773
|
+
});
|
|
229774
|
+
;// CONCATENATED MODULE: ./src/components/controls/delimiter/Delimiter.vue?vue&type=script&lang=js&
|
|
229775
|
+
/* harmony default export */ var delimiter_Delimitervue_type_script_lang_js_ = (Delimitervue_type_script_lang_js_);
|
|
229181
229776
|
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/delimiter/Delimiter.vue?vue&type=style&index=0&lang=scss&
|
|
229182
229777
|
// extracted by mini-css-extract-plugin
|
|
229183
229778
|
|
|
@@ -229193,9 +229788,9 @@ Delimiter = __decorate([vue_class_component_esm({
|
|
|
229193
229788
|
/* normalize component */
|
|
229194
229789
|
|
|
229195
229790
|
var Delimiter_component = normalizeComponent(
|
|
229196
|
-
|
|
229197
|
-
|
|
229198
|
-
|
|
229791
|
+
delimiter_Delimitervue_type_script_lang_js_,
|
|
229792
|
+
Delimitervue_type_template_id_228db06f_render,
|
|
229793
|
+
Delimitervue_type_template_id_228db06f_staticRenderFns,
|
|
229199
229794
|
false,
|
|
229200
229795
|
null,
|
|
229201
229796
|
null,
|
|
@@ -229203,13 +229798,13 @@ var Delimiter_component = normalizeComponent(
|
|
|
229203
229798
|
|
|
229204
229799
|
)
|
|
229205
229800
|
|
|
229206
|
-
/* harmony default export */ var
|
|
229801
|
+
/* harmony default export */ var Delimiter = (Delimiter_component.exports);
|
|
229207
229802
|
;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
229208
229803
|
|
|
229209
|
-
/* harmony default export */ var delimiter = (
|
|
229210
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=
|
|
229211
|
-
var
|
|
229212
|
-
var
|
|
229804
|
+
/* harmony default export */ var delimiter = (Delimiter);
|
|
229805
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=38b332be&
|
|
229806
|
+
var Signvue_type_template_id_38b332be_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("签名类型")]),_c('div',{staticStyle:{"flex":"1"}},[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("患者签名")]),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("医生签名")]),_c('el-radio',{attrs:{"label":3},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义医生签名")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义CA签名")])],1)]),(_vm.signType >= 3)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数: 医师签名 / "),_c('br'),_vm._v(" 勾选参数: / 医师签名")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1)]:_vm._e()],2),(_vm.signType >= 3)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229807
|
+
var Signvue_type_template_id_38b332be_staticRenderFns = []
|
|
229213
229808
|
|
|
229214
229809
|
|
|
229215
229810
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=ts&
|
|
@@ -229244,7 +229839,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229244
229839
|
|
|
229245
229840
|
_this = _super.apply(this, arguments);
|
|
229246
229841
|
_this.height = 20;
|
|
229247
|
-
_this.name =
|
|
229842
|
+
_this.name = '';
|
|
229248
229843
|
_this.signType = 0;
|
|
229249
229844
|
_this.signFormat = '<医师姓名>';
|
|
229250
229845
|
_this.connectMode = '换行';
|
|
@@ -229253,7 +229848,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229253
229848
|
_this.signTimeFormat = 'yyyy-MM-DD HH:mm';
|
|
229254
229849
|
_this.customFormatContent = '';
|
|
229255
229850
|
_this.customSignFormatList = [];
|
|
229256
|
-
_this.animationClassNames =
|
|
229851
|
+
_this.animationClassNames = 'control-modal-contents sign-modal animation-in';
|
|
229257
229852
|
return _this;
|
|
229258
229853
|
} // 创建自定义签名格式
|
|
229259
229854
|
|
|
@@ -229261,7 +229856,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229261
229856
|
(0,createClass/* default */.Z)(Sign, [{
|
|
229262
229857
|
key: "createSignFormat",
|
|
229263
229858
|
value: function createSignFormat() {
|
|
229264
|
-
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,
|
|
229859
|
+
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
229265
229860
|
var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
|
|
229266
229861
|
this.$elMessage.closeAll();
|
|
229267
229862
|
|
|
@@ -229276,7 +229871,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229276
229871
|
return;
|
|
229277
229872
|
}
|
|
229278
229873
|
|
|
229279
|
-
var format = [
|
|
229874
|
+
var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
|
|
229280
229875
|
this.customSignFormatList.forEach(function (v) {
|
|
229281
229876
|
return format.push(v.value);
|
|
229282
229877
|
});
|
|
@@ -229285,7 +229880,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229285
229880
|
return v === customFormat.slice(1, customFormat.length - 1);
|
|
229286
229881
|
}).length > 0) {
|
|
229287
229882
|
this.$elMessage.warning({
|
|
229288
|
-
message:
|
|
229883
|
+
message: '签名格式已存在无需插入,已自动选中',
|
|
229289
229884
|
duration: 3000,
|
|
229290
229885
|
offset: 120
|
|
229291
229886
|
});
|
|
@@ -229301,17 +229896,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229301
229896
|
}, {
|
|
229302
229897
|
key: "insertSign",
|
|
229303
229898
|
value: function insertSign() {
|
|
229304
|
-
if (this.signType ===
|
|
229305
|
-
//
|
|
229306
|
-
|
|
229307
|
-
|
|
229308
|
-
|
|
229309
|
-
|
|
229310
|
-
// this.allowEditSignTime)
|
|
229311
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
|
|
229312
|
-
} else {
|
|
229313
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
|
|
229314
|
-
);
|
|
229899
|
+
if (this.signType === 3) {
|
|
229900
|
+
// 自定义多人签名
|
|
229901
|
+
this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
|
|
229902
|
+
} else {
|
|
229903
|
+
var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
|
|
229904
|
+
this.vueController.insertEmptySignNode(name, 0, '', '', '', undefined, undefined, this.signType);
|
|
229315
229905
|
}
|
|
229316
229906
|
|
|
229317
229907
|
this.handleClose();
|
|
@@ -229319,8 +229909,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229319
229909
|
}, {
|
|
229320
229910
|
key: "handleClose",
|
|
229321
229911
|
value: function handleClose() {
|
|
229322
|
-
this.animationClassNames =
|
|
229323
|
-
this.$emit(
|
|
229912
|
+
this.animationClassNames = 'control-modal-contents sign-modal animation-out';
|
|
229913
|
+
this.$emit('closed');
|
|
229324
229914
|
}
|
|
229325
229915
|
}]);
|
|
229326
229916
|
|
|
@@ -229332,7 +229922,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
|
|
|
229332
229922
|
__decorate([Prop()], Sign.prototype, "controlStatus", void 0);
|
|
229333
229923
|
|
|
229334
229924
|
Sign = __decorate([vue_class_component_esm({
|
|
229335
|
-
name:
|
|
229925
|
+
name: 'Sign',
|
|
229336
229926
|
components: {
|
|
229337
229927
|
HoColorPicker: HoColorPicker
|
|
229338
229928
|
}
|
|
@@ -229356,8 +229946,8 @@ Sign = __decorate([vue_class_component_esm({
|
|
|
229356
229946
|
|
|
229357
229947
|
var Sign_component = normalizeComponent(
|
|
229358
229948
|
sign_Signvue_type_script_lang_ts_,
|
|
229359
|
-
|
|
229360
|
-
|
|
229949
|
+
Signvue_type_template_id_38b332be_render,
|
|
229950
|
+
Signvue_type_template_id_38b332be_staticRenderFns,
|
|
229361
229951
|
false,
|
|
229362
229952
|
null,
|
|
229363
229953
|
null,
|
|
@@ -229369,9 +229959,9 @@ var Sign_component = normalizeComponent(
|
|
|
229369
229959
|
;// CONCATENATED MODULE: ./src/components/controls/sign/index.ts
|
|
229370
229960
|
|
|
229371
229961
|
/* harmony default export */ var sign = (sign_Sign);
|
|
229372
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=
|
|
229373
|
-
var
|
|
229374
|
-
var
|
|
229962
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=40b59089&scoped=true&
|
|
229963
|
+
var UploadImageDialogvue_type_template_id_40b59089_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("上传图片")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("上传图片")]),_c('el-upload',{ref:"upload",staticClass:"upload-image",attrs:{"action":"","file-list":_vm.fileList,"show-file-list":false,"auto-upload":false,"on-change":_vm.uploadImage,"accept":"image/*"}},[_c('el-button',{attrs:{"size":"small"}},[_vm._v("选择图片")])],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("修改")]),_c('el-radio',{attrs:{"label":"w"},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:"radio"}},[_vm._v("宽度")]),_c('el-radio',{attrs:{"label":"h"},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:"radio"}},[_vm._v("高度")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("图片宽度")]),_c('el-input',{attrs:{"disabled":_vm.radio == 'h',"size":"mini","placeholder":"设置插入后的图片宽度","maxlength":"20"},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("图片高度")]),_c('el-input',{attrs:{"disabled":_vm.radio == 'w',"size":"mini","placeholder":"设置插入后的图片高度","maxlength":"20"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),(_vm.uploadImageParams && _vm.uploadImageParams.uploadUrl)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("图片格式")]),_c('el-radio',{attrs:{"label":false},model:{value:(_vm.upload),callback:function ($$v) {_vm.upload=$$v},expression:"upload"}},[_vm._v("生成base64")]),_c('el-radio',{attrs:{"label":true},model:{value:(_vm.upload),callback:function ($$v) {_vm.upload=$$v},expression:"upload"}},[_vm._v("上传到服务器")])],1)]:_vm._e(),(!_vm.upload)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.compress),callback:function ($$v) {_vm.compress=$$v},expression:"compress"}},[_vm._v("是否按缩放后尺寸压缩图片")])],1),_c('li',{staticStyle:{"text-align":"left","padding":"0 0 0 10px","line-height":"20px"}},[_vm._v("图片初始大小:"+_vm._s((_vm.uploadImageUrl.length / 1024).toFixed(2))+" kb")]),_c('li',{staticStyle:{"text-align":"left","padding":"0 0 0 10px","line-height":"20px"}},[_vm._v("压缩后图片大小:"+_vm._s((_vm.imageUrl.length / 1024).toFixed(2))+" kb")]),_c('li',{staticStyle:{"text-align":"left","padding":"0 0 0 10px","line-height":"20px"}},[_vm._v("图片默认压缩为 jpeg 格式")])]:_vm._e(),_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{staticClass:"view-image"},[(_vm.imageUrl)?_c('img',{ref:"image",attrs:{"width":this.width,"src":_vm.imageUrl}}):_vm._e()])])],2)]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","loading":_vm.uploadLoading,"type":"primary"},on:{"click":_vm.sure}},[_vm._v(_vm._s(_vm.uploadLoading ? "正在上传。。。" : "上传"))]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229964
|
+
var UploadImageDialogvue_type_template_id_40b59089_scoped_true_staticRenderFns = []
|
|
229375
229965
|
|
|
229376
229966
|
|
|
229377
229967
|
;// CONCATENATED MODULE: ./src/plugins/ajax.ts
|
|
@@ -229706,10 +230296,10 @@ UploadImageDialog = __decorate([vue_class_component_esm({
|
|
|
229706
230296
|
/* harmony default export */ var UploadImageDialogvue_type_script_lang_ts_ = (UploadImageDialog);
|
|
229707
230297
|
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=script&lang=ts&
|
|
229708
230298
|
/* harmony default export */ var upload_UploadImageDialogvue_type_script_lang_ts_ = (UploadImageDialogvue_type_script_lang_ts_);
|
|
229709
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
230299
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=40b59089&lang=scss&scoped=true&
|
|
229710
230300
|
// extracted by mini-css-extract-plugin
|
|
229711
230301
|
|
|
229712
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
230302
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=40b59089&lang=scss&scoped=true&
|
|
229713
230303
|
|
|
229714
230304
|
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue
|
|
229715
230305
|
|
|
@@ -229722,19 +230312,19 @@ UploadImageDialog = __decorate([vue_class_component_esm({
|
|
|
229722
230312
|
|
|
229723
230313
|
var UploadImageDialog_component = normalizeComponent(
|
|
229724
230314
|
upload_UploadImageDialogvue_type_script_lang_ts_,
|
|
229725
|
-
|
|
229726
|
-
|
|
230315
|
+
UploadImageDialogvue_type_template_id_40b59089_scoped_true_render,
|
|
230316
|
+
UploadImageDialogvue_type_template_id_40b59089_scoped_true_staticRenderFns,
|
|
229727
230317
|
false,
|
|
229728
230318
|
null,
|
|
229729
|
-
"
|
|
230319
|
+
"40b59089",
|
|
229730
230320
|
null
|
|
229731
230321
|
|
|
229732
230322
|
)
|
|
229733
230323
|
|
|
229734
230324
|
/* harmony default export */ var upload_UploadImageDialog = (UploadImageDialog_component.exports);
|
|
229735
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=template&id=
|
|
229736
|
-
var
|
|
229737
|
-
var
|
|
230325
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=template&id=4c7ad5a1&scoped=true&
|
|
230326
|
+
var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"canvas-image",class:_vm.animationClassNames,style:({ width: _vm.canvasWidth + 250 + 'px', height: _vm.canvasHeight + 150 + 'px' })},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("编辑图片")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",attrs:{"id":"loon_canvas_editor"}},[_c('div',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"loon_canvas_editor_box"}},[_c('canvas',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"image_canvas","width":_vm.canvasWidth,"height":_vm.canvasHeight}}),(_vm.tool === 0 && _vm.textAreaStyle.width)?_c('textarea',{ref:"textCanvas",style:(_vm.textAreaStyle),attrs:{"id":"text_canvas"},on:{"blur":function($event){return _vm.drawText()}}}):_vm._e()])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"type":_vm.tool === 0 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 0}}},[_vm._v("文字")]),_c('el-button',{attrs:{"type":_vm.tool === 1 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 1}}},[_vm._v("画笔")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasUndo()}}},[_vm._v("撤销")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasRedo()}}},[_vm._v("恢复")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small","loading":_vm.uploadLoading,"type":"primary"},on:{"click":_vm.sure}},[_vm._v("保存")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
230327
|
+
var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns = []
|
|
229738
230328
|
|
|
229739
230329
|
|
|
229740
230330
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
@@ -229827,33 +230417,44 @@ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns =
|
|
|
229827
230417
|
this.context = this.canvas.getContext('2d');
|
|
229828
230418
|
this.listenDrawLine();
|
|
229829
230419
|
var updateNode = this.getImageNode();
|
|
229830
|
-
var image = new Image();
|
|
229831
|
-
image.src = updateNode.imageDataBase64String;
|
|
229832
230420
|
|
|
229833
|
-
|
|
229834
|
-
|
|
229835
|
-
|
|
230421
|
+
if (updateNode === null) {} else {
|
|
230422
|
+
var image = new Image();
|
|
230423
|
+
image.src = updateNode.imageDataBase64String;
|
|
229836
230424
|
|
|
229837
|
-
|
|
230425
|
+
image.onload = function () {
|
|
230426
|
+
_this.canvasWidth = image.naturalWidth;
|
|
230427
|
+
_this.canvasHeight = image.naturalHeight;
|
|
229838
230428
|
|
|
229839
|
-
|
|
229840
|
-
_this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
230429
|
+
_this.context.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
229841
230430
|
|
|
229842
|
-
|
|
229843
|
-
|
|
229844
|
-
|
|
230431
|
+
setTimeout(function () {
|
|
230432
|
+
_this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
230433
|
+
|
|
230434
|
+
_this.canvasDraw();
|
|
230435
|
+
}, 0);
|
|
230436
|
+
};
|
|
230437
|
+
}
|
|
229845
230438
|
},
|
|
229846
230439
|
methods: {
|
|
229847
230440
|
getImageNode: function getImageNode() {
|
|
229848
|
-
var value;
|
|
229849
230441
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
229850
230442
|
var curOnDragNode = hoEditorFactory.docTree.curOnDragNode;
|
|
229851
230443
|
|
|
229852
230444
|
if (curOnDragNode instanceof ImageNode/* ImageNode */.H) {
|
|
229853
|
-
|
|
230445
|
+
return curOnDragNode;
|
|
230446
|
+
} else {
|
|
230447
|
+
var _hoEditorFactory$vueC;
|
|
230448
|
+
|
|
230449
|
+
var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
230450
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
230451
|
+
|
|
230452
|
+
if (node instanceof ImageNode/* ImageNode */.H) {
|
|
230453
|
+
return node;
|
|
230454
|
+
}
|
|
229854
230455
|
}
|
|
229855
230456
|
|
|
229856
|
-
return
|
|
230457
|
+
return null;
|
|
229857
230458
|
},
|
|
229858
230459
|
listenDrawLine: function listenDrawLine() {
|
|
229859
230460
|
this.canvas.addEventListener('mousedown', this.down);
|
|
@@ -230035,10 +230636,10 @@ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns =
|
|
|
230035
230636
|
});
|
|
230036
230637
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
230037
230638
|
/* harmony default export */ var upload_CanvasImageDialogvue_type_script_lang_js_ = (CanvasImageDialogvue_type_script_lang_js_);
|
|
230038
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=
|
|
230639
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=4c7ad5a1&lang=scss&scoped=true&
|
|
230039
230640
|
// extracted by mini-css-extract-plugin
|
|
230040
230641
|
|
|
230041
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=
|
|
230642
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=4c7ad5a1&lang=scss&scoped=true&
|
|
230042
230643
|
|
|
230043
230644
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
|
|
230044
230645
|
|
|
@@ -230051,11 +230652,11 @@ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns =
|
|
|
230051
230652
|
|
|
230052
230653
|
var CanvasImageDialog_component = normalizeComponent(
|
|
230053
230654
|
upload_CanvasImageDialogvue_type_script_lang_js_,
|
|
230054
|
-
|
|
230055
|
-
|
|
230655
|
+
CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_render,
|
|
230656
|
+
CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns,
|
|
230056
230657
|
false,
|
|
230057
230658
|
null,
|
|
230058
|
-
"
|
|
230659
|
+
"4c7ad5a1",
|
|
230059
230660
|
null
|
|
230060
230661
|
|
|
230061
230662
|
)
|
|
@@ -231811,121 +232412,100 @@ var TableCellProperty_component = normalizeComponent(
|
|
|
231811
232412
|
|
|
231812
232413
|
|
|
231813
232414
|
|
|
231814
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
231815
|
-
|
|
231816
|
-
|
|
231817
|
-
|
|
231818
|
-
|
|
231819
|
-
|
|
231820
|
-
|
|
231821
|
-
|
|
231822
|
-
|
|
231823
|
-
|
|
231824
|
-
|
|
231825
|
-
|
|
231826
|
-
|
|
231827
|
-
|
|
231828
|
-
|
|
231829
|
-
|
|
231830
|
-
|
|
231831
|
-
|
|
231832
|
-
|
|
231833
|
-
|
|
231834
|
-
|
|
231835
|
-
|
|
231836
|
-
|
|
231837
|
-
|
|
232415
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=script&lang=js&
|
|
232416
|
+
//
|
|
232417
|
+
//
|
|
232418
|
+
//
|
|
232419
|
+
//
|
|
232420
|
+
//
|
|
232421
|
+
//
|
|
232422
|
+
//
|
|
232423
|
+
//
|
|
232424
|
+
//
|
|
232425
|
+
//
|
|
232426
|
+
//
|
|
232427
|
+
//
|
|
232428
|
+
//
|
|
232429
|
+
//
|
|
232430
|
+
//
|
|
232431
|
+
//
|
|
232432
|
+
//
|
|
232433
|
+
//
|
|
232434
|
+
//
|
|
232435
|
+
//
|
|
232436
|
+
//
|
|
232437
|
+
//
|
|
232438
|
+
//
|
|
232439
|
+
//
|
|
232440
|
+
//
|
|
232441
|
+
//
|
|
232442
|
+
//
|
|
232443
|
+
//
|
|
232444
|
+
//
|
|
232445
|
+
//
|
|
232446
|
+
//
|
|
232447
|
+
//
|
|
232448
|
+
//
|
|
232449
|
+
//
|
|
232450
|
+
//
|
|
232451
|
+
//
|
|
232452
|
+
//
|
|
232453
|
+
//
|
|
232454
|
+
//
|
|
232455
|
+
//
|
|
232456
|
+
//
|
|
232457
|
+
//
|
|
232458
|
+
//
|
|
232459
|
+
//
|
|
232460
|
+
//
|
|
232461
|
+
//
|
|
232462
|
+
//
|
|
232463
|
+
//
|
|
232464
|
+
//
|
|
232465
|
+
//
|
|
232466
|
+
//
|
|
232467
|
+
//
|
|
232468
|
+
//
|
|
232469
|
+
//
|
|
232470
|
+
//
|
|
232471
|
+
//
|
|
232472
|
+
//
|
|
232473
|
+
//
|
|
232474
|
+
//
|
|
232475
|
+
//
|
|
232476
|
+
//
|
|
232477
|
+
//
|
|
232478
|
+
//
|
|
232479
|
+
//
|
|
232480
|
+
//
|
|
232481
|
+
//
|
|
232482
|
+
//
|
|
232483
|
+
//
|
|
232484
|
+
//
|
|
232485
|
+
//
|
|
231838
232486
|
|
|
231839
232487
|
|
|
231840
232488
|
|
|
231841
232489
|
|
|
231842
232490
|
|
|
231843
232491
|
|
|
231844
|
-
var ControlModal = /*#__PURE__*/function (_Mixins) {
|
|
231845
|
-
(0,inherits/* default */.Z)(ControlModal, _Mixins);
|
|
231846
232492
|
|
|
231847
|
-
var _super = (0,createSuper/* default */.Z)(ControlModal);
|
|
231848
232493
|
|
|
231849
|
-
function ControlModal() {
|
|
231850
|
-
var _this;
|
|
231851
232494
|
|
|
231852
|
-
(0,classCallCheck/* default */.Z)(this, ControlModal);
|
|
231853
232495
|
|
|
231854
|
-
_this = _super.apply(this, arguments);
|
|
231855
|
-
_this.names = {
|
|
231856
|
-
style1: '经期史',
|
|
231857
|
-
style5: '瞳孔图',
|
|
231858
|
-
style6: '光定位图',
|
|
231859
|
-
style7: '胎心图',
|
|
231860
|
-
style8: '恒牙牙位图',
|
|
231861
|
-
style9: '乳牙牙位图'
|
|
231862
|
-
};
|
|
231863
|
-
return _this;
|
|
231864
|
-
}
|
|
231865
232496
|
|
|
231866
|
-
(0,createClass/* default */.Z)(ControlModal, [{
|
|
231867
|
-
key: "controlType",
|
|
231868
|
-
get: function get() {
|
|
231869
|
-
return this.controlProperty.controlType;
|
|
231870
|
-
}
|
|
231871
|
-
}, {
|
|
231872
|
-
key: "controlStatus",
|
|
231873
|
-
get: function get() {
|
|
231874
|
-
return this.controlProperty.controlStatus;
|
|
231875
|
-
}
|
|
231876
|
-
}, {
|
|
231877
|
-
key: "expressStyle",
|
|
231878
|
-
get: function get() {
|
|
231879
|
-
return this.controlProperty.expressStyle;
|
|
231880
|
-
}
|
|
231881
|
-
}, {
|
|
231882
|
-
key: "vueController",
|
|
231883
|
-
get: function get() {
|
|
231884
|
-
return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId).vueController;
|
|
231885
|
-
}
|
|
231886
|
-
}, {
|
|
231887
|
-
key: "insertComments",
|
|
231888
|
-
value: function insertComments(content) {
|
|
231889
|
-
this.$emit('insertComments', content);
|
|
231890
|
-
}
|
|
231891
|
-
}, {
|
|
231892
|
-
key: "handleClose",
|
|
231893
|
-
value: function handleClose() {
|
|
231894
|
-
if (this.isDataSource || this.isCustoms || this.isListStyle || this.controlType === 'find') return false;
|
|
231895
|
-
this.$emit('closeControlmodal');
|
|
231896
|
-
}
|
|
231897
|
-
/**
|
|
231898
|
-
* 弹窗拖动处理
|
|
231899
|
-
* title点击触发拖动事件 其他区域正常点击不触发拖动事件
|
|
231900
|
-
*/
|
|
231901
232497
|
|
|
231902
|
-
}, {
|
|
231903
|
-
key: "toolModalDown",
|
|
231904
|
-
value: function toolModalDown(e) {
|
|
231905
|
-
(0,util/* toolModalMove */.tC)(e, this.toolModals, 'modal-title');
|
|
231906
|
-
}
|
|
231907
|
-
}]);
|
|
231908
232498
|
|
|
231909
|
-
return ControlModal;
|
|
231910
|
-
}(mixins(AppendToBodyMixins));
|
|
231911
232499
|
|
|
231912
|
-
__decorate([Ref()], ControlModal.prototype, "toolModals", void 0);
|
|
231913
232500
|
|
|
231914
|
-
__decorate([Prop()], ControlModal.prototype, "controlProperty", void 0);
|
|
231915
232501
|
|
|
231916
|
-
__decorate([Prop()], ControlModal.prototype, "isDataSource", void 0);
|
|
231917
232502
|
|
|
231918
|
-
__decorate([Prop()], ControlModal.prototype, "isCustoms", void 0);
|
|
231919
232503
|
|
|
231920
|
-
__decorate([Prop()], ControlModal.prototype, "isTableProperty", void 0);
|
|
231921
232504
|
|
|
231922
|
-
__decorate([Prop()], ControlModal.prototype, "isListStyle", void 0);
|
|
231923
232505
|
|
|
231924
|
-
__decorate([Prop()], ControlModal.prototype, "hoEditorFactoryId", void 0);
|
|
231925
232506
|
|
|
231926
|
-
__decorate([Prop()], ControlModal.prototype, "uploadImageParams", void 0);
|
|
231927
232507
|
|
|
231928
|
-
|
|
232508
|
+
/* harmony default export */ var ControlModalvue_type_script_lang_js_ = ({
|
|
231929
232509
|
name: 'ControlModal',
|
|
231930
232510
|
components: {
|
|
231931
232511
|
ExpressionForm: expressionForm,
|
|
@@ -231951,11 +232531,143 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231951
232531
|
UploadImageDialog: upload_UploadImageDialog,
|
|
231952
232532
|
CanvasImageDialog: CanvasImageDialog,
|
|
231953
232533
|
ParagraphDialog: ParagraphDialog
|
|
232534
|
+
},
|
|
232535
|
+
mixins: [AppendToBodyMixins],
|
|
232536
|
+
props: {
|
|
232537
|
+
controlProperty: {
|
|
232538
|
+
type: Object,
|
|
232539
|
+
required: true
|
|
232540
|
+
},
|
|
232541
|
+
isDataSource: {
|
|
232542
|
+
type: Boolean,
|
|
232543
|
+
required: true
|
|
232544
|
+
},
|
|
232545
|
+
isCustoms: {
|
|
232546
|
+
type: Boolean,
|
|
232547
|
+
required: true
|
|
232548
|
+
},
|
|
232549
|
+
isTableProperty: {
|
|
232550
|
+
type: Boolean,
|
|
232551
|
+
required: true
|
|
232552
|
+
},
|
|
232553
|
+
isListStyle: {
|
|
232554
|
+
type: Boolean,
|
|
232555
|
+
required: true
|
|
232556
|
+
},
|
|
232557
|
+
hoEditorFactoryId: {
|
|
232558
|
+
type: String,
|
|
232559
|
+
required: true
|
|
232560
|
+
},
|
|
232561
|
+
uploadImageParams: {
|
|
232562
|
+
type: Object
|
|
232563
|
+
}
|
|
232564
|
+
},
|
|
232565
|
+
data: function data() {
|
|
232566
|
+
return {
|
|
232567
|
+
toolModals: null,
|
|
232568
|
+
names: {
|
|
232569
|
+
style1: '经期史',
|
|
232570
|
+
style5: '瞳孔图',
|
|
232571
|
+
style6: '光定位图',
|
|
232572
|
+
style7: '胎心图',
|
|
232573
|
+
style8: '恒牙牙位图',
|
|
232574
|
+
style9: '乳牙牙位图'
|
|
232575
|
+
}
|
|
232576
|
+
};
|
|
232577
|
+
},
|
|
232578
|
+
computed: {
|
|
232579
|
+
controlType: function controlType() {
|
|
232580
|
+
return this.controlProperty.controlType;
|
|
232581
|
+
},
|
|
232582
|
+
controlStatus: function controlStatus() {
|
|
232583
|
+
return this.controlProperty.controlStatus;
|
|
232584
|
+
},
|
|
232585
|
+
expressStyle: function expressStyle() {
|
|
232586
|
+
return this.controlProperty.expressStyle;
|
|
232587
|
+
},
|
|
232588
|
+
vueController: function vueController() {
|
|
232589
|
+
return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId).vueController;
|
|
232590
|
+
}
|
|
232591
|
+
},
|
|
232592
|
+
mounted: function mounted() {
|
|
232593
|
+
this.toolModals = this.$refs.toolModals;
|
|
232594
|
+
},
|
|
232595
|
+
methods: {
|
|
232596
|
+
insertComments: function insertComments(content) {
|
|
232597
|
+
this.$emit('insertComments', content);
|
|
232598
|
+
},
|
|
232599
|
+
handleClose: function handleClose() {
|
|
232600
|
+
if (this.isDataSource || this.isCustoms || this.isListStyle || this.controlType === 'find') return false;
|
|
232601
|
+
this.$emit('closeControlmodal');
|
|
232602
|
+
},
|
|
232603
|
+
|
|
232604
|
+
/**
|
|
232605
|
+
* 弹窗拖动处理
|
|
232606
|
+
* title点击触发拖动事件 其他区域正常点击不触发拖动事件
|
|
232607
|
+
*/
|
|
232608
|
+
toolModalDown: function toolModalDown(e) {
|
|
232609
|
+
(0,util/* toolModalMove */.tC)(e, this.toolModals, 'modal-title');
|
|
232610
|
+
}
|
|
231954
232611
|
}
|
|
231955
|
-
})
|
|
231956
|
-
|
|
231957
|
-
|
|
231958
|
-
|
|
232612
|
+
}); // @Component({
|
|
232613
|
+
// name: 'ControlModal',
|
|
232614
|
+
// components: {
|
|
232615
|
+
// ExpressionForm,
|
|
232616
|
+
// DateDialog,
|
|
232617
|
+
// Barcode,
|
|
232618
|
+
// QrCode,
|
|
232619
|
+
// Sign,
|
|
232620
|
+
// TextDialog,
|
|
232621
|
+
// CustomAttributes,
|
|
232622
|
+
// DataSourceDialog,
|
|
232623
|
+
// RadioCheckbox,
|
|
232624
|
+
// SelectDialog,
|
|
232625
|
+
// ListSource,
|
|
232626
|
+
// Gestation,
|
|
232627
|
+
// TableProperty,
|
|
232628
|
+
// TableRowProperty,
|
|
232629
|
+
// TableCellProperty,
|
|
232630
|
+
// TableColProperty,
|
|
232631
|
+
// WaterSetDialog,
|
|
232632
|
+
// CommentDialog,
|
|
232633
|
+
// PageInfoes,
|
|
232634
|
+
// Delimiter,
|
|
232635
|
+
// UploadImageDialog,
|
|
232636
|
+
// CanvasImageDialog,
|
|
232637
|
+
// ParagraphDialog,
|
|
232638
|
+
// },
|
|
232639
|
+
// })
|
|
232640
|
+
// export default class ControlModal extends Mixins(AppendToBodyMixins) {
|
|
232641
|
+
// @Ref() readonly toolModals!: HTMLDivElement;
|
|
232642
|
+
// get controlType() {
|
|
232643
|
+
// return this.controlProperty.controlType;
|
|
232644
|
+
// }
|
|
232645
|
+
// get controlStatus() {
|
|
232646
|
+
// return this.controlProperty.controlStatus;
|
|
232647
|
+
// }
|
|
232648
|
+
// get expressStyle(): string {
|
|
232649
|
+
// return this.controlProperty.expressStyle;
|
|
232650
|
+
// }
|
|
232651
|
+
// get vueController() {
|
|
232652
|
+
// return HOEditorFactorys.instance().getFactory(this.hoEditorFactoryId).vueController;
|
|
232653
|
+
// }
|
|
232654
|
+
// public insertComments(content: any) {
|
|
232655
|
+
// this.$emit('insertComments', content);
|
|
232656
|
+
// }
|
|
232657
|
+
// public handleClose() {
|
|
232658
|
+
// if (this.isDataSource || this.isCustoms || this.isListStyle || this.controlType === 'find') return false;
|
|
232659
|
+
// this.$emit('closeControlmodal');
|
|
232660
|
+
// }
|
|
232661
|
+
// /**
|
|
232662
|
+
// * 弹窗拖动处理
|
|
232663
|
+
// * title点击触发拖动事件 其他区域正常点击不触发拖动事件
|
|
232664
|
+
// */
|
|
232665
|
+
// public toolModalDown(e: MouseEvent) {
|
|
232666
|
+
// toolModalMove(e, this.toolModals, 'modal-title');
|
|
232667
|
+
// }
|
|
232668
|
+
// }
|
|
232669
|
+
;// CONCATENATED MODULE: ./src/components/controls/ControlModal.vue?vue&type=script&lang=js&
|
|
232670
|
+
/* harmony default export */ var controls_ControlModalvue_type_script_lang_js_ = (ControlModalvue_type_script_lang_js_);
|
|
231959
232671
|
;// CONCATENATED MODULE: ./src/components/controls/ControlModal.vue
|
|
231960
232672
|
|
|
231961
232673
|
|
|
@@ -231965,9 +232677,9 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231965
232677
|
/* normalize component */
|
|
231966
232678
|
;
|
|
231967
232679
|
var ControlModal_component = normalizeComponent(
|
|
231968
|
-
|
|
231969
|
-
|
|
231970
|
-
|
|
232680
|
+
controls_ControlModalvue_type_script_lang_js_,
|
|
232681
|
+
ControlModalvue_type_template_id_1b898d58_render,
|
|
232682
|
+
ControlModalvue_type_template_id_1b898d58_staticRenderFns,
|
|
231971
232683
|
false,
|
|
231972
232684
|
null,
|
|
231973
232685
|
null,
|
|
@@ -231975,62 +232687,88 @@ var ControlModal_component = normalizeComponent(
|
|
|
231975
232687
|
|
|
231976
232688
|
)
|
|
231977
232689
|
|
|
231978
|
-
/* harmony default export */ var
|
|
231979
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/findReplace/FindReplace.vue?vue&type=template&id=
|
|
231980
|
-
var
|
|
231981
|
-
var
|
|
231982
|
-
|
|
231983
|
-
|
|
231984
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/findReplace/FindReplace.vue?vue&type=script&lang=ts&
|
|
232690
|
+
/* harmony default export */ var ControlModal = (ControlModal_component.exports);
|
|
232691
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/findReplace/FindReplace.vue?vue&type=template&id=15d96f32&
|
|
232692
|
+
var FindReplacevue_type_template_id_15d96f32_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"findModal",class:_vm.animationClassNames,on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("查找替换")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("查找内容")]),_c('el-input',{attrs:{"type":"text","size":"mini"},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.toFind.apply(null, arguments)}},model:{value:(_vm.findContent),callback:function ($$v) {_vm.findContent=$$v},expression:"findContent"}})],1),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"label"},[_c('el-checkbox',{on:{"change":_vm.switchTypes},model:{value:(_vm.switchType),callback:function ($$v) {_vm.switchType=$$v},expression:"switchType"}},[_vm._v("替换内容")])],1),_c('el-input',{attrs:{"disabled":!_vm.switchType,"type":"text","size":"mini"},model:{value:(_vm.replaceCentent),callback:function ($$v) {_vm.replaceCentent=$$v},expression:"replaceCentent"}})],1),_c('li',{staticClass:"control-item"},[_c('el-radio',{attrs:{"label":0},model:{value:(_vm.direction),callback:function ($$v) {_vm.direction=$$v},expression:"direction"}},[_vm._v("向下")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.direction),callback:function ($$v) {_vm.direction=$$v},expression:"direction"}},[_vm._v("向上")]),_c('div',{staticStyle:{"margin-left":"30px"}},[_c('el-checkbox',{model:{value:(_vm.matchCase),callback:function ($$v) {_vm.matchCase=$$v},expression:"matchCase"}},[_vm._v("区分大小写")])],1)],1)])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"disabled":_vm.findContent === '',"size":"mini"},on:{"click":_vm.toFind}},[_vm._v("查找")]),_c('el-button',{attrs:{"disabled":_vm.findContent === '' || !_vm.switchType,"size":"mini"},on:{"click":_vm.toReplace}},[_vm._v("替换")]),_c('el-button',{attrs:{"disabled":_vm.findContent === '' || !_vm.switchType,"size":"mini"},on:{"click":_vm.toReplaceAll}},[_vm._v("全部替换")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1)])}
|
|
232693
|
+
var FindReplacevue_type_template_id_15d96f32_staticRenderFns = []
|
|
231985
232694
|
|
|
231986
232695
|
|
|
232696
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/findReplace/FindReplace.vue?vue&type=script&lang=js&
|
|
231987
232697
|
|
|
231988
232698
|
|
|
231989
232699
|
|
|
231990
232700
|
|
|
232701
|
+
//
|
|
232702
|
+
//
|
|
232703
|
+
//
|
|
232704
|
+
//
|
|
232705
|
+
//
|
|
232706
|
+
//
|
|
232707
|
+
//
|
|
232708
|
+
//
|
|
232709
|
+
//
|
|
232710
|
+
//
|
|
232711
|
+
//
|
|
232712
|
+
//
|
|
232713
|
+
//
|
|
232714
|
+
//
|
|
232715
|
+
//
|
|
232716
|
+
//
|
|
232717
|
+
//
|
|
232718
|
+
//
|
|
232719
|
+
//
|
|
232720
|
+
//
|
|
232721
|
+
//
|
|
232722
|
+
//
|
|
232723
|
+
//
|
|
232724
|
+
//
|
|
232725
|
+
//
|
|
232726
|
+
//
|
|
232727
|
+
//
|
|
232728
|
+
//
|
|
232729
|
+
//
|
|
232730
|
+
//
|
|
232731
|
+
//
|
|
232732
|
+
//
|
|
231991
232733
|
|
|
231992
232734
|
|
|
231993
232735
|
|
|
231994
|
-
|
|
231995
|
-
|
|
231996
|
-
|
|
231997
|
-
|
|
231998
|
-
|
|
231999
|
-
|
|
232000
|
-
|
|
232001
|
-
|
|
232002
|
-
|
|
232003
|
-
|
|
232004
|
-
function
|
|
232005
|
-
|
|
232006
|
-
|
|
232007
|
-
|
|
232008
|
-
|
|
232009
|
-
|
|
232010
|
-
|
|
232011
|
-
|
|
232012
|
-
|
|
232013
|
-
|
|
232014
|
-
|
|
232015
|
-
|
|
232016
|
-
|
|
232017
|
-
|
|
232018
|
-
|
|
232019
|
-
|
|
232020
|
-
}
|
|
232021
|
-
|
|
232022
|
-
|
|
232023
|
-
key: "switchTypes",
|
|
232024
|
-
value: function switchTypes(val) {
|
|
232736
|
+
/* harmony default export */ var FindReplacevue_type_script_lang_js_ = ({
|
|
232737
|
+
name: 'FindReplaceDialog',
|
|
232738
|
+
mixins: [AppendToBodyMixins],
|
|
232739
|
+
Inject: ['setControlFindType'],
|
|
232740
|
+
props: {
|
|
232741
|
+
hoEditorFactoryId: {
|
|
232742
|
+
type: String,
|
|
232743
|
+
required: true
|
|
232744
|
+
}
|
|
232745
|
+
},
|
|
232746
|
+
data: function data() {
|
|
232747
|
+
return {
|
|
232748
|
+
switchType: false,
|
|
232749
|
+
operType: 'find',
|
|
232750
|
+
findContent: '',
|
|
232751
|
+
replaceCentent: '',
|
|
232752
|
+
direction: 0,
|
|
232753
|
+
matchCase: true,
|
|
232754
|
+
path: '',
|
|
232755
|
+
callbackCount: 0,
|
|
232756
|
+
animationClassNames: 'control-modal-contents find-modal animation-in',
|
|
232757
|
+
findModal: null
|
|
232758
|
+
};
|
|
232759
|
+
},
|
|
232760
|
+
mounted: function mounted() {
|
|
232761
|
+
this.findModal = this.$refs.findModal;
|
|
232762
|
+
},
|
|
232763
|
+
methods: {
|
|
232764
|
+
switchTypes: function switchTypes(val) {
|
|
232025
232765
|
if (val) {
|
|
232026
|
-
this.operType =
|
|
232766
|
+
this.operType = 'replace';
|
|
232027
232767
|
} else {
|
|
232028
|
-
this.operType =
|
|
232768
|
+
this.operType = 'find';
|
|
232029
232769
|
}
|
|
232030
|
-
}
|
|
232031
|
-
|
|
232032
|
-
key: "toFind",
|
|
232033
|
-
value: function toFind(callback) {
|
|
232770
|
+
},
|
|
232771
|
+
toFind: function toFind(callback) {
|
|
232034
232772
|
if (!this.findContent) return;
|
|
232035
232773
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
232036
232774
|
this.path = hoEditorFactory.vueController.find(this.findContent, this.direction, this.matchCase);
|
|
@@ -232038,13 +232776,11 @@ var FindReplaceDialog = /*#__PURE__*/function (_Mixins) {
|
|
|
232038
232776
|
if (callback instanceof Function) {
|
|
232039
232777
|
callback();
|
|
232040
232778
|
}
|
|
232041
|
-
}
|
|
232042
|
-
|
|
232043
|
-
key: "toReplace",
|
|
232044
|
-
value: function toReplace() {
|
|
232779
|
+
},
|
|
232780
|
+
toReplace: function toReplace() {
|
|
232045
232781
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
232046
232782
|
|
|
232047
|
-
if (this.path ===
|
|
232783
|
+
if (this.path === '' || this.path === '-1') {
|
|
232048
232784
|
if (this.callbackCount <= 2) {
|
|
232049
232785
|
this.callbackCount++;
|
|
232050
232786
|
this.toFind(this.toReplace);
|
|
@@ -232054,50 +232790,31 @@ var FindReplaceDialog = /*#__PURE__*/function (_Mixins) {
|
|
|
232054
232790
|
} else {
|
|
232055
232791
|
hoEditorFactory.vueController.replace(this.findContent, this.replaceCentent, this.path, 1, this.direction, this.matchCase);
|
|
232056
232792
|
this.callbackCount = 0;
|
|
232057
|
-
this.path =
|
|
232793
|
+
this.path = '';
|
|
232058
232794
|
}
|
|
232059
|
-
}
|
|
232060
|
-
|
|
232061
|
-
key: "toReplaceAll",
|
|
232062
|
-
value: function toReplaceAll() {
|
|
232795
|
+
},
|
|
232796
|
+
toReplaceAll: function toReplaceAll() {
|
|
232063
232797
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
232064
|
-
hoEditorFactory.vueController.replace(this.findContent, this.replaceCentent,
|
|
232798
|
+
hoEditorFactory.vueController.replace(this.findContent, this.replaceCentent, '', 0, 1, this.matchCase);
|
|
232065
232799
|
this.callbackCount = 0;
|
|
232066
|
-
this.path =
|
|
232067
|
-
}
|
|
232068
|
-
|
|
232069
|
-
|
|
232070
|
-
value: function handleClose() {
|
|
232071
|
-
var _this2 = this;
|
|
232800
|
+
this.path = '';
|
|
232801
|
+
},
|
|
232802
|
+
handleClose: function handleClose() {
|
|
232803
|
+
var _this = this;
|
|
232072
232804
|
|
|
232073
232805
|
this.animationClassNames = 'control-modal-contents find-modal animation-out';
|
|
232074
232806
|
window.clearTimeout();
|
|
232075
232807
|
setTimeout(function () {
|
|
232076
|
-
|
|
232808
|
+
_this.setControlFindType('');
|
|
232077
232809
|
}, 100);
|
|
232810
|
+
},
|
|
232811
|
+
toolModalDown: function toolModalDown(e) {
|
|
232812
|
+
(0,util/* toolModalMove */.tC)(e, this.findModal, 'modal-title');
|
|
232078
232813
|
}
|
|
232079
|
-
}
|
|
232080
|
-
|
|
232081
|
-
|
|
232082
|
-
|
|
232083
|
-
}
|
|
232084
|
-
}]);
|
|
232085
|
-
|
|
232086
|
-
return FindReplaceDialog;
|
|
232087
|
-
}(mixins(AppendToBodyMixins));
|
|
232088
|
-
|
|
232089
|
-
__decorate([Ref()], FindReplaceDialog.prototype, "findModal", void 0);
|
|
232090
|
-
|
|
232091
|
-
__decorate([Prop()], FindReplaceDialog.prototype, "hoEditorFactoryId", void 0);
|
|
232092
|
-
|
|
232093
|
-
__decorate([Inject("setControlFindType")], FindReplaceDialog.prototype, "setControlFindType", void 0);
|
|
232094
|
-
|
|
232095
|
-
FindReplaceDialog = __decorate([vue_class_component_esm({
|
|
232096
|
-
name: "FindReplaceDialog"
|
|
232097
|
-
})], FindReplaceDialog);
|
|
232098
|
-
/* harmony default export */ var FindReplacevue_type_script_lang_ts_ = (FindReplaceDialog);
|
|
232099
|
-
;// CONCATENATED MODULE: ./src/components/controls/findReplace/FindReplace.vue?vue&type=script&lang=ts&
|
|
232100
|
-
/* harmony default export */ var findReplace_FindReplacevue_type_script_lang_ts_ = (FindReplacevue_type_script_lang_ts_);
|
|
232814
|
+
}
|
|
232815
|
+
});
|
|
232816
|
+
;// CONCATENATED MODULE: ./src/components/controls/findReplace/FindReplace.vue?vue&type=script&lang=js&
|
|
232817
|
+
/* harmony default export */ var findReplace_FindReplacevue_type_script_lang_js_ = (FindReplacevue_type_script_lang_js_);
|
|
232101
232818
|
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/findReplace/FindReplace.vue?vue&type=style&index=0&lang=scss&
|
|
232102
232819
|
// extracted by mini-css-extract-plugin
|
|
232103
232820
|
|
|
@@ -232113,9 +232830,9 @@ FindReplaceDialog = __decorate([vue_class_component_esm({
|
|
|
232113
232830
|
/* normalize component */
|
|
232114
232831
|
|
|
232115
232832
|
var FindReplace_component = normalizeComponent(
|
|
232116
|
-
|
|
232117
|
-
|
|
232118
|
-
|
|
232833
|
+
findReplace_FindReplacevue_type_script_lang_js_,
|
|
232834
|
+
FindReplacevue_type_template_id_15d96f32_render,
|
|
232835
|
+
FindReplacevue_type_template_id_15d96f32_staticRenderFns,
|
|
232119
232836
|
false,
|
|
232120
232837
|
null,
|
|
232121
232838
|
null,
|
|
@@ -233842,7 +234559,7 @@ HoDocs = __decorate([vue_class_component_esm({
|
|
|
233842
234559
|
components: {
|
|
233843
234560
|
HoDoc: components_HoDoc,
|
|
233844
234561
|
HoFooter: components_HoFooter,
|
|
233845
|
-
ControlModal:
|
|
234562
|
+
ControlModal: ControlModal,
|
|
233846
234563
|
FindReplaceDialog: findReplace,
|
|
233847
234564
|
ViewContinuousXml: viewContinuousXml
|
|
233848
234565
|
}
|