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.umd.js
CHANGED
|
@@ -13514,8 +13514,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13514
13514
|
|
|
13515
13515
|
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) {
|
|
13516
13516
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
13517
|
-
|
|
13518
|
-
curRange
|
|
13517
|
+
|
|
13518
|
+
if (curRange.isEmpty && curRange.endPath == firstPath) {
|
|
13519
|
+
var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
13520
|
+
curRange.endPath = lastPath;
|
|
13521
|
+
}
|
|
13519
13522
|
}
|
|
13520
13523
|
|
|
13521
13524
|
if (!curRange.isEmpty) {
|
|
@@ -14071,7 +14074,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14071
14074
|
var preNode = node.previousLeaf();
|
|
14072
14075
|
var nextNode = node.nextLeaf();
|
|
14073
14076
|
|
|
14074
|
-
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)) {
|
|
14077
|
+
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)) {
|
|
14075
14078
|
var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
14076
14079
|
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);
|
|
14077
14080
|
hoEditorFactory.undoService.begin();
|
|
@@ -16781,11 +16784,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16781
16784
|
|
|
16782
16785
|
}, {
|
|
16783
16786
|
key: "insertEmptySignNode",
|
|
16784
|
-
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
16787
|
+
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
16785
16788
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16786
16789
|
var startPath = domRange.startPath;
|
|
16787
16790
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16788
|
-
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); //插入该表达式节点
|
|
16791
|
+
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); //插入该表达式节点
|
|
16789
16792
|
|
|
16790
16793
|
hoEditorFactory.undoService.begin();
|
|
16791
16794
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -16806,7 +16809,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16806
16809
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
16807
16810
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16808
16811
|
var startPath = domRange.startPath;
|
|
16809
|
-
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16812
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(startPath); // if (type == 1 && imgSrc != "" && imgWidth > 0 && parentNode instanceof CellNode) {
|
|
16813
|
+
// const cellWidth = parentNode.drawCell.dWidth;
|
|
16814
|
+
// const cellHeight = parentNode.getCellHeight();
|
|
16815
|
+
// if (cellWidth < imgWidth) {
|
|
16816
|
+
// imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
|
|
16817
|
+
// imgWidth = (cellWidth - 10);
|
|
16818
|
+
// }
|
|
16819
|
+
// }
|
|
16820
|
+
|
|
16810
16821
|
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); //插入该表达式节点
|
|
16811
16822
|
|
|
16812
16823
|
hoEditorFactory.undoService.begin();
|
|
@@ -18487,7 +18498,15 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
18487
18498
|
var indexNode = slib.indexOf(np.node.parentNode);
|
|
18488
18499
|
_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_24__/* .BaseCombineNode.insertChild */ .V.insertChild(np.node.parentNode.parentNode, slib, indexNode + 1, node);
|
|
18489
18500
|
} else {
|
|
18490
|
-
var
|
|
18501
|
+
var childNodes = np.node.parentNode.childNodes;
|
|
18502
|
+
var index = childNodes.indexOf(np.node) + 1;
|
|
18503
|
+
|
|
18504
|
+
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) {
|
|
18505
|
+
if (np.node == childNodes[0]) {
|
|
18506
|
+
childNodes.splice(1, 1);
|
|
18507
|
+
}
|
|
18508
|
+
}
|
|
18509
|
+
|
|
18491
18510
|
_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_24__/* .BaseCombineNode.insertChild */ .V.insertChild(np.node.parentNode, np.node.parentNode.childNodes, index, node);
|
|
18492
18511
|
} // (np.node as BaseCombineNode).insertChild(this.childIndex, this.node);
|
|
18493
18512
|
|
|
@@ -26344,7 +26363,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26344
26363
|
}
|
|
26345
26364
|
}], [{
|
|
26346
26365
|
key: "json2Node",
|
|
26347
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste) {
|
|
26366
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
|
|
26348
26367
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
26349
26368
|
var rowNo = parseInt(json.rowNo);
|
|
26350
26369
|
var colNo = parseInt(json.colNo);
|
|
@@ -26415,7 +26434,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26415
26434
|
cellNode.childNodes[0].styleIndex = Number(item[0].textStyleNo ? item[0].textStyleNo : 0);
|
|
26416
26435
|
|
|
26417
26436
|
for (var j = 1; j < item.length; j++) {
|
|
26418
|
-
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste);
|
|
26437
|
+
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
26419
26438
|
|
|
26420
26439
|
if (convertNode) {
|
|
26421
26440
|
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_36__/* .TextNode */ .R) {
|
|
@@ -26423,7 +26442,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26423
26442
|
cellNode.addChild(convertNode);
|
|
26424
26443
|
}
|
|
26425
26444
|
} else {
|
|
26426
|
-
|
|
26445
|
+
if (isClearSign) {
|
|
26446
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N) {
|
|
26447
|
+
if (convertNode.isTemplate) {
|
|
26448
|
+
cellNode.addChild(convertNode);
|
|
26449
|
+
}
|
|
26450
|
+
} else {
|
|
26451
|
+
cellNode.addChild(convertNode);
|
|
26452
|
+
}
|
|
26453
|
+
} else {
|
|
26454
|
+
cellNode.addChild(convertNode);
|
|
26455
|
+
}
|
|
26427
26456
|
}
|
|
26428
26457
|
}
|
|
26429
26458
|
|
|
@@ -28973,7 +29002,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28973
29002
|
/* 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__);
|
|
28974
29003
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40561);
|
|
28975
29004
|
/* 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__);
|
|
28976
|
-
/* harmony import */ var
|
|
29005
|
+
/* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19459);
|
|
28977
29006
|
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(27356);
|
|
28978
29007
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28831);
|
|
28979
29008
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(92178);
|
|
@@ -28993,8 +29022,8 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28993
29022
|
/*
|
|
28994
29023
|
* @Author: your name
|
|
28995
29024
|
* @Date: 2021-08-11 11:37:11
|
|
28996
|
-
* @LastEditTime:
|
|
28997
|
-
* @LastEditors:
|
|
29025
|
+
* @LastEditTime: 2022-07-19 16:09:57
|
|
29026
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
28998
29027
|
* @Description: In User Settings Edit
|
|
28999
29028
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\LabelNode.ts
|
|
29000
29029
|
*/
|
|
@@ -29048,7 +29077,7 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
29048
29077
|
}
|
|
29049
29078
|
|
|
29050
29079
|
var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
|
|
29051
|
-
var dNode = new
|
|
29080
|
+
var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_6__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
|
|
29052
29081
|
|
|
29053
29082
|
this._drawNodes.push(dNode);
|
|
29054
29083
|
}
|
|
@@ -29080,14 +29109,20 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
29080
29109
|
|
|
29081
29110
|
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) {
|
|
29082
29111
|
//const color = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).option.getColorByLevel(0);
|
|
29112
|
+
for (var i = 0; i < drawNode.children.length; i++) {
|
|
29113
|
+
if (drawNode.children[i].name === "backColor") {
|
|
29114
|
+
drawNode.children.splice(i, 1);
|
|
29115
|
+
}
|
|
29116
|
+
}
|
|
29117
|
+
|
|
29083
29118
|
var backColor = new createjs.Shape();
|
|
29084
29119
|
backColor.graphics.clear().beginFill("#C9CCCD").drawRect(0, -drawNode.dHeight, drawNode.dWidth, drawNode.dHeight + 2);
|
|
29085
29120
|
backColor.name = "backColor";
|
|
29086
29121
|
drawNode.addChildAt(backColor, 0);
|
|
29087
29122
|
} else {
|
|
29088
|
-
for (var
|
|
29089
|
-
if (drawNode.children[
|
|
29090
|
-
drawNode.children.splice(
|
|
29123
|
+
for (var _i = drawNode.children.length - 1; _i >= 0; _i--) {
|
|
29124
|
+
if (drawNode.children[_i].name === "backColor") {
|
|
29125
|
+
drawNode.children.splice(_i, 1);
|
|
29091
29126
|
}
|
|
29092
29127
|
}
|
|
29093
29128
|
}
|
|
@@ -33357,6 +33392,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
33357
33392
|
//const styles = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles;
|
|
33358
33393
|
// const cbStyle = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles[this._styleIndex === -1 ? 0 : this._styleIndex]
|
|
33359
33394
|
// .combineStyle;
|
|
33395
|
+
this._drawNodes.length = 0;
|
|
33360
33396
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
33361
33397
|
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
33362
33398
|
var cbStyle;
|
|
@@ -33874,7 +33910,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33874
33910
|
|
|
33875
33911
|
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);
|
|
33876
33912
|
|
|
33877
|
-
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) {
|
|
33913
|
+
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) {
|
|
33878
33914
|
var _this;
|
|
33879
33915
|
|
|
33880
33916
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
@@ -33918,11 +33954,22 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33918
33954
|
|
|
33919
33955
|
_this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
33920
33956
|
|
|
33957
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
33958
|
+
|
|
33921
33959
|
_this.number = number;
|
|
33922
33960
|
_this._type = type;
|
|
33923
33961
|
_this._signor = signor;
|
|
33924
33962
|
_this._signTime = signTime;
|
|
33925
33963
|
_this._imgSrc = imgSrc;
|
|
33964
|
+
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
33965
|
+
|
|
33966
|
+
if (type == 3) {
|
|
33967
|
+
// 兼容旧的患者签名
|
|
33968
|
+
_this._attribute = 1;
|
|
33969
|
+
} // if(attribute == 1) { // 患者签名修改 type == 3
|
|
33970
|
+
// this._type = 3;
|
|
33971
|
+
// }
|
|
33972
|
+
|
|
33926
33973
|
|
|
33927
33974
|
if (fingerPrintSrc) {
|
|
33928
33975
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -33968,7 +34015,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33968
34015
|
});
|
|
33969
34016
|
};
|
|
33970
34017
|
|
|
33971
|
-
|
|
34018
|
+
if (customProperty) {
|
|
34019
|
+
assignvalue(_this._customProperty, customProperty);
|
|
34020
|
+
}
|
|
33972
34021
|
|
|
33973
34022
|
_this.node2DrawNodeRange(0, 0);
|
|
33974
34023
|
|
|
@@ -34178,6 +34227,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34178
34227
|
this.node2DrawNodeRange(0, 0);
|
|
34179
34228
|
}
|
|
34180
34229
|
}
|
|
34230
|
+
}, {
|
|
34231
|
+
key: "attribute",
|
|
34232
|
+
get: function get() {
|
|
34233
|
+
return this._attribute;
|
|
34234
|
+
},
|
|
34235
|
+
set: function set(value) {
|
|
34236
|
+
if (this._attribute !== value) {
|
|
34237
|
+
this._attribute = value;
|
|
34238
|
+
}
|
|
34239
|
+
}
|
|
34181
34240
|
/**
|
|
34182
34241
|
*
|
|
34183
34242
|
* @param drawTree 绘制树
|
|
@@ -34199,7 +34258,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34199
34258
|
this.styleIndex = 0;
|
|
34200
34259
|
}
|
|
34201
34260
|
|
|
34202
|
-
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);
|
|
34261
|
+
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);
|
|
34203
34262
|
|
|
34204
34263
|
this._drawNodes.push(dNode);
|
|
34205
34264
|
}
|
|
@@ -34233,15 +34292,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34233
34292
|
if (isDisPlay) {
|
|
34234
34293
|
drawNode.alpha = 1;
|
|
34235
34294
|
|
|
34236
|
-
if (this.imgSrc === "") {
|
|
34237
|
-
var color = hoEditorFactory.option.getColorByLevel(
|
|
34295
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34296
|
+
var color = hoEditorFactory.option.getColorByLevel(13);
|
|
34238
34297
|
var backColor = new createjs.Shape();
|
|
34239
34298
|
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
|
|
34240
34299
|
backColor.name = "backColor";
|
|
34241
34300
|
drawNode.addChildAt(backColor, 0);
|
|
34242
34301
|
}
|
|
34243
34302
|
} else {
|
|
34244
|
-
if (this.imgSrc === "") {
|
|
34303
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34245
34304
|
drawNode.alpha = 0;
|
|
34246
34305
|
} else {
|
|
34247
34306
|
for (var i = drawNode.children.length - 1; i >= 0; i--) {
|
|
@@ -34282,7 +34341,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34282
34341
|
isFront: this.isFront,
|
|
34283
34342
|
allowEditSignTime: this.allowEditSignTime,
|
|
34284
34343
|
fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
|
|
34285
|
-
fingerPosition: clearSign ? 0 : this.fingerPosition
|
|
34344
|
+
fingerPosition: clearSign ? 0 : this.fingerPosition,
|
|
34345
|
+
attribute: this.attribute
|
|
34286
34346
|
};
|
|
34287
34347
|
|
|
34288
34348
|
if (isCopy) {
|
|
@@ -34303,14 +34363,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34303
34363
|
}
|
|
34304
34364
|
}], [{
|
|
34305
34365
|
key: "json2Node",
|
|
34306
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
34366
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign) {
|
|
34307
34367
|
//const width = Number(json.width);
|
|
34308
|
-
var number = Number(json.number);
|
|
34309
|
-
var type = Number(json.type);
|
|
34310
|
-
var imgWidth = Number(json.imgWidth);
|
|
34311
|
-
var imgHeight = Number(json.imgHeight);
|
|
34368
|
+
var number = isClearSign ? 0 : Number(json.number);
|
|
34369
|
+
var type = isClearSign ? 0 : Number(json.type);
|
|
34370
|
+
var imgWidth = isClearSign ? 0 : Number(json.imgWidth);
|
|
34371
|
+
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
34312
34372
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
34313
|
-
var
|
|
34373
|
+
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
34374
|
+
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);
|
|
34314
34375
|
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0; //signNode.number = number;
|
|
34315
34376
|
//signNode.width = width;
|
|
34316
34377
|
|
|
@@ -38360,7 +38421,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38360
38421
|
}
|
|
38361
38422
|
}], [{
|
|
38362
38423
|
key: "json2Node",
|
|
38363
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
38424
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
38364
38425
|
json = this.transType(json);
|
|
38365
38426
|
var tableProperty = json.tableProperty;
|
|
38366
38427
|
tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
|
|
@@ -38581,7 +38642,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38581
38642
|
|
|
38582
38643
|
var colNo = parseInt(_node.colNo);
|
|
38583
38644
|
existMap.set(_rowNo + "-" + colNo, 1);
|
|
38584
|
-
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste);
|
|
38645
|
+
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
|
|
38585
38646
|
}
|
|
38586
38647
|
} // console.log("json2node", 8);
|
|
38587
38648
|
//console.log(existMap);
|
|
@@ -38774,7 +38835,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38774
38835
|
/*
|
|
38775
38836
|
* @Author: your name
|
|
38776
38837
|
* @Date: 2020-11-03 15:17:54
|
|
38777
|
-
* @LastEditTime: 2022-
|
|
38838
|
+
* @LastEditTime: 2022-07-13 14:11:55
|
|
38778
38839
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38779
38840
|
* @Description: In User Settings Edit
|
|
38780
38841
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -40600,7 +40661,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40600
40661
|
}
|
|
40601
40662
|
}], [{
|
|
40602
40663
|
key: "json2Node",
|
|
40603
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
40664
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
40604
40665
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
40605
40666
|
delete json.nodeType;
|
|
40606
40667
|
this.transType(json);
|
|
@@ -40631,7 +40692,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40631
40692
|
if (Array.isArray(item)) {
|
|
40632
40693
|
//数组
|
|
40633
40694
|
for (var i = 0; i < item.length; i++) {
|
|
40634
|
-
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp);
|
|
40695
|
+
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
|
|
40635
40696
|
|
|
40636
40697
|
if (node) {
|
|
40637
40698
|
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40639,7 +40700,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40639
40700
|
nodes.push(node);
|
|
40640
40701
|
}
|
|
40641
40702
|
} else {
|
|
40642
|
-
|
|
40703
|
+
if (isClearSign) {
|
|
40704
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40705
|
+
if (node.isTemplate) {
|
|
40706
|
+
nodes.push(node);
|
|
40707
|
+
}
|
|
40708
|
+
} else {
|
|
40709
|
+
nodes.push(node);
|
|
40710
|
+
}
|
|
40711
|
+
} else {
|
|
40712
|
+
nodes.push(node);
|
|
40713
|
+
}
|
|
40643
40714
|
}
|
|
40644
40715
|
}
|
|
40645
40716
|
|
|
@@ -40653,7 +40724,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40653
40724
|
}
|
|
40654
40725
|
} else {
|
|
40655
40726
|
//单个对象
|
|
40656
|
-
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp);
|
|
40727
|
+
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
40657
40728
|
|
|
40658
40729
|
if (_node2) {
|
|
40659
40730
|
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40661,7 +40732,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40661
40732
|
nodes.push(_node2);
|
|
40662
40733
|
}
|
|
40663
40734
|
} else {
|
|
40664
|
-
nodes.push(
|
|
40735
|
+
//nodes.push(node);
|
|
40736
|
+
if (isClearSign) {
|
|
40737
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40738
|
+
if (_node2.isTemplate) {
|
|
40739
|
+
nodes.push(_node2);
|
|
40740
|
+
}
|
|
40741
|
+
} else {
|
|
40742
|
+
nodes.push(_node2);
|
|
40743
|
+
}
|
|
40744
|
+
} else {
|
|
40745
|
+
nodes.push(_node2);
|
|
40746
|
+
}
|
|
40665
40747
|
}
|
|
40666
40748
|
}
|
|
40667
40749
|
|
|
@@ -46745,8 +46827,8 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
46745
46827
|
/*
|
|
46746
46828
|
* @Author: your name
|
|
46747
46829
|
* @Date: 2020-11-27 15:24:11
|
|
46748
|
-
* @LastEditTime:
|
|
46749
|
-
* @LastEditors:
|
|
46830
|
+
* @LastEditTime: 2022-07-19 16:11:44
|
|
46831
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
46750
46832
|
* @Description: In User Settings Edit
|
|
46751
46833
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawDateTime.ts
|
|
46752
46834
|
*/
|
|
@@ -46838,8 +46920,8 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
46838
46920
|
/*
|
|
46839
46921
|
* @Author: your name
|
|
46840
46922
|
* @Date: 2020-11-30 10:59:00
|
|
46841
|
-
* @LastEditTime: 2022-
|
|
46842
|
-
* @LastEditors:
|
|
46923
|
+
* @LastEditTime: 2022-07-19 16:10:16
|
|
46924
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
46843
46925
|
* @Description: In User Settings Edit
|
|
46844
46926
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawDownListNode.ts
|
|
46845
46927
|
*/
|
|
@@ -47858,6 +47940,14 @@ var getPrototypeOf = __webpack_require__(79123);
|
|
|
47858
47940
|
var inherits = __webpack_require__(83964);
|
|
47859
47941
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 2 modules
|
|
47860
47942
|
var createSuper = __webpack_require__(46455);
|
|
47943
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
47944
|
+
var es_function_name = __webpack_require__(68309);
|
|
47945
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
47946
|
+
var es_array_includes = __webpack_require__(26699);
|
|
47947
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
47948
|
+
var es_string_includes = __webpack_require__(32023);
|
|
47949
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
47950
|
+
var es_array_splice = __webpack_require__(40561);
|
|
47861
47951
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
47862
47952
|
var es_error_cause = __webpack_require__(21703);
|
|
47863
47953
|
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
@@ -48212,6 +48302,10 @@ var DrawPageTable = __webpack_require__(24552);
|
|
|
48212
48302
|
|
|
48213
48303
|
|
|
48214
48304
|
|
|
48305
|
+
|
|
48306
|
+
|
|
48307
|
+
|
|
48308
|
+
|
|
48215
48309
|
|
|
48216
48310
|
|
|
48217
48311
|
var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
@@ -48241,7 +48335,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48241
48335
|
|
|
48242
48336
|
_this._dHeight = dHeight; // ((this as unknown) as DrawInfos).dHeight = dWidth;
|
|
48243
48337
|
|
|
48244
|
-
_this._discriminator = IDrawInfos/* gDrawIntfID */.t;
|
|
48338
|
+
_this._discriminator = IDrawInfos/* gDrawIntfID */.t; //this._marker = new createjs.Shape();
|
|
48339
|
+
|
|
48245
48340
|
_this._topBorder = new createjs.Rectangle(dLeft, dTop, dWidth, 2);
|
|
48246
48341
|
_this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
|
|
48247
48342
|
_this._rightBorder = new createjs.Rectangle(dLeft + dWidth - 2, dTop, 2, dHeight);
|
|
@@ -48280,7 +48375,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48280
48375
|
|
|
48281
48376
|
|
|
48282
48377
|
return _this;
|
|
48283
|
-
} //
|
|
48378
|
+
} //private _marker: createjs.Shape;
|
|
48379
|
+
// public ge t pageIndex(): number {
|
|
48284
48380
|
// return this._pageIndex;
|
|
48285
48381
|
// }
|
|
48286
48382
|
// public set pageIndex(value: number) {
|
|
@@ -48665,6 +48761,38 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48665
48761
|
value: function endPaintBackGround(newHeight) {
|
|
48666
48762
|
this._backImg.cache(-1, -1, this._dWidth + 1, newHeight + 1);
|
|
48667
48763
|
}
|
|
48764
|
+
}, {
|
|
48765
|
+
key: "paintMarker",
|
|
48766
|
+
value: function paintMarker(r, c) {
|
|
48767
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
48768
|
+
|
|
48769
|
+
for (var i = this.children.length - 1; i >= 0; i--) {
|
|
48770
|
+
if (this.children[i].name && this.children[i].name.includes("markline")) {
|
|
48771
|
+
this.children.splice(i, 1);
|
|
48772
|
+
}
|
|
48773
|
+
}
|
|
48774
|
+
|
|
48775
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
48776
|
+
var markerLine1 = new createjs.Shape();
|
|
48777
|
+
var markerLine2 = new createjs.Shape();
|
|
48778
|
+
var markerLine3 = new createjs.Shape();
|
|
48779
|
+
var markerLine4 = new createjs.Shape();
|
|
48780
|
+
var width = this.dWidth;
|
|
48781
|
+
var height = this.dHeight;
|
|
48782
|
+
markerLine1.name = "markline1";
|
|
48783
|
+
markerLine2.name = "markline2";
|
|
48784
|
+
markerLine3.name = "markline3";
|
|
48785
|
+
markerLine4.name = "markline4";
|
|
48786
|
+
markerLine1.graphics.beginStroke("#FB0101").moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7);
|
|
48787
|
+
markerLine2.graphics.beginStroke("#FB0101").moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5);
|
|
48788
|
+
markerLine3.graphics.beginStroke("#FB0101").moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3);
|
|
48789
|
+
markerLine4.graphics.beginStroke("#FB0101").moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
|
|
48790
|
+
this.addChild(markerLine1);
|
|
48791
|
+
this.addChild(markerLine2);
|
|
48792
|
+
this.addChild(markerLine3);
|
|
48793
|
+
this.addChild(markerLine4);
|
|
48794
|
+
}
|
|
48795
|
+
}
|
|
48668
48796
|
}, {
|
|
48669
48797
|
key: "paintCellBackground",
|
|
48670
48798
|
value: function paintCellBackground(newHeight, r, c) {
|
|
@@ -49616,6 +49744,10 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49616
49744
|
}, {
|
|
49617
49745
|
key: "paintCellBorder",
|
|
49618
49746
|
value: function paintCellBorder(partCell, r, c, newHeight) {
|
|
49747
|
+
if (partCell.cell.cellProperty.editorProperty !== 0) {
|
|
49748
|
+
partCell.paintMarker(r, c);
|
|
49749
|
+
}
|
|
49750
|
+
|
|
49619
49751
|
partCell.startPaintBackGround();
|
|
49620
49752
|
partCell.paintCellBackground(newHeight, r, c);
|
|
49621
49753
|
partCell.endPaintBackGround(newHeight);
|
|
@@ -51357,7 +51489,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
51357
51489
|
/*
|
|
51358
51490
|
* @Author: your name
|
|
51359
51491
|
* @Date: 2021-09-01 16:51:49
|
|
51360
|
-
* @LastEditTime: 2022-
|
|
51492
|
+
* @LastEditTime: 2022-07-19 09:47:55
|
|
51361
51493
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
51362
51494
|
* @Description: In User Settings Edit
|
|
51363
51495
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -51368,7 +51500,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51368
51500
|
|
|
51369
51501
|
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);
|
|
51370
51502
|
|
|
51371
|
-
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition) {
|
|
51503
|
+
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty) {
|
|
51372
51504
|
var _this;
|
|
51373
51505
|
|
|
51374
51506
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
|
|
@@ -51380,12 +51512,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51380
51512
|
_this._imgSrc = '';
|
|
51381
51513
|
_this._fingerPrintSrc = '';
|
|
51382
51514
|
_this._fingerPosition = 0;
|
|
51515
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
51516
|
+
|
|
51517
|
+
_this._abi02 = "";
|
|
51383
51518
|
_this._number = number;
|
|
51384
51519
|
_this._imgSrc = imgSrc;
|
|
51385
51520
|
_this._type = type;
|
|
51386
51521
|
_this._signName = name;
|
|
51387
51522
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
51388
|
-
_this._fingerPosition = fingerPosition;
|
|
51523
|
+
_this._fingerPosition = fingerPosition;
|
|
51524
|
+
_this._attribute = attribute;
|
|
51525
|
+
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
|
|
51389
51526
|
|
|
51390
51527
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
51391
51528
|
|
|
@@ -51425,6 +51562,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51425
51562
|
} else {
|
|
51426
51563
|
_this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
|
|
51427
51564
|
}
|
|
51565
|
+
|
|
51566
|
+
if (_this.attribute === 2 && _this._abi02 !== "") {
|
|
51567
|
+
_this._drawAbi02 = new createjs.Text(_this._abi02 + ":", _this._textStyle, '#000000');
|
|
51568
|
+
_this.dWidth += _this._drawAbi02.getMeasuredWidth();
|
|
51569
|
+
}
|
|
51428
51570
|
}
|
|
51429
51571
|
|
|
51430
51572
|
if (type === 2) {
|
|
@@ -51538,6 +51680,26 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51538
51680
|
this._textStyle = value;
|
|
51539
51681
|
}
|
|
51540
51682
|
}
|
|
51683
|
+
}, {
|
|
51684
|
+
key: "attribute",
|
|
51685
|
+
get: function get() {
|
|
51686
|
+
return this._attribute;
|
|
51687
|
+
},
|
|
51688
|
+
set: function set(value) {
|
|
51689
|
+
if (this._attribute !== value) {
|
|
51690
|
+
this._attribute = value;
|
|
51691
|
+
}
|
|
51692
|
+
}
|
|
51693
|
+
}, {
|
|
51694
|
+
key: "abi02",
|
|
51695
|
+
get: function get() {
|
|
51696
|
+
return this._abi02;
|
|
51697
|
+
},
|
|
51698
|
+
set: function set(value) {
|
|
51699
|
+
if (this._abi02 !== value) {
|
|
51700
|
+
this._abi02 = value;
|
|
51701
|
+
}
|
|
51702
|
+
}
|
|
51541
51703
|
}, {
|
|
51542
51704
|
key: "drawWriteSignNode",
|
|
51543
51705
|
value: function drawWriteSignNode(node) {
|
|
@@ -51735,22 +51897,54 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51735
51897
|
}
|
|
51736
51898
|
}
|
|
51737
51899
|
|
|
51738
|
-
_this3.
|
|
51900
|
+
if (_this3.attribute === 2 && _this3.abi02 !== "") {
|
|
51901
|
+
var abi02Text = new createjs.Text(_this3.abi02 + ":", _this3.textStyle, '#000000');
|
|
51902
|
+
abi02Text.textBaseline = 'alphabetic';
|
|
51903
|
+
abi02Text.textAlign = 'left';
|
|
51904
|
+
|
|
51905
|
+
_this3.addChildAt(abi02Text, 0);
|
|
51906
|
+
|
|
51907
|
+
bitmap.x = abi02Text.getMeasuredWidth();
|
|
51908
|
+
|
|
51909
|
+
_this3.addChildAt(bitmap);
|
|
51910
|
+
} else {
|
|
51911
|
+
_this3.addChildAt(bitmap, 0);
|
|
51912
|
+
}
|
|
51739
51913
|
|
|
51740
51914
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51741
51915
|
hoEditorFactory.loadImageCount++;
|
|
51742
51916
|
|
|
51743
51917
|
image.onload = function () {
|
|
51744
51918
|
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51745
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51746
|
-
|
|
51747
|
-
var
|
|
51919
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height; // 处理宽高和实际宽高相反的问题 --- 2.0.66版本问题 --2.0.68后版本临时处理 再过几个版本后可以删掉
|
|
51920
|
+
|
|
51921
|
+
var node = _this3.node;
|
|
51922
|
+
var nodeImageWidth = node.imgWidth;
|
|
51923
|
+
var nodeImageHeight = node.imgHeight;
|
|
51924
|
+
|
|
51925
|
+
if (image.naturalWidth > image.naturalHeight && nodeImageWidth < nodeImageHeight || image.naturalWidth < image.naturalHeight && node.imgWidth > node.imgHeight) {
|
|
51926
|
+
node.imgWidth = nodeImageHeight;
|
|
51927
|
+
node.imgHeight = nodeImageWidth;
|
|
51928
|
+
}
|
|
51929
|
+
|
|
51930
|
+
var width = hitWidth * hoEditorFactory.signHeight / image.naturalHeight; //+ this._drawText.getMeasuredWidth();
|
|
51931
|
+
|
|
51932
|
+
drawNode.dWidth = width;
|
|
51933
|
+
|
|
51934
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51935
|
+
drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
|
|
51936
|
+
}
|
|
51748
51937
|
|
|
51749
51938
|
if (_this3.number === 2) {
|
|
51750
|
-
|
|
51939
|
+
drawNode.dWidth += _this3._drawText.getMeasuredWidth();
|
|
51940
|
+
}
|
|
51941
|
+
|
|
51942
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51943
|
+
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -hoEditorFactory.signHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51944
|
+
} else {
|
|
51945
|
+
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51751
51946
|
}
|
|
51752
51947
|
|
|
51753
|
-
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51754
51948
|
var hitArea = new createjs.Shape();
|
|
51755
51949
|
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
51756
51950
|
|
|
@@ -57566,7 +57760,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57566
57760
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
57567
57761
|
|
|
57568
57762
|
try {
|
|
57569
|
-
//
|
|
57763
|
+
//console.time("文档change事件");
|
|
57570
57764
|
this._inChanging = true;
|
|
57571
57765
|
var startUpdateLine;
|
|
57572
57766
|
this.adjustEventPath(e);
|
|
@@ -57961,7 +58155,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57961
58155
|
|
|
57962
58156
|
if (hoEditorFactory.docTree.curOnDragNode) {
|
|
57963
58157
|
this._caret.visible = false;
|
|
57964
|
-
} //
|
|
58158
|
+
} //console.timeEnd("文档change事件");
|
|
57965
58159
|
|
|
57966
58160
|
|
|
57967
58161
|
return true;
|
|
@@ -59644,8 +59838,8 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
59644
59838
|
}
|
|
59645
59839
|
|
|
59646
59840
|
if (dPage && dPage.selectContainer) {
|
|
59647
|
-
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#
|
|
59648
|
-
shape.alpha = 0.
|
|
59841
|
+
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FB0451");
|
|
59842
|
+
shape.alpha = 0.3;
|
|
59649
59843
|
dPage.selectContainer.addChild(shape);
|
|
59650
59844
|
|
|
59651
59845
|
if (dPages.indexOf(dPage) < 0) {
|
|
@@ -62673,7 +62867,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62673
62867
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60199);
|
|
62674
62868
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91347);
|
|
62675
62869
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42015);
|
|
62676
|
-
/* harmony import */ var
|
|
62870
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(16296);
|
|
62677
62871
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
62678
62872
|
/* 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__);
|
|
62679
62873
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -62714,6 +62908,8 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62714
62908
|
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(76771);
|
|
62715
62909
|
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(11438);
|
|
62716
62910
|
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(78975);
|
|
62911
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(14245);
|
|
62912
|
+
|
|
62717
62913
|
|
|
62718
62914
|
|
|
62719
62915
|
|
|
@@ -62789,7 +62985,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62789
62985
|
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
62790
62986
|
}
|
|
62791
62987
|
|
|
62792
|
-
(0,
|
|
62988
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
62793
62989
|
key: "undo",
|
|
62794
62990
|
value: function undo() {
|
|
62795
62991
|
//2.插入删除的节点
|
|
@@ -63068,7 +63264,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63068
63264
|
key: "spliteNode",
|
|
63069
63265
|
value: function spliteNode(Arange) {
|
|
63070
63266
|
var _this = this,
|
|
63071
|
-
|
|
63267
|
+
_pnode$downListProper;
|
|
63072
63268
|
|
|
63073
63269
|
var s = Arange.npStart.node;
|
|
63074
63270
|
var e = Arange.npEnd.node;
|
|
@@ -63124,8 +63320,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63124
63320
|
|
|
63125
63321
|
this._tmp.start = Arange.startPath;
|
|
63126
63322
|
this._tmp.end = Arange.endPath;
|
|
63323
|
+
var spnode = s.parentNode;
|
|
63324
|
+
var epnode = e.parentNode;
|
|
63325
|
+
var pnode = epnode;
|
|
63326
|
+
|
|
63327
|
+
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) {
|
|
63328
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
63127
63329
|
|
|
63128
|
-
|
|
63330
|
+
if (result < 0) {
|
|
63331
|
+
pnode = spnode;
|
|
63332
|
+
}
|
|
63333
|
+
}
|
|
63334
|
+
|
|
63335
|
+
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("<元素>")) {
|
|
63336
|
+
this._tmp.start = pnode.StartMarkNode.getNodePath();
|
|
63337
|
+
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
|
|
63129
63338
|
return true;
|
|
63130
63339
|
}
|
|
63131
63340
|
|
|
@@ -99810,7 +100019,7 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
|
|
|
99810
100019
|
*
|
|
99811
100020
|
* @returns jsPDF
|
|
99812
100021
|
*/jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
|
|
99813
|
-
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];}
|
|
100022
|
+
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
|
|
99814
100023
|
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
|
|
99815
100024
|
compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
|
|
99816
100025
|
// if(posY) y += posY;
|
|
@@ -100506,7 +100715,7 @@ Context2D.prototype.arcTo=function(x1,y1,x2,y2,radius){throw new Error("arcTo no
|
|
|
100506
100715
|
*/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
|
|
100507
100716
|
var scale=this.ctx.transform.scaleX;var acharSpace=this.letterSpacing?parseFloat(this.letterSpacing):0.0;//自定义修改 以处理宋体粗体
|
|
100508
100717
|
if(this.font.indexOf("SimSun")>=0&&this.font.indexOf("bold")>=0){//renderingMode: "stroke",
|
|
100509
|
-
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});}};/**
|
|
100718
|
+
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});}};/**
|
|
100510
100719
|
* Draws text on the canvas (no fill)
|
|
100511
100720
|
*
|
|
100512
100721
|
* @name strokeText
|
|
@@ -199312,7 +199521,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199312
199521
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199313
199522
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
199314
199523
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199315
|
-
;// 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=
|
|
199524
|
+
;// 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&
|
|
199316
199525
|
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()}
|
|
199317
199526
|
var staticRenderFns = []
|
|
199318
199527
|
|
|
@@ -200238,9 +200447,9 @@ function isPromise(obj) {
|
|
|
200238
200447
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200239
200448
|
}
|
|
200240
200449
|
|
|
200241
|
-
;// 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=
|
|
200242
|
-
var
|
|
200243
|
-
var
|
|
200450
|
+
;// 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&
|
|
200451
|
+
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)}
|
|
200452
|
+
var HoDocvue_type_template_id_658730be_staticRenderFns = []
|
|
200244
200453
|
|
|
200245
200454
|
|
|
200246
200455
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -200725,7 +200934,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200725
200934
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
200726
200935
|
}
|
|
200727
200936
|
|
|
200728
|
-
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) {
|
|
200937
|
+
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) {
|
|
200729
200938
|
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
|
|
200730
200939
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
200731
200940
|
}
|
|
@@ -207295,7 +207504,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207295
207504
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207296
207505
|
var ParagraphNode = __webpack_require__(13880);
|
|
207297
207506
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207298
|
-
/* harmony default export */ var version = ('2.0.
|
|
207507
|
+
/* harmony default export */ var version = ('2.0.72');
|
|
207299
207508
|
;// 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&
|
|
207300
207509
|
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)}
|
|
207301
207510
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -207500,6 +207709,8 @@ var PoperTipText_component = normalizeComponent(
|
|
|
207500
207709
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
207501
207710
|
|
|
207502
207711
|
/* harmony default export */ var poperTipText = (poperTipText_PoperTipText);
|
|
207712
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
207713
|
+
var ImageNode = __webpack_require__(23778);
|
|
207503
207714
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
207504
207715
|
|
|
207505
207716
|
|
|
@@ -207539,6 +207750,7 @@ var PoperTipText_component = normalizeComponent(
|
|
|
207539
207750
|
|
|
207540
207751
|
|
|
207541
207752
|
|
|
207753
|
+
|
|
207542
207754
|
|
|
207543
207755
|
|
|
207544
207756
|
var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
@@ -208011,6 +208223,12 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
208011
208223
|
} else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression) {
|
|
208012
208224
|
this.handleCellNode(node, node.parentNode, pageIndex); // } else if (node instanceof GestationNode) {
|
|
208013
208225
|
// this.setDblclickNodeValue(node, 'dblclick');
|
|
208226
|
+
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
208227
|
+
this.$emit('dblNodeClick', {
|
|
208228
|
+
node: this.getCurrentSelectNode,
|
|
208229
|
+
type: 'edit-image'
|
|
208230
|
+
}); // } else if (node instanceof GestationNode) {
|
|
208231
|
+
// this.setDblclickNodeValue(node, 'dblclick');
|
|
208014
208232
|
} else {
|
|
208015
208233
|
this.setDblclickNodeValue(node, 'dblclick');
|
|
208016
208234
|
}
|
|
@@ -208235,8 +208453,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208235
208453
|
|
|
208236
208454
|
var HoDoc_component = normalizeComponent(
|
|
208237
208455
|
components_HoDocvue_type_script_lang_ts_,
|
|
208238
|
-
|
|
208239
|
-
|
|
208456
|
+
HoDocvue_type_template_id_658730be_render,
|
|
208457
|
+
HoDocvue_type_template_id_658730be_staticRenderFns,
|
|
208240
208458
|
false,
|
|
208241
208459
|
null,
|
|
208242
208460
|
null,
|
|
@@ -209806,7 +210024,7 @@ var UserInfo = __webpack_require__(82084);
|
|
|
209806
210024
|
/*
|
|
209807
210025
|
* @Author: your name
|
|
209808
210026
|
* @Date: 2021-06-21 17:47:51
|
|
209809
|
-
* @LastEditTime: 2022-07-
|
|
210027
|
+
* @LastEditTime: 2022-07-18 14:39:07
|
|
209810
210028
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
209811
210029
|
* @Description: In User Settings Edit
|
|
209812
210030
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
@@ -209829,6 +210047,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209829
210047
|
|
|
209830
210048
|
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209831
210049
|
|
|
210050
|
+
this._signColor = "transparent"; //签名元素颜色
|
|
210051
|
+
|
|
209832
210052
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209833
210053
|
}
|
|
209834
210054
|
|
|
@@ -209896,9 +210116,17 @@ var Option = /*#__PURE__*/function () {
|
|
|
209896
210116
|
set: function set(value) {
|
|
209897
210117
|
this._downListColor2 = value;
|
|
209898
210118
|
}
|
|
210119
|
+
}, {
|
|
210120
|
+
key: "signColor",
|
|
210121
|
+
get: function get() {
|
|
210122
|
+
return this._signColor;
|
|
210123
|
+
},
|
|
210124
|
+
set: function set(value) {
|
|
210125
|
+
this._signColor = value;
|
|
210126
|
+
}
|
|
209899
210127
|
}, {
|
|
209900
210128
|
key: "setReviewLevelColor",
|
|
209901
|
-
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2) {
|
|
210129
|
+
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2, signColor) {
|
|
209902
210130
|
Lev1Color && (this._reviewLev1Color = Lev1Color);
|
|
209903
210131
|
Lev2Color && (this._reviewLev2Color = Lev2Color);
|
|
209904
210132
|
Lev3Color && (this._reviewLev3Color = Lev3Color);
|
|
@@ -209906,6 +210134,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209906
210134
|
dateTimeColor && (this._dateTimeColor = dateTimeColor);
|
|
209907
210135
|
downListColor && (this._downListColor = downListColor);
|
|
209908
210136
|
downListColor2 && (this._downListColor2 = downListColor2);
|
|
210137
|
+
signColor && (this._signColor = signColor);
|
|
209909
210138
|
}
|
|
209910
210139
|
}, {
|
|
209911
210140
|
key: "getColorByLevel",
|
|
@@ -209924,6 +210153,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209924
210153
|
return this._reviewLev2Color;
|
|
209925
210154
|
} else if (level === 3) {
|
|
209926
210155
|
return this._reviewLev3Color;
|
|
210156
|
+
} else if (level === 13) {
|
|
210157
|
+
return this._signColor;
|
|
209927
210158
|
} else {
|
|
209928
210159
|
return "transparent";
|
|
209929
210160
|
}
|
|
@@ -210103,8 +210334,6 @@ var jquery_default = /*#__PURE__*/__webpack_require__.n(jquery);
|
|
|
210103
210334
|
var TextStyle = __webpack_require__(95958);
|
|
210104
210335
|
// EXTERNAL MODULE: ./src/editor/dom/domNode/Paragraph.ts
|
|
210105
210336
|
var Paragraph = __webpack_require__(28275);
|
|
210106
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
210107
|
-
var ImageNode = __webpack_require__(23778);
|
|
210108
210337
|
;// CONCATENATED MODULE: ./src/editor/utils/HTMLConverter.ts
|
|
210109
210338
|
|
|
210110
210339
|
|
|
@@ -211944,7 +212173,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211944
212173
|
}
|
|
211945
212174
|
}, {
|
|
211946
212175
|
key: "xml2Doc",
|
|
211947
|
-
value: function xml2Doc(xml) {
|
|
212176
|
+
value: function xml2Doc(xml, isClearSign) {
|
|
211948
212177
|
// xml = this.replaceNodesName(xml);
|
|
211949
212178
|
// const x2js = new X2JS({ stripWhitespaces: false });
|
|
211950
212179
|
// const object = x2js.xml2js(xml);
|
|
@@ -211996,7 +212225,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211996
212225
|
var aobject = this.xml2Object(xml);
|
|
211997
212226
|
|
|
211998
212227
|
if (aobject) {
|
|
211999
|
-
return this.json2Doc(aobject);
|
|
212228
|
+
return this.json2Doc(aobject, isClearSign);
|
|
212000
212229
|
} // if (json.rvxml) {
|
|
212001
212230
|
// const rvxml = json.rvxml;
|
|
212002
212231
|
// return;
|
|
@@ -212588,7 +212817,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212588
212817
|
}
|
|
212589
212818
|
}, {
|
|
212590
212819
|
key: "json2Doc",
|
|
212591
|
-
value: function json2Doc(xx) {
|
|
212820
|
+
value: function json2Doc(xx, isClearSign) {
|
|
212592
212821
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
212593
212822
|
/*
|
|
212594
212823
|
const pushChildNodes = (
|
|
@@ -212715,11 +212944,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212715
212944
|
var histories = xx.userHistories;
|
|
212716
212945
|
var historiesArr = histories.userHistory;
|
|
212717
212946
|
|
|
212947
|
+
if (historiesArr.length == undefined) {
|
|
212948
|
+
historiesArr = Array(historiesArr);
|
|
212949
|
+
}
|
|
212950
|
+
|
|
212718
212951
|
for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
|
|
212719
212952
|
var historyObj = historiesArr[_i10];
|
|
212720
212953
|
var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
|
|
212721
212954
|
Object.assign(history, historyObj);
|
|
212722
|
-
history.permissionLevel = Number(historyObj.
|
|
212955
|
+
history.permissionLevel = Number(historyObj.permissionLevel);
|
|
212723
212956
|
hoEditorFactory.docTree.userHistories.push(history);
|
|
212724
212957
|
}
|
|
212725
212958
|
|
|
@@ -212861,7 +213094,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212861
213094
|
}
|
|
212862
213095
|
|
|
212863
213096
|
var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
|
|
212864
|
-
headerDocTree.subDocNodes, null, headerNode.subDocNodes);
|
|
213097
|
+
headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
|
|
212865
213098
|
|
|
212866
213099
|
if (node) {
|
|
212867
213100
|
node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212921,7 +213154,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212921
213154
|
}
|
|
212922
213155
|
|
|
212923
213156
|
var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
|
|
212924
|
-
footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
|
|
213157
|
+
footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
|
|
212925
213158
|
|
|
212926
213159
|
if (_node2) {
|
|
212927
213160
|
_node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212966,7 +213199,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212966
213199
|
continue;
|
|
212967
213200
|
}
|
|
212968
213201
|
|
|
212969
|
-
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes);
|
|
213202
|
+
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
212970
213203
|
|
|
212971
213204
|
if (_node3) {
|
|
212972
213205
|
// if (node instanceof BaseCombineNode && temp.childNode) {
|
|
@@ -213110,7 +213343,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213110
213343
|
}
|
|
213111
213344
|
}, {
|
|
213112
213345
|
key: "convertNode",
|
|
213113
|
-
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
|
|
213346
|
+
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
|
|
213114
213347
|
if (temp === "") {
|
|
213115
213348
|
return undefined;
|
|
213116
213349
|
}
|
|
@@ -213146,7 +213379,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213146
213379
|
return undefined;
|
|
213147
213380
|
}
|
|
213148
213381
|
|
|
213149
|
-
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213382
|
+
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213150
213383
|
return node;
|
|
213151
213384
|
} else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
|
|
213152
213385
|
return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -213183,7 +213416,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213183
213416
|
return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213184
213417
|
}
|
|
213185
213418
|
} else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
|
|
213186
|
-
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213419
|
+
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213187
213420
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
|
|
213188
213421
|
return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213189
213422
|
} else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
|
|
@@ -213199,7 +213432,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213199
213432
|
} else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
|
|
213200
213433
|
return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213201
213434
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
|
|
213202
|
-
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213435
|
+
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
|
|
213203
213436
|
} else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
|
|
213204
213437
|
return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213205
213438
|
}
|
|
@@ -213293,13 +213526,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213293
213526
|
}
|
|
213294
213527
|
}, {
|
|
213295
213528
|
key: "openXml",
|
|
213296
|
-
value: function openXml(xml, callback, isDelBlockLine) {
|
|
213529
|
+
value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
|
|
213297
213530
|
var _this4 = this;
|
|
213298
213531
|
|
|
213299
213532
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
213300
213533
|
this._superiorSign = [];
|
|
213301
213534
|
hoEditorFactory.isThrowError = false;
|
|
213302
|
-
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
|
|
213535
|
+
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
|
|
213303
213536
|
Promise.resolve().then(function () {
|
|
213304
213537
|
hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
213305
213538
|
|
|
@@ -217148,7 +217381,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217148
217381
|
value: function setReviewLevelColor(option) {
|
|
217149
217382
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217150
217383
|
var opt = new Option(this.hoEditorFactoryID);
|
|
217151
|
-
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2);
|
|
217384
|
+
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2, option.signColor);
|
|
217152
217385
|
hoEditorFactory.option = opt;
|
|
217153
217386
|
}
|
|
217154
217387
|
/**
|
|
@@ -218999,12 +219232,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218999
219232
|
/**
|
|
219000
219233
|
* 读取 xml
|
|
219001
219234
|
* @param xml
|
|
219235
|
+
* @param callback 是否回调
|
|
219236
|
+
* @param isDelBlockLine 是否删掉正文末尾的空行
|
|
219237
|
+
* @param isRender
|
|
219238
|
+
* @param isClearSign 加载时是否清空签名元素内容
|
|
219002
219239
|
*/
|
|
219003
219240
|
|
|
219004
219241
|
}, {
|
|
219005
219242
|
key: "openXml",
|
|
219006
219243
|
value: function () {
|
|
219007
|
-
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender) {
|
|
219244
|
+
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender, isClearSign) {
|
|
219008
219245
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
|
|
219009
219246
|
|
|
219010
219247
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
|
|
@@ -219049,7 +219286,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219049
219286
|
}
|
|
219050
219287
|
|
|
219051
219288
|
_context5.next = 15;
|
|
219052
|
-
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
|
|
219289
|
+
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
219053
219290
|
|
|
219054
219291
|
case 15:
|
|
219055
219292
|
case "end":
|
|
@@ -219059,7 +219296,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219059
219296
|
}, _callee5, this);
|
|
219060
219297
|
}));
|
|
219061
219298
|
|
|
219062
|
-
function openXml(_x8, _x9, _x10, _x11) {
|
|
219299
|
+
function openXml(_x8, _x9, _x10, _x11, _x12) {
|
|
219063
219300
|
return _openXml.apply(this, arguments);
|
|
219064
219301
|
}
|
|
219065
219302
|
|
|
@@ -219204,8 +219441,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219204
219441
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
219205
219442
|
var nextNode = node.nextLeaf();
|
|
219206
219443
|
|
|
219207
|
-
if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219208
|
-
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);
|
|
219444
|
+
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219445
|
+
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);
|
|
219209
219446
|
hoEditorFactory.undoService.begin();
|
|
219210
219447
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
219211
219448
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
@@ -219440,7 +219677,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219440
219677
|
|
|
219441
219678
|
}, {
|
|
219442
219679
|
key: "insertEmptySignNode",
|
|
219443
|
-
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
219680
|
+
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
219444
219681
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219445
219682
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219446
219683
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219448,7 +219685,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219448
219685
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219449
219686
|
|
|
219450
219687
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219451
|
-
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
|
|
219688
|
+
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
|
|
219452
219689
|
}
|
|
219453
219690
|
}
|
|
219454
219691
|
/**
|
|
@@ -220046,7 +220283,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220046
220283
|
}, _callee6, this);
|
|
220047
220284
|
}));
|
|
220048
220285
|
|
|
220049
|
-
function updateElementText(
|
|
220286
|
+
function updateElementText(_x13, _x14, _x15) {
|
|
220050
220287
|
return _updateElementText.apply(this, arguments);
|
|
220051
220288
|
}
|
|
220052
220289
|
|
|
@@ -220310,7 +220547,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220310
220547
|
endPath = curDomRange.normalize().endPath;
|
|
220311
220548
|
node = (_hoEditorFactory2$vue = _hoEditorFactory2.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory2$vue === void 0 ? void 0 : _hoEditorFactory2$vue.node;
|
|
220312
220549
|
|
|
220313
|
-
if (!(node instanceof SignNode/* SignNode */.N && node.
|
|
220550
|
+
if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
|
|
220314
220551
|
_context7.next = 8;
|
|
220315
220552
|
break;
|
|
220316
220553
|
}
|
|
@@ -220332,7 +220569,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220332
220569
|
_endPath = _curDomRange2.normalize().endPath;
|
|
220333
220570
|
_node = (_hoEditorFactory3$vue = _hoEditorFactory3.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory3$vue === void 0 ? void 0 : _hoEditorFactory3$vue.node;
|
|
220334
220571
|
|
|
220335
|
-
if (!(_node instanceof SignNode/* SignNode */.N && _node.
|
|
220572
|
+
if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
|
|
220336
220573
|
_context7.next = 21;
|
|
220337
220574
|
break;
|
|
220338
220575
|
}
|
|
@@ -220356,7 +220593,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220356
220593
|
}, _callee7, this);
|
|
220357
220594
|
}));
|
|
220358
220595
|
|
|
220359
|
-
function getBase64(
|
|
220596
|
+
function getBase64(_x16) {
|
|
220360
220597
|
return _getBase.apply(this, arguments);
|
|
220361
220598
|
}
|
|
220362
220599
|
|
|
@@ -220377,18 +220614,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220377
220614
|
|
|
220378
220615
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220379
220616
|
if (node.isTemplate) {
|
|
220380
|
-
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220617
|
+
if (node.imgSrc !== '' || node.fingerPrintSrc !== '') {
|
|
220381
220618
|
this.deleteNode(node);
|
|
220382
220619
|
setTimeout(function () {
|
|
220383
220620
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220384
220621
|
var newNode = newcurDomRange.npEnd.node;
|
|
220385
220622
|
|
|
220386
220623
|
if (newNode instanceof SignNode/* SignNode */.N) {
|
|
220387
|
-
hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220624
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220625
|
+
setTimeout(function () {
|
|
220626
|
+
callback && callback();
|
|
220627
|
+
}, 0);
|
|
220628
|
+
});
|
|
220388
220629
|
}
|
|
220389
220630
|
}, 0);
|
|
220390
220631
|
} else {
|
|
220391
|
-
hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220632
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220633
|
+
setTimeout(function () {
|
|
220634
|
+
callback && callback();
|
|
220635
|
+
}, 0);
|
|
220636
|
+
});
|
|
220392
220637
|
}
|
|
220393
220638
|
} else {
|
|
220394
220639
|
this.deleteNode(node);
|
|
@@ -220812,6 +221057,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220812
221057
|
if (curDomRange.isEmpty) return;
|
|
220813
221058
|
var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
|
|
220814
221059
|
var nodes = result[0];
|
|
221060
|
+
var isHaveParaNodes = false;
|
|
221061
|
+
|
|
221062
|
+
for (var m = 0; m < nodes.length; m++) {
|
|
221063
|
+
if (nodes[m] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
221064
|
+
isHaveParaNodes = true;
|
|
221065
|
+
break;
|
|
221066
|
+
}
|
|
221067
|
+
}
|
|
221068
|
+
|
|
221069
|
+
if (!isHaveParaNodes) {
|
|
221070
|
+
message_box_default().alert("选区内没有换行符,无需清除.");
|
|
221071
|
+
|
|
221072
|
+
return;
|
|
221073
|
+
}
|
|
220815
221074
|
|
|
220816
221075
|
for (var i = 0; i < nodes.length; i++) {
|
|
220817
221076
|
var node = nodes[i];
|
|
@@ -220961,6 +221220,234 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220961
221220
|
});
|
|
220962
221221
|
drawTree.commentsMap = commentsMap;
|
|
220963
221222
|
}
|
|
221223
|
+
}, {
|
|
221224
|
+
key: "SyncElements",
|
|
221225
|
+
value: function SyncElements() {
|
|
221226
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221227
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
221228
|
+
var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
|
|
221229
|
+
var fieldNames = [];
|
|
221230
|
+
var dateNames = [];
|
|
221231
|
+
var downNames = [];
|
|
221232
|
+
hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
|
|
221233
|
+
|
|
221234
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221235
|
+
var node = nodes[i];
|
|
221236
|
+
|
|
221237
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221238
|
+
if (fieldNames.indexOf(node.name) === -1) {
|
|
221239
|
+
fieldNames.push(node.name);
|
|
221240
|
+
var sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221241
|
+
|
|
221242
|
+
for (var j = 0; j < sameNameEles.length; j++) {
|
|
221243
|
+
var ele = sameNameEles[j];
|
|
221244
|
+
if (nodes.indexOf(ele) >= 0) continue;
|
|
221245
|
+
|
|
221246
|
+
if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221247
|
+
ele.setFieldText(node.text);
|
|
221248
|
+
}
|
|
221249
|
+
}
|
|
221250
|
+
}
|
|
221251
|
+
}
|
|
221252
|
+
|
|
221253
|
+
if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221254
|
+
if (dateNames.indexOf(node.name) === -1) {
|
|
221255
|
+
dateNames.push(node.name);
|
|
221256
|
+
|
|
221257
|
+
var _sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221258
|
+
|
|
221259
|
+
for (var _j = 0; _j < _sameNameEles.length; _j++) {
|
|
221260
|
+
var _ele = _sameNameEles[_j];
|
|
221261
|
+
if (nodes.indexOf(_ele) >= 0) continue;
|
|
221262
|
+
|
|
221263
|
+
if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221264
|
+
_ele.setDateTimeText(node.text);
|
|
221265
|
+
}
|
|
221266
|
+
}
|
|
221267
|
+
}
|
|
221268
|
+
}
|
|
221269
|
+
|
|
221270
|
+
if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
221271
|
+
if (downNames.indexOf(node.name) === -1) {
|
|
221272
|
+
downNames.push(node.name);
|
|
221273
|
+
|
|
221274
|
+
var _sameNameEles2 = this.getNodesByName("all", true, node.name);
|
|
221275
|
+
|
|
221276
|
+
for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
|
|
221277
|
+
var _ele2 = _sameNameEles2[_j2];
|
|
221278
|
+
if (nodes.indexOf(_ele2) >= 0) continue;
|
|
221279
|
+
|
|
221280
|
+
if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
|
|
221281
|
+
_ele2.setDownListText(node.text);
|
|
221282
|
+
}
|
|
221283
|
+
}
|
|
221284
|
+
}
|
|
221285
|
+
}
|
|
221286
|
+
}
|
|
221287
|
+
}
|
|
221288
|
+
}, {
|
|
221289
|
+
key: "showElementsEditRecord",
|
|
221290
|
+
value: function showElementsEditRecord(objects) {
|
|
221291
|
+
var comments = [];
|
|
221292
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221293
|
+
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221294
|
+
commentWidthMm: 50
|
|
221295
|
+
}));
|
|
221296
|
+
|
|
221297
|
+
for (var i = 0; i < objects.length; i++) {
|
|
221298
|
+
var object = objects[i];
|
|
221299
|
+
var name = object.name;
|
|
221300
|
+
var oldValue = object.oldValue;
|
|
221301
|
+
var elements = this.getNodesByName("main", true, name);
|
|
221302
|
+
|
|
221303
|
+
for (var j = 0; j < elements.length; j++) {
|
|
221304
|
+
var element = elements[j];
|
|
221305
|
+
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
221306
|
+
var comment = void 0;
|
|
221307
|
+
|
|
221308
|
+
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221309
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
221310
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
221311
|
+
comments.push(comment);
|
|
221312
|
+
}
|
|
221313
|
+
|
|
221314
|
+
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
221315
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
|
|
221316
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
221317
|
+
comments.push(comment);
|
|
221318
|
+
}
|
|
221319
|
+
}
|
|
221320
|
+
}
|
|
221321
|
+
|
|
221322
|
+
comments.forEach(function (comment, index) {
|
|
221323
|
+
index++;
|
|
221324
|
+
var endDrawNode = comment.eNode.drawNodes[0];
|
|
221325
|
+
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
|
|
221326
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
221327
|
+
|
|
221328
|
+
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
221329
|
+
|
|
221330
|
+
var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
221331
|
+
|
|
221332
|
+
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
221333
|
+
var spY = localPos.y;
|
|
221334
|
+
drawArea.removeComment(comment, true);
|
|
221335
|
+
var path = comment.eNode.getNodePath();
|
|
221336
|
+
|
|
221337
|
+
if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
|
|
221338
|
+
spX = spX + comment.eNode.drawNodes[0].dWidth;
|
|
221339
|
+
}
|
|
221340
|
+
|
|
221341
|
+
if (index === 1) {
|
|
221342
|
+
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
221343
|
+
}
|
|
221344
|
+
|
|
221345
|
+
if (index >= 2) {
|
|
221346
|
+
drawArea.repaintRecored(comments, comment, path, spX, spY);
|
|
221347
|
+
}
|
|
221348
|
+
});
|
|
221349
|
+
}
|
|
221350
|
+
}, {
|
|
221351
|
+
key: "clearEditRecords",
|
|
221352
|
+
value: function clearEditRecords() {
|
|
221353
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221354
|
+
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221355
|
+
commentWidthMm: 0
|
|
221356
|
+
}));
|
|
221357
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
221358
|
+
|
|
221359
|
+
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
221360
|
+
var children = drawMainDocs[j].children;
|
|
221361
|
+
|
|
221362
|
+
for (var i = children.length - 1; i >= 0; i--) {
|
|
221363
|
+
var child = children[i];
|
|
221364
|
+
|
|
221365
|
+
if (child.name && child.name.indexOf("recordC") >= 0) {
|
|
221366
|
+
children.splice(i, 1);
|
|
221367
|
+
}
|
|
221368
|
+
}
|
|
221369
|
+
|
|
221370
|
+
hoEditorFactory.drawPageTree.updateDrawPage(j);
|
|
221371
|
+
}
|
|
221372
|
+
}
|
|
221373
|
+
}, {
|
|
221374
|
+
key: "updateImageSrc",
|
|
221375
|
+
value: function updateImageSrc(node, src) {
|
|
221376
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221377
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
221378
|
+
var ePath = node.getNodePath();
|
|
221379
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
|
|
221380
|
+
changeEvent.oldEndPath = ePath;
|
|
221381
|
+
changeEvent.afterChangePath = ePath;
|
|
221382
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
221383
|
+
node.imageDataBase64String = src;
|
|
221384
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
221385
|
+
}
|
|
221386
|
+
}, {
|
|
221387
|
+
key: "setParaCustomProperty",
|
|
221388
|
+
value: function setParaCustomProperty(paragraphNode, customProperty) {
|
|
221389
|
+
paragraphNode.setCustomProperty(customProperty);
|
|
221390
|
+
}
|
|
221391
|
+
/**
|
|
221392
|
+
* 查询是否有空签名元素
|
|
221393
|
+
* @returns boolean
|
|
221394
|
+
*/
|
|
221395
|
+
|
|
221396
|
+
}, {
|
|
221397
|
+
key: "getAllEmptySignNode",
|
|
221398
|
+
value: function getAllEmptySignNode(attribute) {
|
|
221399
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221400
|
+
var hasEmptyPatientSign = false;
|
|
221401
|
+
var patientSignCount = 0;
|
|
221402
|
+
var hasEmptyDoctorSign = false;
|
|
221403
|
+
|
|
221404
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221405
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221406
|
+
var node = nodes[i];
|
|
221407
|
+
|
|
221408
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
221409
|
+
// 有值的患者签名
|
|
221410
|
+
if (attribute == 1 && node.attribute === 1) {
|
|
221411
|
+
patientSignCount++;
|
|
221412
|
+
}
|
|
221413
|
+
|
|
221414
|
+
if (attribute == 1 && node.attribute === 1 && (node.imgSrc !== '' || node.fingerPrintSrc !== '')) {
|
|
221415
|
+
hasEmptyPatientSign = true;
|
|
221416
|
+
break;
|
|
221417
|
+
} // 空的医生签名
|
|
221418
|
+
|
|
221419
|
+
|
|
221420
|
+
if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
|
|
221421
|
+
hasEmptyDoctorSign = true;
|
|
221422
|
+
break;
|
|
221423
|
+
}
|
|
221424
|
+
}
|
|
221425
|
+
|
|
221426
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
|
|
221427
|
+
// 患者签名已存在的情况不在深层调用深层遍历
|
|
221428
|
+
getAllNodes(node.childNodes);
|
|
221429
|
+
}
|
|
221430
|
+
|
|
221431
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 0 && !hasEmptyDoctorSign) {
|
|
221432
|
+
// 医生签名不存在的情况不在深层调用深层遍历
|
|
221433
|
+
getAllNodes(node.childNodes);
|
|
221434
|
+
}
|
|
221435
|
+
}
|
|
221436
|
+
};
|
|
221437
|
+
|
|
221438
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221439
|
+
getAllNodes(mainNodes);
|
|
221440
|
+
|
|
221441
|
+
if (attribute == 1) {
|
|
221442
|
+
if (patientSignCount == 0) {
|
|
221443
|
+
return true;
|
|
221444
|
+
}
|
|
221445
|
+
|
|
221446
|
+
return hasEmptyPatientSign;
|
|
221447
|
+
} else {
|
|
221448
|
+
return hasEmptyDoctorSign;
|
|
221449
|
+
}
|
|
221450
|
+
}
|
|
220964
221451
|
/**
|
|
220965
221452
|
* 查询是否存在医生签名
|
|
220966
221453
|
* @returns boolean
|
|
@@ -220992,174 +221479,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220992
221479
|
getAllNodes(mainNodes);
|
|
220993
221480
|
return isHasDoctorSign;
|
|
220994
221481
|
}
|
|
220995
|
-
}, {
|
|
220996
|
-
key: "SyncElements",
|
|
220997
|
-
value: function SyncElements() {
|
|
220998
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220999
|
-
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
221000
|
-
var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
|
|
221001
|
-
var fieldNames = [];
|
|
221002
|
-
var dateNames = [];
|
|
221003
|
-
var downNames = [];
|
|
221004
|
-
hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
|
|
221005
|
-
|
|
221006
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
221007
|
-
var node = nodes[i];
|
|
221008
|
-
|
|
221009
|
-
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221010
|
-
if (fieldNames.indexOf(node.name) === -1) {
|
|
221011
|
-
fieldNames.push(node.name);
|
|
221012
|
-
var sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221013
|
-
|
|
221014
|
-
for (var j = 0; j < sameNameEles.length; j++) {
|
|
221015
|
-
var ele = sameNameEles[j];
|
|
221016
|
-
if (nodes.indexOf(ele) >= 0) continue;
|
|
221017
|
-
|
|
221018
|
-
if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221019
|
-
ele.setFieldText(node.text);
|
|
221020
|
-
}
|
|
221021
|
-
}
|
|
221022
|
-
}
|
|
221023
|
-
}
|
|
221024
|
-
|
|
221025
|
-
if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221026
|
-
if (dateNames.indexOf(node.name) === -1) {
|
|
221027
|
-
dateNames.push(node.name);
|
|
221028
|
-
|
|
221029
|
-
var _sameNameEles = this.getNodesByName("all", true, node.name);
|
|
221030
|
-
|
|
221031
|
-
for (var _j = 0; _j < _sameNameEles.length; _j++) {
|
|
221032
|
-
var _ele = _sameNameEles[_j];
|
|
221033
|
-
if (nodes.indexOf(_ele) >= 0) continue;
|
|
221034
|
-
|
|
221035
|
-
if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
221036
|
-
_ele.setDateTimeText(node.text);
|
|
221037
|
-
}
|
|
221038
|
-
}
|
|
221039
|
-
}
|
|
221040
|
-
}
|
|
221041
|
-
|
|
221042
|
-
if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
221043
|
-
if (downNames.indexOf(node.name) === -1) {
|
|
221044
|
-
downNames.push(node.name);
|
|
221045
|
-
|
|
221046
|
-
var _sameNameEles2 = this.getNodesByName("all", true, node.name);
|
|
221047
|
-
|
|
221048
|
-
for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
|
|
221049
|
-
var _ele2 = _sameNameEles2[_j2];
|
|
221050
|
-
if (nodes.indexOf(_ele2) >= 0) continue;
|
|
221051
|
-
|
|
221052
|
-
if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
|
|
221053
|
-
_ele2.setDownListText(node.text);
|
|
221054
|
-
}
|
|
221055
|
-
}
|
|
221056
|
-
}
|
|
221057
|
-
}
|
|
221058
|
-
}
|
|
221059
|
-
}
|
|
221060
|
-
}, {
|
|
221061
|
-
key: "showElementsEditRecord",
|
|
221062
|
-
value: function showElementsEditRecord(objects) {
|
|
221063
|
-
var comments = [];
|
|
221064
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221065
|
-
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221066
|
-
commentWidthMm: 50
|
|
221067
|
-
}));
|
|
221068
|
-
|
|
221069
|
-
for (var i = 0; i < objects.length; i++) {
|
|
221070
|
-
var object = objects[i];
|
|
221071
|
-
var name = object.name;
|
|
221072
|
-
var oldValue = object.oldValue;
|
|
221073
|
-
var elements = this.getNodesByName("main", true, name);
|
|
221074
|
-
|
|
221075
|
-
for (var j = 0; j < elements.length; j++) {
|
|
221076
|
-
var element = elements[j];
|
|
221077
|
-
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
221078
|
-
var comment = void 0;
|
|
221079
|
-
|
|
221080
|
-
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221081
|
-
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
221082
|
-
comment.lineHeight = comment.lineHeight - 20;
|
|
221083
|
-
comments.push(comment);
|
|
221084
|
-
}
|
|
221085
|
-
|
|
221086
|
-
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
221087
|
-
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
|
|
221088
|
-
comment.lineHeight = comment.lineHeight - 20;
|
|
221089
|
-
comments.push(comment);
|
|
221090
|
-
}
|
|
221091
|
-
}
|
|
221092
|
-
}
|
|
221093
|
-
|
|
221094
|
-
comments.forEach(function (comment, index) {
|
|
221095
|
-
index++;
|
|
221096
|
-
var endDrawNode = comment.eNode.drawNodes[0];
|
|
221097
|
-
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
|
|
221098
|
-
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
221099
|
-
|
|
221100
|
-
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
221101
|
-
|
|
221102
|
-
var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
221103
|
-
|
|
221104
|
-
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
221105
|
-
var spY = localPos.y;
|
|
221106
|
-
drawArea.removeComment(comment, true);
|
|
221107
|
-
var path = comment.eNode.getNodePath();
|
|
221108
|
-
|
|
221109
|
-
if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
|
|
221110
|
-
spX = spX + comment.eNode.drawNodes[0].dWidth;
|
|
221111
|
-
}
|
|
221112
|
-
|
|
221113
|
-
if (index === 1) {
|
|
221114
|
-
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
221115
|
-
}
|
|
221116
|
-
|
|
221117
|
-
if (index >= 2) {
|
|
221118
|
-
drawArea.repaintRecored(comments, comment, path, spX, spY);
|
|
221119
|
-
}
|
|
221120
|
-
});
|
|
221121
|
-
}
|
|
221122
|
-
}, {
|
|
221123
|
-
key: "clearEditRecords",
|
|
221124
|
-
value: function clearEditRecords() {
|
|
221125
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221126
|
-
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221127
|
-
commentWidthMm: 0
|
|
221128
|
-
}));
|
|
221129
|
-
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
221130
|
-
|
|
221131
|
-
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
221132
|
-
var children = drawMainDocs[j].children;
|
|
221133
|
-
|
|
221134
|
-
for (var i = children.length - 1; i >= 0; i--) {
|
|
221135
|
-
var child = children[i];
|
|
221136
|
-
|
|
221137
|
-
if (child.name && child.name.indexOf("recordC") >= 0) {
|
|
221138
|
-
children.splice(i, 1);
|
|
221139
|
-
}
|
|
221140
|
-
}
|
|
221141
|
-
|
|
221142
|
-
hoEditorFactory.drawPageTree.updateDrawPage(j);
|
|
221143
|
-
}
|
|
221144
|
-
}
|
|
221145
|
-
}, {
|
|
221146
|
-
key: "updateImageSrc",
|
|
221147
|
-
value: function updateImageSrc(node, src) {
|
|
221148
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221149
|
-
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
221150
|
-
var ePath = node.getNodePath();
|
|
221151
|
-
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
|
|
221152
|
-
changeEvent.oldEndPath = ePath;
|
|
221153
|
-
changeEvent.afterChangePath = ePath;
|
|
221154
|
-
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
221155
|
-
node.imageDataBase64String = src;
|
|
221156
|
-
hoEditorFactory.docTree.change(changeEvent);
|
|
221157
|
-
}
|
|
221158
|
-
}, {
|
|
221159
|
-
key: "setParaCustomProperty",
|
|
221160
|
-
value: function setParaCustomProperty(paragraphNode, customProperty) {
|
|
221161
|
-
paragraphNode.setCustomProperty(customProperty);
|
|
221162
|
-
}
|
|
221163
221482
|
}]);
|
|
221164
221483
|
|
|
221165
221484
|
return VueController;
|
|
@@ -225923,9 +226242,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
225923
226242
|
)
|
|
225924
226243
|
|
|
225925
226244
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
225926
|
-
;// 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=
|
|
225927
|
-
var
|
|
225928
|
-
var
|
|
226245
|
+
;// 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&
|
|
226246
|
+
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)}
|
|
226247
|
+
var ControlModalvue_type_template_id_1b898d58_staticRenderFns = []
|
|
225929
226248
|
|
|
225930
226249
|
|
|
225931
226250
|
;// 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&
|
|
@@ -226299,9 +226618,9 @@ var SelectDialog_component = normalizeComponent(
|
|
|
226299
226618
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/index.ts
|
|
226300
226619
|
|
|
226301
226620
|
/* harmony default export */ var selectDialog = (selectDialog_SelectDialog);
|
|
226302
|
-
;// 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=
|
|
226303
|
-
var
|
|
226304
|
-
var
|
|
226621
|
+
;// 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&
|
|
226622
|
+
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)])}
|
|
226623
|
+
var DateDialogvue_type_template_id_f39033d6_staticRenderFns = []
|
|
226305
226624
|
|
|
226306
226625
|
|
|
226307
226626
|
;// 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&
|
|
@@ -226457,17 +226776,7 @@ var Tab_component = normalizeComponent(
|
|
|
226457
226776
|
)
|
|
226458
226777
|
|
|
226459
226778
|
/* harmony default export */ var Tab = (Tab_component.exports);
|
|
226460
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
226461
|
-
|
|
226462
|
-
|
|
226463
|
-
|
|
226464
|
-
|
|
226465
|
-
|
|
226466
|
-
|
|
226467
|
-
|
|
226468
|
-
|
|
226469
|
-
|
|
226470
|
-
|
|
226779
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
226471
226780
|
|
|
226472
226781
|
|
|
226473
226782
|
|
|
@@ -226479,82 +226788,170 @@ var Tab_component = normalizeComponent(
|
|
|
226479
226788
|
|
|
226480
226789
|
|
|
226481
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
|
+
//
|
|
226857
|
+
//
|
|
226858
|
+
//
|
|
226859
|
+
//
|
|
226860
|
+
//
|
|
226861
|
+
//
|
|
226862
|
+
//
|
|
226863
|
+
//
|
|
226864
|
+
//
|
|
226865
|
+
//
|
|
226866
|
+
//
|
|
226482
226867
|
|
|
226483
226868
|
|
|
226484
|
-
var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
226485
|
-
(0,inherits/* default */.Z)(DateDialog, _Vue);
|
|
226486
|
-
|
|
226487
|
-
var _super = (0,createSuper/* default */.Z)(DateDialog);
|
|
226488
|
-
|
|
226489
|
-
function DateDialog() {
|
|
226490
|
-
var _this;
|
|
226491
226869
|
|
|
226492
|
-
(0,classCallCheck/* default */.Z)(this, DateDialog);
|
|
226493
226870
|
|
|
226494
|
-
_this = _super.apply(this, arguments);
|
|
226495
|
-
_this.dateFormat = util/* dateFormat */.vc;
|
|
226496
|
-
_this.dateFormatList = util/* dateFormatList */.eG;
|
|
226497
|
-
_this.textActiveName = 'first';
|
|
226498
|
-
_this.customPropertyValue = new Object();
|
|
226499
|
-
_this.id = '';
|
|
226500
|
-
_this.name = '';
|
|
226501
|
-
_this.text = '';
|
|
226502
|
-
_this.title = '日期时间';
|
|
226503
|
-
_this.tipText = '';
|
|
226504
|
-
_this.isAllowDelete = false;
|
|
226505
|
-
_this.isReadOnly = false;
|
|
226506
|
-
_this.controlStyle = 'yyyy/MM/dd';
|
|
226507
|
-
_this.innerIdentifier = '';
|
|
226508
|
-
_this.dataMetaIdentifier = '';
|
|
226509
|
-
_this.identifierFormat = '';
|
|
226510
|
-
_this.readType = false;
|
|
226511
|
-
_this.animationClassNames = 'control-modal-contents date-modal animation-in';
|
|
226512
|
-
return _this;
|
|
226513
|
-
}
|
|
226514
226871
|
|
|
226515
|
-
|
|
226516
|
-
|
|
226517
|
-
|
|
226872
|
+
/* harmony default export */ var DateDialogvue_type_script_lang_js_ = ({
|
|
226873
|
+
name: 'DateDialog',
|
|
226874
|
+
components: {
|
|
226875
|
+
Tabs: Tab
|
|
226876
|
+
},
|
|
226877
|
+
data: function data() {
|
|
226878
|
+
return {
|
|
226879
|
+
dateFormat: util/* dateFormat */.vc,
|
|
226880
|
+
dateFormatList: util/* dateFormatList */.eG,
|
|
226881
|
+
textActiveName: 'first',
|
|
226882
|
+
customPropertys: {},
|
|
226883
|
+
// 自定义属性
|
|
226884
|
+
customPropertyValue: new Object(),
|
|
226885
|
+
id: '',
|
|
226886
|
+
name: '',
|
|
226887
|
+
text: '',
|
|
226888
|
+
title: '日期时间',
|
|
226889
|
+
tipText: '',
|
|
226890
|
+
isAllowDelete: false,
|
|
226891
|
+
isReadOnly: false,
|
|
226892
|
+
controlStyle: 'yyyy/MM/dd',
|
|
226893
|
+
innerIdentifier: '',
|
|
226894
|
+
dataMetaIdentifier: '',
|
|
226895
|
+
identifierFormat: '',
|
|
226896
|
+
readType: false,
|
|
226897
|
+
animationClassNames: 'control-modal-contents date-modal animation-in'
|
|
226898
|
+
};
|
|
226899
|
+
},
|
|
226900
|
+
props: {
|
|
226901
|
+
hoEditorFactoryId: {
|
|
226902
|
+
type: String,
|
|
226903
|
+
required: true
|
|
226904
|
+
},
|
|
226905
|
+
controlStatus: {
|
|
226906
|
+
type: String,
|
|
226907
|
+
required: true
|
|
226908
|
+
},
|
|
226909
|
+
vueController: {
|
|
226910
|
+
type: Object,
|
|
226911
|
+
required: true
|
|
226912
|
+
}
|
|
226913
|
+
},
|
|
226914
|
+
inject: ['getCustomProperty'],
|
|
226915
|
+
computed: {
|
|
226916
|
+
customProperty: function customProperty() {
|
|
226518
226917
|
return this.getCustomProperty();
|
|
226519
226918
|
}
|
|
226520
|
-
},
|
|
226521
|
-
|
|
226522
|
-
|
|
226523
|
-
var _this2 = this;
|
|
226524
|
-
|
|
226525
|
-
if (this.controlStatus === 'update') {
|
|
226526
|
-
var updateNode = this.getDateNode();
|
|
226527
|
-
this.id = updateNode.id;
|
|
226528
|
-
this.name = updateNode.name;
|
|
226529
|
-
this.text = updateNode.text && updateNode.text !== updateNode.controlStyle && updateNode.text !== updateNode.name ? this.stringToDate(updateNode.text, updateNode.controlStyle) : '';
|
|
226530
|
-
this.title = updateNode.title;
|
|
226531
|
-
this.tipText = updateNode.tipText;
|
|
226532
|
-
this.isAllowDelete = updateNode.isAllowDelete;
|
|
226533
|
-
this.isReadOnly = updateNode.isReadOnly;
|
|
226534
|
-
this.controlStyle = updateNode.controlStyle;
|
|
226535
|
-
this.innerIdentifier = updateNode.innerIdentifier;
|
|
226536
|
-
this.dataMetaIdentifier = updateNode.dataMetaIdentifier;
|
|
226537
|
-
this.identifierFormat = updateNode.identifierFormat;
|
|
226538
|
-
this.readType = updateNode.readType === 1 ? true : false;
|
|
226919
|
+
},
|
|
226920
|
+
created: function created() {
|
|
226921
|
+
var _this = this;
|
|
226539
226922
|
|
|
226540
|
-
|
|
226541
|
-
|
|
226542
|
-
|
|
226543
|
-
|
|
226544
|
-
|
|
226923
|
+
if (this.controlStatus === 'update') {
|
|
226924
|
+
var updateNode = this.getDateNode();
|
|
226925
|
+
this.id = updateNode.id;
|
|
226926
|
+
this.name = updateNode.name;
|
|
226927
|
+
this.text = updateNode.text && updateNode.text !== updateNode.controlStyle && updateNode.text !== updateNode.name ? this.stringToDate(updateNode.text, updateNode.controlStyle) : '';
|
|
226928
|
+
this.title = updateNode.title;
|
|
226929
|
+
this.tipText = updateNode.tipText;
|
|
226930
|
+
this.isAllowDelete = updateNode.isAllowDelete;
|
|
226931
|
+
this.isReadOnly = updateNode.isReadOnly;
|
|
226932
|
+
this.controlStyle = updateNode.controlStyle;
|
|
226933
|
+
this.innerIdentifier = updateNode.innerIdentifier;
|
|
226934
|
+
this.dataMetaIdentifier = updateNode.dataMetaIdentifier;
|
|
226935
|
+
this.identifierFormat = updateNode.identifierFormat;
|
|
226936
|
+
this.readType = updateNode.readType === 1 ? true : false;
|
|
226545
226937
|
|
|
226546
|
-
|
|
226547
|
-
|
|
226548
|
-
property[key] = _this2.customPropertys[key];
|
|
226549
|
-
});
|
|
226550
|
-
this.customPropertyValue = _objectSpread2({}, property);
|
|
226938
|
+
if ((0,type/* isObject */.Kn)(updateNode.customProperty)) {
|
|
226939
|
+
this.customPropertys = updateNode.customProperty;
|
|
226551
226940
|
} else {
|
|
226552
|
-
this.
|
|
226941
|
+
this.customPropertys = new Object();
|
|
226553
226942
|
}
|
|
226943
|
+
|
|
226944
|
+
var property = new Object();
|
|
226945
|
+
Object.keys(this.customPropertys).forEach(function (key) {
|
|
226946
|
+
property[key] = _this.customPropertys[key];
|
|
226947
|
+
});
|
|
226948
|
+
this.customPropertyValue = _objectSpread2({}, property);
|
|
226949
|
+
} else {
|
|
226950
|
+
this.id = this.vueController.generateID('DT');
|
|
226554
226951
|
}
|
|
226555
|
-
},
|
|
226556
|
-
|
|
226557
|
-
|
|
226952
|
+
},
|
|
226953
|
+
methods: {
|
|
226954
|
+
getDateNode: function getDateNode() {
|
|
226558
226955
|
var _hoEditorFactory$vueC;
|
|
226559
226956
|
|
|
226560
226957
|
var value;
|
|
@@ -226567,15 +226964,11 @@ var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226567
226964
|
}
|
|
226568
226965
|
|
|
226569
226966
|
return value;
|
|
226570
|
-
}
|
|
226571
|
-
|
|
226572
|
-
key: "querySearch",
|
|
226573
|
-
value: function querySearch(queryString, cb) {
|
|
226967
|
+
},
|
|
226968
|
+
querySearch: function querySearch(queryString, cb) {
|
|
226574
226969
|
cb(util/* dateFormatValueList */.dv);
|
|
226575
|
-
}
|
|
226576
|
-
|
|
226577
|
-
key: "stringToDate",
|
|
226578
|
-
value: function stringToDate(value, style) {
|
|
226970
|
+
},
|
|
226971
|
+
stringToDate: function stringToDate(value, style) {
|
|
226579
226972
|
var date = '';
|
|
226580
226973
|
var time = '';
|
|
226581
226974
|
var valueDate = '';
|
|
@@ -226610,11 +227003,9 @@ var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226610
227003
|
}
|
|
226611
227004
|
|
|
226612
227005
|
return valueDate;
|
|
226613
|
-
}
|
|
226614
|
-
|
|
226615
|
-
|
|
226616
|
-
value: function sure() {
|
|
226617
|
-
var _this3 = this;
|
|
227006
|
+
},
|
|
227007
|
+
sure: function sure() {
|
|
227008
|
+
var _this2 = this;
|
|
226618
227009
|
|
|
226619
227010
|
var params = {
|
|
226620
227011
|
id: this.id,
|
|
@@ -226641,37 +227032,17 @@ var DateDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226641
227032
|
}
|
|
226642
227033
|
|
|
226643
227034
|
this.$nextTick(function () {
|
|
226644
|
-
return
|
|
227035
|
+
return _this2.handleClose();
|
|
226645
227036
|
});
|
|
226646
|
-
}
|
|
226647
|
-
|
|
226648
|
-
key: "handleClose",
|
|
226649
|
-
value: function handleClose() {
|
|
227037
|
+
},
|
|
227038
|
+
handleClose: function handleClose() {
|
|
226650
227039
|
this.animationClassNames = 'control-modal-contents date-modal animation-out';
|
|
226651
227040
|
this.$emit('closed');
|
|
226652
227041
|
}
|
|
226653
|
-
}]);
|
|
226654
|
-
|
|
226655
|
-
return DateDialog;
|
|
226656
|
-
}((external_commonjs_vue_commonjs2_vue_root_Vue_default()));
|
|
226657
|
-
|
|
226658
|
-
__decorate([Prop()], DateDialog.prototype, "hoEditorFactoryId", void 0);
|
|
226659
|
-
|
|
226660
|
-
__decorate([Prop()], DateDialog.prototype, "controlStatus", void 0);
|
|
226661
|
-
|
|
226662
|
-
__decorate([Prop()], DateDialog.prototype, "vueController", void 0);
|
|
226663
|
-
|
|
226664
|
-
__decorate([Inject('getCustomProperty')], DateDialog.prototype, "getCustomProperty", void 0);
|
|
226665
|
-
|
|
226666
|
-
DateDialog = __decorate([vue_class_component_esm({
|
|
226667
|
-
name: 'DateDialog',
|
|
226668
|
-
components: {
|
|
226669
|
-
Tabs: Tab
|
|
226670
227042
|
}
|
|
226671
|
-
})
|
|
226672
|
-
|
|
226673
|
-
|
|
226674
|
-
/* harmony default export */ var dateDialog_DateDialogvue_type_script_lang_ts_ = (DateDialogvue_type_script_lang_ts_);
|
|
227043
|
+
});
|
|
227044
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=script&lang=js&
|
|
227045
|
+
/* harmony default export */ var dateDialog_DateDialogvue_type_script_lang_js_ = (DateDialogvue_type_script_lang_js_);
|
|
226675
227046
|
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
226676
227047
|
// extracted by mini-css-extract-plugin
|
|
226677
227048
|
|
|
@@ -226687,9 +227058,9 @@ DateDialog = __decorate([vue_class_component_esm({
|
|
|
226687
227058
|
/* normalize component */
|
|
226688
227059
|
|
|
226689
227060
|
var DateDialog_component = normalizeComponent(
|
|
226690
|
-
|
|
226691
|
-
|
|
226692
|
-
|
|
227061
|
+
dateDialog_DateDialogvue_type_script_lang_js_,
|
|
227062
|
+
DateDialogvue_type_template_id_f39033d6_render,
|
|
227063
|
+
DateDialogvue_type_template_id_f39033d6_staticRenderFns,
|
|
226693
227064
|
false,
|
|
226694
227065
|
null,
|
|
226695
227066
|
null,
|
|
@@ -226697,10 +227068,10 @@ var DateDialog_component = normalizeComponent(
|
|
|
226697
227068
|
|
|
226698
227069
|
)
|
|
226699
227070
|
|
|
226700
|
-
/* harmony default export */ var
|
|
227071
|
+
/* harmony default export */ var DateDialog = (DateDialog_component.exports);
|
|
226701
227072
|
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/index.ts
|
|
226702
227073
|
|
|
226703
|
-
/* harmony default export */ var dateDialog = (
|
|
227074
|
+
/* harmony default export */ var dateDialog = (DateDialog);
|
|
226704
227075
|
;// 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&
|
|
226705
227076
|
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)])}
|
|
226706
227077
|
var BarCodesvue_type_template_id_5569452d_staticRenderFns = []
|
|
@@ -227389,23 +227760,14 @@ var TextDialog_component = normalizeComponent(
|
|
|
227389
227760
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/index.ts
|
|
227390
227761
|
|
|
227391
227762
|
/* harmony default export */ var textDialog = (textDialog_TextDialog);
|
|
227392
|
-
;// 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=
|
|
227393
|
-
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)])}
|
|
227394
|
-
var
|
|
227395
|
-
|
|
227396
|
-
|
|
227397
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=61f32ecc&scoped=true&
|
|
227398
|
-
|
|
227399
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
227400
|
-
|
|
227401
|
-
|
|
227402
|
-
|
|
227403
|
-
|
|
227404
|
-
|
|
227405
|
-
|
|
227763
|
+
;// 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&
|
|
227764
|
+
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)])}
|
|
227765
|
+
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("第二乳磨牙")])])}]
|
|
227406
227766
|
|
|
227407
227767
|
|
|
227768
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=cc393f74&scoped=true&
|
|
227408
227769
|
|
|
227770
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
227409
227771
|
|
|
227410
227772
|
|
|
227411
227773
|
|
|
@@ -227418,210 +227780,470 @@ var ExpressionFormvue_type_template_id_61f32ecc_scoped_true_staticRenderFns = [f
|
|
|
227418
227780
|
|
|
227419
227781
|
|
|
227420
227782
|
|
|
227421
|
-
var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
227422
|
-
(0,inherits/* default */.Z)(ExpressionForm, _Vue);
|
|
227423
227783
|
|
|
227424
|
-
|
|
227425
|
-
|
|
227426
|
-
|
|
227427
|
-
|
|
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
|
+
//
|
|
228049
|
+
//
|
|
228050
|
+
//
|
|
228051
|
+
//
|
|
228052
|
+
//
|
|
228053
|
+
//
|
|
228054
|
+
//
|
|
228055
|
+
//
|
|
228056
|
+
//
|
|
228057
|
+
//
|
|
228058
|
+
//
|
|
227428
228059
|
|
|
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
|
-
|
|
227482
|
-
|
|
227483
|
-
|
|
227484
|
-
|
|
227485
|
-
|
|
227486
|
-
|
|
227487
|
-
|
|
227488
|
-
|
|
227489
|
-
|
|
227490
|
-
|
|
227491
|
-
|
|
228060
|
+
/* harmony default export */ var ExpressionFormvue_type_script_lang_js_ = ({
|
|
228061
|
+
name: 'ExpressionForm',
|
|
228062
|
+
data: function data() {
|
|
228063
|
+
return {
|
|
228064
|
+
animationClassNames: 'control-modal-contents express-dialog animation-in',
|
|
228065
|
+
isUseDate: false,
|
|
228066
|
+
useDateFormat: 'yyyy-MM-dd',
|
|
228067
|
+
names: {
|
|
228068
|
+
style1: '经期史',
|
|
228069
|
+
style2: '经期史',
|
|
228070
|
+
style3: '经期史',
|
|
228071
|
+
style4: '经期史',
|
|
228072
|
+
style5: '瞳孔图',
|
|
228073
|
+
style6: '光定位图',
|
|
228074
|
+
style7: '胎心图',
|
|
228075
|
+
style8: '恒牙牙位图',
|
|
228076
|
+
style9: '乳牙牙位图'
|
|
228077
|
+
},
|
|
228078
|
+
menstrualHistory: {
|
|
228079
|
+
menseDays: '',
|
|
228080
|
+
cycleDays: '',
|
|
228081
|
+
menarcheAge: '14',
|
|
228082
|
+
menoPauseAge: '52'
|
|
228083
|
+
},
|
|
228084
|
+
style567: {
|
|
228085
|
+
value1: '1',
|
|
228086
|
+
value2: '2',
|
|
228087
|
+
value3: '3',
|
|
228088
|
+
value4: '4',
|
|
228089
|
+
value5: '5',
|
|
228090
|
+
value6: '6',
|
|
228091
|
+
value7: '7',
|
|
228092
|
+
value8: '8',
|
|
228093
|
+
value9: '9'
|
|
228094
|
+
},
|
|
228095
|
+
style89: {
|
|
228096
|
+
topLeft: [],
|
|
228097
|
+
topRight: [],
|
|
228098
|
+
bottomLeft: [],
|
|
228099
|
+
bottomRight: []
|
|
228100
|
+
},
|
|
228101
|
+
style8: {
|
|
228102
|
+
topLeft: ['8', '7', '6', '5', '4', '3', '2', '1'],
|
|
228103
|
+
topRight: ['1', '2', '3', '4', '5', '6', '7', '8'],
|
|
228104
|
+
bottomLeft: ['8', '7', '6', '5', '4', '3', '2', '1'],
|
|
228105
|
+
bottomRight: ['1', '2', '3', '4', '5', '6', '7', '8']
|
|
228106
|
+
},
|
|
228107
|
+
style9: {
|
|
228108
|
+
topLeft: ['V', 'IV', 'III', 'II', 'I'],
|
|
228109
|
+
topRight: ['I', 'II', 'III', 'IV', 'V'],
|
|
228110
|
+
bottomLeft: ['V', 'IV', 'III', 'II', 'I'],
|
|
228111
|
+
bottomRight: ['I', 'II', 'III', 'IV', 'V']
|
|
228112
|
+
},
|
|
228113
|
+
styleObjectArray: {
|
|
228114
|
+
style1: 1,
|
|
228115
|
+
style2: 1,
|
|
228116
|
+
style3: 1,
|
|
228117
|
+
style4: 1,
|
|
228118
|
+
style5: 2,
|
|
228119
|
+
style6: 2,
|
|
228120
|
+
style7: 2,
|
|
228121
|
+
style8: 3,
|
|
228122
|
+
style9: 3
|
|
228123
|
+
}
|
|
227492
228124
|
};
|
|
227493
|
-
|
|
227494
|
-
|
|
227495
|
-
|
|
227496
|
-
|
|
227497
|
-
|
|
227498
|
-
|
|
227499
|
-
|
|
228125
|
+
},
|
|
228126
|
+
props: {
|
|
228127
|
+
controlProperty: {
|
|
228128
|
+
type: Object,
|
|
228129
|
+
required: true
|
|
228130
|
+
},
|
|
228131
|
+
vueController: {
|
|
228132
|
+
type: Object,
|
|
228133
|
+
required: true
|
|
227500
228134
|
}
|
|
227501
|
-
},
|
|
227502
|
-
|
|
227503
|
-
|
|
228135
|
+
},
|
|
228136
|
+
inject: ['getUpdateNodeValue'],
|
|
228137
|
+
computed: {
|
|
228138
|
+
controlType: function controlType() {
|
|
228139
|
+
return this.controlProperty.controlType;
|
|
228140
|
+
},
|
|
228141
|
+
controlStatus: function controlStatus() {
|
|
227504
228142
|
return this.controlProperty.controlStatus;
|
|
227505
|
-
}
|
|
227506
|
-
|
|
227507
|
-
key: "expressStyle",
|
|
227508
|
-
get: function get() {
|
|
228143
|
+
},
|
|
228144
|
+
expressStyle: function expressStyle() {
|
|
227509
228145
|
return this.controlProperty.expressStyle;
|
|
227510
228146
|
}
|
|
227511
|
-
},
|
|
227512
|
-
|
|
227513
|
-
|
|
227514
|
-
|
|
227515
|
-
var updateNode = this.getUpdateNodeValue();
|
|
228147
|
+
},
|
|
228148
|
+
created: function created() {
|
|
228149
|
+
if (this.controlStatus === 'update') {
|
|
228150
|
+
var updateNode = this.getUpdateNodeValue();
|
|
227516
228151
|
|
|
227517
|
-
|
|
227518
|
-
|
|
227519
|
-
|
|
228152
|
+
if (this.styleObjectArray[this.expressStyle] === 1) {
|
|
228153
|
+
var nodes = updateNode;
|
|
228154
|
+
var regNumber = /^[0-9]*$/; // 数字校验
|
|
227520
228155
|
|
|
227521
|
-
|
|
228156
|
+
var menoPauseAge = nodes[3];
|
|
227522
228157
|
|
|
227523
|
-
|
|
227524
|
-
|
|
228158
|
+
if (!regNumber.test(menoPauseAge) && menoPauseAge) {
|
|
228159
|
+
this.isUseDate = true;
|
|
227525
228160
|
|
|
227526
|
-
|
|
227527
|
-
|
|
227528
|
-
|
|
227529
|
-
|
|
227530
|
-
|
|
227531
|
-
|
|
227532
|
-
}
|
|
228161
|
+
if (menoPauseAge.indexOf('-') !== -1) {
|
|
228162
|
+
this.useDateFormat = 'yyyy-MM-dd';
|
|
228163
|
+
} else if (menoPauseAge.indexOf('/') !== -1) {
|
|
228164
|
+
this.useDateFormat = 'yyyy/MM/dd';
|
|
228165
|
+
} else if (menoPauseAge.indexOf('年') !== -1) {
|
|
228166
|
+
this.useDateFormat = 'yyyy年MM月dd日';
|
|
227533
228167
|
}
|
|
228168
|
+
}
|
|
227534
228169
|
|
|
227535
|
-
|
|
227536
|
-
|
|
227537
|
-
|
|
227538
|
-
|
|
227539
|
-
|
|
227540
|
-
|
|
227541
|
-
|
|
227542
|
-
|
|
228170
|
+
this.menstrualHistory = {
|
|
228171
|
+
menseDays: nodes[0] ? nodes[0].replace('天', '') : '',
|
|
228172
|
+
cycleDays: nodes[1] ? nodes[1].replace('天', '') : '',
|
|
228173
|
+
menarcheAge: nodes[2] ? nodes[2].replace('岁', '') : '',
|
|
228174
|
+
menoPauseAge: menoPauseAge
|
|
228175
|
+
};
|
|
228176
|
+
} else if (this.styleObjectArray[this.expressStyle] === 2) {
|
|
228177
|
+
var _nodes = updateNode;
|
|
227543
228178
|
|
|
227544
|
-
|
|
228179
|
+
var _ref = (0,toConsumableArray/* default */.Z)(_nodes);
|
|
227545
228180
|
|
|
227546
|
-
|
|
227547
|
-
|
|
227548
|
-
|
|
227549
|
-
|
|
227550
|
-
|
|
227551
|
-
|
|
227552
|
-
|
|
227553
|
-
|
|
227554
|
-
|
|
227555
|
-
|
|
227556
|
-
|
|
228181
|
+
this.style567.value1 = _ref[0];
|
|
228182
|
+
this.style567.value2 = _ref[1];
|
|
228183
|
+
this.style567.value3 = _ref[2];
|
|
228184
|
+
this.style567.value4 = _ref[3];
|
|
228185
|
+
this.style567.value5 = _ref[4];
|
|
228186
|
+
this.style567.value6 = _ref[5];
|
|
228187
|
+
this.style567.value7 = _ref[6];
|
|
228188
|
+
this.style567.value8 = _ref[7];
|
|
228189
|
+
this.style567.value9 = _ref[8];
|
|
228190
|
+
} else if (this.styleObjectArray[this.expressStyle] === 3) {
|
|
228191
|
+
var _nodes2 = updateNode;
|
|
227557
228192
|
|
|
227558
|
-
|
|
228193
|
+
var _ref2 = (0,toConsumableArray/* default */.Z)(_nodes2);
|
|
227559
228194
|
|
|
227560
|
-
|
|
227561
|
-
|
|
227562
|
-
|
|
227563
|
-
|
|
227564
|
-
}
|
|
228195
|
+
this.style89.topLeft = _ref2[0];
|
|
228196
|
+
this.style89.topRight = _ref2[1];
|
|
228197
|
+
this.style89.bottomLeft = _ref2[2];
|
|
228198
|
+
this.style89.bottomRight = _ref2[3];
|
|
227565
228199
|
}
|
|
227566
228200
|
}
|
|
227567
|
-
},
|
|
227568
|
-
|
|
227569
|
-
|
|
228201
|
+
},
|
|
228202
|
+
methods: {
|
|
228203
|
+
useDateChange: function useDateChange() {
|
|
227570
228204
|
if (this.isUseDate) {
|
|
227571
228205
|
this.menstrualHistory = _objectSpread2(_objectSpread2({}, this.menstrualHistory), {}, {
|
|
227572
|
-
menoPauseAge:
|
|
228206
|
+
menoPauseAge: ''
|
|
227573
228207
|
});
|
|
227574
228208
|
} else {
|
|
227575
228209
|
this.menstrualHistory = _objectSpread2(_objectSpread2({}, this.menstrualHistory), {}, {
|
|
227576
|
-
menoPauseAge:
|
|
228210
|
+
menoPauseAge: '52'
|
|
227577
228211
|
});
|
|
227578
228212
|
}
|
|
227579
|
-
}
|
|
227580
|
-
|
|
227581
|
-
key: "dateFormatChange",
|
|
227582
|
-
value: function dateFormatChange() {
|
|
228213
|
+
},
|
|
228214
|
+
dateFormatChange: function dateFormatChange() {
|
|
227583
228215
|
if (this.menstrualHistory.menoPauseAge) {
|
|
227584
228216
|
this.menstrualHistory = _objectSpread2(_objectSpread2({}, this.menstrualHistory), {}, {
|
|
227585
228217
|
menoPauseAge: (0,util/* dateFormat */.vc)(this.menstrualHistory.menoPauseAge, this.useDateFormat)
|
|
227586
228218
|
});
|
|
227587
228219
|
}
|
|
227588
|
-
}
|
|
227589
|
-
|
|
227590
|
-
key: "reset",
|
|
227591
|
-
value: function reset() {
|
|
228220
|
+
},
|
|
228221
|
+
reset: function reset() {
|
|
227592
228222
|
this.style89 = {
|
|
227593
228223
|
topLeft: [],
|
|
227594
228224
|
topRight: [],
|
|
227595
228225
|
bottomLeft: [],
|
|
227596
228226
|
bottomRight: []
|
|
227597
228227
|
};
|
|
227598
|
-
}
|
|
228228
|
+
},
|
|
228229
|
+
|
|
227599
228230
|
/** 全选 */
|
|
228231
|
+
all: function all() {
|
|
228232
|
+
if (this.expressStyle === 'style8') this.style89 = Object.assign({}, this.style8);
|
|
228233
|
+
if (this.expressStyle === 'style9') this.style89 = Object.assign({}, this.style9);
|
|
228234
|
+
},
|
|
227600
228235
|
|
|
227601
|
-
}, {
|
|
227602
|
-
key: "all",
|
|
227603
|
-
value: function all() {
|
|
227604
|
-
if (this.expressStyle === "style8") this.style89 = Object.assign({}, this.style8);
|
|
227605
|
-
if (this.expressStyle === "style9") this.style89 = Object.assign({}, this.style9);
|
|
227606
|
-
}
|
|
227607
228236
|
/** 反选 */
|
|
228237
|
+
reverse: function reverse() {
|
|
228238
|
+
this.reverseOrSort('reverse');
|
|
228239
|
+
},
|
|
227608
228240
|
|
|
227609
|
-
}, {
|
|
227610
|
-
key: "reverse",
|
|
227611
|
-
value: function reverse() {
|
|
227612
|
-
this.reverseOrSort("reverse");
|
|
227613
|
-
}
|
|
227614
228241
|
/** 提交前需要对选中值进行排序操作 */
|
|
227615
|
-
|
|
227616
|
-
|
|
227617
|
-
|
|
227618
|
-
|
|
227619
|
-
this
|
|
227620
|
-
}
|
|
227621
|
-
}, {
|
|
227622
|
-
key: "reverseOrSort",
|
|
227623
|
-
value: function reverseOrSort(type) {
|
|
227624
|
-
var _this2 = this;
|
|
228242
|
+
sureSort: function sureSort() {
|
|
228243
|
+
this.reverseOrSort('sort');
|
|
228244
|
+
},
|
|
228245
|
+
reverseOrSort: function reverseOrSort(type) {
|
|
228246
|
+
var _this = this;
|
|
227625
228247
|
|
|
227626
228248
|
var styles = {
|
|
227627
228249
|
topLeft: [],
|
|
@@ -227629,25 +228251,25 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227629
228251
|
bottomLeft: [],
|
|
227630
228252
|
bottomRight: []
|
|
227631
228253
|
};
|
|
227632
|
-
var arr;
|
|
228254
|
+
var arr = [];
|
|
227633
228255
|
|
|
227634
|
-
if (this.expressStyle ===
|
|
228256
|
+
if (this.expressStyle === 'style8') {
|
|
227635
228257
|
arr = Object.assign({}, this.style8);
|
|
227636
|
-
} else if (this.expressStyle ===
|
|
228258
|
+
} else if (this.expressStyle === 'style9') {
|
|
227637
228259
|
arr = Object.assign({}, this.style9);
|
|
227638
228260
|
}
|
|
227639
228261
|
|
|
227640
228262
|
Object.keys(this.style89).map(function (v) {
|
|
227641
228263
|
arr[v].map(function (m) {
|
|
227642
|
-
if (type ===
|
|
227643
|
-
if (!
|
|
228264
|
+
if (type === 'reverse') {
|
|
228265
|
+
if (!_this.style89[v].includes(m)) {
|
|
227644
228266
|
styles[v].push(m);
|
|
227645
228267
|
}
|
|
227646
|
-
} else if (type ===
|
|
227647
|
-
if (
|
|
228268
|
+
} else if (type === 'sort') {
|
|
228269
|
+
if (_this.style89[v].includes(m)) {
|
|
227648
228270
|
styles[v].push(m);
|
|
227649
228271
|
} else {
|
|
227650
|
-
styles[v].push(
|
|
228272
|
+
styles[v].push('');
|
|
227651
228273
|
}
|
|
227652
228274
|
}
|
|
227653
228275
|
|
|
@@ -227655,61 +228277,56 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227655
228277
|
});
|
|
227656
228278
|
});
|
|
227657
228279
|
this.style89 = Object.assign({}, styles);
|
|
227658
|
-
}
|
|
227659
|
-
|
|
227660
|
-
key: "objectToArray",
|
|
227661
|
-
value: function objectToArray(obj) {
|
|
228280
|
+
},
|
|
228281
|
+
objectToArray: function objectToArray(obj) {
|
|
227662
228282
|
var arr = [];
|
|
227663
228283
|
Object.keys(obj).forEach(function (v) {
|
|
227664
228284
|
arr.push(obj[v]);
|
|
227665
228285
|
});
|
|
227666
228286
|
return arr;
|
|
227667
|
-
}
|
|
228287
|
+
},
|
|
228288
|
+
|
|
227668
228289
|
/** 取消 */
|
|
228290
|
+
cancel: function cancel() {
|
|
228291
|
+
this.animationClassNames = 'control-modal-contents express-dialog animation-out';
|
|
228292
|
+
this.$emit('closed');
|
|
228293
|
+
},
|
|
227669
228294
|
|
|
227670
|
-
}, {
|
|
227671
|
-
key: "cancel",
|
|
227672
|
-
value: function cancel() {
|
|
227673
|
-
this.animationClassNames = "control-modal-contents express-dialog animation-out";
|
|
227674
|
-
this.$emit("closed");
|
|
227675
|
-
}
|
|
227676
228295
|
/** 确认提交 */
|
|
227677
|
-
|
|
227678
|
-
|
|
227679
|
-
key: "sure",
|
|
227680
|
-
value: function sure() {
|
|
227681
|
-
if (this.expressStyle === "" || this.expressStyle === "style1" || this.expressStyle === "style2" || this.expressStyle === "style3" || this.expressStyle === "style4") {
|
|
228296
|
+
sure: function sure() {
|
|
228297
|
+
if (this.expressStyle === '' || this.expressStyle === 'style1' || this.expressStyle === 'style2' || this.expressStyle === 'style3' || this.expressStyle === 'style4') {
|
|
227682
228298
|
var reg = /^[\u2E80-\u9FFF]+$/; // 中文校验
|
|
227683
228299
|
|
|
227684
228300
|
if (!reg.test(this.menstrualHistory.menseDays)) {
|
|
227685
|
-
this.menstrualHistory.menseDays = this.menstrualHistory.menseDays +
|
|
228301
|
+
this.menstrualHistory.menseDays = this.menstrualHistory.menseDays + '天';
|
|
227686
228302
|
}
|
|
227687
228303
|
|
|
227688
228304
|
if (!reg.test(this.menstrualHistory.cycleDays)) {
|
|
227689
|
-
this.menstrualHistory.cycleDays = this.menstrualHistory.cycleDays +
|
|
228305
|
+
this.menstrualHistory.cycleDays = this.menstrualHistory.cycleDays + '天';
|
|
227690
228306
|
}
|
|
227691
228307
|
|
|
227692
228308
|
if (!reg.test(this.menstrualHistory.menarcheAge)) {
|
|
227693
|
-
this.menstrualHistory.menarcheAge = this.menstrualHistory.menarcheAge +
|
|
228309
|
+
this.menstrualHistory.menarcheAge = this.menstrualHistory.menarcheAge + '岁';
|
|
227694
228310
|
}
|
|
227695
228311
|
|
|
227696
228312
|
this.insertMenstrualHistory([this.controlStatus, this.expressStyle].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.menstrualHistory))));
|
|
227697
|
-
} else if (this.expressStyle ===
|
|
228313
|
+
} else if (this.expressStyle === 'style5') {
|
|
227698
228314
|
this.insertPupilMap([this.controlStatus].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.style567))));
|
|
227699
|
-
} else if (this.expressStyle ===
|
|
228315
|
+
} else if (this.expressStyle === 'style6') {
|
|
227700
228316
|
this.insertLightLocation([this.controlStatus].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.style567))));
|
|
227701
|
-
} else if (this.expressStyle ===
|
|
228317
|
+
} else if (this.expressStyle === 'style7') {
|
|
227702
228318
|
this.insertFetalHeartMap([this.controlStatus].concat((0,toConsumableArray/* default */.Z)(this.objectToArray(this.style567))));
|
|
227703
|
-
} else if (this.expressStyle ===
|
|
227704
|
-
this.reverseOrSort(
|
|
228319
|
+
} else if (this.expressStyle === 'style8') {
|
|
228320
|
+
this.reverseOrSort('sort');
|
|
227705
228321
|
this.insertPermanentTeethMap(this.controlStatus, [this.style89.topLeft, this.style89.topRight, this.style89.bottomLeft, this.style89.bottomRight]);
|
|
227706
|
-
} else if (this.expressStyle ===
|
|
227707
|
-
this.reverseOrSort(
|
|
228322
|
+
} else if (this.expressStyle === 'style9') {
|
|
228323
|
+
this.reverseOrSort('sort');
|
|
227708
228324
|
this.insertPrimaryTeethMap(this.controlStatus, [this.style89.topLeft, this.style89.topRight, this.style89.bottomLeft, this.style89.bottomRight]);
|
|
227709
228325
|
} else {}
|
|
227710
228326
|
|
|
227711
228327
|
this.cancel();
|
|
227712
|
-
}
|
|
228328
|
+
},
|
|
228329
|
+
|
|
227713
228330
|
/**
|
|
227714
228331
|
* 经期史
|
|
227715
228332
|
* @menseDays 经期(天)
|
|
@@ -227717,10 +228334,7 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227717
228334
|
* @menarcheAge 初潮年龄
|
|
227718
228335
|
* @menoPauseAge 绝经年龄
|
|
227719
228336
|
*/
|
|
227720
|
-
|
|
227721
|
-
}, {
|
|
227722
|
-
key: "insertMenstrualHistory",
|
|
227723
|
-
value: function insertMenstrualHistory(val) {
|
|
228337
|
+
insertMenstrualHistory: function insertMenstrualHistory(val) {
|
|
227724
228338
|
var _ref3 = (0,toConsumableArray/* default */.Z)(val),
|
|
227725
228339
|
controlStatus = _ref3[0],
|
|
227726
228340
|
expressStyle = _ref3[1],
|
|
@@ -227729,19 +228343,17 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227729
228343
|
menarcheAge = _ref3[4],
|
|
227730
228344
|
menoPauseAge = _ref3[5];
|
|
227731
228345
|
|
|
227732
|
-
if (controlStatus ===
|
|
228346
|
+
if (controlStatus === 'add') {
|
|
227733
228347
|
this.vueController.insertMenstrualHistory(controlStatus, expressStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
227734
228348
|
} else {
|
|
227735
228349
|
this.vueController.updateMenstrualHistory(expressStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
227736
228350
|
}
|
|
227737
|
-
}
|
|
228351
|
+
},
|
|
228352
|
+
|
|
227738
228353
|
/**
|
|
227739
228354
|
* 瞳孔图
|
|
227740
228355
|
*/
|
|
227741
|
-
|
|
227742
|
-
}, {
|
|
227743
|
-
key: "insertPupilMap",
|
|
227744
|
-
value: function insertPupilMap(val) {
|
|
228356
|
+
insertPupilMap: function insertPupilMap(val) {
|
|
227745
228357
|
var _ref4 = (0,toConsumableArray/* default */.Z)(val),
|
|
227746
228358
|
controlStatus = _ref4[0],
|
|
227747
228359
|
value1 = _ref4[1],
|
|
@@ -227752,19 +228364,17 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227752
228364
|
value6 = _ref4[6],
|
|
227753
228365
|
value7 = _ref4[7];
|
|
227754
228366
|
|
|
227755
|
-
if (controlStatus ===
|
|
228367
|
+
if (controlStatus === 'add') {
|
|
227756
228368
|
this.vueController.insertPupilMap(controlStatus, value1, value2, value3, value4, value5, value6, value7);
|
|
227757
228369
|
} else {
|
|
227758
228370
|
this.vueController.updatePupilMap(value1, value2, value3, value4, value5, value6, value7);
|
|
227759
228371
|
}
|
|
227760
|
-
}
|
|
228372
|
+
},
|
|
228373
|
+
|
|
227761
228374
|
/**
|
|
227762
228375
|
* 光定位图
|
|
227763
228376
|
*/
|
|
227764
|
-
|
|
227765
|
-
}, {
|
|
227766
|
-
key: "insertLightLocation",
|
|
227767
|
-
value: function insertLightLocation(val) {
|
|
228377
|
+
insertLightLocation: function insertLightLocation(val) {
|
|
227768
228378
|
var _ref5 = (0,toConsumableArray/* default */.Z)(val),
|
|
227769
228379
|
controlStatus = _ref5[0],
|
|
227770
228380
|
value1 = _ref5[1],
|
|
@@ -227777,19 +228387,17 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227777
228387
|
value8 = _ref5[8],
|
|
227778
228388
|
value9 = _ref5[9];
|
|
227779
228389
|
|
|
227780
|
-
if (controlStatus ===
|
|
228390
|
+
if (controlStatus === 'add') {
|
|
227781
228391
|
this.vueController.insertLightLocation(controlStatus, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
227782
228392
|
} else {
|
|
227783
228393
|
this.vueController.updateLightLocation(value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
227784
228394
|
}
|
|
227785
|
-
}
|
|
228395
|
+
},
|
|
228396
|
+
|
|
227786
228397
|
/**
|
|
227787
228398
|
* 胎心图
|
|
227788
228399
|
*/
|
|
227789
|
-
|
|
227790
|
-
}, {
|
|
227791
|
-
key: "insertFetalHeartMap",
|
|
227792
|
-
value: function insertFetalHeartMap(val) {
|
|
228400
|
+
insertFetalHeartMap: function insertFetalHeartMap(val) {
|
|
227793
228401
|
var _ref6 = (0,toConsumableArray/* default */.Z)(val),
|
|
227794
228402
|
controlStatus = _ref6[0],
|
|
227795
228403
|
value1 = _ref6[1],
|
|
@@ -227799,71 +228407,54 @@ var ExpressionForm = /*#__PURE__*/function (_Vue) {
|
|
|
227799
228407
|
value5 = _ref6[5],
|
|
227800
228408
|
value6 = _ref6[6];
|
|
227801
228409
|
|
|
227802
|
-
if (controlStatus ===
|
|
228410
|
+
if (controlStatus === 'add') {
|
|
227803
228411
|
this.vueController.insertFetalHeartMap(controlStatus, value1, value2, value3, value4, value5, value6);
|
|
227804
228412
|
} else {
|
|
227805
228413
|
this.vueController.updateFetalHeartMap(value1, value2, value3, value4, value5, value6);
|
|
227806
228414
|
}
|
|
227807
|
-
}
|
|
228415
|
+
},
|
|
228416
|
+
|
|
227808
228417
|
/**
|
|
227809
228418
|
* 恒牙牙位图
|
|
227810
228419
|
*/
|
|
227811
|
-
|
|
227812
|
-
}, {
|
|
227813
|
-
key: "insertPermanentTeethMap",
|
|
227814
|
-
value: function insertPermanentTeethMap(controlStatus, val) {
|
|
228420
|
+
insertPermanentTeethMap: function insertPermanentTeethMap(controlStatus, val) {
|
|
227815
228421
|
var _ref7 = (0,toConsumableArray/* default */.Z)(val),
|
|
227816
228422
|
topLeft = _ref7[0],
|
|
227817
228423
|
topRight = _ref7[1],
|
|
227818
228424
|
bottomLeft = _ref7[2],
|
|
227819
228425
|
bottomRight = _ref7[3];
|
|
227820
228426
|
|
|
227821
|
-
if (controlStatus ===
|
|
228427
|
+
if (controlStatus === 'add') {
|
|
227822
228428
|
this.vueController.insertPermanentTeethMap(controlStatus, topLeft, topRight, bottomLeft, bottomRight);
|
|
227823
228429
|
} else {
|
|
227824
228430
|
this.vueController.updatePermanentTeethMap(topLeft, topRight, bottomLeft, bottomRight);
|
|
227825
228431
|
}
|
|
227826
|
-
}
|
|
228432
|
+
},
|
|
228433
|
+
|
|
227827
228434
|
/**
|
|
227828
228435
|
* 乳牙牙位图
|
|
227829
228436
|
*/
|
|
227830
|
-
|
|
227831
|
-
}, {
|
|
227832
|
-
key: "insertPrimaryTeethMap",
|
|
227833
|
-
value: function insertPrimaryTeethMap(controlStatus, val) {
|
|
228437
|
+
insertPrimaryTeethMap: function insertPrimaryTeethMap(controlStatus, val) {
|
|
227834
228438
|
var _ref8 = (0,toConsumableArray/* default */.Z)(val),
|
|
227835
228439
|
topLeft = _ref8[0],
|
|
227836
228440
|
topRight = _ref8[1],
|
|
227837
228441
|
bottomLeft = _ref8[2],
|
|
227838
228442
|
bottomRight = _ref8[3];
|
|
227839
228443
|
|
|
227840
|
-
if (controlStatus ===
|
|
228444
|
+
if (controlStatus === 'add') {
|
|
227841
228445
|
this.vueController.insertPrimaryTeethMap(controlStatus, topLeft, topRight, bottomLeft, bottomRight);
|
|
227842
228446
|
} else {
|
|
227843
228447
|
this.vueController.updatePrimaryTeethMap(topLeft, topRight, bottomLeft, bottomRight);
|
|
227844
228448
|
}
|
|
227845
228449
|
}
|
|
227846
|
-
}
|
|
227847
|
-
|
|
227848
|
-
|
|
227849
|
-
|
|
227850
|
-
|
|
227851
|
-
__decorate([Prop()], ExpressionForm.prototype, "controlProperty", void 0);
|
|
227852
|
-
|
|
227853
|
-
__decorate([Prop()], ExpressionForm.prototype, "vueController", void 0);
|
|
227854
|
-
|
|
227855
|
-
__decorate([Inject("getUpdateNodeValue")], ExpressionForm.prototype, "getUpdateNodeValue", void 0);
|
|
227856
|
-
|
|
227857
|
-
ExpressionForm = __decorate([vue_class_component_esm({
|
|
227858
|
-
name: "ExpressionForm"
|
|
227859
|
-
})], ExpressionForm);
|
|
227860
|
-
/* harmony default export */ var ExpressionFormvue_type_script_lang_ts_ = (ExpressionForm);
|
|
227861
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=script&lang=ts&
|
|
227862
|
-
/* harmony default export */ var expressionForm_ExpressionFormvue_type_script_lang_ts_ = (ExpressionFormvue_type_script_lang_ts_);
|
|
227863
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
228450
|
+
}
|
|
228451
|
+
});
|
|
228452
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=script&lang=js&
|
|
228453
|
+
/* harmony default export */ var expressionForm_ExpressionFormvue_type_script_lang_js_ = (ExpressionFormvue_type_script_lang_js_);
|
|
228454
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
227864
228455
|
// extracted by mini-css-extract-plugin
|
|
227865
228456
|
|
|
227866
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=
|
|
228457
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=cc393f74&lang=scss&scoped=true&
|
|
227867
228458
|
|
|
227868
228459
|
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue
|
|
227869
228460
|
|
|
@@ -227875,20 +228466,20 @@ ExpressionForm = __decorate([vue_class_component_esm({
|
|
|
227875
228466
|
/* normalize component */
|
|
227876
228467
|
|
|
227877
228468
|
var ExpressionForm_component = normalizeComponent(
|
|
227878
|
-
|
|
227879
|
-
|
|
227880
|
-
|
|
228469
|
+
expressionForm_ExpressionFormvue_type_script_lang_js_,
|
|
228470
|
+
ExpressionFormvue_type_template_id_cc393f74_scoped_true_render,
|
|
228471
|
+
ExpressionFormvue_type_template_id_cc393f74_scoped_true_staticRenderFns,
|
|
227881
228472
|
false,
|
|
227882
228473
|
null,
|
|
227883
|
-
"
|
|
228474
|
+
"cc393f74",
|
|
227884
228475
|
null
|
|
227885
228476
|
|
|
227886
228477
|
)
|
|
227887
228478
|
|
|
227888
|
-
/* harmony default export */ var
|
|
228479
|
+
/* harmony default export */ var ExpressionForm = (ExpressionForm_component.exports);
|
|
227889
228480
|
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/index.ts
|
|
227890
228481
|
|
|
227891
|
-
/* harmony default export */ var expressionForm = (
|
|
228482
|
+
/* harmony default export */ var expressionForm = (ExpressionForm);
|
|
227892
228483
|
;// 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&
|
|
227893
228484
|
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)])}
|
|
227894
228485
|
var RadioCheckboxvue_type_template_id_5067453f_scoped_true_staticRenderFns = []
|
|
@@ -228438,9 +229029,9 @@ var CustomAttributes_component = normalizeComponent(
|
|
|
228438
229029
|
;// CONCATENATED MODULE: ./src/components/controls/customAttributes/index.ts
|
|
228439
229030
|
|
|
228440
229031
|
/* harmony default export */ var customAttributes = (CustomAttributes);
|
|
228441
|
-
;// 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=
|
|
228442
|
-
var
|
|
228443
|
-
var
|
|
229032
|
+
;// 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&
|
|
229033
|
+
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)])}
|
|
229034
|
+
var DataSourcevue_type_template_id_65150f69_staticRenderFns = []
|
|
228444
229035
|
|
|
228445
229036
|
|
|
228446
229037
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
@@ -228501,7 +229092,7 @@ var DataSourcevue_type_template_id_4c4cfc34_staticRenderFns = []
|
|
|
228501
229092
|
|
|
228502
229093
|
|
|
228503
229094
|
/* harmony default export */ var DataSourcevue_type_script_lang_js_ = ({
|
|
228504
|
-
name:
|
|
229095
|
+
name: 'DataSourceDialog',
|
|
228505
229096
|
props: {},
|
|
228506
229097
|
inject: ['getDataSource', 'setIsDataSource', 'setDataSource'],
|
|
228507
229098
|
data: function data() {
|
|
@@ -228562,8 +229153,8 @@ var DataSourcevue_type_template_id_4c4cfc34_staticRenderFns = []
|
|
|
228562
229153
|
|
|
228563
229154
|
var DataSource_component = normalizeComponent(
|
|
228564
229155
|
dataSource_DataSourcevue_type_script_lang_js_,
|
|
228565
|
-
|
|
228566
|
-
|
|
229156
|
+
DataSourcevue_type_template_id_65150f69_render,
|
|
229157
|
+
DataSourcevue_type_template_id_65150f69_staticRenderFns,
|
|
228567
229158
|
false,
|
|
228568
229159
|
null,
|
|
228569
229160
|
null,
|
|
@@ -228955,9 +229546,9 @@ var PageInfoes_component = normalizeComponent(
|
|
|
228955
229546
|
;// CONCATENATED MODULE: ./src/components/controls/pageInfoes/index.ts
|
|
228956
229547
|
|
|
228957
229548
|
/* harmony default export */ var pageInfoes = (pageInfoes_PageInfoes);
|
|
228958
|
-
;// 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=
|
|
228959
|
-
var
|
|
228960
|
-
var
|
|
229549
|
+
;// 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&
|
|
229550
|
+
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)])}
|
|
229551
|
+
var Delimitervue_type_template_id_228db06f_staticRenderFns = []
|
|
228961
229552
|
|
|
228962
229553
|
|
|
228963
229554
|
;// 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&
|
|
@@ -229130,64 +229721,68 @@ var HoColorPicker_component = normalizeComponent(
|
|
|
229130
229721
|
)
|
|
229131
229722
|
|
|
229132
229723
|
/* harmony default export */ var HoColorPicker = (HoColorPicker_component.exports);
|
|
229133
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
229134
|
-
|
|
229135
|
-
|
|
229136
|
-
|
|
229137
|
-
|
|
229138
|
-
|
|
229139
|
-
|
|
229140
|
-
|
|
229141
|
-
|
|
229142
|
-
|
|
229143
|
-
|
|
229144
|
-
|
|
229145
|
-
|
|
229146
|
-
|
|
229147
|
-
|
|
229148
|
-
|
|
229149
|
-
|
|
229150
|
-
|
|
229151
|
-
|
|
229152
|
-
|
|
229153
|
-
|
|
229154
|
-
|
|
229155
|
-
|
|
229156
|
-
|
|
229157
|
-
|
|
229158
|
-
|
|
229159
|
-
|
|
229160
|
-
*/
|
|
229161
|
-
|
|
229724
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
229725
|
+
//
|
|
229726
|
+
//
|
|
229727
|
+
//
|
|
229728
|
+
//
|
|
229729
|
+
//
|
|
229730
|
+
//
|
|
229731
|
+
//
|
|
229732
|
+
//
|
|
229733
|
+
//
|
|
229734
|
+
//
|
|
229735
|
+
//
|
|
229736
|
+
//
|
|
229737
|
+
//
|
|
229738
|
+
//
|
|
229739
|
+
//
|
|
229740
|
+
//
|
|
229741
|
+
//
|
|
229742
|
+
//
|
|
229743
|
+
//
|
|
229744
|
+
//
|
|
229745
|
+
//
|
|
229746
|
+
//
|
|
229747
|
+
//
|
|
229748
|
+
//
|
|
229749
|
+
//
|
|
229750
|
+
//
|
|
229162
229751
|
|
|
229163
|
-
|
|
229164
|
-
|
|
229165
|
-
|
|
229752
|
+
/* harmony default export */ var Delimitervue_type_script_lang_js_ = ({
|
|
229753
|
+
name: 'Delimiter',
|
|
229754
|
+
components: {
|
|
229755
|
+
HoColorPicker: HoColorPicker
|
|
229756
|
+
},
|
|
229757
|
+
data: function data() {
|
|
229758
|
+
return {
|
|
229759
|
+
width: 1,
|
|
229760
|
+
color: '#000',
|
|
229761
|
+
animationClassNames: 'control-modal-contents delimiter-modal animation-in'
|
|
229762
|
+
};
|
|
229763
|
+
},
|
|
229764
|
+
props: {
|
|
229765
|
+
vueController: {
|
|
229766
|
+
type: Object,
|
|
229767
|
+
required: true
|
|
229768
|
+
}
|
|
229769
|
+
},
|
|
229770
|
+
methods: {
|
|
229771
|
+
/**
|
|
229772
|
+
* 插入分割福
|
|
229773
|
+
*/
|
|
229774
|
+
insertDelimiter: function insertDelimiter() {
|
|
229166
229775
|
this.vueController.insertSeparateChar(this.width, this.color);
|
|
229167
229776
|
this.handleClose();
|
|
229777
|
+
},
|
|
229778
|
+
handleClose: function handleClose() {
|
|
229779
|
+
this.animationClassNames = 'control-modal-contents delimiter-modal animation-out';
|
|
229780
|
+
this.$emit('closed');
|
|
229168
229781
|
}
|
|
229169
|
-
}, {
|
|
229170
|
-
key: "handleClose",
|
|
229171
|
-
value: function handleClose() {
|
|
229172
|
-
this.animationClassNames = "control-modal-contents delimiter-modal animation-out";
|
|
229173
|
-
this.$emit("closed");
|
|
229174
|
-
}
|
|
229175
|
-
}]);
|
|
229176
|
-
|
|
229177
|
-
return Delimiter;
|
|
229178
|
-
}((external_commonjs_vue_commonjs2_vue_root_Vue_default()));
|
|
229179
|
-
|
|
229180
|
-
__decorate([Prop()], Delimiter.prototype, "vueController", void 0);
|
|
229181
|
-
|
|
229182
|
-
Delimiter = __decorate([vue_class_component_esm({
|
|
229183
|
-
name: "Delimiter",
|
|
229184
|
-
components: {
|
|
229185
|
-
HoColorPicker: HoColorPicker
|
|
229186
229782
|
}
|
|
229187
|
-
})
|
|
229188
|
-
|
|
229189
|
-
|
|
229190
|
-
/* harmony default export */ var delimiter_Delimitervue_type_script_lang_ts_ = (Delimitervue_type_script_lang_ts_);
|
|
229783
|
+
});
|
|
229784
|
+
;// CONCATENATED MODULE: ./src/components/controls/delimiter/Delimiter.vue?vue&type=script&lang=js&
|
|
229785
|
+
/* harmony default export */ var delimiter_Delimitervue_type_script_lang_js_ = (Delimitervue_type_script_lang_js_);
|
|
229191
229786
|
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
229192
229787
|
// extracted by mini-css-extract-plugin
|
|
229193
229788
|
|
|
@@ -229203,9 +229798,9 @@ Delimiter = __decorate([vue_class_component_esm({
|
|
|
229203
229798
|
/* normalize component */
|
|
229204
229799
|
|
|
229205
229800
|
var Delimiter_component = normalizeComponent(
|
|
229206
|
-
|
|
229207
|
-
|
|
229208
|
-
|
|
229801
|
+
delimiter_Delimitervue_type_script_lang_js_,
|
|
229802
|
+
Delimitervue_type_template_id_228db06f_render,
|
|
229803
|
+
Delimitervue_type_template_id_228db06f_staticRenderFns,
|
|
229209
229804
|
false,
|
|
229210
229805
|
null,
|
|
229211
229806
|
null,
|
|
@@ -229213,13 +229808,13 @@ var Delimiter_component = normalizeComponent(
|
|
|
229213
229808
|
|
|
229214
229809
|
)
|
|
229215
229810
|
|
|
229216
|
-
/* harmony default export */ var
|
|
229811
|
+
/* harmony default export */ var Delimiter = (Delimiter_component.exports);
|
|
229217
229812
|
;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
229218
229813
|
|
|
229219
|
-
/* harmony default export */ var delimiter = (
|
|
229220
|
-
;// 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=
|
|
229221
|
-
var
|
|
229222
|
-
var
|
|
229814
|
+
/* harmony default export */ var delimiter = (Delimiter);
|
|
229815
|
+
;// 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&
|
|
229816
|
+
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)])}
|
|
229817
|
+
var Signvue_type_template_id_38b332be_staticRenderFns = []
|
|
229223
229818
|
|
|
229224
229819
|
|
|
229225
229820
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
@@ -229254,7 +229849,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229254
229849
|
|
|
229255
229850
|
_this = _super.apply(this, arguments);
|
|
229256
229851
|
_this.height = 20;
|
|
229257
|
-
_this.name =
|
|
229852
|
+
_this.name = '';
|
|
229258
229853
|
_this.signType = 0;
|
|
229259
229854
|
_this.signFormat = '<医师姓名>';
|
|
229260
229855
|
_this.connectMode = '换行';
|
|
@@ -229263,7 +229858,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229263
229858
|
_this.signTimeFormat = 'yyyy-MM-DD HH:mm';
|
|
229264
229859
|
_this.customFormatContent = '';
|
|
229265
229860
|
_this.customSignFormatList = [];
|
|
229266
|
-
_this.animationClassNames =
|
|
229861
|
+
_this.animationClassNames = 'control-modal-contents sign-modal animation-in';
|
|
229267
229862
|
return _this;
|
|
229268
229863
|
} // 创建自定义签名格式
|
|
229269
229864
|
|
|
@@ -229271,7 +229866,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229271
229866
|
(0,createClass/* default */.Z)(Sign, [{
|
|
229272
229867
|
key: "createSignFormat",
|
|
229273
229868
|
value: function createSignFormat() {
|
|
229274
|
-
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,
|
|
229869
|
+
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
229275
229870
|
var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
|
|
229276
229871
|
this.$elMessage.closeAll();
|
|
229277
229872
|
|
|
@@ -229286,7 +229881,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229286
229881
|
return;
|
|
229287
229882
|
}
|
|
229288
229883
|
|
|
229289
|
-
var format = [
|
|
229884
|
+
var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
|
|
229290
229885
|
this.customSignFormatList.forEach(function (v) {
|
|
229291
229886
|
return format.push(v.value);
|
|
229292
229887
|
});
|
|
@@ -229295,7 +229890,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229295
229890
|
return v === customFormat.slice(1, customFormat.length - 1);
|
|
229296
229891
|
}).length > 0) {
|
|
229297
229892
|
this.$elMessage.warning({
|
|
229298
|
-
message:
|
|
229893
|
+
message: '签名格式已存在无需插入,已自动选中',
|
|
229299
229894
|
duration: 3000,
|
|
229300
229895
|
offset: 120
|
|
229301
229896
|
});
|
|
@@ -229311,17 +229906,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229311
229906
|
}, {
|
|
229312
229907
|
key: "insertSign",
|
|
229313
229908
|
value: function insertSign() {
|
|
229314
|
-
if (this.signType ===
|
|
229315
|
-
//
|
|
229316
|
-
|
|
229317
|
-
|
|
229318
|
-
|
|
229319
|
-
|
|
229320
|
-
// this.allowEditSignTime)
|
|
229321
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
|
|
229322
|
-
} else {
|
|
229323
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
|
|
229324
|
-
);
|
|
229909
|
+
if (this.signType === 3) {
|
|
229910
|
+
// 自定义多人签名
|
|
229911
|
+
this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
|
|
229912
|
+
} else {
|
|
229913
|
+
var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
|
|
229914
|
+
this.vueController.insertEmptySignNode(name, 0, '', '', '', undefined, undefined, this.signType);
|
|
229325
229915
|
}
|
|
229326
229916
|
|
|
229327
229917
|
this.handleClose();
|
|
@@ -229329,8 +229919,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229329
229919
|
}, {
|
|
229330
229920
|
key: "handleClose",
|
|
229331
229921
|
value: function handleClose() {
|
|
229332
|
-
this.animationClassNames =
|
|
229333
|
-
this.$emit(
|
|
229922
|
+
this.animationClassNames = 'control-modal-contents sign-modal animation-out';
|
|
229923
|
+
this.$emit('closed');
|
|
229334
229924
|
}
|
|
229335
229925
|
}]);
|
|
229336
229926
|
|
|
@@ -229342,7 +229932,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
|
|
|
229342
229932
|
__decorate([Prop()], Sign.prototype, "controlStatus", void 0);
|
|
229343
229933
|
|
|
229344
229934
|
Sign = __decorate([vue_class_component_esm({
|
|
229345
|
-
name:
|
|
229935
|
+
name: 'Sign',
|
|
229346
229936
|
components: {
|
|
229347
229937
|
HoColorPicker: HoColorPicker
|
|
229348
229938
|
}
|
|
@@ -229366,8 +229956,8 @@ Sign = __decorate([vue_class_component_esm({
|
|
|
229366
229956
|
|
|
229367
229957
|
var Sign_component = normalizeComponent(
|
|
229368
229958
|
sign_Signvue_type_script_lang_ts_,
|
|
229369
|
-
|
|
229370
|
-
|
|
229959
|
+
Signvue_type_template_id_38b332be_render,
|
|
229960
|
+
Signvue_type_template_id_38b332be_staticRenderFns,
|
|
229371
229961
|
false,
|
|
229372
229962
|
null,
|
|
229373
229963
|
null,
|
|
@@ -229379,9 +229969,9 @@ var Sign_component = normalizeComponent(
|
|
|
229379
229969
|
;// CONCATENATED MODULE: ./src/components/controls/sign/index.ts
|
|
229380
229970
|
|
|
229381
229971
|
/* harmony default export */ var sign = (sign_Sign);
|
|
229382
|
-
;// 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=
|
|
229383
|
-
var
|
|
229384
|
-
var
|
|
229972
|
+
;// 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&
|
|
229973
|
+
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)])}
|
|
229974
|
+
var UploadImageDialogvue_type_template_id_40b59089_scoped_true_staticRenderFns = []
|
|
229385
229975
|
|
|
229386
229976
|
|
|
229387
229977
|
;// CONCATENATED MODULE: ./src/plugins/ajax.ts
|
|
@@ -229716,10 +230306,10 @@ UploadImageDialog = __decorate([vue_class_component_esm({
|
|
|
229716
230306
|
/* harmony default export */ var UploadImageDialogvue_type_script_lang_ts_ = (UploadImageDialog);
|
|
229717
230307
|
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=script&lang=ts&
|
|
229718
230308
|
/* harmony default export */ var upload_UploadImageDialogvue_type_script_lang_ts_ = (UploadImageDialogvue_type_script_lang_ts_);
|
|
229719
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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=
|
|
230309
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
229720
230310
|
// extracted by mini-css-extract-plugin
|
|
229721
230311
|
|
|
229722
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
230312
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=40b59089&lang=scss&scoped=true&
|
|
229723
230313
|
|
|
229724
230314
|
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue
|
|
229725
230315
|
|
|
@@ -229732,19 +230322,19 @@ UploadImageDialog = __decorate([vue_class_component_esm({
|
|
|
229732
230322
|
|
|
229733
230323
|
var UploadImageDialog_component = normalizeComponent(
|
|
229734
230324
|
upload_UploadImageDialogvue_type_script_lang_ts_,
|
|
229735
|
-
|
|
229736
|
-
|
|
230325
|
+
UploadImageDialogvue_type_template_id_40b59089_scoped_true_render,
|
|
230326
|
+
UploadImageDialogvue_type_template_id_40b59089_scoped_true_staticRenderFns,
|
|
229737
230327
|
false,
|
|
229738
230328
|
null,
|
|
229739
|
-
"
|
|
230329
|
+
"40b59089",
|
|
229740
230330
|
null
|
|
229741
230331
|
|
|
229742
230332
|
)
|
|
229743
230333
|
|
|
229744
230334
|
/* harmony default export */ var upload_UploadImageDialog = (UploadImageDialog_component.exports);
|
|
229745
|
-
;// 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=
|
|
229746
|
-
var
|
|
229747
|
-
var
|
|
230335
|
+
;// 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&
|
|
230336
|
+
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)])}
|
|
230337
|
+
var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns = []
|
|
229748
230338
|
|
|
229749
230339
|
|
|
229750
230340
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
@@ -229837,33 +230427,44 @@ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns =
|
|
|
229837
230427
|
this.context = this.canvas.getContext('2d');
|
|
229838
230428
|
this.listenDrawLine();
|
|
229839
230429
|
var updateNode = this.getImageNode();
|
|
229840
|
-
var image = new Image();
|
|
229841
|
-
image.src = updateNode.imageDataBase64String;
|
|
229842
230430
|
|
|
229843
|
-
|
|
229844
|
-
|
|
229845
|
-
|
|
230431
|
+
if (updateNode === null) {} else {
|
|
230432
|
+
var image = new Image();
|
|
230433
|
+
image.src = updateNode.imageDataBase64String;
|
|
229846
230434
|
|
|
229847
|
-
|
|
230435
|
+
image.onload = function () {
|
|
230436
|
+
_this.canvasWidth = image.naturalWidth;
|
|
230437
|
+
_this.canvasHeight = image.naturalHeight;
|
|
229848
230438
|
|
|
229849
|
-
|
|
229850
|
-
_this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
230439
|
+
_this.context.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
229851
230440
|
|
|
229852
|
-
|
|
229853
|
-
|
|
229854
|
-
|
|
230441
|
+
setTimeout(function () {
|
|
230442
|
+
_this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
230443
|
+
|
|
230444
|
+
_this.canvasDraw();
|
|
230445
|
+
}, 0);
|
|
230446
|
+
};
|
|
230447
|
+
}
|
|
229855
230448
|
},
|
|
229856
230449
|
methods: {
|
|
229857
230450
|
getImageNode: function getImageNode() {
|
|
229858
|
-
var value;
|
|
229859
230451
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
229860
230452
|
var curOnDragNode = hoEditorFactory.docTree.curOnDragNode;
|
|
229861
230453
|
|
|
229862
230454
|
if (curOnDragNode instanceof ImageNode/* ImageNode */.H) {
|
|
229863
|
-
|
|
230455
|
+
return curOnDragNode;
|
|
230456
|
+
} else {
|
|
230457
|
+
var _hoEditorFactory$vueC;
|
|
230458
|
+
|
|
230459
|
+
var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
230460
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
230461
|
+
|
|
230462
|
+
if (node instanceof ImageNode/* ImageNode */.H) {
|
|
230463
|
+
return node;
|
|
230464
|
+
}
|
|
229864
230465
|
}
|
|
229865
230466
|
|
|
229866
|
-
return
|
|
230467
|
+
return null;
|
|
229867
230468
|
},
|
|
229868
230469
|
listenDrawLine: function listenDrawLine() {
|
|
229869
230470
|
this.canvas.addEventListener('mousedown', this.down);
|
|
@@ -230045,10 +230646,10 @@ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns =
|
|
|
230045
230646
|
});
|
|
230046
230647
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
230047
230648
|
/* harmony default export */ var upload_CanvasImageDialogvue_type_script_lang_js_ = (CanvasImageDialogvue_type_script_lang_js_);
|
|
230048
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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=
|
|
230649
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
230049
230650
|
// extracted by mini-css-extract-plugin
|
|
230050
230651
|
|
|
230051
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=
|
|
230652
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=4c7ad5a1&lang=scss&scoped=true&
|
|
230052
230653
|
|
|
230053
230654
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
|
|
230054
230655
|
|
|
@@ -230061,11 +230662,11 @@ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns =
|
|
|
230061
230662
|
|
|
230062
230663
|
var CanvasImageDialog_component = normalizeComponent(
|
|
230063
230664
|
upload_CanvasImageDialogvue_type_script_lang_js_,
|
|
230064
|
-
|
|
230065
|
-
|
|
230665
|
+
CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_render,
|
|
230666
|
+
CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns,
|
|
230066
230667
|
false,
|
|
230067
230668
|
null,
|
|
230068
|
-
"
|
|
230669
|
+
"4c7ad5a1",
|
|
230069
230670
|
null
|
|
230070
230671
|
|
|
230071
230672
|
)
|
|
@@ -231821,121 +232422,100 @@ var TableCellProperty_component = normalizeComponent(
|
|
|
231821
232422
|
|
|
231822
232423
|
|
|
231823
232424
|
|
|
231824
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
231825
|
-
|
|
231826
|
-
|
|
231827
|
-
|
|
231828
|
-
|
|
231829
|
-
|
|
231830
|
-
|
|
231831
|
-
|
|
231832
|
-
|
|
231833
|
-
|
|
231834
|
-
|
|
231835
|
-
|
|
231836
|
-
|
|
231837
|
-
|
|
231838
|
-
|
|
231839
|
-
|
|
231840
|
-
|
|
231841
|
-
|
|
231842
|
-
|
|
231843
|
-
|
|
231844
|
-
|
|
231845
|
-
|
|
231846
|
-
|
|
231847
|
-
|
|
232425
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
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
|
+
//
|
|
232486
|
+
//
|
|
232487
|
+
//
|
|
232488
|
+
//
|
|
232489
|
+
//
|
|
232490
|
+
//
|
|
232491
|
+
//
|
|
232492
|
+
//
|
|
232493
|
+
//
|
|
232494
|
+
//
|
|
232495
|
+
//
|
|
231848
232496
|
|
|
231849
232497
|
|
|
231850
232498
|
|
|
231851
232499
|
|
|
231852
232500
|
|
|
231853
232501
|
|
|
231854
|
-
var ControlModal = /*#__PURE__*/function (_Mixins) {
|
|
231855
|
-
(0,inherits/* default */.Z)(ControlModal, _Mixins);
|
|
231856
232502
|
|
|
231857
|
-
var _super = (0,createSuper/* default */.Z)(ControlModal);
|
|
231858
232503
|
|
|
231859
|
-
function ControlModal() {
|
|
231860
|
-
var _this;
|
|
231861
232504
|
|
|
231862
|
-
(0,classCallCheck/* default */.Z)(this, ControlModal);
|
|
231863
232505
|
|
|
231864
|
-
_this = _super.apply(this, arguments);
|
|
231865
|
-
_this.names = {
|
|
231866
|
-
style1: '经期史',
|
|
231867
|
-
style5: '瞳孔图',
|
|
231868
|
-
style6: '光定位图',
|
|
231869
|
-
style7: '胎心图',
|
|
231870
|
-
style8: '恒牙牙位图',
|
|
231871
|
-
style9: '乳牙牙位图'
|
|
231872
|
-
};
|
|
231873
|
-
return _this;
|
|
231874
|
-
}
|
|
231875
232506
|
|
|
231876
|
-
(0,createClass/* default */.Z)(ControlModal, [{
|
|
231877
|
-
key: "controlType",
|
|
231878
|
-
get: function get() {
|
|
231879
|
-
return this.controlProperty.controlType;
|
|
231880
|
-
}
|
|
231881
|
-
}, {
|
|
231882
|
-
key: "controlStatus",
|
|
231883
|
-
get: function get() {
|
|
231884
|
-
return this.controlProperty.controlStatus;
|
|
231885
|
-
}
|
|
231886
|
-
}, {
|
|
231887
|
-
key: "expressStyle",
|
|
231888
|
-
get: function get() {
|
|
231889
|
-
return this.controlProperty.expressStyle;
|
|
231890
|
-
}
|
|
231891
|
-
}, {
|
|
231892
|
-
key: "vueController",
|
|
231893
|
-
get: function get() {
|
|
231894
|
-
return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId).vueController;
|
|
231895
|
-
}
|
|
231896
|
-
}, {
|
|
231897
|
-
key: "insertComments",
|
|
231898
|
-
value: function insertComments(content) {
|
|
231899
|
-
this.$emit('insertComments', content);
|
|
231900
|
-
}
|
|
231901
|
-
}, {
|
|
231902
|
-
key: "handleClose",
|
|
231903
|
-
value: function handleClose() {
|
|
231904
|
-
if (this.isDataSource || this.isCustoms || this.isListStyle || this.controlType === 'find') return false;
|
|
231905
|
-
this.$emit('closeControlmodal');
|
|
231906
|
-
}
|
|
231907
|
-
/**
|
|
231908
|
-
* 弹窗拖动处理
|
|
231909
|
-
* title点击触发拖动事件 其他区域正常点击不触发拖动事件
|
|
231910
|
-
*/
|
|
231911
232507
|
|
|
231912
|
-
}, {
|
|
231913
|
-
key: "toolModalDown",
|
|
231914
|
-
value: function toolModalDown(e) {
|
|
231915
|
-
(0,util/* toolModalMove */.tC)(e, this.toolModals, 'modal-title');
|
|
231916
|
-
}
|
|
231917
|
-
}]);
|
|
231918
232508
|
|
|
231919
|
-
return ControlModal;
|
|
231920
|
-
}(mixins(AppendToBodyMixins));
|
|
231921
232509
|
|
|
231922
|
-
__decorate([Ref()], ControlModal.prototype, "toolModals", void 0);
|
|
231923
232510
|
|
|
231924
|
-
__decorate([Prop()], ControlModal.prototype, "controlProperty", void 0);
|
|
231925
232511
|
|
|
231926
|
-
__decorate([Prop()], ControlModal.prototype, "isDataSource", void 0);
|
|
231927
232512
|
|
|
231928
|
-
__decorate([Prop()], ControlModal.prototype, "isCustoms", void 0);
|
|
231929
232513
|
|
|
231930
|
-
__decorate([Prop()], ControlModal.prototype, "isTableProperty", void 0);
|
|
231931
232514
|
|
|
231932
|
-
__decorate([Prop()], ControlModal.prototype, "isListStyle", void 0);
|
|
231933
232515
|
|
|
231934
|
-
__decorate([Prop()], ControlModal.prototype, "hoEditorFactoryId", void 0);
|
|
231935
232516
|
|
|
231936
|
-
__decorate([Prop()], ControlModal.prototype, "uploadImageParams", void 0);
|
|
231937
232517
|
|
|
231938
|
-
|
|
232518
|
+
/* harmony default export */ var ControlModalvue_type_script_lang_js_ = ({
|
|
231939
232519
|
name: 'ControlModal',
|
|
231940
232520
|
components: {
|
|
231941
232521
|
ExpressionForm: expressionForm,
|
|
@@ -231961,11 +232541,143 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231961
232541
|
UploadImageDialog: upload_UploadImageDialog,
|
|
231962
232542
|
CanvasImageDialog: CanvasImageDialog,
|
|
231963
232543
|
ParagraphDialog: ParagraphDialog
|
|
232544
|
+
},
|
|
232545
|
+
mixins: [AppendToBodyMixins],
|
|
232546
|
+
props: {
|
|
232547
|
+
controlProperty: {
|
|
232548
|
+
type: Object,
|
|
232549
|
+
required: true
|
|
232550
|
+
},
|
|
232551
|
+
isDataSource: {
|
|
232552
|
+
type: Boolean,
|
|
232553
|
+
required: true
|
|
232554
|
+
},
|
|
232555
|
+
isCustoms: {
|
|
232556
|
+
type: Boolean,
|
|
232557
|
+
required: true
|
|
232558
|
+
},
|
|
232559
|
+
isTableProperty: {
|
|
232560
|
+
type: Boolean,
|
|
232561
|
+
required: true
|
|
232562
|
+
},
|
|
232563
|
+
isListStyle: {
|
|
232564
|
+
type: Boolean,
|
|
232565
|
+
required: true
|
|
232566
|
+
},
|
|
232567
|
+
hoEditorFactoryId: {
|
|
232568
|
+
type: String,
|
|
232569
|
+
required: true
|
|
232570
|
+
},
|
|
232571
|
+
uploadImageParams: {
|
|
232572
|
+
type: Object
|
|
232573
|
+
}
|
|
232574
|
+
},
|
|
232575
|
+
data: function data() {
|
|
232576
|
+
return {
|
|
232577
|
+
toolModals: null,
|
|
232578
|
+
names: {
|
|
232579
|
+
style1: '经期史',
|
|
232580
|
+
style5: '瞳孔图',
|
|
232581
|
+
style6: '光定位图',
|
|
232582
|
+
style7: '胎心图',
|
|
232583
|
+
style8: '恒牙牙位图',
|
|
232584
|
+
style9: '乳牙牙位图'
|
|
232585
|
+
}
|
|
232586
|
+
};
|
|
232587
|
+
},
|
|
232588
|
+
computed: {
|
|
232589
|
+
controlType: function controlType() {
|
|
232590
|
+
return this.controlProperty.controlType;
|
|
232591
|
+
},
|
|
232592
|
+
controlStatus: function controlStatus() {
|
|
232593
|
+
return this.controlProperty.controlStatus;
|
|
232594
|
+
},
|
|
232595
|
+
expressStyle: function expressStyle() {
|
|
232596
|
+
return this.controlProperty.expressStyle;
|
|
232597
|
+
},
|
|
232598
|
+
vueController: function vueController() {
|
|
232599
|
+
return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId).vueController;
|
|
232600
|
+
}
|
|
232601
|
+
},
|
|
232602
|
+
mounted: function mounted() {
|
|
232603
|
+
this.toolModals = this.$refs.toolModals;
|
|
232604
|
+
},
|
|
232605
|
+
methods: {
|
|
232606
|
+
insertComments: function insertComments(content) {
|
|
232607
|
+
this.$emit('insertComments', content);
|
|
232608
|
+
},
|
|
232609
|
+
handleClose: function handleClose() {
|
|
232610
|
+
if (this.isDataSource || this.isCustoms || this.isListStyle || this.controlType === 'find') return false;
|
|
232611
|
+
this.$emit('closeControlmodal');
|
|
232612
|
+
},
|
|
232613
|
+
|
|
232614
|
+
/**
|
|
232615
|
+
* 弹窗拖动处理
|
|
232616
|
+
* title点击触发拖动事件 其他区域正常点击不触发拖动事件
|
|
232617
|
+
*/
|
|
232618
|
+
toolModalDown: function toolModalDown(e) {
|
|
232619
|
+
(0,util/* toolModalMove */.tC)(e, this.toolModals, 'modal-title');
|
|
232620
|
+
}
|
|
231964
232621
|
}
|
|
231965
|
-
})
|
|
231966
|
-
|
|
231967
|
-
|
|
231968
|
-
|
|
232622
|
+
}); // @Component({
|
|
232623
|
+
// name: 'ControlModal',
|
|
232624
|
+
// components: {
|
|
232625
|
+
// ExpressionForm,
|
|
232626
|
+
// DateDialog,
|
|
232627
|
+
// Barcode,
|
|
232628
|
+
// QrCode,
|
|
232629
|
+
// Sign,
|
|
232630
|
+
// TextDialog,
|
|
232631
|
+
// CustomAttributes,
|
|
232632
|
+
// DataSourceDialog,
|
|
232633
|
+
// RadioCheckbox,
|
|
232634
|
+
// SelectDialog,
|
|
232635
|
+
// ListSource,
|
|
232636
|
+
// Gestation,
|
|
232637
|
+
// TableProperty,
|
|
232638
|
+
// TableRowProperty,
|
|
232639
|
+
// TableCellProperty,
|
|
232640
|
+
// TableColProperty,
|
|
232641
|
+
// WaterSetDialog,
|
|
232642
|
+
// CommentDialog,
|
|
232643
|
+
// PageInfoes,
|
|
232644
|
+
// Delimiter,
|
|
232645
|
+
// UploadImageDialog,
|
|
232646
|
+
// CanvasImageDialog,
|
|
232647
|
+
// ParagraphDialog,
|
|
232648
|
+
// },
|
|
232649
|
+
// })
|
|
232650
|
+
// export default class ControlModal extends Mixins(AppendToBodyMixins) {
|
|
232651
|
+
// @Ref() readonly toolModals!: HTMLDivElement;
|
|
232652
|
+
// get controlType() {
|
|
232653
|
+
// return this.controlProperty.controlType;
|
|
232654
|
+
// }
|
|
232655
|
+
// get controlStatus() {
|
|
232656
|
+
// return this.controlProperty.controlStatus;
|
|
232657
|
+
// }
|
|
232658
|
+
// get expressStyle(): string {
|
|
232659
|
+
// return this.controlProperty.expressStyle;
|
|
232660
|
+
// }
|
|
232661
|
+
// get vueController() {
|
|
232662
|
+
// return HOEditorFactorys.instance().getFactory(this.hoEditorFactoryId).vueController;
|
|
232663
|
+
// }
|
|
232664
|
+
// public insertComments(content: any) {
|
|
232665
|
+
// this.$emit('insertComments', content);
|
|
232666
|
+
// }
|
|
232667
|
+
// public handleClose() {
|
|
232668
|
+
// if (this.isDataSource || this.isCustoms || this.isListStyle || this.controlType === 'find') return false;
|
|
232669
|
+
// this.$emit('closeControlmodal');
|
|
232670
|
+
// }
|
|
232671
|
+
// /**
|
|
232672
|
+
// * 弹窗拖动处理
|
|
232673
|
+
// * title点击触发拖动事件 其他区域正常点击不触发拖动事件
|
|
232674
|
+
// */
|
|
232675
|
+
// public toolModalDown(e: MouseEvent) {
|
|
232676
|
+
// toolModalMove(e, this.toolModals, 'modal-title');
|
|
232677
|
+
// }
|
|
232678
|
+
// }
|
|
232679
|
+
;// CONCATENATED MODULE: ./src/components/controls/ControlModal.vue?vue&type=script&lang=js&
|
|
232680
|
+
/* harmony default export */ var controls_ControlModalvue_type_script_lang_js_ = (ControlModalvue_type_script_lang_js_);
|
|
231969
232681
|
;// CONCATENATED MODULE: ./src/components/controls/ControlModal.vue
|
|
231970
232682
|
|
|
231971
232683
|
|
|
@@ -231975,9 +232687,9 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231975
232687
|
/* normalize component */
|
|
231976
232688
|
;
|
|
231977
232689
|
var ControlModal_component = normalizeComponent(
|
|
231978
|
-
|
|
231979
|
-
|
|
231980
|
-
|
|
232690
|
+
controls_ControlModalvue_type_script_lang_js_,
|
|
232691
|
+
ControlModalvue_type_template_id_1b898d58_render,
|
|
232692
|
+
ControlModalvue_type_template_id_1b898d58_staticRenderFns,
|
|
231981
232693
|
false,
|
|
231982
232694
|
null,
|
|
231983
232695
|
null,
|
|
@@ -231985,62 +232697,88 @@ var ControlModal_component = normalizeComponent(
|
|
|
231985
232697
|
|
|
231986
232698
|
)
|
|
231987
232699
|
|
|
231988
|
-
/* harmony default export */ var
|
|
231989
|
-
;// 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=
|
|
231990
|
-
var
|
|
231991
|
-
var
|
|
231992
|
-
|
|
231993
|
-
|
|
231994
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
232700
|
+
/* harmony default export */ var ControlModal = (ControlModal_component.exports);
|
|
232701
|
+
;// 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&
|
|
232702
|
+
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)])}
|
|
232703
|
+
var FindReplacevue_type_template_id_15d96f32_staticRenderFns = []
|
|
231995
232704
|
|
|
231996
232705
|
|
|
232706
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
231997
232707
|
|
|
231998
232708
|
|
|
231999
232709
|
|
|
232000
232710
|
|
|
232711
|
+
//
|
|
232712
|
+
//
|
|
232713
|
+
//
|
|
232714
|
+
//
|
|
232715
|
+
//
|
|
232716
|
+
//
|
|
232717
|
+
//
|
|
232718
|
+
//
|
|
232719
|
+
//
|
|
232720
|
+
//
|
|
232721
|
+
//
|
|
232722
|
+
//
|
|
232723
|
+
//
|
|
232724
|
+
//
|
|
232725
|
+
//
|
|
232726
|
+
//
|
|
232727
|
+
//
|
|
232728
|
+
//
|
|
232729
|
+
//
|
|
232730
|
+
//
|
|
232731
|
+
//
|
|
232732
|
+
//
|
|
232733
|
+
//
|
|
232734
|
+
//
|
|
232735
|
+
//
|
|
232736
|
+
//
|
|
232737
|
+
//
|
|
232738
|
+
//
|
|
232739
|
+
//
|
|
232740
|
+
//
|
|
232741
|
+
//
|
|
232742
|
+
//
|
|
232001
232743
|
|
|
232002
232744
|
|
|
232003
232745
|
|
|
232004
|
-
|
|
232005
|
-
|
|
232006
|
-
|
|
232007
|
-
|
|
232008
|
-
|
|
232009
|
-
|
|
232010
|
-
|
|
232011
|
-
|
|
232012
|
-
|
|
232013
|
-
|
|
232014
|
-
function
|
|
232015
|
-
|
|
232016
|
-
|
|
232017
|
-
|
|
232018
|
-
|
|
232019
|
-
|
|
232020
|
-
|
|
232021
|
-
|
|
232022
|
-
|
|
232023
|
-
|
|
232024
|
-
|
|
232025
|
-
|
|
232026
|
-
|
|
232027
|
-
|
|
232028
|
-
|
|
232029
|
-
|
|
232030
|
-
}
|
|
232031
|
-
|
|
232032
|
-
|
|
232033
|
-
key: "switchTypes",
|
|
232034
|
-
value: function switchTypes(val) {
|
|
232746
|
+
/* harmony default export */ var FindReplacevue_type_script_lang_js_ = ({
|
|
232747
|
+
name: 'FindReplaceDialog',
|
|
232748
|
+
mixins: [AppendToBodyMixins],
|
|
232749
|
+
Inject: ['setControlFindType'],
|
|
232750
|
+
props: {
|
|
232751
|
+
hoEditorFactoryId: {
|
|
232752
|
+
type: String,
|
|
232753
|
+
required: true
|
|
232754
|
+
}
|
|
232755
|
+
},
|
|
232756
|
+
data: function data() {
|
|
232757
|
+
return {
|
|
232758
|
+
switchType: false,
|
|
232759
|
+
operType: 'find',
|
|
232760
|
+
findContent: '',
|
|
232761
|
+
replaceCentent: '',
|
|
232762
|
+
direction: 0,
|
|
232763
|
+
matchCase: true,
|
|
232764
|
+
path: '',
|
|
232765
|
+
callbackCount: 0,
|
|
232766
|
+
animationClassNames: 'control-modal-contents find-modal animation-in',
|
|
232767
|
+
findModal: null
|
|
232768
|
+
};
|
|
232769
|
+
},
|
|
232770
|
+
mounted: function mounted() {
|
|
232771
|
+
this.findModal = this.$refs.findModal;
|
|
232772
|
+
},
|
|
232773
|
+
methods: {
|
|
232774
|
+
switchTypes: function switchTypes(val) {
|
|
232035
232775
|
if (val) {
|
|
232036
|
-
this.operType =
|
|
232776
|
+
this.operType = 'replace';
|
|
232037
232777
|
} else {
|
|
232038
|
-
this.operType =
|
|
232778
|
+
this.operType = 'find';
|
|
232039
232779
|
}
|
|
232040
|
-
}
|
|
232041
|
-
|
|
232042
|
-
key: "toFind",
|
|
232043
|
-
value: function toFind(callback) {
|
|
232780
|
+
},
|
|
232781
|
+
toFind: function toFind(callback) {
|
|
232044
232782
|
if (!this.findContent) return;
|
|
232045
232783
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
232046
232784
|
this.path = hoEditorFactory.vueController.find(this.findContent, this.direction, this.matchCase);
|
|
@@ -232048,13 +232786,11 @@ var FindReplaceDialog = /*#__PURE__*/function (_Mixins) {
|
|
|
232048
232786
|
if (callback instanceof Function) {
|
|
232049
232787
|
callback();
|
|
232050
232788
|
}
|
|
232051
|
-
}
|
|
232052
|
-
|
|
232053
|
-
key: "toReplace",
|
|
232054
|
-
value: function toReplace() {
|
|
232789
|
+
},
|
|
232790
|
+
toReplace: function toReplace() {
|
|
232055
232791
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
232056
232792
|
|
|
232057
|
-
if (this.path ===
|
|
232793
|
+
if (this.path === '' || this.path === '-1') {
|
|
232058
232794
|
if (this.callbackCount <= 2) {
|
|
232059
232795
|
this.callbackCount++;
|
|
232060
232796
|
this.toFind(this.toReplace);
|
|
@@ -232064,50 +232800,31 @@ var FindReplaceDialog = /*#__PURE__*/function (_Mixins) {
|
|
|
232064
232800
|
} else {
|
|
232065
232801
|
hoEditorFactory.vueController.replace(this.findContent, this.replaceCentent, this.path, 1, this.direction, this.matchCase);
|
|
232066
232802
|
this.callbackCount = 0;
|
|
232067
|
-
this.path =
|
|
232803
|
+
this.path = '';
|
|
232068
232804
|
}
|
|
232069
|
-
}
|
|
232070
|
-
|
|
232071
|
-
key: "toReplaceAll",
|
|
232072
|
-
value: function toReplaceAll() {
|
|
232805
|
+
},
|
|
232806
|
+
toReplaceAll: function toReplaceAll() {
|
|
232073
232807
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
232074
|
-
hoEditorFactory.vueController.replace(this.findContent, this.replaceCentent,
|
|
232808
|
+
hoEditorFactory.vueController.replace(this.findContent, this.replaceCentent, '', 0, 1, this.matchCase);
|
|
232075
232809
|
this.callbackCount = 0;
|
|
232076
|
-
this.path =
|
|
232077
|
-
}
|
|
232078
|
-
|
|
232079
|
-
|
|
232080
|
-
value: function handleClose() {
|
|
232081
|
-
var _this2 = this;
|
|
232810
|
+
this.path = '';
|
|
232811
|
+
},
|
|
232812
|
+
handleClose: function handleClose() {
|
|
232813
|
+
var _this = this;
|
|
232082
232814
|
|
|
232083
232815
|
this.animationClassNames = 'control-modal-contents find-modal animation-out';
|
|
232084
232816
|
window.clearTimeout();
|
|
232085
232817
|
setTimeout(function () {
|
|
232086
|
-
|
|
232818
|
+
_this.setControlFindType('');
|
|
232087
232819
|
}, 100);
|
|
232820
|
+
},
|
|
232821
|
+
toolModalDown: function toolModalDown(e) {
|
|
232822
|
+
(0,util/* toolModalMove */.tC)(e, this.findModal, 'modal-title');
|
|
232088
232823
|
}
|
|
232089
|
-
}
|
|
232090
|
-
|
|
232091
|
-
|
|
232092
|
-
|
|
232093
|
-
}
|
|
232094
|
-
}]);
|
|
232095
|
-
|
|
232096
|
-
return FindReplaceDialog;
|
|
232097
|
-
}(mixins(AppendToBodyMixins));
|
|
232098
|
-
|
|
232099
|
-
__decorate([Ref()], FindReplaceDialog.prototype, "findModal", void 0);
|
|
232100
|
-
|
|
232101
|
-
__decorate([Prop()], FindReplaceDialog.prototype, "hoEditorFactoryId", void 0);
|
|
232102
|
-
|
|
232103
|
-
__decorate([Inject("setControlFindType")], FindReplaceDialog.prototype, "setControlFindType", void 0);
|
|
232104
|
-
|
|
232105
|
-
FindReplaceDialog = __decorate([vue_class_component_esm({
|
|
232106
|
-
name: "FindReplaceDialog"
|
|
232107
|
-
})], FindReplaceDialog);
|
|
232108
|
-
/* harmony default export */ var FindReplacevue_type_script_lang_ts_ = (FindReplaceDialog);
|
|
232109
|
-
;// CONCATENATED MODULE: ./src/components/controls/findReplace/FindReplace.vue?vue&type=script&lang=ts&
|
|
232110
|
-
/* harmony default export */ var findReplace_FindReplacevue_type_script_lang_ts_ = (FindReplacevue_type_script_lang_ts_);
|
|
232824
|
+
}
|
|
232825
|
+
});
|
|
232826
|
+
;// CONCATENATED MODULE: ./src/components/controls/findReplace/FindReplace.vue?vue&type=script&lang=js&
|
|
232827
|
+
/* harmony default export */ var findReplace_FindReplacevue_type_script_lang_js_ = (FindReplacevue_type_script_lang_js_);
|
|
232111
232828
|
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
232112
232829
|
// extracted by mini-css-extract-plugin
|
|
232113
232830
|
|
|
@@ -232123,9 +232840,9 @@ FindReplaceDialog = __decorate([vue_class_component_esm({
|
|
|
232123
232840
|
/* normalize component */
|
|
232124
232841
|
|
|
232125
232842
|
var FindReplace_component = normalizeComponent(
|
|
232126
|
-
|
|
232127
|
-
|
|
232128
|
-
|
|
232843
|
+
findReplace_FindReplacevue_type_script_lang_js_,
|
|
232844
|
+
FindReplacevue_type_template_id_15d96f32_render,
|
|
232845
|
+
FindReplacevue_type_template_id_15d96f32_staticRenderFns,
|
|
232129
232846
|
false,
|
|
232130
232847
|
null,
|
|
232131
232848
|
null,
|
|
@@ -233852,7 +234569,7 @@ HoDocs = __decorate([vue_class_component_esm({
|
|
|
233852
234569
|
components: {
|
|
233853
234570
|
HoDoc: components_HoDoc,
|
|
233854
234571
|
HoFooter: components_HoFooter,
|
|
233855
|
-
ControlModal:
|
|
234572
|
+
ControlModal: ControlModal,
|
|
233856
234573
|
FindReplaceDialog: findReplace,
|
|
233857
234574
|
ViewContinuousXml: viewContinuousXml
|
|
233858
234575
|
}
|