hoeditor-web 2.0.104 → 2.0.106
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.umd.js +447 -209
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -10580,7 +10580,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10580
10580
|
|
|
10581
10581
|
/***/ }),
|
|
10582
10582
|
|
|
10583
|
-
/***/
|
|
10583
|
+
/***/ 44700:
|
|
10584
10584
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10585
10585
|
|
|
10586
10586
|
"use strict";
|
|
@@ -10592,7 +10592,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10592
10592
|
"default": function() { return /* binding */ Sign; }
|
|
10593
10593
|
});
|
|
10594
10594
|
|
|
10595
|
-
;// 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=
|
|
10595
|
+
;// 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&
|
|
10596
10596
|
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)])}
|
|
10597
10597
|
var staticRenderFns = []
|
|
10598
10598
|
|
|
@@ -10855,7 +10855,7 @@ var SignNode = __webpack_require__(47596);
|
|
|
10855
10855
|
this.signFormat = customFormat.slice(1, customFormat.length - 1);
|
|
10856
10856
|
},
|
|
10857
10857
|
insertSign: function insertSign() {
|
|
10858
|
-
var customProperty = this.getCustomProperty();
|
|
10858
|
+
var customProperty = this.getCustomProperty ? this.getCustomProperty() : {};
|
|
10859
10859
|
|
|
10860
10860
|
if (this.signType === 3) {
|
|
10861
10861
|
// 自定义多人签名
|
|
@@ -10878,10 +10878,10 @@ var SignNode = __webpack_require__(47596);
|
|
|
10878
10878
|
});
|
|
10879
10879
|
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
|
|
10880
10880
|
/* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
|
|
10881
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
10881
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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&
|
|
10882
10882
|
// extracted by mini-css-extract-plugin
|
|
10883
10883
|
|
|
10884
|
-
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=
|
|
10884
|
+
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=56a53569&prod&lang=scss&
|
|
10885
10885
|
|
|
10886
10886
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
10887
10887
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -39639,7 +39639,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
39639
39639
|
c = _this$_table$getCellI4[1];
|
|
39640
39640
|
|
|
39641
39641
|
for (var i = c; i <= c + this.colSpan - 1; i++) {
|
|
39642
|
-
|
|
39642
|
+
if (this._table.colInfos[i]) {
|
|
39643
|
+
aWidth += this._table.colInfos[i].colWidth;
|
|
39644
|
+
}
|
|
39643
39645
|
}
|
|
39644
39646
|
|
|
39645
39647
|
this.updateWidth(aWidth);
|
|
@@ -39684,7 +39686,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
39684
39686
|
}
|
|
39685
39687
|
|
|
39686
39688
|
for (var _i = c; _i <= c + this._colSpan - 1; _i++) {
|
|
39687
|
-
|
|
39689
|
+
if (this._table.colInfos[_i]) {
|
|
39690
|
+
aWidth += this._table.colInfos[_i].colWidth;
|
|
39691
|
+
}
|
|
39688
39692
|
}
|
|
39689
39693
|
|
|
39690
39694
|
return [aleft, aWidth, false];
|
|
@@ -39834,7 +39838,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
39834
39838
|
var aWidth = 0;
|
|
39835
39839
|
|
|
39836
39840
|
for (var i = c; i <= c + this._colSpan - 1; i++) {
|
|
39837
|
-
|
|
39841
|
+
if (this._table.colInfos[i]) {
|
|
39842
|
+
aWidth += this._table.colInfos[i].colWidth;
|
|
39843
|
+
}
|
|
39838
39844
|
}
|
|
39839
39845
|
|
|
39840
39846
|
aWidth += this._colSpan;
|
|
@@ -50376,7 +50382,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50376
50382
|
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));
|
|
50377
50383
|
}
|
|
50378
50384
|
|
|
50379
|
-
if (this._rows[mrow][mcol]) {
|
|
50385
|
+
if (this._rows && this._rows[mrow] && this._rows[mrow][mcol]) {
|
|
50380
50386
|
var aCell = this._rows[mrow][mcol];
|
|
50381
50387
|
return [aCell, mrow, mcol];
|
|
50382
50388
|
} else {
|
|
@@ -52870,7 +52876,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52870
52876
|
/*
|
|
52871
52877
|
* @Author: your name
|
|
52872
52878
|
* @Date: 2020-11-03 15:17:54
|
|
52873
|
-
* @LastEditTime: 2022-
|
|
52879
|
+
* @LastEditTime: 2022-09-23 15:55:34
|
|
52874
52880
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52875
52881
|
* @Description: In User Settings Edit
|
|
52876
52882
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -53938,7 +53944,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53938
53944
|
|
|
53939
53945
|
if (textStyle.deleterIndex === -1 || textStyle.deleterIndex === undefined) {
|
|
53940
53946
|
//text += hoEditorFactory.unitConvert.replaceAll(childNode.text, '\n', ' ');
|
|
53941
|
-
|
|
53947
|
+
if (textStyle.script === 1) {
|
|
53948
|
+
text += "<下标>" + childNode.text + "</下标>";
|
|
53949
|
+
} else if (textStyle.script === 2) {
|
|
53950
|
+
text += "<上标>" + childNode.text + "</上标>";
|
|
53951
|
+
} else {
|
|
53952
|
+
text += childNode.text;
|
|
53953
|
+
}
|
|
53942
53954
|
}
|
|
53943
53955
|
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_37__/* .ControlNode */ .w) {
|
|
53944
53956
|
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_38__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
@@ -214484,7 +214496,7 @@ var map = {
|
|
|
214484
214496
|
"./qrCode/QrCode.vue": 35764,
|
|
214485
214497
|
"./radioCheckBox/RadioCheckbox.vue": 684,
|
|
214486
214498
|
"./selectDialog/SelectDialog.vue": 8623,
|
|
214487
|
-
"./sign/Sign.vue":
|
|
214499
|
+
"./sign/Sign.vue": 44700,
|
|
214488
214500
|
"./table/TableCellPoper.vue": 92212,
|
|
214489
214501
|
"./table/TableCellProperty.vue": 39499,
|
|
214490
214502
|
"./table/TableColProperty.vue": 82077,
|
|
@@ -216248,7 +216260,7 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().use((table_default()));
|
|
|
216248
216260
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((table_column_default()));
|
|
216249
216261
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((tooltip_default()));
|
|
216250
216262
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((infinite_scroll_default()));
|
|
216251
|
-
;// 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=
|
|
216263
|
+
;// 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&
|
|
216252
216264
|
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()}
|
|
216253
216265
|
var staticRenderFns = []
|
|
216254
216266
|
|
|
@@ -219916,7 +219928,7 @@ var SignNode = __webpack_require__(47596);
|
|
|
219916
219928
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
219917
219929
|
var ParagraphNode = __webpack_require__(85093);
|
|
219918
219930
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
219919
|
-
/* harmony default export */ var version = ('2.0.
|
|
219931
|
+
/* harmony default export */ var version = ('2.0.106');
|
|
219920
219932
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
219921
219933
|
var PoperTipText = __webpack_require__(72952);
|
|
219922
219934
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -222481,7 +222493,6 @@ var Paragraph = __webpack_require__(19824);
|
|
|
222481
222493
|
|
|
222482
222494
|
|
|
222483
222495
|
|
|
222484
|
-
|
|
222485
222496
|
|
|
222486
222497
|
|
|
222487
222498
|
var HTMLconverter2 = /*#__PURE__*/function () {
|
|
@@ -222886,18 +222897,18 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
222886
222897
|
}
|
|
222887
222898
|
}, {
|
|
222888
222899
|
key: "SetTableProperty",
|
|
222889
|
-
value: function SetTableProperty(jnode, tableNode) {
|
|
222900
|
+
value: function SetTableProperty(jnode, rows, tableNode) {
|
|
222890
222901
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
222891
222902
|
var tconstents = jquery_default()(jnode).children();
|
|
222892
222903
|
var rowInfos = new Array();
|
|
222893
|
-
var colInfos = new Array();
|
|
222894
|
-
|
|
222895
|
-
var maxcol = 0;
|
|
222904
|
+
var colInfos = new Array(); //let maxtr;
|
|
222905
|
+
//let maxcol = 0;
|
|
222896
222906
|
|
|
222897
222907
|
for (var i = 0; i < tconstents.length; i++) {
|
|
222898
222908
|
var trs = jquery_default()(tconstents[i]).children();
|
|
222899
222909
|
|
|
222900
222910
|
for (var j = 0; j < trs.length; j++) {
|
|
222911
|
+
//for (let j = 0; j < rows.length; j++) {
|
|
222901
222912
|
var rowProperty = new TableProperty/* RowProperty */.Nr("");
|
|
222902
222913
|
rowProperty.isSpecifyHeight = true;
|
|
222903
222914
|
var rowInfo = new TableNode/* RowInfos */.ii(tableNode, rowProperty);
|
|
@@ -222920,44 +222931,69 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
222920
222931
|
rowInfo.rowProperty.rowHeight = hoEditorFactory.unitConvert.pxConversionMm(heightNum, false) * 0.1;
|
|
222921
222932
|
}
|
|
222922
222933
|
|
|
222923
|
-
rowInfos.push(rowInfo);
|
|
222924
|
-
|
|
222925
|
-
|
|
222926
|
-
|
|
222927
|
-
|
|
222928
|
-
maxcol = _tds.length;
|
|
222929
|
-
maxtr = trs[j];
|
|
222930
|
-
}
|
|
222934
|
+
rowInfos.push(rowInfo); // const tds = $(trs[j]).children();
|
|
222935
|
+
// if (tds.length > maxcol) {
|
|
222936
|
+
// maxcol = tds.length;
|
|
222937
|
+
// maxtr = trs[j];
|
|
222938
|
+
// }
|
|
222931
222939
|
}
|
|
222940
|
+
}
|
|
222932
222941
|
|
|
222933
|
-
|
|
222934
|
-
var
|
|
222942
|
+
for (var _i2 = 0; _i2 < rows[0].length; _i2++) {
|
|
222943
|
+
var td = rows[0][_i2];
|
|
222944
|
+
var widthNum = 0;
|
|
222935
222945
|
|
|
222936
|
-
|
|
222937
|
-
var width = jquery_default()(
|
|
222938
|
-
var widthNum = 0;
|
|
222946
|
+
if (td) {
|
|
222947
|
+
var width = jquery_default()(td).css("width");
|
|
222939
222948
|
|
|
222940
|
-
if (width
|
|
222941
|
-
|
|
222949
|
+
if (width) {
|
|
222950
|
+
if (width.indexOf("pt") > 0) {
|
|
222951
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("pt"))); //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
222942
222952
|
|
|
222943
|
-
|
|
222953
|
+
widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
222954
|
+
}
|
|
222955
|
+
|
|
222956
|
+
if (width.indexOf("px") > 0) {
|
|
222957
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
222958
|
+
}
|
|
222944
222959
|
}
|
|
222960
|
+
}
|
|
222945
222961
|
|
|
222946
|
-
|
|
222947
|
-
|
|
222948
|
-
|
|
222949
|
-
// widthNum = 20;
|
|
222950
|
-
// }
|
|
222962
|
+
if (widthNum == 0) {
|
|
222963
|
+
widthNum = 30;
|
|
222964
|
+
}
|
|
222951
222965
|
|
|
222966
|
+
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
222967
|
+
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
222968
|
+
colInfos.push(colInfo);
|
|
222969
|
+
} //console.log(maxtr)
|
|
222970
|
+
//if (!maxtr)
|
|
222971
|
+
//throw new Error('表格中没有发现列');
|
|
222972
|
+
// const tds = $(maxtr).children();
|
|
222973
|
+
// for (let i = 0; i < tds.length; i++) {
|
|
222974
|
+
// const width = $(tds[i]).css("width");
|
|
222975
|
+
// let widthNum = 0;
|
|
222976
|
+
// if (width) {
|
|
222977
|
+
// if (width.indexOf("pt") > 0) {
|
|
222978
|
+
// widthNum = parseFloat(width.substring(0, width.indexOf("pt")));
|
|
222979
|
+
// //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
222980
|
+
// widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
222981
|
+
// }
|
|
222982
|
+
// if (width.indexOf("px") > 0) {
|
|
222983
|
+
// widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
222984
|
+
// }
|
|
222985
|
+
// }
|
|
222986
|
+
// // if (widthNum == 0) {
|
|
222987
|
+
// // widthNum = 20;
|
|
222988
|
+
// // }
|
|
222989
|
+
// const colProperty = new ColProperty("");
|
|
222990
|
+
// const colInfo = new ColInfos(tableNode, widthNum, colProperty);
|
|
222991
|
+
// colInfos.push(colInfo);
|
|
222992
|
+
//}
|
|
222952
222993
|
|
|
222953
|
-
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
222954
|
-
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
222955
|
-
colInfos.push(colInfo);
|
|
222956
|
-
}
|
|
222957
222994
|
|
|
222958
|
-
|
|
222959
|
-
|
|
222960
|
-
}
|
|
222995
|
+
tableNode.rowInfos = rowInfos;
|
|
222996
|
+
tableNode.colInfos = colInfos; //}
|
|
222961
222997
|
}
|
|
222962
222998
|
/**
|
|
222963
222999
|
* 表格html结构
|
|
@@ -222993,73 +223029,91 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
222993
223029
|
var tr = jquery_default()(tconstents[i]).children();
|
|
222994
223030
|
irow += tr.length;
|
|
222995
223031
|
|
|
223032
|
+
if (tr.length > 0) {
|
|
223033
|
+
var td = jquery_default()(tr[0]).children();
|
|
223034
|
+
|
|
223035
|
+
for (var z = 0; z < td.length; z++) {
|
|
223036
|
+
icol += parseInt(jquery_default()(td[z]).attr('colSpan') || '1');
|
|
223037
|
+
}
|
|
223038
|
+
}
|
|
223039
|
+
|
|
222996
223040
|
for (var j = 0; j < tr.length; j++) {
|
|
222997
223041
|
var cells = new Array();
|
|
222998
|
-
|
|
222999
|
-
icol = Math.max(td.length, icol);
|
|
223000
|
-
|
|
223042
|
+
|
|
223043
|
+
var _td = jquery_default()(tr[j]).children(); //icol = Math.max(td.length, icol);
|
|
223044
|
+
|
|
223045
|
+
|
|
223046
|
+
cells.push.apply(cells, (0,toConsumableArray/* default */.Z)(_td));
|
|
223001
223047
|
rows.push(cells);
|
|
223002
223048
|
}
|
|
223003
223049
|
} //2.创建表格节点
|
|
223004
223050
|
|
|
223005
223051
|
|
|
223006
223052
|
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.设置表格属性
|
|
223007
|
-
|
|
223008
|
-
|
|
223053
|
+
//this.SetTableProperty(jnode, lntable)
|
|
223054
|
+
//4:生成表格内容
|
|
223009
223055
|
|
|
223010
223056
|
if (rows.length == 0) {
|
|
223011
223057
|
return [];
|
|
223012
223058
|
} else {
|
|
223013
|
-
for (var
|
|
223014
|
-
for (var
|
|
223015
|
-
var item = rows[
|
|
223059
|
+
for (var m = 0; m < irow; m++) {
|
|
223060
|
+
for (var n = 0; n < icol; n++) {
|
|
223061
|
+
var item = rows[m][n];
|
|
223016
223062
|
|
|
223017
223063
|
if (item) {
|
|
223018
223064
|
var rspan = parseInt(jquery_default()(item).attr('rowSpan') || '1');
|
|
223019
223065
|
var cspan = parseInt(jquery_default()(item).attr('colSpan') || '1');
|
|
223020
223066
|
|
|
223021
223067
|
if (cspan > 1) {
|
|
223022
|
-
var _rows$
|
|
223068
|
+
var _rows$m;
|
|
223023
223069
|
|
|
223024
223070
|
var tmp = new Array(cspan - 1);
|
|
223025
223071
|
|
|
223026
|
-
(_rows$
|
|
223072
|
+
(_rows$m = rows[m]).splice.apply(_rows$m, [n + 1, 0].concat(tmp));
|
|
223027
223073
|
|
|
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 _tmp = 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(_tmp));
|
|
223035
223081
|
}
|
|
223036
223082
|
}
|
|
223037
223083
|
} else {
|
|
223038
223084
|
if (rspan > 1) {
|
|
223039
|
-
for (var _t =
|
|
223085
|
+
for (var _t = m + 1; _t < m + rspan; _t++) {
|
|
223040
223086
|
var _rows$_t;
|
|
223041
223087
|
|
|
223042
223088
|
var _tmp2 = new Array(cspan);
|
|
223043
223089
|
|
|
223044
|
-
(_rows$_t = rows[_t]).splice.apply(_rows$_t, [
|
|
223090
|
+
(_rows$_t = rows[_t]).splice.apply(_rows$_t, [n, 0].concat(_tmp2));
|
|
223045
223091
|
}
|
|
223046
223092
|
}
|
|
223047
223093
|
}
|
|
223048
223094
|
}
|
|
223049
223095
|
}
|
|
223050
|
-
}
|
|
223096
|
+
} //3.设置表格属性
|
|
223097
|
+
|
|
223098
|
+
|
|
223099
|
+
this.SetTableProperty(jnode, rows, lntable);
|
|
223051
223100
|
|
|
223052
223101
|
var getitem = function getitem(r, c) {
|
|
223053
223102
|
if (r < rows.length && c < rows[r].length) return rows[r][c];else return undefined;
|
|
223054
223103
|
};
|
|
223055
223104
|
|
|
223056
|
-
|
|
223057
|
-
|
|
223058
|
-
|
|
223105
|
+
lntable.childNodes.splice(0, lntable.childNodes.length);
|
|
223106
|
+
|
|
223107
|
+
for (var s = 0; s < irow; s++) {
|
|
223108
|
+
for (var k = 0; k < icol; k++) {
|
|
223109
|
+
var cell = getitem(s, k);
|
|
223059
223110
|
|
|
223060
223111
|
if (cell) {
|
|
223061
|
-
this.copyCellNode(cell, lntable,
|
|
223062
|
-
|
|
223112
|
+
this.copyCellNode(cell, lntable, s, k);
|
|
223113
|
+
lntable.childNodes.push(lntable.rows[s][k]);
|
|
223114
|
+
} else {
|
|
223115
|
+
lntable.rows[s][k] = undefined;
|
|
223116
|
+
}
|
|
223063
223117
|
}
|
|
223064
223118
|
} //lntable.node2DrawNode();
|
|
223065
223119
|
|
|
@@ -223118,6 +223172,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
223118
223172
|
}, {
|
|
223119
223173
|
key: "TransHTMLText",
|
|
223120
223174
|
value: function TransHTMLText(jnode, style) {
|
|
223175
|
+
var _this2 = this;
|
|
223176
|
+
|
|
223121
223177
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
223122
223178
|
var tag = jnode.nodeName.toLowerCase();
|
|
223123
223179
|
|
|
@@ -223143,17 +223199,67 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
223143
223199
|
}
|
|
223144
223200
|
|
|
223145
223201
|
if (jnode.childNodes.length == 0) {
|
|
223202
|
+
var text = jquery_default()(jnode).text();
|
|
223203
|
+
var result = new Array();
|
|
223204
|
+
|
|
223205
|
+
var getText = function getText(text) {
|
|
223206
|
+
var index1 = text.indexOf("<上标>");
|
|
223207
|
+
var index2 = text.indexOf("</上标>");
|
|
223208
|
+
result.push({
|
|
223209
|
+
"mark": 0,
|
|
223210
|
+
"text": text.substring(0, index1)
|
|
223211
|
+
});
|
|
223212
|
+
result.push({
|
|
223213
|
+
"mark": 1,
|
|
223214
|
+
"text": text.substring(index1 + 4, index2)
|
|
223215
|
+
});
|
|
223216
|
+
text = text.substring(index2 + 5, text.length);
|
|
223217
|
+
|
|
223218
|
+
if (text.indexOf("<上标>") >= 0) {
|
|
223219
|
+
getText(text);
|
|
223220
|
+
} else {
|
|
223221
|
+
result.push({
|
|
223222
|
+
"mark": 0,
|
|
223223
|
+
"text": text.substring(index2 + 4, text.length)
|
|
223224
|
+
});
|
|
223225
|
+
}
|
|
223226
|
+
};
|
|
223227
|
+
|
|
223228
|
+
if (text.indexOf("<上标>") >= 0) {
|
|
223229
|
+
getText(text);
|
|
223230
|
+
}
|
|
223231
|
+
|
|
223232
|
+
if (result.length > 0) {
|
|
223233
|
+
var tmp = new Array();
|
|
223234
|
+
result.forEach(function (value, key) {
|
|
223235
|
+
if (value.mark === 1) {
|
|
223236
|
+
styleobj["vertical_align"] = "super";
|
|
223237
|
+
} else {
|
|
223238
|
+
styleobj["vertical_align"] = "";
|
|
223239
|
+
}
|
|
223240
|
+
|
|
223241
|
+
if (value.text != "") {
|
|
223242
|
+
var _node2 = _this2.generateTextNode(value.text, styleobj);
|
|
223243
|
+
|
|
223244
|
+
if (_node2) {
|
|
223245
|
+
tmp.push(_node2);
|
|
223246
|
+
}
|
|
223247
|
+
}
|
|
223248
|
+
});
|
|
223249
|
+
return tmp;
|
|
223250
|
+
}
|
|
223251
|
+
|
|
223146
223252
|
var node = this.generateTextNode(jquery_default()(jnode).text(), styleobj);
|
|
223147
223253
|
if (node) return [node];else return [];
|
|
223148
223254
|
} else {
|
|
223149
|
-
var
|
|
223255
|
+
var _tmp3 = new Array();
|
|
223150
223256
|
|
|
223151
223257
|
for (var i = 0; i < jnode.childNodes.length; i++) {
|
|
223152
223258
|
var fun = this.convert.get(jnode.childNodes[i].nodeName.toLowerCase());
|
|
223153
|
-
if (fun)
|
|
223259
|
+
if (fun) _tmp3.push.apply(_tmp3, (0,toConsumableArray/* default */.Z)(fun(jnode.childNodes[i], JSON.stringify(styleobj))));
|
|
223154
223260
|
}
|
|
223155
223261
|
|
|
223156
|
-
return
|
|
223262
|
+
return _tmp3;
|
|
223157
223263
|
}
|
|
223158
223264
|
}
|
|
223159
223265
|
}, {
|
|
@@ -223218,7 +223324,10 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
223218
223324
|
if (fun) tmp.push.apply(tmp, (0,toConsumableArray/* default */.Z)(fun(jnode.childNodes[i], '')));
|
|
223219
223325
|
}
|
|
223220
223326
|
|
|
223221
|
-
|
|
223327
|
+
if (tmp.length > 0 && tmp[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
223328
|
+
node.childNodes.splice(0, node.childNodes.length);
|
|
223329
|
+
}
|
|
223330
|
+
|
|
223222
223331
|
tmp.forEach(function (value) {
|
|
223223
223332
|
value.parentNode = node; //FIXME:这里没有考虑表格嵌套时候
|
|
223224
223333
|
|
|
@@ -233719,16 +233828,101 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233719
233828
|
});
|
|
233720
233829
|
}
|
|
233721
233830
|
}
|
|
233831
|
+
}, {
|
|
233832
|
+
key: "getIsSetFont",
|
|
233833
|
+
value: function getIsSetFont() {
|
|
233834
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233835
|
+
return hoEditorFactory.printController.isSetFont;
|
|
233836
|
+
}
|
|
233837
|
+
}, {
|
|
233838
|
+
key: "setjsPDFFonts",
|
|
233839
|
+
value: function setjsPDFFonts(font) {
|
|
233840
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233841
|
+
hoEditorFactory.printController.setjsPDFFonts(font);
|
|
233842
|
+
}
|
|
233722
233843
|
}, {
|
|
233723
233844
|
key: "html2Xml",
|
|
233724
|
-
value: function html2Xml(
|
|
233845
|
+
value: function html2Xml(json) {
|
|
233846
|
+
var _this5 = this;
|
|
233847
|
+
|
|
233725
233848
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233726
|
-
var headerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, header);
|
|
233727
|
-
var footerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, footer);
|
|
233728
|
-
var mainNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, main);
|
|
233849
|
+
var headerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.header);
|
|
233850
|
+
var footerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.footer);
|
|
233851
|
+
var mainNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.main);
|
|
233852
|
+
|
|
233853
|
+
var insertParaNode = function insertParaNode(area, index) {
|
|
233854
|
+
var node = new ParagraphNode/* ParagraphNode */.C(_this5._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
233855
|
+
|
|
233856
|
+
if (area == "header") {
|
|
233857
|
+
node.rootPath = "header/0";
|
|
233858
|
+
headerNodes.splice(index, 0, node);
|
|
233859
|
+
}
|
|
233729
233860
|
|
|
233730
|
-
|
|
233731
|
-
|
|
233861
|
+
if (area == "footer") {
|
|
233862
|
+
node.rootPath = "footer/0";
|
|
233863
|
+
footerNodes.splice(index, 0, node);
|
|
233864
|
+
}
|
|
233865
|
+
|
|
233866
|
+
if (area == "main") {
|
|
233867
|
+
node.rootPath = "main";
|
|
233868
|
+
mainNodes.splice(index, 0, node);
|
|
233869
|
+
}
|
|
233870
|
+
};
|
|
233871
|
+
|
|
233872
|
+
if (!(headerNodes[0] instanceof ParagraphNode/* ParagraphNode */.C) || headerNodes.length == 0) {
|
|
233873
|
+
insertParaNode("header", 0);
|
|
233874
|
+
}
|
|
233875
|
+
|
|
233876
|
+
if (!(footerNodes[0] instanceof ParagraphNode/* ParagraphNode */.C) || footerNodes.length == 0) {
|
|
233877
|
+
insertParaNode("footer", 0);
|
|
233878
|
+
}
|
|
233879
|
+
|
|
233880
|
+
if (!(mainNodes[0] instanceof ParagraphNode/* ParagraphNode */.C) || mainNodes.length == 0) {
|
|
233881
|
+
insertParaNode("main", 0);
|
|
233882
|
+
}
|
|
233883
|
+
|
|
233884
|
+
for (var i = headerNodes.length - 1; i >= 0; i--) {
|
|
233885
|
+
var hnode = headerNodes[i];
|
|
233886
|
+
hnode.rootPath = "header/0";
|
|
233887
|
+
|
|
233888
|
+
if (hnode instanceof TableNode/* TableNode */.Fh) {
|
|
233889
|
+
if (!(headerNodes[i + 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233890
|
+
insertParaNode("header", i + 1);
|
|
233891
|
+
}
|
|
233892
|
+
|
|
233893
|
+
if (!(headerNodes[i - 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233894
|
+
insertParaNode("header", i - 1);
|
|
233895
|
+
}
|
|
233896
|
+
}
|
|
233897
|
+
}
|
|
233898
|
+
|
|
233899
|
+
for (var j = footerNodes.length - 1; j >= 0; j--) {
|
|
233900
|
+
var fnode = footerNodes[j];
|
|
233901
|
+
fnode.rootPath = "footer/0";
|
|
233902
|
+
|
|
233903
|
+
if (fnode instanceof TableNode/* TableNode */.Fh) {
|
|
233904
|
+
if (!(footerNodes[j + 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233905
|
+
insertParaNode("footer", j + 1);
|
|
233906
|
+
}
|
|
233907
|
+
|
|
233908
|
+
if (!(footerNodes[j - 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233909
|
+
insertParaNode("footer", j - 1);
|
|
233910
|
+
}
|
|
233911
|
+
}
|
|
233912
|
+
}
|
|
233913
|
+
|
|
233914
|
+
for (var k = mainNodes.length - 1; k >= 0; k--) {
|
|
233915
|
+
var mnode = mainNodes[k];
|
|
233916
|
+
|
|
233917
|
+
if (mnode instanceof TableNode/* TableNode */.Fh) {
|
|
233918
|
+
if (!(mainNodes[k + 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233919
|
+
insertParaNode("main", k + 1);
|
|
233920
|
+
}
|
|
233921
|
+
|
|
233922
|
+
if (!(mainNodes[k - 1] instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
233923
|
+
insertParaNode("main", k - 1);
|
|
233924
|
+
}
|
|
233925
|
+
}
|
|
233732
233926
|
}
|
|
233733
233927
|
|
|
233734
233928
|
var node2Json = function node2Json(node, defaultCellPropJson) {
|
|
@@ -233747,13 +233941,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233747
233941
|
}
|
|
233748
233942
|
|
|
233749
233943
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
233750
|
-
var
|
|
233944
|
+
var _json = {
|
|
233751
233945
|
nodeType: BaseNode/* NodeType.2 */.Jq[2],
|
|
233752
233946
|
text: node.text,
|
|
233753
233947
|
styleIndex: node.styleIndex
|
|
233754
233948
|
};
|
|
233755
233949
|
return {
|
|
233756
|
-
"TextNode":
|
|
233950
|
+
"TextNode": _json
|
|
233757
233951
|
};
|
|
233758
233952
|
}
|
|
233759
233953
|
|
|
@@ -233793,8 +233987,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233793
233987
|
var rows = node.rowInfos.length - 1;
|
|
233794
233988
|
var cols = node.colInfos.length - 1;
|
|
233795
233989
|
|
|
233796
|
-
for (var
|
|
233797
|
-
var rowInfo = node.rowInfos[
|
|
233990
|
+
for (var _i5 = 0; _i5 <= rows; _i5++) {
|
|
233991
|
+
var rowInfo = node.rowInfos[_i5];
|
|
233798
233992
|
var _customProperties = {
|
|
233799
233993
|
customProperty: Array(rowInfo.rowProperty.customProperties)
|
|
233800
233994
|
};
|
|
@@ -233814,18 +234008,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233814
234008
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
233815
234009
|
var keysName = Object.keys(defaultRowProp);
|
|
233816
234010
|
|
|
233817
|
-
for (var
|
|
233818
|
-
if (keysName[
|
|
234011
|
+
for (var _k = 0; _k < keysName.length; _k++) {
|
|
234012
|
+
if (keysName[_k] === "customProperties") {
|
|
233819
234013
|
if (rowInfo.rowProperty.customProperties.length === 0) {
|
|
233820
234014
|
delete rowPropertyJson["customProperties"];
|
|
233821
234015
|
}
|
|
233822
|
-
} else if (keysName[
|
|
234016
|
+
} else if (keysName[_k] === "dataSource") {
|
|
233823
234017
|
if (rowInfo.rowProperty.dataSource === undefined) {
|
|
233824
234018
|
delete rowPropertyJson["dataSource"];
|
|
233825
234019
|
}
|
|
233826
234020
|
} else {
|
|
233827
|
-
if (rowPropertyJson[keysName[
|
|
233828
|
-
delete rowPropertyJson[keysName[
|
|
234021
|
+
if (rowPropertyJson[keysName[_k]] === defaultRowPropJson[keysName[_k]]) {
|
|
234022
|
+
delete rowPropertyJson[keysName[_k]];
|
|
233829
234023
|
}
|
|
233830
234024
|
}
|
|
233831
234025
|
}
|
|
@@ -233852,8 +234046,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233852
234046
|
|
|
233853
234047
|
var colInfosArray = new Array();
|
|
233854
234048
|
|
|
233855
|
-
for (var
|
|
233856
|
-
var colInfo = node.colInfos[
|
|
234049
|
+
for (var _i6 = 0; _i6 <= cols; _i6++) {
|
|
234050
|
+
var colInfo = node.colInfos[_i6];
|
|
233857
234051
|
var _customProperties2 = {
|
|
233858
234052
|
customProperty: Array(colInfo.colProperty.customProperties)
|
|
233859
234053
|
};
|
|
@@ -233871,9 +234065,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233871
234065
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
233872
234066
|
var colKeysName = Object.keys(defaultColProp);
|
|
233873
234067
|
|
|
233874
|
-
for (var
|
|
233875
|
-
if (colPropertyJson[colKeysName[
|
|
233876
|
-
delete colPropertyJson[colKeysName[
|
|
234068
|
+
for (var _k2 = 0; _k2 < colKeysName.length; _k2++) {
|
|
234069
|
+
if (colPropertyJson[colKeysName[_k2]] === defaultColPropJson[colKeysName[_k2]]) {
|
|
234070
|
+
delete colPropertyJson[colKeysName[_k2]];
|
|
233877
234071
|
}
|
|
233878
234072
|
}
|
|
233879
234073
|
|
|
@@ -233911,11 +234105,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233911
234105
|
var rowArrays = new Array();
|
|
233912
234106
|
var undefines = new Array();
|
|
233913
234107
|
|
|
233914
|
-
for (var
|
|
233915
|
-
var row = node.rows[
|
|
234108
|
+
for (var m = 0; m <= rows; m++) {
|
|
234109
|
+
var row = node.rows[m];
|
|
233916
234110
|
var rowArray = {
|
|
233917
234111
|
nodeType: "ntRow",
|
|
233918
|
-
rowNo:
|
|
234112
|
+
rowNo: m,
|
|
233919
234113
|
childNodes: {
|
|
233920
234114
|
CellNode: Array()
|
|
233921
234115
|
}
|
|
@@ -233927,17 +234121,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233927
234121
|
rowArrays.push(rowArray);
|
|
233928
234122
|
undefines.push(undefineArr);
|
|
233929
234123
|
|
|
233930
|
-
for (var
|
|
233931
|
-
var col = row[
|
|
234124
|
+
for (var n = 0; n <= cols; n++) {
|
|
234125
|
+
var col = row[n];
|
|
233932
234126
|
|
|
233933
234127
|
if (col) {
|
|
233934
|
-
var
|
|
234128
|
+
var _json2 = node2Json(col, _defaultCellPropJson);
|
|
233935
234129
|
|
|
233936
|
-
undefineArr.base = JSON.parse(JSON.stringify(
|
|
233937
|
-
|
|
233938
|
-
|
|
233939
|
-
rowArray.childNodes.CellNode.push(
|
|
233940
|
-
rowArray.rowNo =
|
|
234130
|
+
undefineArr.base = JSON.parse(JSON.stringify(_json2));
|
|
234131
|
+
_json2.rowNo = m;
|
|
234132
|
+
_json2.colNo = n;
|
|
234133
|
+
rowArray.childNodes.CellNode.push(_json2);
|
|
234134
|
+
rowArray.rowNo = m;
|
|
233941
234135
|
} else {
|
|
233942
234136
|
rowArray.childNodes.CellNode.push({});
|
|
233943
234137
|
}
|
|
@@ -233945,16 +234139,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233945
234139
|
} //更新合并单元格的合并值
|
|
233946
234140
|
|
|
233947
234141
|
|
|
233948
|
-
for (var
|
|
233949
|
-
var
|
|
234142
|
+
for (var x = 0; x < rowArrays.length; x++) {
|
|
234143
|
+
var arow = rowArrays[x].childNodes.CellNode;
|
|
233950
234144
|
|
|
233951
|
-
for (var
|
|
233952
|
-
if (
|
|
233953
|
-
|
|
234145
|
+
for (var y = 0; y < arow.length; y++) {
|
|
234146
|
+
if (arow[y].rowSpan > 1) {
|
|
234147
|
+
arow[y].rowSpan = Math.min(arow[y].rowSpan, arow.length - arow[y].rowNo);
|
|
233954
234148
|
}
|
|
233955
234149
|
|
|
233956
|
-
if (
|
|
233957
|
-
|
|
234150
|
+
if (arow[y].colSpan > 1) {
|
|
234151
|
+
arow[y].colSpan = Math.min(arow[y].colSpan, arow.length - arow[y].colNo);
|
|
233958
234152
|
}
|
|
233959
234153
|
}
|
|
233960
234154
|
}
|
|
@@ -234109,10 +234303,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234109
234303
|
var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
|
|
234110
234304
|
|
|
234111
234305
|
var doc2XmlJson = function doc2XmlJson(nodes) {
|
|
234112
|
-
for (var
|
|
234113
|
-
var node = nodes[
|
|
234306
|
+
for (var _i8 = 0; _i8 < nodes.length; _i8++) {
|
|
234307
|
+
var node = nodes[_i8];
|
|
234114
234308
|
|
|
234115
|
-
if (node instanceof
|
|
234309
|
+
if (node instanceof TextNode/* TextNode */.R || node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TableNode/* TableNode */.Fh || node instanceof ImageNode/* ImageNode */.H) {
|
|
234116
234310
|
var nodeJson = node2Json(node);
|
|
234117
234311
|
xmlRoot += x2js.js2xml(nodeJson);
|
|
234118
234312
|
}
|
|
@@ -234156,18 +234350,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234156
234350
|
doc2XmlJson(mainNodes);
|
|
234157
234351
|
xmlRoot += "</main>";
|
|
234158
234352
|
xmlRoot += "<footers>";
|
|
234353
|
+
xmlRoot += "<footer>";
|
|
234159
234354
|
xmlRoot += x2js.js2xml({
|
|
234160
234355
|
index: 0
|
|
234161
234356
|
});
|
|
234162
234357
|
doc2XmlJson(footerNodes);
|
|
234358
|
+
xmlRoot += "</footer>";
|
|
234163
234359
|
xmlRoot += "</footers>";
|
|
234164
234360
|
xmlRoot += "</root>";
|
|
234165
234361
|
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, "<TempNode>", "");
|
|
234166
234362
|
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, "</TempNode>", "");
|
|
234167
|
-
|
|
234168
|
-
|
|
234363
|
+
return xmlRoot;
|
|
234169
234364
|
var xml = XmlBeauty_xmlBeauty(xmlRoot);
|
|
234170
|
-
return
|
|
234365
|
+
return xml; //xmlBeauty(xmlRoot);
|
|
234171
234366
|
}
|
|
234172
234367
|
}]);
|
|
234173
234368
|
|
|
@@ -240345,6 +240540,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
240345
240540
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
240346
240541
|
hoEditorFactory.hoLocalStorage.initHoWebSql();
|
|
240347
240542
|
window.vueController = hoEditorFactory.vueController;
|
|
240543
|
+
window.printController = hoEditorFactory.printController;
|
|
240348
240544
|
this.$emit('docReady', {
|
|
240349
240545
|
vueController: hoEditorFactory.vueController,
|
|
240350
240546
|
baseController: hoEditorFactory.baseController,
|
|
@@ -240492,10 +240688,10 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
240492
240688
|
});
|
|
240493
240689
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240494
240690
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
240495
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240691
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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&
|
|
240496
240692
|
// extracted by mini-css-extract-plugin
|
|
240497
240693
|
|
|
240498
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240694
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=7309028f&prod&lang=scss&media=print&
|
|
240499
240695
|
|
|
240500
240696
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240501
240697
|
|
|
@@ -240518,9 +240714,9 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240518
240714
|
)
|
|
240519
240715
|
|
|
240520
240716
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
240521
|
-
;// 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=
|
|
240522
|
-
var
|
|
240523
|
-
var
|
|
240717
|
+
;// 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&
|
|
240718
|
+
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)}
|
|
240719
|
+
var ToolBarvue_type_template_id_95dff248_staticRenderFns = []
|
|
240524
240720
|
|
|
240525
240721
|
|
|
240526
240722
|
;// 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&
|
|
@@ -240769,9 +240965,9 @@ var HoMedicalExpression_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240769
240965
|
)
|
|
240770
240966
|
|
|
240771
240967
|
/* harmony default export */ var HoMedicalExpression = (HoMedicalExpression_component.exports);
|
|
240772
|
-
;// 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=
|
|
240773
|
-
var
|
|
240774
|
-
var
|
|
240968
|
+
;// 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&
|
|
240969
|
+
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)])}
|
|
240970
|
+
var HoPrintDialogvue_type_template_id_1ed44917_staticRenderFns = []
|
|
240775
240971
|
|
|
240776
240972
|
|
|
240777
240973
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
@@ -240835,12 +241031,29 @@ var HoPrintDialogvue_type_template_id_7abbbfd8_staticRenderFns = []
|
|
|
240835
241031
|
},
|
|
240836
241032
|
methods: {
|
|
240837
241033
|
hoPrinted: function hoPrinted() {
|
|
240838
|
-
var
|
|
241034
|
+
var _this = this;
|
|
240839
241035
|
|
|
240840
|
-
|
|
240841
|
-
|
|
241036
|
+
var callback = function callback(result) {
|
|
241037
|
+
if (result) {
|
|
241038
|
+
_this.errorText = result;
|
|
241039
|
+
} else {
|
|
241040
|
+
_this.$emit('closed', 'sure');
|
|
241041
|
+
}
|
|
241042
|
+
};
|
|
241043
|
+
|
|
241044
|
+
if (!this.vueController.getIsSetFont()) {
|
|
241045
|
+
this.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
241046
|
+
if (font) {
|
|
241047
|
+
_this.vueController.setjsPDFFonts(font);
|
|
241048
|
+
|
|
241049
|
+
var result = _this.vueController.printPromisePDF(_this.printMode, _this.printAppoint);
|
|
241050
|
+
|
|
241051
|
+
callback(result);
|
|
241052
|
+
}
|
|
241053
|
+
});
|
|
240842
241054
|
} else {
|
|
240843
|
-
this
|
|
241055
|
+
var result = this.vueController.printPromisePDF(this.printMode, this.printAppoint);
|
|
241056
|
+
callback(result);
|
|
240844
241057
|
}
|
|
240845
241058
|
},
|
|
240846
241059
|
closedHoPrintModal: function closedHoPrintModal() {
|
|
@@ -240850,10 +241063,10 @@ var HoPrintDialogvue_type_template_id_7abbbfd8_staticRenderFns = []
|
|
|
240850
241063
|
});
|
|
240851
241064
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=script&lang=js&
|
|
240852
241065
|
/* harmony default export */ var insert_HoPrintDialogvue_type_script_lang_js_ = (HoPrintDialogvue_type_script_lang_js_);
|
|
240853
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
241066
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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&
|
|
240854
241067
|
// extracted by mini-css-extract-plugin
|
|
240855
241068
|
|
|
240856
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=style&index=0&id=
|
|
241069
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=style&index=0&id=1ed44917&prod&lang=scss&
|
|
240857
241070
|
|
|
240858
241071
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoPrintDialog.vue
|
|
240859
241072
|
|
|
@@ -240866,8 +241079,8 @@ var HoPrintDialogvue_type_template_id_7abbbfd8_staticRenderFns = []
|
|
|
240866
241079
|
|
|
240867
241080
|
var HoPrintDialog_component = (0,componentNormalizer/* default */.Z)(
|
|
240868
241081
|
insert_HoPrintDialogvue_type_script_lang_js_,
|
|
240869
|
-
|
|
240870
|
-
|
|
241082
|
+
HoPrintDialogvue_type_template_id_1ed44917_render,
|
|
241083
|
+
HoPrintDialogvue_type_template_id_1ed44917_staticRenderFns,
|
|
240871
241084
|
false,
|
|
240872
241085
|
null,
|
|
240873
241086
|
null,
|
|
@@ -244338,12 +244551,24 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244338
244551
|
}, {
|
|
244339
244552
|
key: "printTpPDF",
|
|
244340
244553
|
value: function printTpPDF() {
|
|
244554
|
+
var _this2 = this;
|
|
244555
|
+
|
|
244341
244556
|
// 非打印预览状态
|
|
244342
244557
|
if (!this.isPrinted) {
|
|
244343
244558
|
// 打开设置弹窗
|
|
244344
244559
|
this.printModal = true;
|
|
244345
244560
|
} else {
|
|
244346
|
-
this.vueController.
|
|
244561
|
+
if (!this.vueController.getIsSetFont()) {
|
|
244562
|
+
this.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
244563
|
+
if (font) {
|
|
244564
|
+
_this2.vueController.setjsPDFFonts(font);
|
|
244565
|
+
|
|
244566
|
+
_this2.vueController.printPromisePDF();
|
|
244567
|
+
}
|
|
244568
|
+
});
|
|
244569
|
+
} else {
|
|
244570
|
+
this.vueController.printPromisePDF();
|
|
244571
|
+
}
|
|
244347
244572
|
}
|
|
244348
244573
|
|
|
244349
244574
|
this.isPrinted = false;
|
|
@@ -244477,11 +244702,11 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244477
244702
|
}, {
|
|
244478
244703
|
key: "closeToolMenus",
|
|
244479
244704
|
value: function closeToolMenus(e) {
|
|
244480
|
-
var
|
|
244705
|
+
var _this3 = this;
|
|
244481
244706
|
|
|
244482
244707
|
if (this.toolMenuOpenPath.length > 0) {
|
|
244483
244708
|
this.toolMenuOpenPath.forEach(function (path) {
|
|
244484
|
-
|
|
244709
|
+
_this3.toolMenus.closeMenu(path);
|
|
244485
244710
|
});
|
|
244486
244711
|
this.toolMenuOpenPath = [];
|
|
244487
244712
|
}
|
|
@@ -244494,11 +244719,11 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244494
244719
|
}, {
|
|
244495
244720
|
key: "closeToolMenusTest",
|
|
244496
244721
|
value: function closeToolMenusTest(e) {
|
|
244497
|
-
var
|
|
244722
|
+
var _this4 = this;
|
|
244498
244723
|
|
|
244499
244724
|
if (this.toolMenuOpenPathTest.length > 0) {
|
|
244500
244725
|
this.toolMenuOpenPathTest.forEach(function (path) {
|
|
244501
|
-
|
|
244726
|
+
_this4.toolMenusTest.closeMenu(path);
|
|
244502
244727
|
});
|
|
244503
244728
|
this.toolMenuOpenPathTest = [];
|
|
244504
244729
|
}
|
|
@@ -244543,11 +244768,11 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244543
244768
|
}, {
|
|
244544
244769
|
key: "closeToolPrint",
|
|
244545
244770
|
value: function closeToolPrint() {
|
|
244546
|
-
var
|
|
244771
|
+
var _this5 = this;
|
|
244547
244772
|
|
|
244548
244773
|
if (!this.isPrinted && this.toolPrintOpenPath.length > 0) {
|
|
244549
244774
|
this.toolPrintOpenPath.forEach(function (path) {
|
|
244550
|
-
|
|
244775
|
+
_this5.toolPrint.closeMenu(path);
|
|
244551
244776
|
});
|
|
244552
244777
|
}
|
|
244553
244778
|
}
|
|
@@ -244631,7 +244856,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244631
244856
|
}, {
|
|
244632
244857
|
key: "render",
|
|
244633
244858
|
value: function render() {
|
|
244634
|
-
var
|
|
244859
|
+
var _this6 = this;
|
|
244635
244860
|
|
|
244636
244861
|
var h = arguments[0];
|
|
244637
244862
|
var editJson = this.editJson;
|
|
@@ -244707,7 +244932,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244707
244932
|
},
|
|
244708
244933
|
"nativeOn": {
|
|
244709
244934
|
"click": function click() {
|
|
244710
|
-
return
|
|
244935
|
+
return _this6.createNew("caseHistory");
|
|
244711
244936
|
}
|
|
244712
244937
|
}
|
|
244713
244938
|
}, ["\u75C5\u5386"]), h("el-menu-item", {
|
|
@@ -244716,7 +244941,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244716
244941
|
},
|
|
244717
244942
|
"nativeOn": {
|
|
244718
244943
|
"click": function click() {
|
|
244719
|
-
return
|
|
244944
|
+
return _this6.createNew("form");
|
|
244720
244945
|
}
|
|
244721
244946
|
}
|
|
244722
244947
|
}, ["\u8868\u5355"])]), editJson.openFile && h("el-menu-item", {
|
|
@@ -244745,7 +244970,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244745
244970
|
},
|
|
244746
244971
|
"nativeOn": {
|
|
244747
244972
|
"click": function click() {
|
|
244748
|
-
return
|
|
244973
|
+
return _this6.saveAsFile("xml");
|
|
244749
244974
|
}
|
|
244750
244975
|
}
|
|
244751
244976
|
}, ["XML"]), h("el-menu-item", {
|
|
@@ -244754,7 +244979,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244754
244979
|
},
|
|
244755
244980
|
"nativeOn": {
|
|
244756
244981
|
"click": function click() {
|
|
244757
|
-
return
|
|
244982
|
+
return _this6.saveAsFile("html");
|
|
244758
244983
|
}
|
|
244759
244984
|
}
|
|
244760
244985
|
}, ["HTML"]), h("el-menu-item", {
|
|
@@ -244763,7 +244988,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244763
244988
|
},
|
|
244764
244989
|
"nativeOn": {
|
|
244765
244990
|
"click": function click() {
|
|
244766
|
-
return
|
|
244991
|
+
return _this6.saveAsFile("pdf");
|
|
244767
244992
|
}
|
|
244768
244993
|
}
|
|
244769
244994
|
}, ["PDF"]), h("el-menu-item", {
|
|
@@ -244772,7 +244997,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244772
244997
|
},
|
|
244773
244998
|
"nativeOn": {
|
|
244774
244999
|
"click": function click() {
|
|
244775
|
-
return
|
|
245000
|
+
return _this6.saveAsFile("plain");
|
|
244776
245001
|
}
|
|
244777
245002
|
}
|
|
244778
245003
|
}, ["TXT"]), h("el-menu-item", {
|
|
@@ -244781,7 +245006,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244781
245006
|
},
|
|
244782
245007
|
"nativeOn": {
|
|
244783
245008
|
"click": function click() {
|
|
244784
|
-
return
|
|
245009
|
+
return _this6.saveAsFile("json");
|
|
244785
245010
|
}
|
|
244786
245011
|
}
|
|
244787
245012
|
}, ["JSON"])]), h("el-menu-item", {
|
|
@@ -244899,7 +245124,7 @@ var ToolBarChild = /*#__PURE__*/function (_Vue) {
|
|
|
244899
245124
|
"class": "sub-bar-items",
|
|
244900
245125
|
"on": {
|
|
244901
245126
|
"click": function click() {
|
|
244902
|
-
return
|
|
245127
|
+
return _this6.setModalStatus(["find", "add", ""]);
|
|
244903
245128
|
}
|
|
244904
245129
|
}
|
|
244905
245130
|
}, [h(popers/* default */.Z, {
|
|
@@ -246269,22 +246494,22 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246269
246494
|
_this.printModal = false;
|
|
246270
246495
|
_this.ctrlS = false;
|
|
246271
246496
|
_this.toolMenuOpenPathTest = [];
|
|
246272
|
-
_this.printStatus =
|
|
246497
|
+
_this.printStatus = '';
|
|
246273
246498
|
_this.isPrinted = false;
|
|
246274
246499
|
_this.reviewLevel = {
|
|
246275
246500
|
limit: 1,
|
|
246276
|
-
color: [
|
|
246277
|
-
text: [
|
|
246501
|
+
color: ['#f19191', '#8198f7', '#7fd27f'],
|
|
246502
|
+
text: ['一级质控', '二级质控', '三级质控']
|
|
246278
246503
|
};
|
|
246279
246504
|
_this.userInfoes = null;
|
|
246280
246505
|
_this.defaultToolBarParams = {
|
|
246281
|
-
|
|
246282
|
-
|
|
246283
|
-
|
|
246284
|
-
|
|
246285
|
-
|
|
246506
|
+
'ho-browse': 5,
|
|
246507
|
+
'ho-edit': 1,
|
|
246508
|
+
'ho-insert': 1,
|
|
246509
|
+
'ho-table': 1,
|
|
246510
|
+
'ho-review': 4
|
|
246286
246511
|
};
|
|
246287
|
-
_this.tabKey =
|
|
246512
|
+
_this.tabKey = ''; // 审阅配置项
|
|
246288
246513
|
|
|
246289
246514
|
_this.defaultReviewJson = {
|
|
246290
246515
|
isReview: true,
|
|
@@ -246388,27 +246613,27 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246388
246613
|
(0,createClass/* default */.Z)(ToolBar, [{
|
|
246389
246614
|
key: "isPrintClass",
|
|
246390
246615
|
get: function get() {
|
|
246391
|
-
return this.isPrinted ?
|
|
246616
|
+
return this.isPrinted ? 'print-selected' : '';
|
|
246392
246617
|
}
|
|
246393
246618
|
}, {
|
|
246394
246619
|
key: "printedClass",
|
|
246395
246620
|
get: function get() {
|
|
246396
|
-
return this.printStatus ===
|
|
246621
|
+
return this.printStatus === 'print' ? 'print print-selected' : 'print';
|
|
246397
246622
|
}
|
|
246398
246623
|
}, {
|
|
246399
246624
|
key: "printSelectedClass",
|
|
246400
246625
|
get: function get() {
|
|
246401
|
-
return this.printStatus ===
|
|
246626
|
+
return this.printStatus === 'selected' ? 'print print-selected' : 'print';
|
|
246402
246627
|
}
|
|
246403
246628
|
}, {
|
|
246404
246629
|
key: "printCaretClass",
|
|
246405
246630
|
get: function get() {
|
|
246406
|
-
return this.printStatus ===
|
|
246631
|
+
return this.printStatus === 'caret' ? 'print print-selected' : 'print';
|
|
246407
246632
|
}
|
|
246408
246633
|
}, {
|
|
246409
246634
|
key: "printContinueClass",
|
|
246410
246635
|
get: function get() {
|
|
246411
|
-
return this.printStatus ===
|
|
246636
|
+
return this.printStatus === 'continue' ? 'print print-selected' : 'print';
|
|
246412
246637
|
}
|
|
246413
246638
|
}, {
|
|
246414
246639
|
key: "tabStatusChange",
|
|
@@ -246449,7 +246674,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246449
246674
|
}, {
|
|
246450
246675
|
key: "vueControllerChange",
|
|
246451
246676
|
value: function vueControllerChange() {
|
|
246452
|
-
if (Object.prototype.toString.call(this.vueController.setEditorStatus) ===
|
|
246677
|
+
if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]') {
|
|
246453
246678
|
if (this.toolbarParams) {
|
|
246454
246679
|
this.defaultToolBarParams = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, this.defaultToolBarParams), this.toolbarParams);
|
|
246455
246680
|
}
|
|
@@ -246466,7 +246691,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246466
246691
|
|
|
246467
246692
|
if (this.tabStatus) this.tabKey = this.tabStatus;
|
|
246468
246693
|
|
|
246469
|
-
if (Object.prototype.toString.call(this.vueController.setEditorStatus) ===
|
|
246694
|
+
if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]') {
|
|
246470
246695
|
if (this.tabKey) this.$nextTick(function () {
|
|
246471
246696
|
return _this2.vueController.setEditorStatus(_this2.defaultToolBarParams[_this2.tabKey]);
|
|
246472
246697
|
});
|
|
@@ -246510,22 +246735,22 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246510
246735
|
// limit: limit,
|
|
246511
246736
|
// color: color,
|
|
246512
246737
|
// };
|
|
246513
|
-
var arr = [
|
|
246514
|
-
var id = this.vueController.generateID(
|
|
246515
|
-
this.vueController.setUserLoginInfo(id, arr[limit - 1], limit,
|
|
246738
|
+
var arr = ['李医生', '张医生', '王医生'];
|
|
246739
|
+
var id = this.vueController.generateID('UI');
|
|
246740
|
+
this.vueController.setUserLoginInfo(id, arr[limit - 1], limit, '');
|
|
246516
246741
|
this.vueController.setReviewLevelColor({
|
|
246517
|
-
reviewLev1Color:
|
|
246518
|
-
reviewLev2Color:
|
|
246519
|
-
reviewLev3Color:
|
|
246520
|
-
fieldColor:
|
|
246521
|
-
dateTimeColor:
|
|
246522
|
-
downListColor:
|
|
246742
|
+
reviewLev1Color: '#F19191',
|
|
246743
|
+
reviewLev2Color: '#FFFFFF',
|
|
246744
|
+
reviewLev3Color: '#FFFFFF',
|
|
246745
|
+
fieldColor: '#DFFFFF',
|
|
246746
|
+
dateTimeColor: '#FBFAD0',
|
|
246747
|
+
downListColor: '#D2ECB1'
|
|
246523
246748
|
});
|
|
246524
246749
|
}
|
|
246525
246750
|
}, {
|
|
246526
246751
|
key: "setModalStatus",
|
|
246527
246752
|
value: function setModalStatus(str) {
|
|
246528
|
-
this.$emit(
|
|
246753
|
+
this.$emit('setModalStatus', str);
|
|
246529
246754
|
}
|
|
246530
246755
|
}, {
|
|
246531
246756
|
key: "updateTabKey",
|
|
@@ -246547,20 +246772,20 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246547
246772
|
this.vueController.setEditorStatus(newStatus);
|
|
246548
246773
|
}
|
|
246549
246774
|
|
|
246550
|
-
this.printStatus =
|
|
246775
|
+
this.printStatus = '';
|
|
246551
246776
|
this.isPrinted = false;
|
|
246552
246777
|
}
|
|
246553
246778
|
}, {
|
|
246554
246779
|
key: "emitToolBarStatus",
|
|
246555
246780
|
value: function emitToolBarStatus() {
|
|
246556
|
-
this.$emit(
|
|
246781
|
+
this.$emit('switchDocStatus', {
|
|
246557
246782
|
incomingParams: (0,objectSpread2/* default */.Z)({}, this.toolbarParams),
|
|
246558
246783
|
defaultParams: {
|
|
246559
|
-
|
|
246560
|
-
|
|
246561
|
-
|
|
246562
|
-
|
|
246563
|
-
|
|
246784
|
+
'ho-browse': 5,
|
|
246785
|
+
'ho-edit': 1,
|
|
246786
|
+
'ho-insert': 1,
|
|
246787
|
+
'ho-table': 1,
|
|
246788
|
+
'ho-review': 4
|
|
246564
246789
|
},
|
|
246565
246790
|
mergeParams: (0,objectSpread2/* default */.Z)({}, this.defaultToolBarParams)
|
|
246566
246791
|
});
|
|
@@ -246572,7 +246797,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246572
246797
|
}, {
|
|
246573
246798
|
key: "openExpress",
|
|
246574
246799
|
value: function openExpress(style) {
|
|
246575
|
-
this.$emit(
|
|
246800
|
+
this.$emit('setModalStatus', ['express', 'add', style]);
|
|
246576
246801
|
}
|
|
246577
246802
|
/**
|
|
246578
246803
|
*
|
|
@@ -246596,14 +246821,14 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246596
246821
|
}, {
|
|
246597
246822
|
key: "outPrinted",
|
|
246598
246823
|
value: function outPrinted() {
|
|
246599
|
-
this.printStatus =
|
|
246824
|
+
this.printStatus = '';
|
|
246600
246825
|
this.isPrinted = false;
|
|
246601
246826
|
this.vueController.setEditorStatus(5);
|
|
246602
246827
|
}
|
|
246603
246828
|
}, {
|
|
246604
246829
|
key: "closedHoPrintModal",
|
|
246605
246830
|
value: function closedHoPrintModal(status) {
|
|
246606
|
-
if (status ===
|
|
246831
|
+
if (status === 'sure') {
|
|
246607
246832
|
this.isPrinted = false;
|
|
246608
246833
|
}
|
|
246609
246834
|
|
|
@@ -246613,12 +246838,25 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246613
246838
|
}, {
|
|
246614
246839
|
key: "printed",
|
|
246615
246840
|
value: function printed() {
|
|
246841
|
+
var _this5 = this;
|
|
246842
|
+
|
|
246616
246843
|
// 非打印预览状态
|
|
246617
246844
|
if (!this.isPrinted) {
|
|
246618
246845
|
// 打开设置弹窗
|
|
246619
246846
|
this.printModal = true;
|
|
246620
246847
|
} else {
|
|
246621
|
-
this.vueController.
|
|
246848
|
+
if (!this.vueController.getIsSetFont()) {
|
|
246849
|
+
this.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
246850
|
+
if (font) {
|
|
246851
|
+
_this5.vueController.setjsPDFFonts(font);
|
|
246852
|
+
|
|
246853
|
+
_this5.vueController.printPromisePDF();
|
|
246854
|
+
}
|
|
246855
|
+
});
|
|
246856
|
+
} else {
|
|
246857
|
+
this.vueController.printPromisePDF();
|
|
246858
|
+
}
|
|
246859
|
+
|
|
246622
246860
|
this.isPrinted = false;
|
|
246623
246861
|
}
|
|
246624
246862
|
}
|
|
@@ -246629,7 +246867,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246629
246867
|
}, {
|
|
246630
246868
|
key: "printSelected",
|
|
246631
246869
|
value: function printSelected() {
|
|
246632
|
-
this.printStatus =
|
|
246870
|
+
this.printStatus = 'selected';
|
|
246633
246871
|
this.isPrinted = true;
|
|
246634
246872
|
this.vueController.setEditorStatus(2, 1);
|
|
246635
246873
|
}
|
|
@@ -246640,7 +246878,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246640
246878
|
}, {
|
|
246641
246879
|
key: "printCaret",
|
|
246642
246880
|
value: function printCaret() {
|
|
246643
|
-
this.printStatus =
|
|
246881
|
+
this.printStatus = 'caret';
|
|
246644
246882
|
this.isPrinted = true;
|
|
246645
246883
|
this.vueController.setEditorStatus(2, 0);
|
|
246646
246884
|
}
|
|
@@ -246651,7 +246889,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246651
246889
|
}, {
|
|
246652
246890
|
key: "printContinue",
|
|
246653
246891
|
value: function printContinue() {
|
|
246654
|
-
this.printStatus =
|
|
246892
|
+
this.printStatus = 'continue';
|
|
246655
246893
|
this.isPrinted = true;
|
|
246656
246894
|
this.vueController.setEditorStatus(2, 3);
|
|
246657
246895
|
}
|
|
@@ -246666,14 +246904,14 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246666
246904
|
message_default().closeAll();
|
|
246667
246905
|
|
|
246668
246906
|
message_default().warning({
|
|
246669
|
-
message:
|
|
246907
|
+
message: '请选择需要添加批注的内容',
|
|
246670
246908
|
duration: 3000,
|
|
246671
246909
|
offset: 120
|
|
246672
246910
|
});
|
|
246673
246911
|
|
|
246674
246912
|
return;
|
|
246675
246913
|
} else {
|
|
246676
|
-
this.$emit(
|
|
246914
|
+
this.$emit('setModalStatus', ['comment', 'add', '']);
|
|
246677
246915
|
}
|
|
246678
246916
|
}
|
|
246679
246917
|
/**
|
|
@@ -246686,12 +246924,12 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246686
246924
|
var selectedComment = this.vueController.getOnSelectedComment();
|
|
246687
246925
|
|
|
246688
246926
|
if (selectedComment) {
|
|
246689
|
-
this.$emit(
|
|
246927
|
+
this.$emit('setModalStatus', ['comment', 'update', '']);
|
|
246690
246928
|
} else {
|
|
246691
246929
|
message_default().closeAll();
|
|
246692
246930
|
|
|
246693
246931
|
message_default().warning({
|
|
246694
|
-
message:
|
|
246932
|
+
message: '点击右侧批注区域内已添加的批注进行编辑操作',
|
|
246695
246933
|
duration: 3000,
|
|
246696
246934
|
offset: 120
|
|
246697
246935
|
});
|
|
@@ -246706,7 +246944,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246706
246944
|
}, {
|
|
246707
246945
|
key: "deleteComment",
|
|
246708
246946
|
value: function deleteComment() {
|
|
246709
|
-
this.$emit(
|
|
246947
|
+
this.$emit('insertComments', {
|
|
246710
246948
|
type: 'delete',
|
|
246711
246949
|
selectedComment: this.vueController.getOnSelectedComment()
|
|
246712
246950
|
}); // const selectedComment = this.vueController.getOnSelectedComment();
|
|
@@ -246740,7 +246978,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246740
246978
|
}, {
|
|
246741
246979
|
key: "deleteAllComment",
|
|
246742
246980
|
value: function deleteAllComment() {
|
|
246743
|
-
this.$emit(
|
|
246981
|
+
this.$emit('insertComments', {
|
|
246744
246982
|
type: 'deleteAll',
|
|
246745
246983
|
commentValue: this.vueController.getDocCommentValue()
|
|
246746
246984
|
}); // (this as any)
|
|
@@ -246772,7 +247010,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246772
247010
|
}, {
|
|
246773
247011
|
key: "saveAsFile",
|
|
246774
247012
|
value: function saveAsFile(fileType) {
|
|
246775
|
-
var fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() :
|
|
247013
|
+
var fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() : '电子病历文档';
|
|
246776
247014
|
|
|
246777
247015
|
if (fileType == 'pdf') {
|
|
246778
247016
|
this.vueController.saveAsPDF('', 'pdf', false);
|
|
@@ -246795,10 +247033,10 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246795
247033
|
var url = window.URL.createObjectURL(new Blob([file], {
|
|
246796
247034
|
type: "text/".concat(fileType)
|
|
246797
247035
|
}));
|
|
246798
|
-
var link = document.createElement(
|
|
246799
|
-
link.style.display =
|
|
247036
|
+
var link = document.createElement('a');
|
|
247037
|
+
link.style.display = 'none';
|
|
246800
247038
|
link.href = url;
|
|
246801
|
-
link.setAttribute(
|
|
247039
|
+
link.setAttribute('download', fileName);
|
|
246802
247040
|
document.body.appendChild(link);
|
|
246803
247041
|
link.click();
|
|
246804
247042
|
this.$nextTick(function () {
|
|
@@ -246813,7 +247051,7 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246813
247051
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolBar.prototype, "vueController", void 0);
|
|
246814
247052
|
|
|
246815
247053
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)({
|
|
246816
|
-
default:
|
|
247054
|
+
default: 'ho-edit'
|
|
246817
247055
|
})], ToolBar.prototype, "tabStatus", void 0);
|
|
246818
247056
|
|
|
246819
247057
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolBar.prototype, "editJson", void 0);
|
|
@@ -246830,30 +247068,30 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
246830
247068
|
|
|
246831
247069
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolBar.prototype, "textStyle", void 0);
|
|
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)('tabStatus')], ToolBar.prototype, "tabStatusChange", null);
|
|
246834
247072
|
|
|
246835
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247073
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('editJson', {
|
|
246836
247074
|
deep: true
|
|
246837
247075
|
})], ToolBar.prototype, "editJsonChange", null);
|
|
246838
247076
|
|
|
246839
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247077
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('reviewJson', {
|
|
246840
247078
|
deep: true
|
|
246841
247079
|
})], ToolBar.prototype, "reviewJsonChange", null);
|
|
246842
247080
|
|
|
246843
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247081
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('browseJson', {
|
|
246844
247082
|
deep: true
|
|
246845
247083
|
})], ToolBar.prototype, "browseJsonChange", null);
|
|
246846
247084
|
|
|
246847
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247085
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('toolbarParams', {
|
|
246848
247086
|
deep: true
|
|
246849
247087
|
})], ToolBar.prototype, "toolbarParamsChange", null);
|
|
246850
247088
|
|
|
246851
|
-
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)(
|
|
247089
|
+
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Watch */.RL)('vueController', {
|
|
246852
247090
|
deep: true
|
|
246853
247091
|
})], ToolBar.prototype, "vueControllerChange", null);
|
|
246854
247092
|
|
|
246855
247093
|
ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Component */.wA)({
|
|
246856
|
-
name:
|
|
247094
|
+
name: 'ToolBar',
|
|
246857
247095
|
components: {
|
|
246858
247096
|
HoMedicalExpression: HoMedicalExpression,
|
|
246859
247097
|
HoPrintDialog: HoPrintDialog,
|
|
@@ -246866,10 +247104,10 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
246866
247104
|
/* harmony default export */ var ToolBarvue_type_script_lang_ts_ = (ToolBar);
|
|
246867
247105
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=ts&
|
|
246868
247106
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_ts_ = (ToolBarvue_type_script_lang_ts_);
|
|
246869
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
247107
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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&
|
|
246870
247108
|
// extracted by mini-css-extract-plugin
|
|
246871
247109
|
|
|
246872
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
247110
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=95dff248&prod&lang=scss&
|
|
246873
247111
|
|
|
246874
247112
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
246875
247113
|
|
|
@@ -246882,8 +247120,8 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
246882
247120
|
|
|
246883
247121
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
246884
247122
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
246885
|
-
|
|
246886
|
-
|
|
247123
|
+
ToolBarvue_type_template_id_95dff248_render,
|
|
247124
|
+
ToolBarvue_type_template_id_95dff248_staticRenderFns,
|
|
246887
247125
|
false,
|
|
246888
247126
|
null,
|
|
246889
247127
|
null,
|