hoeditor-web 2.0.104 → 2.0.105
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 +447 -209
- package/lib/hoeditor.css +4 -181
- package/lib/hoeditor.umd.js +447 -209
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -10570,7 +10570,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10570
10570
|
|
|
10571
10571
|
/***/ }),
|
|
10572
10572
|
|
|
10573
|
-
/***/
|
|
10573
|
+
/***/ 18639:
|
|
10574
10574
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10575
10575
|
|
|
10576
10576
|
"use strict";
|
|
@@ -10582,7 +10582,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10582
10582
|
"default": function() { return /* binding */ Sign; }
|
|
10583
10583
|
});
|
|
10584
10584
|
|
|
10585
|
-
;// 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=
|
|
10585
|
+
;// 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=56a53569&
|
|
10586
10586
|
var 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 == 2)?_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.connectChar),callback:function ($$v) {_vm.connectChar=$$v},expression:"connectChar"}})],1):_vm._e(),(_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)])}
|
|
10587
10587
|
var staticRenderFns = []
|
|
10588
10588
|
|
|
@@ -10845,7 +10845,7 @@ var SignNode = __webpack_require__(24701);
|
|
|
10845
10845
|
this.signFormat = customFormat.slice(1, customFormat.length - 1);
|
|
10846
10846
|
},
|
|
10847
10847
|
insertSign: function insertSign() {
|
|
10848
|
-
var customProperty = this.getCustomProperty();
|
|
10848
|
+
var customProperty = this.getCustomProperty ? this.getCustomProperty() : {};
|
|
10849
10849
|
|
|
10850
10850
|
if (this.signType === 3) {
|
|
10851
10851
|
// 自定义多人签名
|
|
@@ -10868,10 +10868,10 @@ var SignNode = __webpack_require__(24701);
|
|
|
10868
10868
|
});
|
|
10869
10869
|
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
|
|
10870
10870
|
/* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
|
|
10871
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=
|
|
10871
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=56a53569&prod&lang=scss&
|
|
10872
10872
|
// extracted by mini-css-extract-plugin
|
|
10873
10873
|
|
|
10874
|
-
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=
|
|
10874
|
+
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=56a53569&prod&lang=scss&
|
|
10875
10875
|
|
|
10876
10876
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
10877
10877
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -39629,7 +39629,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
39629
39629
|
c = _this$_table$getCellI4[1];
|
|
39630
39630
|
|
|
39631
39631
|
for (var i = c; i <= c + this.colSpan - 1; i++) {
|
|
39632
|
-
|
|
39632
|
+
if (this._table.colInfos[i]) {
|
|
39633
|
+
aWidth += this._table.colInfos[i].colWidth;
|
|
39634
|
+
}
|
|
39633
39635
|
}
|
|
39634
39636
|
|
|
39635
39637
|
this.updateWidth(aWidth);
|
|
@@ -39674,7 +39676,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
39674
39676
|
}
|
|
39675
39677
|
|
|
39676
39678
|
for (var _i = c; _i <= c + this._colSpan - 1; _i++) {
|
|
39677
|
-
|
|
39679
|
+
if (this._table.colInfos[_i]) {
|
|
39680
|
+
aWidth += this._table.colInfos[_i].colWidth;
|
|
39681
|
+
}
|
|
39678
39682
|
}
|
|
39679
39683
|
|
|
39680
39684
|
return [aleft, aWidth, false];
|
|
@@ -39824,7 +39828,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
39824
39828
|
var aWidth = 0;
|
|
39825
39829
|
|
|
39826
39830
|
for (var i = c; i <= c + this._colSpan - 1; i++) {
|
|
39827
|
-
|
|
39831
|
+
if (this._table.colInfos[i]) {
|
|
39832
|
+
aWidth += this._table.colInfos[i].colWidth;
|
|
39833
|
+
}
|
|
39828
39834
|
}
|
|
39829
39835
|
|
|
39830
39836
|
aWidth += this._colSpan;
|
|
@@ -50366,7 +50372,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50366
50372
|
throw new Error("\u83B7\u53D6\u4E3B\u8868\u683C\u5931\u8D25\uFF0C\u8868\u683C\u7684\u884C\u5217\u5927\u5C0F".concat(this.rowCount, "X").concat(this.colCount, ",\u8C03\u7528\u4E3B\u5355\u5143\u683C\u7684\u884C\u5217\u5927\u5C0F").concat(arow, "X").concat(acol));
|
|
50367
50373
|
}
|
|
50368
50374
|
|
|
50369
|
-
if (this._rows[mrow][mcol]) {
|
|
50375
|
+
if (this._rows && this._rows[mrow] && this._rows[mrow][mcol]) {
|
|
50370
50376
|
var aCell = this._rows[mrow][mcol];
|
|
50371
50377
|
return [aCell, mrow, mcol];
|
|
50372
50378
|
} else {
|
|
@@ -52860,7 +52866,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52860
52866
|
/*
|
|
52861
52867
|
* @Author: your name
|
|
52862
52868
|
* @Date: 2020-11-03 15:17:54
|
|
52863
|
-
* @LastEditTime: 2022-
|
|
52869
|
+
* @LastEditTime: 2022-09-23 15:55:34
|
|
52864
52870
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52865
52871
|
* @Description: In User Settings Edit
|
|
52866
52872
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -53928,7 +53934,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53928
53934
|
|
|
53929
53935
|
if (textStyle.deleterIndex === -1 || textStyle.deleterIndex === undefined) {
|
|
53930
53936
|
//text += hoEditorFactory.unitConvert.replaceAll(childNode.text, '\n', ' ');
|
|
53931
|
-
|
|
53937
|
+
if (textStyle.script === 1) {
|
|
53938
|
+
text += "<下标>" + childNode.text + "</下标>";
|
|
53939
|
+
} else if (textStyle.script === 2) {
|
|
53940
|
+
text += "<上标>" + childNode.text + "</上标>";
|
|
53941
|
+
} else {
|
|
53942
|
+
text += childNode.text;
|
|
53943
|
+
}
|
|
53932
53944
|
}
|
|
53933
53945
|
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_37__/* .ControlNode */ .w) {
|
|
53934
53946
|
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_38__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
@@ -214474,7 +214486,7 @@ var map = {
|
|
|
214474
214486
|
"./qrCode/QrCode.vue": 11704,
|
|
214475
214487
|
"./radioCheckBox/RadioCheckbox.vue": 45454,
|
|
214476
214488
|
"./selectDialog/SelectDialog.vue": 46579,
|
|
214477
|
-
"./sign/Sign.vue":
|
|
214489
|
+
"./sign/Sign.vue": 18639,
|
|
214478
214490
|
"./table/TableCellPoper.vue": 74663,
|
|
214479
214491
|
"./table/TableCellProperty.vue": 16717,
|
|
214480
214492
|
"./table/TableColProperty.vue": 44118,
|
|
@@ -216238,7 +216250,7 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().use((table_default()));
|
|
|
216238
216250
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((table_column_default()));
|
|
216239
216251
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((tooltip_default()));
|
|
216240
216252
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((infinite_scroll_default()));
|
|
216241
|
-
;// 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=
|
|
216253
|
+
;// 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=7309028f&
|
|
216242
216254
|
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()}
|
|
216243
216255
|
var staticRenderFns = []
|
|
216244
216256
|
|
|
@@ -219906,7 +219918,7 @@ var SignNode = __webpack_require__(24701);
|
|
|
219906
219918
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
219907
219919
|
var ParagraphNode = __webpack_require__(67945);
|
|
219908
219920
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
219909
|
-
/* harmony default export */ var version = ('2.0.
|
|
219921
|
+
/* harmony default export */ var version = ('2.0.105');
|
|
219910
219922
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
219911
219923
|
var PoperTipText = __webpack_require__(45035);
|
|
219912
219924
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -222471,7 +222483,6 @@ var Paragraph = __webpack_require__(53474);
|
|
|
222471
222483
|
|
|
222472
222484
|
|
|
222473
222485
|
|
|
222474
|
-
|
|
222475
222486
|
|
|
222476
222487
|
|
|
222477
222488
|
var HTMLconverter2 = /*#__PURE__*/function () {
|
|
@@ -222876,18 +222887,18 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
222876
222887
|
}
|
|
222877
222888
|
}, {
|
|
222878
222889
|
key: "SetTableProperty",
|
|
222879
|
-
value: function SetTableProperty(jnode, tableNode) {
|
|
222890
|
+
value: function SetTableProperty(jnode, rows, tableNode) {
|
|
222880
222891
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
222881
222892
|
var tconstents = jquery_default()(jnode).children();
|
|
222882
222893
|
var rowInfos = new Array();
|
|
222883
|
-
var colInfos = new Array();
|
|
222884
|
-
|
|
222885
|
-
var maxcol = 0;
|
|
222894
|
+
var colInfos = new Array(); //let maxtr;
|
|
222895
|
+
//let maxcol = 0;
|
|
222886
222896
|
|
|
222887
222897
|
for (var i = 0; i < tconstents.length; i++) {
|
|
222888
222898
|
var trs = jquery_default()(tconstents[i]).children();
|
|
222889
222899
|
|
|
222890
222900
|
for (var j = 0; j < trs.length; j++) {
|
|
222901
|
+
//for (let j = 0; j < rows.length; j++) {
|
|
222891
222902
|
var rowProperty = new TableProperty/* RowProperty */.Nr("");
|
|
222892
222903
|
rowProperty.isSpecifyHeight = true;
|
|
222893
222904
|
var rowInfo = new TableNode/* RowInfos */.ii(tableNode, rowProperty);
|
|
@@ -222910,44 +222921,69 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
222910
222921
|
rowInfo.rowProperty.rowHeight = hoEditorFactory.unitConvert.pxConversionMm(heightNum, false) * 0.1;
|
|
222911
222922
|
}
|
|
222912
222923
|
|
|
222913
|
-
rowInfos.push(rowInfo);
|
|
222914
|
-
|
|
222915
|
-
|
|
222916
|
-
|
|
222917
|
-
|
|
222918
|
-
maxcol = _tds.length;
|
|
222919
|
-
maxtr = trs[j];
|
|
222920
|
-
}
|
|
222924
|
+
rowInfos.push(rowInfo); // const tds = $(trs[j]).children();
|
|
222925
|
+
// if (tds.length > maxcol) {
|
|
222926
|
+
// maxcol = tds.length;
|
|
222927
|
+
// maxtr = trs[j];
|
|
222928
|
+
// }
|
|
222921
222929
|
}
|
|
222930
|
+
}
|
|
222922
222931
|
|
|
222923
|
-
|
|
222924
|
-
var
|
|
222932
|
+
for (var _i2 = 0; _i2 < rows[0].length; _i2++) {
|
|
222933
|
+
var td = rows[0][_i2];
|
|
222934
|
+
var widthNum = 0;
|
|
222925
222935
|
|
|
222926
|
-
|
|
222927
|
-
var width = jquery_default()(
|
|
222928
|
-
var widthNum = 0;
|
|
222936
|
+
if (td) {
|
|
222937
|
+
var width = jquery_default()(td).css("width");
|
|
222929
222938
|
|
|
222930
|
-
if (width
|
|
222931
|
-
|
|
222939
|
+
if (width) {
|
|
222940
|
+
if (width.indexOf("pt") > 0) {
|
|
222941
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("pt"))); //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
222932
222942
|
|
|
222933
|
-
|
|
222943
|
+
widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
222944
|
+
}
|
|
222945
|
+
|
|
222946
|
+
if (width.indexOf("px") > 0) {
|
|
222947
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
222948
|
+
}
|
|
222934
222949
|
}
|
|
222950
|
+
}
|
|
222935
222951
|
|
|
222936
|
-
|
|
222937
|
-
|
|
222938
|
-
|
|
222939
|
-
// widthNum = 20;
|
|
222940
|
-
// }
|
|
222952
|
+
if (widthNum == 0) {
|
|
222953
|
+
widthNum = 30;
|
|
222954
|
+
}
|
|
222941
222955
|
|
|
222956
|
+
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
222957
|
+
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
222958
|
+
colInfos.push(colInfo);
|
|
222959
|
+
} //console.log(maxtr)
|
|
222960
|
+
//if (!maxtr)
|
|
222961
|
+
//throw new Error('表格中没有发现列');
|
|
222962
|
+
// const tds = $(maxtr).children();
|
|
222963
|
+
// for (let i = 0; i < tds.length; i++) {
|
|
222964
|
+
// const width = $(tds[i]).css("width");
|
|
222965
|
+
// let widthNum = 0;
|
|
222966
|
+
// if (width) {
|
|
222967
|
+
// if (width.indexOf("pt") > 0) {
|
|
222968
|
+
// widthNum = parseFloat(width.substring(0, width.indexOf("pt")));
|
|
222969
|
+
// //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
222970
|
+
// widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
222971
|
+
// }
|
|
222972
|
+
// if (width.indexOf("px") > 0) {
|
|
222973
|
+
// widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
222974
|
+
// }
|
|
222975
|
+
// }
|
|
222976
|
+
// // if (widthNum == 0) {
|
|
222977
|
+
// // widthNum = 20;
|
|
222978
|
+
// // }
|
|
222979
|
+
// const colProperty = new ColProperty("");
|
|
222980
|
+
// const colInfo = new ColInfos(tableNode, widthNum, colProperty);
|
|
222981
|
+
// colInfos.push(colInfo);
|
|
222982
|
+
//}
|
|
222942
222983
|
|
|
222943
|
-
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
222944
|
-
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
222945
|
-
colInfos.push(colInfo);
|
|
222946
|
-
}
|
|
222947
222984
|
|
|
222948
|
-
|
|
222949
|
-
|
|
222950
|
-
}
|
|
222985
|
+
tableNode.rowInfos = rowInfos;
|
|
222986
|
+
tableNode.colInfos = colInfos; //}
|
|
222951
222987
|
}
|
|
222952
222988
|
/**
|
|
222953
222989
|
* 表格html结构
|
|
@@ -222983,73 +223019,91 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
222983
223019
|
var tr = jquery_default()(tconstents[i]).children();
|
|
222984
223020
|
irow += tr.length;
|
|
222985
223021
|
|
|
223022
|
+
if (tr.length > 0) {
|
|
223023
|
+
var td = jquery_default()(tr[0]).children();
|
|
223024
|
+
|
|
223025
|
+
for (var z = 0; z < td.length; z++) {
|
|
223026
|
+
icol += parseInt(jquery_default()(td[z]).attr('colSpan') || '1');
|
|
223027
|
+
}
|
|
223028
|
+
}
|
|
223029
|
+
|
|
222986
223030
|
for (var j = 0; j < tr.length; j++) {
|
|
222987
223031
|
var cells = new Array();
|
|
222988
|
-
|
|
222989
|
-
icol = Math.max(td.length, icol);
|
|
222990
|
-
|
|
223032
|
+
|
|
223033
|
+
var _td = jquery_default()(tr[j]).children(); //icol = Math.max(td.length, icol);
|
|
223034
|
+
|
|
223035
|
+
|
|
223036
|
+
cells.push.apply(cells, (0,toConsumableArray/* default */.Z)(_td));
|
|
222991
223037
|
rows.push(cells);
|
|
222992
223038
|
}
|
|
222993
223039
|
} //2.创建表格节点
|
|
222994
223040
|
|
|
222995
223041
|
|
|
222996
223042
|
var lntable = new TableNode/* TableNode */.Fh(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, pnode, irow, icol, this.generateTableProperty(jnode)); //3.设置表格属性
|
|
222997
|
-
|
|
222998
|
-
|
|
223043
|
+
//this.SetTableProperty(jnode, lntable)
|
|
223044
|
+
//4:生成表格内容
|
|
222999
223045
|
|
|
223000
223046
|
if (rows.length == 0) {
|
|
223001
223047
|
return [];
|
|
223002
223048
|
} else {
|
|
223003
|
-
for (var
|
|
223004
|
-
for (var
|
|
223005
|
-
var item = rows[
|
|
223049
|
+
for (var m = 0; m < irow; m++) {
|
|
223050
|
+
for (var n = 0; n < icol; n++) {
|
|
223051
|
+
var item = rows[m][n];
|
|
223006
223052
|
|
|
223007
223053
|
if (item) {
|
|
223008
223054
|
var rspan = parseInt(jquery_default()(item).attr('rowSpan') || '1');
|
|
223009
223055
|
var cspan = parseInt(jquery_default()(item).attr('colSpan') || '1');
|
|
223010
223056
|
|
|
223011
223057
|
if (cspan > 1) {
|
|
223012
|
-
var _rows$
|
|
223058
|
+
var _rows$m;
|
|
223013
223059
|
|
|
223014
223060
|
var tmp = new Array(cspan - 1);
|
|
223015
223061
|
|
|
223016
|
-
(_rows$
|
|
223062
|
+
(_rows$m = rows[m]).splice.apply(_rows$m, [n + 1, 0].concat(tmp));
|
|
223017
223063
|
|
|
223018
223064
|
if (rspan > 1) {
|
|
223019
|
-
for (var t =
|
|
223065
|
+
for (var t = m + 1; t < m + rspan; t++) {
|
|
223020
223066
|
var _rows$t;
|
|
223021
223067
|
|
|
223022
223068
|
var _tmp = new Array(cspan);
|
|
223023
223069
|
|
|
223024
|
-
(_rows$t = rows[t]).splice.apply(_rows$t, [
|
|
223070
|
+
(_rows$t = rows[t]).splice.apply(_rows$t, [n, 0].concat(_tmp));
|
|
223025
223071
|
}
|
|
223026
223072
|
}
|
|
223027
223073
|
} else {
|
|
223028
223074
|
if (rspan > 1) {
|
|
223029
|
-
for (var _t =
|
|
223075
|
+
for (var _t = m + 1; _t < m + rspan; _t++) {
|
|
223030
223076
|
var _rows$_t;
|
|
223031
223077
|
|
|
223032
223078
|
var _tmp2 = new Array(cspan);
|
|
223033
223079
|
|
|
223034
|
-
(_rows$_t = rows[_t]).splice.apply(_rows$_t, [
|
|
223080
|
+
(_rows$_t = rows[_t]).splice.apply(_rows$_t, [n, 0].concat(_tmp2));
|
|
223035
223081
|
}
|
|
223036
223082
|
}
|
|
223037
223083
|
}
|
|
223038
223084
|
}
|
|
223039
223085
|
}
|
|
223040
|
-
}
|
|
223086
|
+
} //3.设置表格属性
|
|
223087
|
+
|
|
223088
|
+
|
|
223089
|
+
this.SetTableProperty(jnode, rows, lntable);
|
|
223041
223090
|
|
|
223042
223091
|
var getitem = function getitem(r, c) {
|
|
223043
223092
|
if (r < rows.length && c < rows[r].length) return rows[r][c];else return undefined;
|
|
223044
223093
|
};
|
|
223045
223094
|
|
|
223046
|
-
|
|
223047
|
-
|
|
223048
|
-
|
|
223095
|
+
lntable.childNodes.splice(0, lntable.childNodes.length);
|
|
223096
|
+
|
|
223097
|
+
for (var s = 0; s < irow; s++) {
|
|
223098
|
+
for (var k = 0; k < icol; k++) {
|
|
223099
|
+
var cell = getitem(s, k);
|
|
223049
223100
|
|
|
223050
223101
|
if (cell) {
|
|
223051
|
-
this.copyCellNode(cell, lntable,
|
|
223052
|
-
|
|
223102
|
+
this.copyCellNode(cell, lntable, s, k);
|
|
223103
|
+
lntable.childNodes.push(lntable.rows[s][k]);
|
|
223104
|
+
} else {
|
|
223105
|
+
lntable.rows[s][k] = undefined;
|
|
223106
|
+
}
|
|
223053
223107
|
}
|
|
223054
223108
|
} //lntable.node2DrawNode();
|
|
223055
223109
|
|
|
@@ -223108,6 +223162,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
223108
223162
|
}, {
|
|
223109
223163
|
key: "TransHTMLText",
|
|
223110
223164
|
value: function TransHTMLText(jnode, style) {
|
|
223165
|
+
var _this2 = this;
|
|
223166
|
+
|
|
223111
223167
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
223112
223168
|
var tag = jnode.nodeName.toLowerCase();
|
|
223113
223169
|
|
|
@@ -223133,17 +223189,67 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
223133
223189
|
}
|
|
223134
223190
|
|
|
223135
223191
|
if (jnode.childNodes.length == 0) {
|
|
223192
|
+
var text = jquery_default()(jnode).text();
|
|
223193
|
+
var result = new Array();
|
|
223194
|
+
|
|
223195
|
+
var getText = function getText(text) {
|
|
223196
|
+
var index1 = text.indexOf("<上标>");
|
|
223197
|
+
var index2 = text.indexOf("</上标>");
|
|
223198
|
+
result.push({
|
|
223199
|
+
"mark": 0,
|
|
223200
|
+
"text": text.substring(0, index1)
|
|
223201
|
+
});
|
|
223202
|
+
result.push({
|
|
223203
|
+
"mark": 1,
|
|
223204
|
+
"text": text.substring(index1 + 4, index2)
|
|
223205
|
+
});
|
|
223206
|
+
text = text.substring(index2 + 5, text.length);
|
|
223207
|
+
|
|
223208
|
+
if (text.indexOf("<上标>") >= 0) {
|
|
223209
|
+
getText(text);
|
|
223210
|
+
} else {
|
|
223211
|
+
result.push({
|
|
223212
|
+
"mark": 0,
|
|
223213
|
+
"text": text.substring(index2 + 4, text.length)
|
|
223214
|
+
});
|
|
223215
|
+
}
|
|
223216
|
+
};
|
|
223217
|
+
|
|
223218
|
+
if (text.indexOf("<上标>") >= 0) {
|
|
223219
|
+
getText(text);
|
|
223220
|
+
}
|
|
223221
|
+
|
|
223222
|
+
if (result.length > 0) {
|
|
223223
|
+
var tmp = new Array();
|
|
223224
|
+
result.forEach(function (value, key) {
|
|
223225
|
+
if (value.mark === 1) {
|
|
223226
|
+
styleobj["vertical_align"] = "super";
|
|
223227
|
+
} else {
|
|
223228
|
+
styleobj["vertical_align"] = "";
|
|
223229
|
+
}
|
|
223230
|
+
|
|
223231
|
+
if (value.text != "") {
|
|
223232
|
+
var _node2 = _this2.generateTextNode(value.text, styleobj);
|
|
223233
|
+
|
|
223234
|
+
if (_node2) {
|
|
223235
|
+
tmp.push(_node2);
|
|
223236
|
+
}
|
|
223237
|
+
}
|
|
223238
|
+
});
|
|
223239
|
+
return tmp;
|
|
223240
|
+
}
|
|
223241
|
+
|
|
223136
223242
|
var node = this.generateTextNode(jquery_default()(jnode).text(), styleobj);
|
|
223137
223243
|
if (node) return [node];else return [];
|
|
223138
223244
|
} else {
|
|
223139
|
-
var
|
|
223245
|
+
var _tmp3 = new Array();
|
|
223140
223246
|
|
|
223141
223247
|
for (var i = 0; i < jnode.childNodes.length; i++) {
|
|
223142
223248
|
var fun = this.convert.get(jnode.childNodes[i].nodeName.toLowerCase());
|
|
223143
|
-
if (fun)
|
|
223249
|
+
if (fun) _tmp3.push.apply(_tmp3, (0,toConsumableArray/* default */.Z)(fun(jnode.childNodes[i], JSON.stringify(styleobj))));
|
|
223144
223250
|
}
|
|
223145
223251
|
|
|
223146
|
-
return
|
|
223252
|
+
return _tmp3;
|
|
223147
223253
|
}
|
|
223148
223254
|
}
|
|
223149
223255
|
}, {
|
|
@@ -223208,7 +223314,10 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
223208
223314
|
if (fun) tmp.push.apply(tmp, (0,toConsumableArray/* default */.Z)(fun(jnode.childNodes[i], '')));
|
|
223209
223315
|
}
|
|
223210
223316
|
|
|
223211
|
-
|
|
223317
|
+
if (tmp.length > 0 && tmp[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
223318
|
+
node.childNodes.splice(0, node.childNodes.length);
|
|
223319
|
+
}
|
|
223320
|
+
|
|
223212
223321
|
tmp.forEach(function (value) {
|
|
223213
223322
|
value.parentNode = node; //FIXME:这里没有考虑表格嵌套时候
|
|
223214
223323
|
|
|
@@ -233709,16 +233818,101 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233709
233818
|
});
|
|
233710
233819
|
}
|
|
233711
233820
|
}
|
|
233821
|
+
}, {
|
|
233822
|
+
key: "getIsSetFont",
|
|
233823
|
+
value: function getIsSetFont() {
|
|
233824
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233825
|
+
return hoEditorFactory.printController.isSetFont;
|
|
233826
|
+
}
|
|
233827
|
+
}, {
|
|
233828
|
+
key: "setjsPDFFonts",
|
|
233829
|
+
value: function setjsPDFFonts(font) {
|
|
233830
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233831
|
+
hoEditorFactory.printController.setjsPDFFonts(font);
|
|
233832
|
+
}
|
|
233712
233833
|
}, {
|
|
233713
233834
|
key: "html2Xml",
|
|
233714
|
-
value: function html2Xml(
|
|
233835
|
+
value: function html2Xml(json) {
|
|
233836
|
+
var _this5 = this;
|
|
233837
|
+
|
|
233715
233838
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233716
|
-
var headerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, header);
|
|
233717
|
-
var footerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, footer);
|
|
233718
|
-
var mainNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, main);
|
|
233839
|
+
var headerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.header);
|
|
233840
|
+
var footerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.footer);
|
|
233841
|
+
var mainNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.main);
|
|
233842
|
+
|
|
233843
|
+
var insertParaNode = function insertParaNode(area, index) {
|
|
233844
|
+
var node = new ParagraphNode/* ParagraphNode */.C(_this5._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
233845
|
+
|
|
233846
|
+
if (area == "header") {
|
|
233847
|
+
node.rootPath = "header/0";
|
|
233848
|
+
headerNodes.splice(index, 0, node);
|
|
233849
|
+
}
|
|
233719
233850
|
|
|
233720
|
-
|
|
233721
|
-
|
|
233851
|
+
if (area == "footer") {
|
|
233852
|
+
node.rootPath = "footer/0";
|
|
233853
|
+
footerNodes.splice(index, 0, node);
|
|
233854
|
+
}
|
|
233855
|
+
|
|
233856
|
+
if (area == "main") {
|
|
233857
|
+
node.rootPath = "main";
|
|
233858
|
+
mainNodes.splice(index, 0, node);
|
|
233859
|
+
}
|
|
233860
|
+
};
|
|
233861
|
+
|
|
233862
|
+
if (!(headerNodes[0] instanceof ParagraphNode/* ParagraphNode */.C) || headerNodes.length == 0) {
|
|
233863
|
+
insertParaNode("header", 0);
|
|
233864
|
+
}
|
|
233865
|
+
|
|
233866
|
+
if (!(footerNodes[0] instanceof ParagraphNode/* ParagraphNode */.C) || footerNodes.length == 0) {
|
|
233867
|
+
insertParaNode("footer", 0);
|
|
233868
|
+
}
|
|
233869
|
+
|
|
233870
|
+
if (!(mainNodes[0] instanceof ParagraphNode/* ParagraphNode */.C) || mainNodes.length == 0) {
|
|
233871
|
+
insertParaNode("main", 0);
|
|
233872
|
+
}
|
|
233873
|
+
|
|
233874
|
+
for (var i = headerNodes.length - 1; i >= 0; i--) {
|
|
233875
|
+
var hnode = headerNodes[i];
|
|
233876
|
+
hnode.rootPath = "header/0";
|
|
233877
|
+
|
|
233878
|
+
if (hnode instanceof TableNode/* TableNode */.Fh) {
|
|
233879
|
+
if (!(headerNodes[i + 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233880
|
+
insertParaNode("header", i + 1);
|
|
233881
|
+
}
|
|
233882
|
+
|
|
233883
|
+
if (!(headerNodes[i - 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233884
|
+
insertParaNode("header", i - 1);
|
|
233885
|
+
}
|
|
233886
|
+
}
|
|
233887
|
+
}
|
|
233888
|
+
|
|
233889
|
+
for (var j = footerNodes.length - 1; j >= 0; j--) {
|
|
233890
|
+
var fnode = footerNodes[j];
|
|
233891
|
+
fnode.rootPath = "footer/0";
|
|
233892
|
+
|
|
233893
|
+
if (fnode instanceof TableNode/* TableNode */.Fh) {
|
|
233894
|
+
if (!(footerNodes[j + 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233895
|
+
insertParaNode("footer", j + 1);
|
|
233896
|
+
}
|
|
233897
|
+
|
|
233898
|
+
if (!(footerNodes[j - 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233899
|
+
insertParaNode("footer", j - 1);
|
|
233900
|
+
}
|
|
233901
|
+
}
|
|
233902
|
+
}
|
|
233903
|
+
|
|
233904
|
+
for (var k = mainNodes.length - 1; k >= 0; k--) {
|
|
233905
|
+
var mnode = mainNodes[k];
|
|
233906
|
+
|
|
233907
|
+
if (mnode instanceof TableNode/* TableNode */.Fh) {
|
|
233908
|
+
if (!(mainNodes[k + 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233909
|
+
insertParaNode("main", k + 1);
|
|
233910
|
+
}
|
|
233911
|
+
|
|
233912
|
+
if (!(mainNodes[k - 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233913
|
+
insertParaNode("main", k - 1);
|
|
233914
|
+
}
|
|
233915
|
+
}
|
|
233722
233916
|
}
|
|
233723
233917
|
|
|
233724
233918
|
var node2Json = function node2Json(node, defaultCellPropJson) {
|
|
@@ -233737,13 +233931,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233737
233931
|
}
|
|
233738
233932
|
|
|
233739
233933
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
233740
|
-
var
|
|
233934
|
+
var _json = {
|
|
233741
233935
|
nodeType: BaseNode/* NodeType.2 */.Jq[2],
|
|
233742
233936
|
text: node.text,
|
|
233743
233937
|
styleIndex: node.styleIndex
|
|
233744
233938
|
};
|
|
233745
233939
|
return {
|
|
233746
|
-
"TextNode":
|
|
233940
|
+
"TextNode": _json
|
|
233747
233941
|
};
|
|
233748
233942
|
}
|
|
233749
233943
|
|
|
@@ -233783,8 +233977,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233783
233977
|
var rows = node.rowInfos.length - 1;
|
|
233784
233978
|
var cols = node.colInfos.length - 1;
|
|
233785
233979
|
|
|
233786
|
-
for (var
|
|
233787
|
-
var rowInfo = node.rowInfos[
|
|
233980
|
+
for (var _i5 = 0; _i5 <= rows; _i5++) {
|
|
233981
|
+
var rowInfo = node.rowInfos[_i5];
|
|
233788
233982
|
var _customProperties = {
|
|
233789
233983
|
customProperty: Array(rowInfo.rowProperty.customProperties)
|
|
233790
233984
|
};
|
|
@@ -233804,18 +233998,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233804
233998
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
233805
233999
|
var keysName = Object.keys(defaultRowProp);
|
|
233806
234000
|
|
|
233807
|
-
for (var
|
|
233808
|
-
if (keysName[
|
|
234001
|
+
for (var _k = 0; _k < keysName.length; _k++) {
|
|
234002
|
+
if (keysName[_k] === "customProperties") {
|
|
233809
234003
|
if (rowInfo.rowProperty.customProperties.length === 0) {
|
|
233810
234004
|
delete rowPropertyJson["customProperties"];
|
|
233811
234005
|
}
|
|
233812
|
-
} else if (keysName[
|
|
234006
|
+
} else if (keysName[_k] === "dataSource") {
|
|
233813
234007
|
if (rowInfo.rowProperty.dataSource === undefined) {
|
|
233814
234008
|
delete rowPropertyJson["dataSource"];
|
|
233815
234009
|
}
|
|
233816
234010
|
} else {
|
|
233817
|
-
if (rowPropertyJson[keysName[
|
|
233818
|
-
delete rowPropertyJson[keysName[
|
|
234011
|
+
if (rowPropertyJson[keysName[_k]] === defaultRowPropJson[keysName[_k]]) {
|
|
234012
|
+
delete rowPropertyJson[keysName[_k]];
|
|
233819
234013
|
}
|
|
233820
234014
|
}
|
|
233821
234015
|
}
|
|
@@ -233842,8 +234036,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233842
234036
|
|
|
233843
234037
|
var colInfosArray = new Array();
|
|
233844
234038
|
|
|
233845
|
-
for (var
|
|
233846
|
-
var colInfo = node.colInfos[
|
|
234039
|
+
for (var _i6 = 0; _i6 <= cols; _i6++) {
|
|
234040
|
+
var colInfo = node.colInfos[_i6];
|
|
233847
234041
|
var _customProperties2 = {
|
|
233848
234042
|
customProperty: Array(colInfo.colProperty.customProperties)
|
|
233849
234043
|
};
|
|
@@ -233861,9 +234055,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233861
234055
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
233862
234056
|
var colKeysName = Object.keys(defaultColProp);
|
|
233863
234057
|
|
|
233864
|
-
for (var
|
|
233865
|
-
if (colPropertyJson[colKeysName[
|
|
233866
|
-
delete colPropertyJson[colKeysName[
|
|
234058
|
+
for (var _k2 = 0; _k2 < colKeysName.length; _k2++) {
|
|
234059
|
+
if (colPropertyJson[colKeysName[_k2]] === defaultColPropJson[colKeysName[_k2]]) {
|
|
234060
|
+
delete colPropertyJson[colKeysName[_k2]];
|
|
233867
234061
|
}
|
|
233868
234062
|
}
|
|
233869
234063
|
|
|
@@ -233901,11 +234095,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233901
234095
|
var rowArrays = new Array();
|
|
233902
234096
|
var undefines = new Array();
|
|
233903
234097
|
|
|
233904
|
-
for (var
|
|
233905
|
-
var row = node.rows[
|
|
234098
|
+
for (var m = 0; m <= rows; m++) {
|
|
234099
|
+
var row = node.rows[m];
|
|
233906
234100
|
var rowArray = {
|
|
233907
234101
|
nodeType: "ntRow",
|
|
233908
|
-
rowNo:
|
|
234102
|
+
rowNo: m,
|
|
233909
234103
|
childNodes: {
|
|
233910
234104
|
CellNode: Array()
|
|
233911
234105
|
}
|
|
@@ -233917,17 +234111,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233917
234111
|
rowArrays.push(rowArray);
|
|
233918
234112
|
undefines.push(undefineArr);
|
|
233919
234113
|
|
|
233920
|
-
for (var
|
|
233921
|
-
var col = row[
|
|
234114
|
+
for (var n = 0; n <= cols; n++) {
|
|
234115
|
+
var col = row[n];
|
|
233922
234116
|
|
|
233923
234117
|
if (col) {
|
|
233924
|
-
var
|
|
234118
|
+
var _json2 = node2Json(col, _defaultCellPropJson);
|
|
233925
234119
|
|
|
233926
|
-
undefineArr.base = JSON.parse(JSON.stringify(
|
|
233927
|
-
|
|
233928
|
-
|
|
233929
|
-
rowArray.childNodes.CellNode.push(
|
|
233930
|
-
rowArray.rowNo =
|
|
234120
|
+
undefineArr.base = JSON.parse(JSON.stringify(_json2));
|
|
234121
|
+
_json2.rowNo = m;
|
|
234122
|
+
_json2.colNo = n;
|
|
234123
|
+
rowArray.childNodes.CellNode.push(_json2);
|
|
234124
|
+
rowArray.rowNo = m;
|
|
233931
234125
|
} else {
|
|
233932
234126
|
rowArray.childNodes.CellNode.push({});
|
|
233933
234127
|
}
|
|
@@ -233935,16 +234129,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233935
234129
|
} //更新合并单元格的合并值
|
|
233936
234130
|
|
|
233937
234131
|
|
|
233938
|
-
for (var
|
|
233939
|
-
var
|
|
234132
|
+
for (var x = 0; x < rowArrays.length; x++) {
|
|
234133
|
+
var arow = rowArrays[x].childNodes.CellNode;
|
|
233940
234134
|
|
|
233941
|
-
for (var
|
|
233942
|
-
if (
|
|
233943
|
-
|
|
234135
|
+
for (var y = 0; y < arow.length; y++) {
|
|
234136
|
+
if (arow[y].rowSpan > 1) {
|
|
234137
|
+
arow[y].rowSpan = Math.min(arow[y].rowSpan, arow.length - arow[y].rowNo);
|
|
233944
234138
|
}
|
|
233945
234139
|
|
|
233946
|
-
if (
|
|
233947
|
-
|
|
234140
|
+
if (arow[y].colSpan > 1) {
|
|
234141
|
+
arow[y].colSpan = Math.min(arow[y].colSpan, arow.length - arow[y].colNo);
|
|
233948
234142
|
}
|
|
233949
234143
|
}
|
|
233950
234144
|
}
|
|
@@ -234099,10 +234293,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234099
234293
|
var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
|
|
234100
234294
|
|
|
234101
234295
|
var doc2XmlJson = function doc2XmlJson(nodes) {
|
|
234102
|
-
for (var
|
|
234103
|
-
var node = nodes[
|
|
234296
|
+
for (var _i8 = 0; _i8 < nodes.length; _i8++) {
|
|
234297
|
+
var node = nodes[_i8];
|
|
234104
234298
|
|
|
234105
|
-
if (node instanceof
|
|
234299
|
+
if (node instanceof TextNode/* TextNode */.R || node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TableNode/* TableNode */.Fh || node instanceof ImageNode/* ImageNode */.H) {
|
|
234106
234300
|
var nodeJson = node2Json(node);
|
|
234107
234301
|
xmlRoot += x2js.js2xml(nodeJson);
|
|
234108
234302
|
}
|
|
@@ -234146,18 +234340,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234146
234340
|
doc2XmlJson(mainNodes);
|
|
234147
234341
|
xmlRoot += "</main>";
|
|
234148
234342
|
xmlRoot += "<footers>";
|
|
234343
|
+
xmlRoot += "<footer>";
|
|
234149
234344
|
xmlRoot += x2js.js2xml({
|
|
234150
234345
|
index: 0
|
|
234151
234346
|
});
|
|
234152
234347
|
doc2XmlJson(footerNodes);
|
|
234348
|
+
xmlRoot += "</footer>";
|
|
234153
234349
|
xmlRoot += "</footers>";
|
|
234154
234350
|
xmlRoot += "</root>";
|
|
234155
234351
|
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, "<TempNode>", "");
|
|
234156
234352
|
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, "</TempNode>", "");
|
|
234157
|
-
|
|
234158
|
-
|
|
234353
|
+
return xmlRoot;
|
|
234159
234354
|
var xml = XmlBeauty_xmlBeauty(xmlRoot);
|
|
234160
|
-
return
|
|
234355
|
+
return xml; //xmlBeauty(xmlRoot);
|
|
234161
234356
|
}
|
|
234162
234357
|
}]);
|
|
234163
234358
|
|
|
@@ -240335,6 +240530,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
240335
240530
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
240336
240531
|
hoEditorFactory.hoLocalStorage.initHoWebSql();
|
|
240337
240532
|
window.vueController = hoEditorFactory.vueController;
|
|
240533
|
+
window.printController = hoEditorFactory.printController;
|
|
240338
240534
|
this.$emit('docReady', {
|
|
240339
240535
|
vueController: hoEditorFactory.vueController,
|
|
240340
240536
|
baseController: hoEditorFactory.baseController,
|
|
@@ -240482,10 +240678,10 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
240482
240678
|
});
|
|
240483
240679
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240484
240680
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
240485
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240681
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=7309028f&prod&lang=scss&media=print&
|
|
240486
240682
|
// extracted by mini-css-extract-plugin
|
|
240487
240683
|
|
|
240488
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240684
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=7309028f&prod&lang=scss&media=print&
|
|
240489
240685
|
|
|
240490
240686
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240491
240687
|
|
|
@@ -240508,9 +240704,9 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240508
240704
|
)
|
|
240509
240705
|
|
|
240510
240706
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
240511
|
-
;// 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/ToolBar.vue?vue&type=template&id=
|
|
240512
|
-
var
|
|
240513
|
-
var
|
|
240707
|
+
;// 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/ToolBar.vue?vue&type=template&id=95dff248&
|
|
240708
|
+
var ToolBarvue_type_template_id_95dff248_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{ canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow },"vueController":_vm.vueController},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? '显示批注' : '隐藏批注'))])]):_vm._e()],2),_vm._t("afterReview")],2)}
|
|
240709
|
+
var ToolBarvue_type_template_id_95dff248_staticRenderFns = []
|
|
240514
240710
|
|
|
240515
240711
|
|
|
240516
240712
|
;// 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/insert/HoMedicalExpression.vue?vue&type=template&id=beffa98c&scoped=true&
|
|
@@ -240759,9 +240955,9 @@ var HoMedicalExpression_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240759
240955
|
)
|
|
240760
240956
|
|
|
240761
240957
|
/* harmony default export */ var HoMedicalExpression = (HoMedicalExpression_component.exports);
|
|
240762
|
-
;// 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/insert/HoPrintDialog.vue?vue&type=template&id=
|
|
240763
|
-
var
|
|
240764
|
-
var
|
|
240958
|
+
;// 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/insert/HoPrintDialog.vue?vue&type=template&id=1ed44917&
|
|
240959
|
+
var HoPrintDialogvue_type_template_id_1ed44917_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{"title":"打印设置","top":"200px","visible":_vm.printDialog,"center":"","width":"40%","before-close":_vm.closedHoPrintModal,"append-to-body":"","destroy-on-close":"","close-on-click-modal":false},on:{"update:visible":function($event){_vm.printDialog=$event}}},[_c('section',{staticClass:"ho-print-content"},[_c('el-radio',{attrs:{"size":"medium","label":0},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("全部打印")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("奇数页")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("偶数页")]),_c('div',{staticClass:"ho-print-more"},[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("打印指定页:")]),_c('el-input',{attrs:{"disabled":_vm.printMode !== 3,"size":"mini","placeholder":"示例: 1, 2-4, 5, 7-10, 12"},model:{value:(_vm.printAppoint),callback:function ($$v) {_vm.printAppoint=$$v},expression:"printAppoint"}})],1),(_vm.errorText)?_c('div',{staticClass:"ho-print-error"},[_vm._v(_vm._s(_vm.errorText))]):_vm._e(),_c('div',{staticClass:"ho-print-title"},[_vm._v("指定页: 1, 2-4, 5, 7-10, 12")])],1),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"size":"mini","type":"primary"},on:{"click":_vm.hoPrinted}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.closedHoPrintModal}},[_vm._v("取 消")])],1)])}
|
|
240960
|
+
var HoPrintDialogvue_type_template_id_1ed44917_staticRenderFns = []
|
|
240765
240961
|
|
|
240766
240962
|
|
|
240767
240963
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=script&lang=js&
|
|
@@ -240825,12 +241021,29 @@ var HoPrintDialogvue_type_template_id_7abbbfd8_staticRenderFns = []
|
|
|
240825
241021
|
},
|
|
240826
241022
|
methods: {
|
|
240827
241023
|
hoPrinted: function hoPrinted() {
|
|
240828
|
-
var
|
|
241024
|
+
var _this = this;
|
|
240829
241025
|
|
|
240830
|
-
|
|
240831
|
-
|
|
241026
|
+
var callback = function callback(result) {
|
|
241027
|
+
if (result) {
|
|
241028
|
+
_this.errorText = result;
|
|
241029
|
+
} else {
|
|
241030
|
+
_this.$emit('closed', 'sure');
|
|
241031
|
+
}
|
|
241032
|
+
};
|
|
241033
|
+
|
|
241034
|
+
if (!this.vueController.getIsSetFont()) {
|
|
241035
|
+
this.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
241036
|
+
if (font) {
|
|
241037
|
+
_this.vueController.setjsPDFFonts(font);
|
|
241038
|
+
|
|
241039
|
+
var result = _this.vueController.printPromisePDF(_this.printMode, _this.printAppoint);
|
|
241040
|
+
|
|
241041
|
+
callback(result);
|
|
241042
|
+
}
|
|
241043
|
+
});
|
|
240832
241044
|
} else {
|
|
240833
|
-
this
|
|
241045
|
+
var result = this.vueController.printPromisePDF(this.printMode, this.printAppoint);
|
|
241046
|
+
callback(result);
|
|
240834
241047
|
}
|
|
240835
241048
|
},
|
|
240836
241049
|
closedHoPrintModal: function closedHoPrintModal() {
|
|
@@ -240840,10 +241053,10 @@ var HoPrintDialogvue_type_template_id_7abbbfd8_staticRenderFns = []
|
|
|
240840
241053
|
});
|
|
240841
241054
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=script&lang=js&
|
|
240842
241055
|
/* harmony default export */ var insert_HoPrintDialogvue_type_script_lang_js_ = (HoPrintDialogvue_type_script_lang_js_);
|
|
240843
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=style&index=0&id=
|
|
241056
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=style&index=0&id=1ed44917&prod&lang=scss&
|
|
240844
241057
|
// extracted by mini-css-extract-plugin
|
|
240845
241058
|
|
|
240846
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=style&index=0&id=
|
|
241059
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=style&index=0&id=1ed44917&prod&lang=scss&
|
|
240847
241060
|
|
|
240848
241061
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue
|
|
240849
241062
|
|
|
@@ -240856,8 +241069,8 @@ var HoPrintDialogvue_type_template_id_7abbbfd8_staticRenderFns = []
|
|
|
240856
241069
|
|
|
240857
241070
|
var HoPrintDialog_component = (0,componentNormalizer/* default */.Z)(
|
|
240858
241071
|
insert_HoPrintDialogvue_type_script_lang_js_,
|
|
240859
|
-
|
|
240860
|
-
|
|
241072
|
+
HoPrintDialogvue_type_template_id_1ed44917_render,
|
|
241073
|
+
HoPrintDialogvue_type_template_id_1ed44917_staticRenderFns,
|
|
240861
241074
|
false,
|
|
240862
241075
|
null,
|
|
240863
241076
|
null,
|
|
@@ -244328,12 +244541,24 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244328
244541
|
}, {
|
|
244329
244542
|
key: "printTpPDF",
|
|
244330
244543
|
value: function printTpPDF() {
|
|
244544
|
+
var _this2 = this;
|
|
244545
|
+
|
|
244331
244546
|
// 非打印预览状态
|
|
244332
244547
|
if (!this.isPrinted) {
|
|
244333
244548
|
// 打开设置弹窗
|
|
244334
244549
|
this.printModal = true;
|
|
244335
244550
|
} else {
|
|
244336
|
-
this.vueController.
|
|
244551
|
+
if (!this.vueController.getIsSetFont()) {
|
|
244552
|
+
this.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
244553
|
+
if (font) {
|
|
244554
|
+
_this2.vueController.setjsPDFFonts(font);
|
|
244555
|
+
|
|
244556
|
+
_this2.vueController.printPromisePDF();
|
|
244557
|
+
}
|
|
244558
|
+
});
|
|
244559
|
+
} else {
|
|
244560
|
+
this.vueController.printPromisePDF();
|
|
244561
|
+
}
|
|
244337
244562
|
}
|
|
244338
244563
|
|
|
244339
244564
|
this.isPrinted = false;
|
|
@@ -244467,11 +244692,11 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244467
244692
|
}, {
|
|
244468
244693
|
key: "closeToolMenus",
|
|
244469
244694
|
value: function closeToolMenus(e) {
|
|
244470
|
-
var
|
|
244695
|
+
var _this3 = this;
|
|
244471
244696
|
|
|
244472
244697
|
if (this.toolMenuOpenPath.length > 0) {
|
|
244473
244698
|
this.toolMenuOpenPath.forEach(function (path) {
|
|
244474
|
-
|
|
244699
|
+
_this3.toolMenus.closeMenu(path);
|
|
244475
244700
|
});
|
|
244476
244701
|
this.toolMenuOpenPath = [];
|
|
244477
244702
|
}
|
|
@@ -244484,11 +244709,11 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244484
244709
|
}, {
|
|
244485
244710
|
key: "closeToolMenusTest",
|
|
244486
244711
|
value: function closeToolMenusTest(e) {
|
|
244487
|
-
var
|
|
244712
|
+
var _this4 = this;
|
|
244488
244713
|
|
|
244489
244714
|
if (this.toolMenuOpenPathTest.length > 0) {
|
|
244490
244715
|
this.toolMenuOpenPathTest.forEach(function (path) {
|
|
244491
|
-
|
|
244716
|
+
_this4.toolMenusTest.closeMenu(path);
|
|
244492
244717
|
});
|
|
244493
244718
|
this.toolMenuOpenPathTest = [];
|
|
244494
244719
|
}
|
|
@@ -244533,11 +244758,11 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244533
244758
|
}, {
|
|
244534
244759
|
key: "closeToolPrint",
|
|
244535
244760
|
value: function closeToolPrint() {
|
|
244536
|
-
var
|
|
244761
|
+
var _this5 = this;
|
|
244537
244762
|
|
|
244538
244763
|
if (!this.isPrinted && this.toolPrintOpenPath.length > 0) {
|
|
244539
244764
|
this.toolPrintOpenPath.forEach(function (path) {
|
|
244540
|
-
|
|
244765
|
+
_this5.toolPrint.closeMenu(path);
|
|
244541
244766
|
});
|
|
244542
244767
|
}
|
|
244543
244768
|
}
|
|
@@ -244621,7 +244846,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244621
244846
|
}, {
|
|
244622
244847
|
key: "render",
|
|
244623
244848
|
value: function render() {
|
|
244624
|
-
var
|
|
244849
|
+
var _this6 = this;
|
|
244625
244850
|
|
|
244626
244851
|
var h = arguments[0];
|
|
244627
244852
|
var editJson = this.editJson;
|
|
@@ -244697,7 +244922,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244697
244922
|
},
|
|
244698
244923
|
"nativeOn": {
|
|
244699
244924
|
"click": function click() {
|
|
244700
|
-
return
|
|
244925
|
+
return _this6.createNew("caseHistory");
|
|
244701
244926
|
}
|
|
244702
244927
|
}
|
|
244703
244928
|
}, ["\u75C5\u5386"]), h("el-menu-item", {
|
|
@@ -244706,7 +244931,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244706
244931
|
},
|
|
244707
244932
|
"nativeOn": {
|
|
244708
244933
|
"click": function click() {
|
|
244709
|
-
return
|
|
244934
|
+
return _this6.createNew("form");
|
|
244710
244935
|
}
|
|
244711
244936
|
}
|
|
244712
244937
|
}, ["\u8868\u5355"])]), editJson.openFile && h("el-menu-item", {
|
|
@@ -244735,7 +244960,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244735
244960
|
},
|
|
244736
244961
|
"nativeOn": {
|
|
244737
244962
|
"click": function click() {
|
|
244738
|
-
return
|
|
244963
|
+
return _this6.saveAsFile("xml");
|
|
244739
244964
|
}
|
|
244740
244965
|
}
|
|
244741
244966
|
}, ["XML"]), h("el-menu-item", {
|
|
@@ -244744,7 +244969,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244744
244969
|
},
|
|
244745
244970
|
"nativeOn": {
|
|
244746
244971
|
"click": function click() {
|
|
244747
|
-
return
|
|
244972
|
+
return _this6.saveAsFile("html");
|
|
244748
244973
|
}
|
|
244749
244974
|
}
|
|
244750
244975
|
}, ["HTML"]), h("el-menu-item", {
|
|
@@ -244753,7 +244978,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244753
244978
|
},
|
|
244754
244979
|
"nativeOn": {
|
|
244755
244980
|
"click": function click() {
|
|
244756
|
-
return
|
|
244981
|
+
return _this6.saveAsFile("pdf");
|
|
244757
244982
|
}
|
|
244758
244983
|
}
|
|
244759
244984
|
}, ["PDF"]), h("el-menu-item", {
|
|
@@ -244762,7 +244987,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244762
244987
|
},
|
|
244763
244988
|
"nativeOn": {
|
|
244764
244989
|
"click": function click() {
|
|
244765
|
-
return
|
|
244990
|
+
return _this6.saveAsFile("plain");
|
|
244766
244991
|
}
|
|
244767
244992
|
}
|
|
244768
244993
|
}, ["TXT"]), h("el-menu-item", {
|
|
@@ -244771,7 +244996,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244771
244996
|
},
|
|
244772
244997
|
"nativeOn": {
|
|
244773
244998
|
"click": function click() {
|
|
244774
|
-
return
|
|
244999
|
+
return _this6.saveAsFile("json");
|
|
244775
245000
|
}
|
|
244776
245001
|
}
|
|
244777
245002
|
}, ["JSON"])]), h("el-menu-item", {
|
|
@@ -244889,7 +245114,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244889
245114
|
"class": "sub-bar-items",
|
|
244890
245115
|
"on": {
|
|
244891
245116
|
"click": function click() {
|
|
244892
|
-
return
|
|
245117
|
+
return _this6.setModalStatus(["find", "add", ""]);
|
|
244893
245118
|
}
|
|
244894
245119
|
}
|
|
244895
245120
|
}, [h(popers/* default */.Z, {
|
|
@@ -246259,22 +246484,22 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246259
246484
|
_this.printModal = false;
|
|
246260
246485
|
_this.ctrlS = false;
|
|
246261
246486
|
_this.toolMenuOpenPathTest = [];
|
|
246262
|
-
_this.printStatus =
|
|
246487
|
+
_this.printStatus = '';
|
|
246263
246488
|
_this.isPrinted = false;
|
|
246264
246489
|
_this.reviewLevel = {
|
|
246265
246490
|
limit: 1,
|
|
246266
|
-
color: [
|
|
246267
|
-
text: [
|
|
246491
|
+
color: ['#f19191', '#8198f7', '#7fd27f'],
|
|
246492
|
+
text: ['一级质控', '二级质控', '三级质控']
|
|
246268
246493
|
};
|
|
246269
246494
|
_this.userInfoes = null;
|
|
246270
246495
|
_this.defaultToolBarParams = {
|
|
246271
|
-
|
|
246272
|
-
|
|
246273
|
-
|
|
246274
|
-
|
|
246275
|
-
|
|
246496
|
+
'ho-browse': 5,
|
|
246497
|
+
'ho-edit': 1,
|
|
246498
|
+
'ho-insert': 1,
|
|
246499
|
+
'ho-table': 1,
|
|
246500
|
+
'ho-review': 4
|
|
246276
246501
|
};
|
|
246277
|
-
_this.tabKey =
|
|
246502
|
+
_this.tabKey = ''; // 审阅配置项
|
|
246278
246503
|
|
|
246279
246504
|
_this.defaultReviewJson = {
|
|
246280
246505
|
isReview: true,
|
|
@@ -246378,27 +246603,27 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246378
246603
|
(0,createClass/* default */.Z)(ToolBar, [{
|
|
246379
246604
|
key: "isPrintClass",
|
|
246380
246605
|
get: function get() {
|
|
246381
|
-
return this.isPrinted ?
|
|
246606
|
+
return this.isPrinted ? 'print-selected' : '';
|
|
246382
246607
|
}
|
|
246383
246608
|
}, {
|
|
246384
246609
|
key: "printedClass",
|
|
246385
246610
|
get: function get() {
|
|
246386
|
-
return this.printStatus ===
|
|
246611
|
+
return this.printStatus === 'print' ? 'print print-selected' : 'print';
|
|
246387
246612
|
}
|
|
246388
246613
|
}, {
|
|
246389
246614
|
key: "printSelectedClass",
|
|
246390
246615
|
get: function get() {
|
|
246391
|
-
return this.printStatus ===
|
|
246616
|
+
return this.printStatus === 'selected' ? 'print print-selected' : 'print';
|
|
246392
246617
|
}
|
|
246393
246618
|
}, {
|
|
246394
246619
|
key: "printCaretClass",
|
|
246395
246620
|
get: function get() {
|
|
246396
|
-
return this.printStatus ===
|
|
246621
|
+
return this.printStatus === 'caret' ? 'print print-selected' : 'print';
|
|
246397
246622
|
}
|
|
246398
246623
|
}, {
|
|
246399
246624
|
key: "printContinueClass",
|
|
246400
246625
|
get: function get() {
|
|
246401
|
-
return this.printStatus ===
|
|
246626
|
+
return this.printStatus === 'continue' ? 'print print-selected' : 'print';
|
|
246402
246627
|
}
|
|
246403
246628
|
}, {
|
|
246404
246629
|
key: "tabStatusChange",
|
|
@@ -246439,7 +246664,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246439
246664
|
}, {
|
|
246440
246665
|
key: "vueControllerChange",
|
|
246441
246666
|
value: function vueControllerChange() {
|
|
246442
|
-
if (Object.prototype.toString.call(this.vueController.setEditorStatus) ===
|
|
246667
|
+
if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]') {
|
|
246443
246668
|
if (this.toolbarParams) {
|
|
246444
246669
|
this.defaultToolBarParams = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, this.defaultToolBarParams), this.toolbarParams);
|
|
246445
246670
|
}
|
|
@@ -246456,7 +246681,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246456
246681
|
|
|
246457
246682
|
if (this.tabStatus) this.tabKey = this.tabStatus;
|
|
246458
246683
|
|
|
246459
|
-
if (Object.prototype.toString.call(this.vueController.setEditorStatus) ===
|
|
246684
|
+
if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]') {
|
|
246460
246685
|
if (this.tabKey) this.$nextTick(function () {
|
|
246461
246686
|
return _this2.vueController.setEditorStatus(_this2.defaultToolBarParams[_this2.tabKey]);
|
|
246462
246687
|
});
|
|
@@ -246500,22 +246725,22 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246500
246725
|
// limit: limit,
|
|
246501
246726
|
// color: color,
|
|
246502
246727
|
// };
|
|
246503
|
-
var arr = [
|
|
246504
|
-
var id = this.vueController.generateID(
|
|
246505
|
-
this.vueController.setUserLoginInfo(id, arr[limit - 1], limit,
|
|
246728
|
+
var arr = ['李医生', '张医生', '王医生'];
|
|
246729
|
+
var id = this.vueController.generateID('UI');
|
|
246730
|
+
this.vueController.setUserLoginInfo(id, arr[limit - 1], limit, '');
|
|
246506
246731
|
this.vueController.setReviewLevelColor({
|
|
246507
|
-
reviewLev1Color:
|
|
246508
|
-
reviewLev2Color:
|
|
246509
|
-
reviewLev3Color:
|
|
246510
|
-
fieldColor:
|
|
246511
|
-
dateTimeColor:
|
|
246512
|
-
downListColor:
|
|
246732
|
+
reviewLev1Color: '#F19191',
|
|
246733
|
+
reviewLev2Color: '#FFFFFF',
|
|
246734
|
+
reviewLev3Color: '#FFFFFF',
|
|
246735
|
+
fieldColor: '#DFFFFF',
|
|
246736
|
+
dateTimeColor: '#FBFAD0',
|
|
246737
|
+
downListColor: '#D2ECB1'
|
|
246513
246738
|
});
|
|
246514
246739
|
}
|
|
246515
246740
|
}, {
|
|
246516
246741
|
key: "setModalStatus",
|
|
246517
246742
|
value: function setModalStatus(str) {
|
|
246518
|
-
this.$emit(
|
|
246743
|
+
this.$emit('setModalStatus', str);
|
|
246519
246744
|
}
|
|
246520
246745
|
}, {
|
|
246521
246746
|
key: "updateTabKey",
|
|
@@ -246537,20 +246762,20 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246537
246762
|
this.vueController.setEditorStatus(newStatus);
|
|
246538
246763
|
}
|
|
246539
246764
|
|
|
246540
|
-
this.printStatus =
|
|
246765
|
+
this.printStatus = '';
|
|
246541
246766
|
this.isPrinted = false;
|
|
246542
246767
|
}
|
|
246543
246768
|
}, {
|
|
246544
246769
|
key: "emitToolBarStatus",
|
|
246545
246770
|
value: function emitToolBarStatus() {
|
|
246546
|
-
this.$emit(
|
|
246771
|
+
this.$emit('switchDocStatus', {
|
|
246547
246772
|
incomingParams: (0,objectSpread2/* default */.Z)({}, this.toolbarParams),
|
|
246548
246773
|
defaultParams: {
|
|
246549
|
-
|
|
246550
|
-
|
|
246551
|
-
|
|
246552
|
-
|
|
246553
|
-
|
|
246774
|
+
'ho-browse': 5,
|
|
246775
|
+
'ho-edit': 1,
|
|
246776
|
+
'ho-insert': 1,
|
|
246777
|
+
'ho-table': 1,
|
|
246778
|
+
'ho-review': 4
|
|
246554
246779
|
},
|
|
246555
246780
|
mergeParams: (0,objectSpread2/* default */.Z)({}, this.defaultToolBarParams)
|
|
246556
246781
|
});
|
|
@@ -246562,7 +246787,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246562
246787
|
}, {
|
|
246563
246788
|
key: "openExpress",
|
|
246564
246789
|
value: function openExpress(style) {
|
|
246565
|
-
this.$emit(
|
|
246790
|
+
this.$emit('setModalStatus', ['express', 'add', style]);
|
|
246566
246791
|
}
|
|
246567
246792
|
/**
|
|
246568
246793
|
*
|
|
@@ -246586,14 +246811,14 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246586
246811
|
}, {
|
|
246587
246812
|
key: "outPrinted",
|
|
246588
246813
|
value: function outPrinted() {
|
|
246589
|
-
this.printStatus =
|
|
246814
|
+
this.printStatus = '';
|
|
246590
246815
|
this.isPrinted = false;
|
|
246591
246816
|
this.vueController.setEditorStatus(5);
|
|
246592
246817
|
}
|
|
246593
246818
|
}, {
|
|
246594
246819
|
key: "closedHoPrintModal",
|
|
246595
246820
|
value: function closedHoPrintModal(status) {
|
|
246596
|
-
if (status ===
|
|
246821
|
+
if (status === 'sure') {
|
|
246597
246822
|
this.isPrinted = false;
|
|
246598
246823
|
}
|
|
246599
246824
|
|
|
@@ -246603,12 +246828,25 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246603
246828
|
}, {
|
|
246604
246829
|
key: "printed",
|
|
246605
246830
|
value: function printed() {
|
|
246831
|
+
var _this5 = this;
|
|
246832
|
+
|
|
246606
246833
|
// 非打印预览状态
|
|
246607
246834
|
if (!this.isPrinted) {
|
|
246608
246835
|
// 打开设置弹窗
|
|
246609
246836
|
this.printModal = true;
|
|
246610
246837
|
} else {
|
|
246611
|
-
this.vueController.
|
|
246838
|
+
if (!this.vueController.getIsSetFont()) {
|
|
246839
|
+
this.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
246840
|
+
if (font) {
|
|
246841
|
+
_this5.vueController.setjsPDFFonts(font);
|
|
246842
|
+
|
|
246843
|
+
_this5.vueController.printPromisePDF();
|
|
246844
|
+
}
|
|
246845
|
+
});
|
|
246846
|
+
} else {
|
|
246847
|
+
this.vueController.printPromisePDF();
|
|
246848
|
+
}
|
|
246849
|
+
|
|
246612
246850
|
this.isPrinted = false;
|
|
246613
246851
|
}
|
|
246614
246852
|
}
|
|
@@ -246619,7 +246857,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246619
246857
|
}, {
|
|
246620
246858
|
key: "printSelected",
|
|
246621
246859
|
value: function printSelected() {
|
|
246622
|
-
this.printStatus =
|
|
246860
|
+
this.printStatus = 'selected';
|
|
246623
246861
|
this.isPrinted = true;
|
|
246624
246862
|
this.vueController.setEditorStatus(2, 1);
|
|
246625
246863
|
}
|
|
@@ -246630,7 +246868,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246630
246868
|
}, {
|
|
246631
246869
|
key: "printCaret",
|
|
246632
246870
|
value: function printCaret() {
|
|
246633
|
-
this.printStatus =
|
|
246871
|
+
this.printStatus = 'caret';
|
|
246634
246872
|
this.isPrinted = true;
|
|
246635
246873
|
this.vueController.setEditorStatus(2, 0);
|
|
246636
246874
|
}
|
|
@@ -246641,7 +246879,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246641
246879
|
}, {
|
|
246642
246880
|
key: "printContinue",
|
|
246643
246881
|
value: function printContinue() {
|
|
246644
|
-
this.printStatus =
|
|
246882
|
+
this.printStatus = 'continue';
|
|
246645
246883
|
this.isPrinted = true;
|
|
246646
246884
|
this.vueController.setEditorStatus(2, 3);
|
|
246647
246885
|
}
|
|
@@ -246656,14 +246894,14 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246656
246894
|
message_default().closeAll();
|
|
246657
246895
|
|
|
246658
246896
|
message_default().warning({
|
|
246659
|
-
message:
|
|
246897
|
+
message: '请选择需要添加批注的内容',
|
|
246660
246898
|
duration: 3000,
|
|
246661
246899
|
offset: 120
|
|
246662
246900
|
});
|
|
246663
246901
|
|
|
246664
246902
|
return;
|
|
246665
246903
|
} else {
|
|
246666
|
-
this.$emit(
|
|
246904
|
+
this.$emit('setModalStatus', ['comment', 'add', '']);
|
|
246667
246905
|
}
|
|
246668
246906
|
}
|
|
246669
246907
|
/**
|
|
@@ -246676,12 +246914,12 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246676
246914
|
var selectedComment = this.vueController.getOnSelectedComment();
|
|
246677
246915
|
|
|
246678
246916
|
if (selectedComment) {
|
|
246679
|
-
this.$emit(
|
|
246917
|
+
this.$emit('setModalStatus', ['comment', 'update', '']);
|
|
246680
246918
|
} else {
|
|
246681
246919
|
message_default().closeAll();
|
|
246682
246920
|
|
|
246683
246921
|
message_default().warning({
|
|
246684
|
-
message:
|
|
246922
|
+
message: '点击右侧批注区域内已添加的批注进行编辑操作',
|
|
246685
246923
|
duration: 3000,
|
|
246686
246924
|
offset: 120
|
|
246687
246925
|
});
|
|
@@ -246696,7 +246934,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246696
246934
|
}, {
|
|
246697
246935
|
key: "deleteComment",
|
|
246698
246936
|
value: function deleteComment() {
|
|
246699
|
-
this.$emit(
|
|
246937
|
+
this.$emit('insertComments', {
|
|
246700
246938
|
type: 'delete',
|
|
246701
246939
|
selectedComment: this.vueController.getOnSelectedComment()
|
|
246702
246940
|
}); // const selectedComment = this.vueController.getOnSelectedComment();
|
|
@@ -246730,7 +246968,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246730
246968
|
}, {
|
|
246731
246969
|
key: "deleteAllComment",
|
|
246732
246970
|
value: function deleteAllComment() {
|
|
246733
|
-
this.$emit(
|
|
246971
|
+
this.$emit('insertComments', {
|
|
246734
246972
|
type: 'deleteAll',
|
|
246735
246973
|
commentValue: this.vueController.getDocCommentValue()
|
|
246736
246974
|
}); // (this as any)
|
|
@@ -246762,7 +247000,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246762
247000
|
}, {
|
|
246763
247001
|
key: "saveAsFile",
|
|
246764
247002
|
value: function saveAsFile(fileType) {
|
|
246765
|
-
var fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() :
|
|
247003
|
+
var fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() : '电子病历文档';
|
|
246766
247004
|
|
|
246767
247005
|
if (fileType == 'pdf') {
|
|
246768
247006
|
this.vueController.saveAsPDF('', 'pdf', false);
|
|
@@ -246785,10 +247023,10 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246785
247023
|
var url = window.URL.createObjectURL(new Blob([file], {
|
|
246786
247024
|
type: "text/".concat(fileType)
|
|
246787
247025
|
}));
|
|
246788
|
-
var link = document.createElement(
|
|
246789
|
-
link.style.display =
|
|
247026
|
+
var link = document.createElement('a');
|
|
247027
|
+
link.style.display = 'none';
|
|
246790
247028
|
link.href = url;
|
|
246791
|
-
link.setAttribute(
|
|
247029
|
+
link.setAttribute('download', fileName);
|
|
246792
247030
|
document.body.appendChild(link);
|
|
246793
247031
|
link.click();
|
|
246794
247032
|
this.$nextTick(function () {
|
|
@@ -246803,7 +247041,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246803
247041
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolBar.prototype, "vueController", void 0);
|
|
246804
247042
|
|
|
246805
247043
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)({
|
|
246806
|
-
default:
|
|
247044
|
+
default: 'ho-edit'
|
|
246807
247045
|
})], ToolBar.prototype, "tabStatus", void 0);
|
|
246808
247046
|
|
|
246809
247047
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolBar.prototype, "editJson", void 0);
|
|
@@ -246820,30 +247058,30 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246820
247058
|
|
|
246821
247059
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolBar.prototype, "textStyle", void 0);
|
|
246822
247060
|
|
|
246823
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247061
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('tabStatus')], ToolBar.prototype, "tabStatusChange", null);
|
|
246824
247062
|
|
|
246825
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247063
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('editJson', {
|
|
246826
247064
|
deep: true
|
|
246827
247065
|
})], ToolBar.prototype, "editJsonChange", null);
|
|
246828
247066
|
|
|
246829
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247067
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('reviewJson', {
|
|
246830
247068
|
deep: true
|
|
246831
247069
|
})], ToolBar.prototype, "reviewJsonChange", null);
|
|
246832
247070
|
|
|
246833
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247071
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('browseJson', {
|
|
246834
247072
|
deep: true
|
|
246835
247073
|
})], ToolBar.prototype, "browseJsonChange", null);
|
|
246836
247074
|
|
|
246837
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247075
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('toolbarParams', {
|
|
246838
247076
|
deep: true
|
|
246839
247077
|
})], ToolBar.prototype, "toolbarParamsChange", null);
|
|
246840
247078
|
|
|
246841
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247079
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('vueController', {
|
|
246842
247080
|
deep: true
|
|
246843
247081
|
})], ToolBar.prototype, "vueControllerChange", null);
|
|
246844
247082
|
|
|
246845
247083
|
ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Component */.wA)({
|
|
246846
|
-
name:
|
|
247084
|
+
name: 'ToolBar',
|
|
246847
247085
|
components: {
|
|
246848
247086
|
HoMedicalExpression: HoMedicalExpression,
|
|
246849
247087
|
HoPrintDialog: HoPrintDialog,
|
|
@@ -246856,10 +247094,10 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
246856
247094
|
/* harmony default export */ var ToolBarvue_type_script_lang_ts_ = (ToolBar);
|
|
246857
247095
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=ts&
|
|
246858
247096
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_ts_ = (ToolBarvue_type_script_lang_ts_);
|
|
246859
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
247097
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=95dff248&prod&lang=scss&
|
|
246860
247098
|
// extracted by mini-css-extract-plugin
|
|
246861
247099
|
|
|
246862
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
247100
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=95dff248&prod&lang=scss&
|
|
246863
247101
|
|
|
246864
247102
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
246865
247103
|
|
|
@@ -246872,8 +247110,8 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
246872
247110
|
|
|
246873
247111
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
246874
247112
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
246875
|
-
|
|
246876
|
-
|
|
247113
|
+
ToolBarvue_type_template_id_95dff248_render,
|
|
247114
|
+
ToolBarvue_type_template_id_95dff248_staticRenderFns,
|
|
246877
247115
|
false,
|
|
246878
247116
|
null,
|
|
246879
247117
|
null,
|