hoeditor-web 2.0.96 → 2.0.99
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 +749 -316
- package/lib/hoeditor.css +2 -2
- package/lib/hoeditor.umd.js +749 -316
- package/lib/hoeditor.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -10528,7 +10528,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10528
10528
|
|
|
10529
10529
|
/***/ }),
|
|
10530
10530
|
|
|
10531
|
-
/***/
|
|
10531
|
+
/***/ 87043:
|
|
10532
10532
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10533
10533
|
|
|
10534
10534
|
"use strict";
|
|
@@ -10540,11 +10540,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10540
10540
|
"default": function() { return /* binding */ Sign; }
|
|
10541
10541
|
});
|
|
10542
10542
|
|
|
10543
|
-
;// 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=
|
|
10543
|
+
;// 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=5a3cdcd6&
|
|
10544
10544
|
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)])}
|
|
10545
10545
|
var staticRenderFns = []
|
|
10546
10546
|
|
|
10547
10547
|
|
|
10548
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
10549
|
+
var es_function_name = __webpack_require__(68309);
|
|
10548
10550
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
10549
10551
|
var es_regexp_exec = __webpack_require__(74916);
|
|
10550
10552
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -10565,10 +10567,10 @@ var es_array_concat = __webpack_require__(92222);
|
|
|
10565
10567
|
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
10566
10568
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
10567
10569
|
var es_array_slice = __webpack_require__(47042);
|
|
10568
|
-
// EXTERNAL MODULE: ./
|
|
10569
|
-
var
|
|
10570
|
-
// EXTERNAL MODULE: ./src/
|
|
10571
|
-
var
|
|
10570
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
10571
|
+
var HOEditorFactorys = __webpack_require__(28831);
|
|
10572
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
|
|
10573
|
+
var SignNode = __webpack_require__(78975);
|
|
10572
10574
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
|
|
10573
10575
|
|
|
10574
10576
|
|
|
@@ -10687,14 +10689,18 @@ var HoColorPicker = __webpack_require__(59552);
|
|
|
10687
10689
|
//
|
|
10688
10690
|
//
|
|
10689
10691
|
|
|
10692
|
+
|
|
10690
10693
|
/* harmony default export */ var Signvue_type_script_lang_js_ = ({
|
|
10691
10694
|
name: 'Sign',
|
|
10692
|
-
components: {
|
|
10693
|
-
HoColorPicker: HoColorPicker["default"]
|
|
10694
|
-
},
|
|
10695
10695
|
props: {
|
|
10696
10696
|
vueController: {
|
|
10697
10697
|
default: function _default() {}
|
|
10698
|
+
},
|
|
10699
|
+
controlStatus: {
|
|
10700
|
+
default: 'add'
|
|
10701
|
+
},
|
|
10702
|
+
hoEditorFactoryId: {
|
|
10703
|
+
default: ''
|
|
10698
10704
|
}
|
|
10699
10705
|
},
|
|
10700
10706
|
data: function data() {
|
|
@@ -10713,7 +10719,41 @@ var HoColorPicker = __webpack_require__(59552);
|
|
|
10713
10719
|
animationClassNames: 'control-modal-contents sign-modal animation-in'
|
|
10714
10720
|
};
|
|
10715
10721
|
},
|
|
10722
|
+
mounted: function mounted() {
|
|
10723
|
+
if (this.controlStatus === 'update') {
|
|
10724
|
+
var node = this.getCurrentSelectNode();
|
|
10725
|
+
|
|
10726
|
+
if (node) {
|
|
10727
|
+
this.name = node.name;
|
|
10728
|
+
this.signType = node.signType == 0 && node.connectMode ? 3 : node.signType;
|
|
10729
|
+
this.signFormat = node.signFormat;
|
|
10730
|
+
this.connectMode = node.connectMode;
|
|
10731
|
+
this.connectChar = node.connectChar;
|
|
10732
|
+
this.isFront = node.isFront;
|
|
10733
|
+
this.signTimeFormat = node.signTimeFormat;
|
|
10734
|
+
this.customFormatContent = node.customFormatContent;
|
|
10735
|
+
this.customSignFormatList = node.customSignFormatList;
|
|
10736
|
+
}
|
|
10737
|
+
}
|
|
10738
|
+
},
|
|
10716
10739
|
methods: {
|
|
10740
|
+
getCurrentSelectNode: function getCurrentSelectNode() {
|
|
10741
|
+
var _hoEditorFactory$vueC;
|
|
10742
|
+
|
|
10743
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
10744
|
+
var domRange = {
|
|
10745
|
+
startPath: hoEditorFactory.docTree.curDomRange.normalize().startPath,
|
|
10746
|
+
endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
|
|
10747
|
+
};
|
|
10748
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
10749
|
+
if (!node) return undefined;
|
|
10750
|
+
|
|
10751
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
10752
|
+
return node;
|
|
10753
|
+
}
|
|
10754
|
+
|
|
10755
|
+
return null;
|
|
10756
|
+
},
|
|
10717
10757
|
// 创建自定义签名格式
|
|
10718
10758
|
createSignFormat: function createSignFormat() {
|
|
10719
10759
|
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
@@ -10806,7 +10846,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10806
10846
|
|
|
10807
10847
|
/***/ }),
|
|
10808
10848
|
|
|
10809
|
-
/***/
|
|
10849
|
+
/***/ 9715:
|
|
10810
10850
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10811
10851
|
|
|
10812
10852
|
"use strict";
|
|
@@ -10818,7 +10858,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10818
10858
|
"default": function() { return /* binding */ TableCellPoper; }
|
|
10819
10859
|
});
|
|
10820
10860
|
|
|
10821
|
-
;// 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/table/TableCellPoper.vue?vue&type=template&id=
|
|
10861
|
+
;// 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/table/TableCellPoper.vue?vue&type=template&id=958de66c&scoped=true&
|
|
10822
10862
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cell-poper-selected-modal animation-in",style:(_vm.posStyle)},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch)?_c('el-input',{attrs:{"placeholder":"可搜索","size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}}):_vm._e(),(_vm.editorProperty === 1)?_c('div',{staticClass:"select-poper"},[_c('ul',{staticClass:"list"},[_vm._l((_vm.currentList),function(item,index){return _c('li',{key:item.id,class:item.default ? 'selected' : '',on:{"click":function($event){return _vm.selectItems(item, index)}}},[_c('span',[_vm._v(_vm._s(item.text.split("<元素>")[0]))]),_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#selected"}})])])}),(_vm.currentList.length === 0)?_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")]):_vm._e()],2),(_vm.isAllowMultiSelect)?_c('footer',{staticStyle:{"bottom":"-43px","padding":"10px","text-align":"center"}},[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":function($event){_vm.selected = []}}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_c('footer',{staticStyle:{"bottom":"-43px","padding":"10px","justify-content":"center"}},[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1)]):_vm._e(),(_vm.editorProperty === 2)?_c('div',{staticClass:"date-poper"},[(_vm.inputStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.inputStyle.includes('MM') && !_vm.inputStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.inputStyle.includes('yyyy') && !_vm.inputStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.inputStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v(_vm._s(_vm.inputStyle.indexOf('HH') !== -1 ? '此刻' : '今天'))]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":function($event){return _vm.handleClose('cancel')}}},[_vm._v("取消")])],1)],1):_vm._e()],1)}
|
|
10823
10863
|
var staticRenderFns = []
|
|
10824
10864
|
|
|
@@ -11285,10 +11325,10 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
11285
11325
|
});
|
|
11286
11326
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
11287
11327
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
11288
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11328
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=958de66c&lang=scss&scoped=true&
|
|
11289
11329
|
// extracted by mini-css-extract-plugin
|
|
11290
11330
|
|
|
11291
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11331
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=958de66c&lang=scss&scoped=true&
|
|
11292
11332
|
|
|
11293
11333
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11294
11334
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -11307,7 +11347,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11307
11347
|
staticRenderFns,
|
|
11308
11348
|
false,
|
|
11309
11349
|
null,
|
|
11310
|
-
"
|
|
11350
|
+
"958de66c",
|
|
11311
11351
|
null
|
|
11312
11352
|
|
|
11313
11353
|
)
|
|
@@ -11968,7 +12008,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11968
12008
|
|
|
11969
12009
|
/***/ }),
|
|
11970
12010
|
|
|
11971
|
-
/***/
|
|
12011
|
+
/***/ 26853:
|
|
11972
12012
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11973
12013
|
|
|
11974
12014
|
"use strict";
|
|
@@ -11980,7 +12020,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
11980
12020
|
"default": function() { return /* binding */ TableColProperty; }
|
|
11981
12021
|
});
|
|
11982
12022
|
|
|
11983
|
-
;// 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/table/TableColProperty.vue?vue&type=template&id=
|
|
12023
|
+
;// 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/table/TableColProperty.vue?vue&type=template&id=384a329a&
|
|
11984
12024
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格列属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyWidth),callback:function ($$v) {_vm.isSpecifyWidth=$$v},expression:"isSpecifyWidth"}},[_vm._v("指定宽度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyWidth,"step":1,"min":0,"precision":2,"controls":false},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示宽度 "+_vm._s(_vm.colWidth)+" 厘米")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("垂直对齐方式")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"垂直对齐方式","size":"mini"},model:{value:(_vm.align),callback:function ($$v) {_vm.align=$$v},expression:"align"}},[_c('el-option',{attrs:{"label":"靠上","value":0}}),_c('el-option',{attrs:{"label":"居中","value":1}}),_c('el-option',{attrs:{"label":"靠下","value":2}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编辑器属性")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"编辑器属性","size":"mini"},on:{"change":_vm.editorPropertyChange},model:{value:(_vm.editorProperty),callback:function ($$v) {_vm.editorProperty=$$v},expression:"editorProperty"}},[_c('el-option',{attrs:{"label":"无","value":0}}),_c('el-option',{attrs:{"label":"下拉列表","value":1}}),_c('el-option',{attrs:{"label":"日期","value":2}}),_c('el-option',{attrs:{"label":"数值","value":3}}),_c('el-option',{attrs:{"label":"签名","value":4}})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 4),expression:"editorProperty === 4"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.splitCharacter),callback:function ($$v) {_vm.splitCharacter=$$v},expression:"splitCharacter"}},[_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',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.allowMultiSelected),callback:function ($$v) {_vm.allowMultiSelected=$$v},expression:"allowMultiSelected"}},[_vm._v("允许多选")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.isAllowDel),callback:function ($$v) {_vm.isAllowDel=$$v},expression:"isAllowDel"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.canModifyContent),callback:function ($$v) {_vm.canModifyContent=$$v},expression:"canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("来源")]),_c('el-input',{attrs:{"size":"mini"},model:{value:(_vm.source),callback:function ($$v) {_vm.source=$$v},expression:"source"}})],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.listItems,"max-height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return (scope.$index !== _vm.listItems.length - 1 && _vm.focusIndexs === scope.$index)?[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]:undefined}}],null,true)})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 2),expression:"editorProperty === 2"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("日期格式")]),_c('el-select',{attrs:{"placeholder":"输入样式","size":"mini"},model:{value:(_vm.inputStyle),callback:function ($$v) {_vm.inputStyle=$$v},expression:"inputStyle"}},_vm._l((_vm.dateFormatList),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 3),expression:"editorProperty === 3"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最小值")]),_c('el-input-number',{attrs:{"size":"mini","max":Number(_vm.maxNumVal),"min":0,"step":10,"controls":false},model:{value:(_vm.minNumVal),callback:function ($$v) {_vm.minNumVal=$$v},expression:"minNumVal"}})],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最大值")]),_c('el-input-number',{attrs:{"size":"mini","min":Number(_vm.minNumVal),"step":10,"controls":false},model:{value:(_vm.maxNumVal),callback:function ($$v) {_vm.maxNumVal=$$v},expression:"maxNumVal"}})],1)])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
11985
12025
|
var staticRenderFns = []
|
|
11986
12026
|
|
|
@@ -12248,13 +12288,14 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12248
12288
|
},
|
|
12249
12289
|
created: function created() {
|
|
12250
12290
|
var cellNode = this.getCellNodes();
|
|
12291
|
+
var colInfoes = null;
|
|
12251
12292
|
|
|
12252
12293
|
if (cellNode !== null) {
|
|
12253
|
-
var
|
|
12294
|
+
var _colInfoes;
|
|
12254
12295
|
|
|
12255
12296
|
var currentCols = cellNode.row.indexOf(cellNode);
|
|
12256
|
-
|
|
12257
|
-
var customProperties = (
|
|
12297
|
+
colInfoes = cellNode.table.colInfos[currentCols];
|
|
12298
|
+
var customProperties = (_colInfoes = colInfoes) === null || _colInfoes === void 0 ? void 0 : _colInfoes.colProperty.customProperties;
|
|
12258
12299
|
|
|
12259
12300
|
if (Array.isArray(customProperties) && customProperties.length > 0) {
|
|
12260
12301
|
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties), [{
|
|
@@ -12270,11 +12311,11 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12270
12311
|
}
|
|
12271
12312
|
}
|
|
12272
12313
|
|
|
12273
|
-
if (
|
|
12314
|
+
if (colInfoes !== null) {
|
|
12274
12315
|
var _colProperty$dateTime, _colProperty$dateTime2;
|
|
12275
12316
|
|
|
12276
12317
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
12277
|
-
var colProperty =
|
|
12318
|
+
var colProperty = colInfoes.colProperty;
|
|
12278
12319
|
this.id = colProperty.id ? colProperty.id : this.vueController.generateID('TB');
|
|
12279
12320
|
this.editorProperty = colProperty.editorProperty ? colProperty.editorProperty : 0;
|
|
12280
12321
|
this.align = colProperty.align ? colProperty.align : 0;
|
|
@@ -12294,7 +12335,7 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12294
12335
|
this.maxNumVal = colProperty.numberProperty ? colProperty.numberProperty.maxNumVal : 0;
|
|
12295
12336
|
this.minNumVal = colProperty.numberProperty ? colProperty.numberProperty.minNumVal : 100;
|
|
12296
12337
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
12297
|
-
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(
|
|
12338
|
+
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
12298
12339
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
12299
12340
|
}
|
|
12300
12341
|
},
|
|
@@ -12428,14 +12469,16 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12428
12469
|
param[key] = _this[key];
|
|
12429
12470
|
}
|
|
12430
12471
|
});
|
|
12431
|
-
this.
|
|
12472
|
+
var cellNode = this.getCellNodes();
|
|
12473
|
+
var currentCols = cellNode.row.indexOf(cellNode);
|
|
12474
|
+
var colInfoes = cellNode.table.colInfos[currentCols];
|
|
12475
|
+
this.vueController.colProperty(JSON.stringify(param), colInfoes);
|
|
12432
12476
|
this.$nextTick(function () {
|
|
12433
12477
|
return _this.handleClose();
|
|
12434
12478
|
});
|
|
12435
12479
|
},
|
|
12436
12480
|
handleClose: function handleClose() {
|
|
12437
12481
|
this.$emit('closed');
|
|
12438
|
-
this.colInfoes = null;
|
|
12439
12482
|
}
|
|
12440
12483
|
}
|
|
12441
12484
|
});
|
|
@@ -13046,7 +13089,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13046
13089
|
|
|
13047
13090
|
/***/ }),
|
|
13048
13091
|
|
|
13049
|
-
/***/
|
|
13092
|
+
/***/ 1429:
|
|
13050
13093
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13051
13094
|
|
|
13052
13095
|
"use strict";
|
|
@@ -13058,7 +13101,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13058
13101
|
"default": function() { return /* binding */ TableRowProperty; }
|
|
13059
13102
|
});
|
|
13060
13103
|
|
|
13061
|
-
;// 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/table/TableRowProperty.vue?vue&type=template&id=
|
|
13104
|
+
;// 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/table/TableRowProperty.vue?vue&type=template&id=f923cecc&scoped=true&
|
|
13062
13105
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格行属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyHeight),callback:function ($$v) {_vm.isSpecifyHeight=$$v},expression:"isSpecifyHeight"}},[_vm._v("指定高度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyHeight,"precision":2,"step":1,"min":0,"controls":false,"controls-position":"right"},model:{value:(_vm.rowHeight),callback:function ($$v) {_vm.rowHeight=$$v},expression:"rowHeight"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示高度 "+_vm._s(_vm.rowHeightMm)+" 厘米")])],1),_c('li',{staticClass:"control-item",staticStyle:{"padding":"0 0 0 10px"}},[_c('el-checkbox',{attrs:{"disabled":!_vm.isSpecifyHeight},model:{value:(_vm.isLockRowHeight),callback:function ($$v) {_vm.isLockRowHeight=$$v},expression:"isLockRowHeight"}},[_vm._v("锁定行高")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.repeatAsTitleAtPageTop),callback:function ($$v) {_vm.repeatAsTitleAtPageTop=$$v},expression:"repeatAsTitleAtPageTop"}},[_vm._v("在隔页顶端以标题行形式重复出现")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.sameLineCanAcrossPages),callback:function ($$v) {_vm.sameLineCanAcrossPages=$$v},expression:"sameLineCanAcrossPages"}},[_vm._v("同行内容能跨页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.forcedPageBreak),callback:function ($$v) {_vm.forcedPageBreak=$$v},expression:"forcedPageBreak"}},[_vm._v("强制分页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBorders),callback:function ($$v) {_vm.printCellBorders=$$v},expression:"printCellBorders"}},[_vm._v("打印单元格边框线")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBg),callback:function ($$v) {_vm.printCellBg=$$v},expression:"printCellBg"}},[_vm._v("打印单元格背景")])],1)])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
13063
13106
|
var staticRenderFns = []
|
|
13064
13107
|
|
|
@@ -13235,17 +13278,18 @@ var TableNode = __webpack_require__(59530);
|
|
|
13235
13278
|
methods: {
|
|
13236
13279
|
init: function init() {
|
|
13237
13280
|
var cellNode = this.getCellNodes();
|
|
13281
|
+
var rowInfos = null;
|
|
13238
13282
|
|
|
13239
13283
|
if (cellNode !== null) {
|
|
13240
13284
|
var currentRows = cellNode.table.rows.indexOf(cellNode.row);
|
|
13241
|
-
|
|
13285
|
+
rowInfos = cellNode.table.rowInfos[currentRows];
|
|
13242
13286
|
}
|
|
13243
13287
|
|
|
13244
|
-
if (
|
|
13245
|
-
this.rowProperty =
|
|
13288
|
+
if (rowInfos !== null) {
|
|
13289
|
+
this.rowProperty = rowInfos.rowProperty;
|
|
13246
13290
|
}
|
|
13247
13291
|
|
|
13248
|
-
if (this.rowProperty !== null &&
|
|
13292
|
+
if (this.rowProperty !== null && rowInfos !== null) {
|
|
13249
13293
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
13250
13294
|
this.id = this.rowProperty.id ? this.rowProperty.id : this.vueController.generateID('TB');
|
|
13251
13295
|
this.isSpecifyHeight = this.rowProperty.isSpecifyHeight;
|
|
@@ -13257,7 +13301,7 @@ var TableNode = __webpack_require__(59530);
|
|
|
13257
13301
|
this.printCellBorders = this.rowProperty.printCellBorders;
|
|
13258
13302
|
this.printCellBg = this.rowProperty.printCellBg;
|
|
13259
13303
|
this.tabKeyInsNewLine = this.rowProperty.tabKeyInsNewLine;
|
|
13260
|
-
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(
|
|
13304
|
+
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(rowInfos.rowHeight, false) / 10).toFixed(2);
|
|
13261
13305
|
}
|
|
13262
13306
|
},
|
|
13263
13307
|
getCellNodes: function getCellNodes() {
|
|
@@ -13338,7 +13382,15 @@ var TableNode = __webpack_require__(59530);
|
|
|
13338
13382
|
param[key] = _this[key];
|
|
13339
13383
|
}
|
|
13340
13384
|
});
|
|
13341
|
-
this.
|
|
13385
|
+
var cellNode = this.getCellNodes();
|
|
13386
|
+
var rowInfos = null;
|
|
13387
|
+
|
|
13388
|
+
if (cellNode !== null) {
|
|
13389
|
+
var currentRows = cellNode.table.rows.indexOf(cellNode.row);
|
|
13390
|
+
rowInfos = cellNode.table.rowInfos[currentRows];
|
|
13391
|
+
}
|
|
13392
|
+
|
|
13393
|
+
this.vueController.rowProperty(JSON.stringify(param), rowInfos);
|
|
13342
13394
|
this.$nextTick(function () {
|
|
13343
13395
|
return _this.handleClose();
|
|
13344
13396
|
});
|
|
@@ -13352,10 +13404,10 @@ var TableNode = __webpack_require__(59530);
|
|
|
13352
13404
|
});
|
|
13353
13405
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
13354
13406
|
/* harmony default export */ var table_TableRowPropertyvue_type_script_lang_js_ = (TableRowPropertyvue_type_script_lang_js_);
|
|
13355
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
13407
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=f923cecc&lang=scss&scoped=true&
|
|
13356
13408
|
// extracted by mini-css-extract-plugin
|
|
13357
13409
|
|
|
13358
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
13410
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=f923cecc&lang=scss&scoped=true&
|
|
13359
13411
|
|
|
13360
13412
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13361
13413
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -13374,7 +13426,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13374
13426
|
staticRenderFns,
|
|
13375
13427
|
false,
|
|
13376
13428
|
null,
|
|
13377
|
-
"
|
|
13429
|
+
"f923cecc",
|
|
13378
13430
|
null
|
|
13379
13431
|
|
|
13380
13432
|
)
|
|
@@ -26551,14 +26603,14 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26551
26603
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26552
26604
|
/* harmony export */ "P": function() { return /* binding */ DocController; }
|
|
26553
26605
|
/* harmony export */ });
|
|
26554
|
-
/* harmony import */ var
|
|
26555
|
-
/* harmony import */ var
|
|
26556
|
-
/* harmony import */ var
|
|
26557
|
-
/* harmony import */ var
|
|
26606
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42071);
|
|
26607
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91347);
|
|
26608
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87461);
|
|
26609
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60199);
|
|
26558
26610
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86769);
|
|
26559
26611
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__);
|
|
26560
26612
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42015);
|
|
26561
|
-
/* harmony import */ var
|
|
26613
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(16296);
|
|
26562
26614
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
|
|
26563
26615
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
26564
26616
|
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88674);
|
|
@@ -26650,12 +26702,14 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26650
26702
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(28831);
|
|
26651
26703
|
/* harmony import */ var _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(94294);
|
|
26652
26704
|
/* harmony import */ var _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(74487);
|
|
26653
|
-
/* harmony import */ var
|
|
26654
|
-
/* harmony import */ var
|
|
26655
|
-
/* harmony import */ var
|
|
26656
|
-
/* harmony import */ var
|
|
26657
|
-
/* harmony import */ var
|
|
26658
|
-
/* harmony import */ var
|
|
26705
|
+
/* harmony import */ var _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(95329);
|
|
26706
|
+
/* harmony import */ var _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(87303);
|
|
26707
|
+
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(37713);
|
|
26708
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(14245);
|
|
26709
|
+
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(78975);
|
|
26710
|
+
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(88531);
|
|
26711
|
+
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(55817);
|
|
26712
|
+
|
|
26659
26713
|
|
|
26660
26714
|
|
|
26661
26715
|
|
|
@@ -26762,7 +26816,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26762
26816
|
// }
|
|
26763
26817
|
|
|
26764
26818
|
|
|
26765
|
-
(0,
|
|
26819
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_87__/* ["default"] */ .Z)(DocController, [{
|
|
26766
26820
|
key: "onInsertNodeByID",
|
|
26767
26821
|
get: function get() {
|
|
26768
26822
|
return this._onInsertNodeByID;
|
|
@@ -27273,7 +27327,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27273
27327
|
|
|
27274
27328
|
if (!domRange.isEmpty) {
|
|
27275
27329
|
domRange = domRange.normalize();
|
|
27276
|
-
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(domRange.npStart.node instanceof
|
|
27330
|
+
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27277
27331
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("审阅模式下,只能选中文档内容进行删除");
|
|
27278
27332
|
|
|
27279
27333
|
return;
|
|
@@ -27300,183 +27354,336 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27300
27354
|
|
|
27301
27355
|
}, {
|
|
27302
27356
|
key: "deleteTextBeforePath",
|
|
27303
|
-
value: function
|
|
27304
|
-
var
|
|
27305
|
-
|
|
27357
|
+
value: function () {
|
|
27358
|
+
var _deleteTextBeforePath = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee(startPath) {
|
|
27359
|
+
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, spath, epath, newSignNode, pNode;
|
|
27306
27360
|
|
|
27307
|
-
|
|
27308
|
-
|
|
27309
|
-
|
|
27310
|
-
|
|
27311
|
-
|
|
27312
|
-
|
|
27313
|
-
// domRange.endPath,
|
|
27314
|
-
// true
|
|
27315
|
-
// )
|
|
27316
|
-
// );
|
|
27317
|
-
// hoEditorFactory.undoService.commit();
|
|
27318
|
-
} else {
|
|
27319
|
-
var nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
27320
|
-
var childIndex = nodePosition.childIndex;
|
|
27321
|
-
var node = nodePosition.node;
|
|
27361
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
27362
|
+
while (1) {
|
|
27363
|
+
switch (_context.prev = _context.next) {
|
|
27364
|
+
case 0:
|
|
27365
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27366
|
+
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
27322
27367
|
|
|
27323
|
-
|
|
27324
|
-
|
|
27325
|
-
|
|
27326
|
-
|
|
27327
|
-
|
|
27328
|
-
|
|
27329
|
-
|
|
27330
|
-
|
|
27331
|
-
|
|
27368
|
+
if (domRange.isEmpty) {
|
|
27369
|
+
_context.next = 6;
|
|
27370
|
+
break;
|
|
27371
|
+
}
|
|
27372
|
+
|
|
27373
|
+
this.deleteRange(domRange, true); // hoEditorFactory.undoService.begin();
|
|
27374
|
+
// hoEditorFactory.undoService.add(
|
|
27375
|
+
// new NodesDeleteUndoUnit(
|
|
27376
|
+
// this._hoEditorFactoryID,
|
|
27377
|
+
// domRange.startPath,
|
|
27378
|
+
// domRange.endPath,
|
|
27379
|
+
// true
|
|
27380
|
+
// )
|
|
27381
|
+
// );
|
|
27382
|
+
// hoEditorFactory.undoService.commit();
|
|
27383
|
+
|
|
27384
|
+
_context.next = 124;
|
|
27385
|
+
break;
|
|
27386
|
+
|
|
27387
|
+
case 6:
|
|
27388
|
+
nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
27389
|
+
childIndex = nodePosition.childIndex;
|
|
27390
|
+
node = nodePosition.node;
|
|
27391
|
+
|
|
27392
|
+
if (!node) {
|
|
27393
|
+
_context.next = 124;
|
|
27394
|
+
break;
|
|
27395
|
+
}
|
|
27396
|
+
|
|
27397
|
+
if (!domRange.isEmpty) {
|
|
27398
|
+
_context.next = 124;
|
|
27399
|
+
break;
|
|
27400
|
+
}
|
|
27401
|
+
|
|
27402
|
+
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R)) {
|
|
27403
|
+
_context.next = 36;
|
|
27404
|
+
break;
|
|
27405
|
+
}
|
|
27406
|
+
|
|
27407
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
27408
|
+
_context.next = 16;
|
|
27409
|
+
break;
|
|
27410
|
+
}
|
|
27411
|
+
|
|
27412
|
+
ret = node.parentNode.delCellNodeText();
|
|
27413
|
+
|
|
27414
|
+
if (ret) {
|
|
27415
|
+
_context.next = 16;
|
|
27416
|
+
break;
|
|
27417
|
+
}
|
|
27332
27418
|
|
|
27419
|
+
return _context.abrupt("return");
|
|
27333
27420
|
|
|
27334
|
-
|
|
27421
|
+
case 16:
|
|
27422
|
+
//}
|
|
27423
|
+
topath = "";
|
|
27335
27424
|
|
|
27336
|
-
|
|
27337
|
-
|
|
27425
|
+
if (!(childIndex > 0)) {
|
|
27426
|
+
_context.next = 23;
|
|
27427
|
+
break;
|
|
27428
|
+
}
|
|
27429
|
+
|
|
27430
|
+
arr = startPath.split("/");
|
|
27338
27431
|
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) - 1 + "";
|
|
27339
27432
|
topath = arr.join("/");
|
|
27340
|
-
|
|
27341
|
-
|
|
27433
|
+
_context.next = 30;
|
|
27434
|
+
break;
|
|
27342
27435
|
|
|
27343
|
-
|
|
27344
|
-
|
|
27345
|
-
|
|
27346
|
-
|
|
27347
|
-
|
|
27436
|
+
case 23:
|
|
27437
|
+
tmp = node.previousLeaf();
|
|
27438
|
+
|
|
27439
|
+
if (!tmp) {
|
|
27440
|
+
_context.next = 28;
|
|
27441
|
+
break;
|
|
27348
27442
|
}
|
|
27349
|
-
}
|
|
27350
27443
|
|
|
27351
|
-
|
|
27352
|
-
|
|
27353
|
-
|
|
27354
|
-
// this._hoEditorFactoryID,
|
|
27355
|
-
// topath,
|
|
27356
|
-
// startPath,
|
|
27357
|
-
// false
|
|
27358
|
-
// )
|
|
27359
|
-
// );
|
|
27360
|
-
// hoEditorFactory.undoService.commit();
|
|
27361
|
-
|
|
27362
|
-
var aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
27363
|
-
this.deleteRange(aRange, true);
|
|
27364
|
-
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
27365
|
-
} else if (node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
27366
|
-
var endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
27367
|
-
|
|
27368
|
-
if (node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
27369
|
-
if (node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
27370
|
-
startPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode.previousLeaf());
|
|
27371
|
-
endPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode);
|
|
27372
|
-
} else {
|
|
27373
|
-
if (node === node.parentNode.last()) {
|
|
27374
|
-
var _topath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
27444
|
+
topath = hoEditorFactory.docTree.getNodeLastPath(tmp);
|
|
27445
|
+
_context.next = 30;
|
|
27446
|
+
break;
|
|
27375
27447
|
|
|
27376
|
-
|
|
27377
|
-
|
|
27378
|
-
|
|
27379
|
-
}
|
|
27448
|
+
case 28:
|
|
27449
|
+
console.error("这里应该不会出现这种情况 2020.10.28");
|
|
27450
|
+
return _context.abrupt("return");
|
|
27380
27451
|
|
|
27381
|
-
|
|
27382
|
-
|
|
27383
|
-
|
|
27452
|
+
case 30:
|
|
27453
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath); // hoEditorFactory.undoService.begin();
|
|
27454
|
+
// hoEditorFactory.undoService.add(
|
|
27455
|
+
// new NodesDeleteUndoUnit(
|
|
27456
|
+
// this._hoEditorFactoryID,
|
|
27457
|
+
// topath,
|
|
27458
|
+
// startPath,
|
|
27459
|
+
// false
|
|
27460
|
+
// )
|
|
27461
|
+
// );
|
|
27462
|
+
// hoEditorFactory.undoService.commit();
|
|
27463
|
+
|
|
27464
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
27465
|
+
this.deleteRange(aRange, true);
|
|
27466
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
27467
|
+
_context.next = 124;
|
|
27468
|
+
break;
|
|
27469
|
+
|
|
27470
|
+
case 36:
|
|
27471
|
+
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
27472
|
+
_context.next = 55;
|
|
27473
|
+
break;
|
|
27384
27474
|
}
|
|
27385
|
-
}
|
|
27386
27475
|
|
|
27387
|
-
|
|
27388
|
-
).normalize();
|
|
27389
|
-
|
|
27390
|
-
this.deleteRange(_aRange, true); // hoEditorFactory.undoService.begin();
|
|
27391
|
-
// hoEditorFactory.undoService.add(
|
|
27392
|
-
// new NodesDeleteUndoUnit(
|
|
27393
|
-
// this._hoEditorFactoryID,
|
|
27394
|
-
// hoEditorFactory.docTree.getNodeLastPath(node),
|
|
27395
|
-
// startPath,
|
|
27396
|
-
// false
|
|
27397
|
-
// )
|
|
27398
|
-
// );
|
|
27399
|
-
// hoEditorFactory.undoService.commit();
|
|
27400
|
-
} else {
|
|
27401
|
-
if (node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
27402
|
-
var prevNode = node.prevSibling();
|
|
27476
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
27403
27477
|
|
|
27404
|
-
if (
|
|
27405
|
-
|
|
27478
|
+
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re)) {
|
|
27479
|
+
_context.next = 51;
|
|
27480
|
+
break;
|
|
27406
27481
|
}
|
|
27407
27482
|
|
|
27408
|
-
if (
|
|
27409
|
-
|
|
27483
|
+
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
27484
|
+
_context.next = 44;
|
|
27485
|
+
break;
|
|
27486
|
+
}
|
|
27487
|
+
|
|
27488
|
+
startPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode.previousLeaf());
|
|
27489
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode);
|
|
27490
|
+
_context.next = 51;
|
|
27491
|
+
break;
|
|
27492
|
+
|
|
27493
|
+
case 44:
|
|
27494
|
+
if (!(node === node.parentNode.last())) {
|
|
27495
|
+
_context.next = 49;
|
|
27496
|
+
break;
|
|
27497
|
+
}
|
|
27498
|
+
|
|
27499
|
+
_topath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
27500
|
+
hoEditorFactory.drawTree.moveCaretToPath(_topath);
|
|
27501
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(_topath);
|
|
27502
|
+
return _context.abrupt("return");
|
|
27503
|
+
|
|
27504
|
+
case 49:
|
|
27505
|
+
if (!(node === node.parentNode.first())) {
|
|
27506
|
+
_context.next = 51;
|
|
27507
|
+
break;
|
|
27508
|
+
}
|
|
27509
|
+
|
|
27510
|
+
return _context.abrupt("return");
|
|
27511
|
+
|
|
27512
|
+
case 51:
|
|
27513
|
+
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
27514
|
+
).normalize();
|
|
27515
|
+
this.deleteRange(_aRange, true); // hoEditorFactory.undoService.begin();
|
|
27516
|
+
// hoEditorFactory.undoService.add(
|
|
27517
|
+
// new NodesDeleteUndoUnit(
|
|
27518
|
+
// this._hoEditorFactoryID,
|
|
27519
|
+
// hoEditorFactory.docTree.getNodeLastPath(node),
|
|
27520
|
+
// startPath,
|
|
27521
|
+
// false
|
|
27522
|
+
// )
|
|
27523
|
+
// );
|
|
27524
|
+
// hoEditorFactory.undoService.commit();
|
|
27525
|
+
|
|
27526
|
+
_context.next = 124;
|
|
27527
|
+
break;
|
|
27528
|
+
|
|
27529
|
+
case 55:
|
|
27530
|
+
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
|
|
27531
|
+
_context.next = 82;
|
|
27532
|
+
break;
|
|
27533
|
+
}
|
|
27534
|
+
|
|
27535
|
+
prevNode = node.prevSibling();
|
|
27536
|
+
|
|
27537
|
+
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh)) {
|
|
27538
|
+
_context.next = 59;
|
|
27539
|
+
break;
|
|
27540
|
+
}
|
|
27541
|
+
|
|
27542
|
+
return _context.abrupt("return");
|
|
27543
|
+
|
|
27544
|
+
case 59:
|
|
27545
|
+
if (!(prevNode == null)) {
|
|
27546
|
+
_context.next = 82;
|
|
27547
|
+
break;
|
|
27548
|
+
}
|
|
27549
|
+
|
|
27550
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
27551
|
+
_context.next = 81;
|
|
27552
|
+
break;
|
|
27553
|
+
}
|
|
27554
|
+
|
|
27555
|
+
cellNode = node.parentNode;
|
|
27556
|
+
tableNode = cellNode.parentNode;
|
|
27557
|
+
tIndex = tableNode.childNodes.indexOf(cellNode);
|
|
27558
|
+
cIndex = cellNode.childNodes.indexOf(node);
|
|
27559
|
+
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
27560
|
+
|
|
27561
|
+
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
27562
|
+
_context.next = 78;
|
|
27563
|
+
break;
|
|
27564
|
+
}
|
|
27565
|
+
|
|
27566
|
+
hoEditorFactory.undoService.begin();
|
|
27567
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, tableNode.paragraphNode, tableNode.paragraphNode.getNodePath()));
|
|
27568
|
+
tableNode.paragraphNode = preParaNode;
|
|
27569
|
+
_context.next = 72;
|
|
27570
|
+
return hoEditorFactory.undoService.commit();
|
|
27571
|
+
|
|
27572
|
+
case 72:
|
|
27573
|
+
newpath = cellNode.childNodes[0].getNodePath();
|
|
27574
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(newpath);
|
|
27575
|
+
hoEditorFactory.drawTree.moveCaretToPath(newpath);
|
|
27576
|
+
return _context.abrupt("return");
|
|
27577
|
+
|
|
27578
|
+
case 78:
|
|
27579
|
+
return _context.abrupt("return");
|
|
27580
|
+
|
|
27581
|
+
case 79:
|
|
27582
|
+
_context.next = 82;
|
|
27583
|
+
break;
|
|
27584
|
+
|
|
27585
|
+
case 81:
|
|
27586
|
+
return _context.abrupt("return");
|
|
27587
|
+
|
|
27588
|
+
case 82:
|
|
27589
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27590
|
+
_context.next = 87;
|
|
27591
|
+
break;
|
|
27410
27592
|
}
|
|
27411
|
-
}
|
|
27412
27593
|
|
|
27413
|
-
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
27414
27594
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("审阅模式下,只能对文本内容进行删除");
|
|
27415
27595
|
|
|
27416
|
-
return;
|
|
27417
|
-
} else {
|
|
27418
|
-
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) {
|
|
27419
|
-
var signUserId = node.customProperty.bce01;
|
|
27596
|
+
return _context.abrupt("return");
|
|
27420
27597
|
|
|
27421
|
-
|
|
27422
|
-
|
|
27598
|
+
case 87:
|
|
27599
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27600
|
+
_context.next = 92;
|
|
27601
|
+
break;
|
|
27602
|
+
}
|
|
27423
27603
|
|
|
27424
|
-
|
|
27425
|
-
|
|
27604
|
+
signUserId = node.customProperty.bce01;
|
|
27605
|
+
|
|
27606
|
+
if (!(hoEditorFactory.userInfo.id != signUserId)) {
|
|
27607
|
+
_context.next = 92;
|
|
27608
|
+
break;
|
|
27426
27609
|
}
|
|
27427
27610
|
|
|
27428
|
-
|
|
27429
|
-
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("不允许使用删除键删除签名,请右键删除元素", "系统提示");
|
|
27611
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("不是本人签名,不允许删除!");
|
|
27430
27612
|
|
|
27431
|
-
|
|
27613
|
+
return _context.abrupt("return");
|
|
27614
|
+
|
|
27615
|
+
case 92:
|
|
27616
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27617
|
+
_context.next = 95;
|
|
27618
|
+
break;
|
|
27432
27619
|
}
|
|
27433
27620
|
|
|
27434
|
-
|
|
27435
|
-
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("该签名元素不允许删除!", "系统提示");
|
|
27621
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("不允许使用删除键删除签名,请右键删除元素", "系统提示");
|
|
27436
27622
|
|
|
27437
|
-
|
|
27623
|
+
return _context.abrupt("return");
|
|
27624
|
+
|
|
27625
|
+
case 95:
|
|
27626
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
27627
|
+
_context.next = 98;
|
|
27628
|
+
break;
|
|
27438
27629
|
}
|
|
27439
27630
|
|
|
27440
|
-
|
|
27441
|
-
var preNode = node.previousLeaf();
|
|
27442
|
-
var nextNode = node.nextLeaf();
|
|
27443
|
-
|
|
27444
|
-
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
27445
|
-
var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27446
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, node.name === "" ? "医师签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
27447
|
-
hoEditorFactory.undoService.begin();
|
|
27448
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
27449
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
27450
|
-
hoEditorFactory.undoService.commit();
|
|
27451
|
-
return;
|
|
27452
|
-
}
|
|
27631
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("该签名元素不允许删除!", "系统提示");
|
|
27453
27632
|
|
|
27454
|
-
|
|
27455
|
-
var spath = "";
|
|
27633
|
+
return _context.abrupt("return");
|
|
27456
27634
|
|
|
27457
|
-
|
|
27458
|
-
|
|
27459
|
-
|
|
27460
|
-
|
|
27461
|
-
|
|
27635
|
+
case 98:
|
|
27636
|
+
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27637
|
+
_context.next = 119;
|
|
27638
|
+
break;
|
|
27639
|
+
}
|
|
27462
27640
|
|
|
27641
|
+
preNode = node.previousLeaf();
|
|
27642
|
+
nextNode = node.nextLeaf();
|
|
27463
27643
|
|
|
27464
|
-
|
|
27465
|
-
|
|
27466
|
-
|
|
27467
|
-
|
|
27468
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, spath, epath));
|
|
27644
|
+
if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27645
|
+
_context.next = 109;
|
|
27646
|
+
break;
|
|
27647
|
+
}
|
|
27469
27648
|
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
|
|
27649
|
+
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27650
|
+
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, node.name === "" ? "医师签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
27651
|
+
hoEditorFactory.undoService.begin();
|
|
27652
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
27653
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
27654
|
+
hoEditorFactory.undoService.commit();
|
|
27655
|
+
return _context.abrupt("return");
|
|
27473
27656
|
|
|
27474
|
-
|
|
27475
|
-
|
|
27476
|
-
|
|
27657
|
+
case 109:
|
|
27658
|
+
if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27659
|
+
_context.next = 119;
|
|
27660
|
+
break;
|
|
27477
27661
|
}
|
|
27478
27662
|
|
|
27479
|
-
|
|
27663
|
+
spath = "";
|
|
27664
|
+
|
|
27665
|
+
if (node.number === 2 || node.number === 1 && node.isTemplate) {
|
|
27666
|
+
spath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
27667
|
+
} else {
|
|
27668
|
+
spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27669
|
+
} //const spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27670
|
+
|
|
27671
|
+
|
|
27672
|
+
epath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
27673
|
+
newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, preNode.rootNodes, preNode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 1, preNode.type, preNode.name === "" ? "签名" : preNode.name, preNode.signType, preNode.signFormat, preNode.signor, preNode.signTime, preNode.signTimeFormat, preNode.imgSrc, preNode.imgWidth, preNode.imgHeight, preNode.customProperty, preNode.isTemplate ? preNode.isTemplate : node.isTemplate, //node.isTemplate,
|
|
27674
|
+
node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime);
|
|
27675
|
+
hoEditorFactory.undoService.begin();
|
|
27676
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, spath, epath));
|
|
27677
|
+
|
|
27678
|
+
if (node.number === 2 || node.number === 1 && node.isTemplate) {
|
|
27679
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, spath, newSignNode));
|
|
27680
|
+
}
|
|
27681
|
+
|
|
27682
|
+
hoEditorFactory.undoService.commit();
|
|
27683
|
+
return _context.abrupt("return");
|
|
27684
|
+
|
|
27685
|
+
case 119:
|
|
27686
|
+
pNode = node.parentNode;
|
|
27480
27687
|
hoEditorFactory.undoService.begin();
|
|
27481
27688
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
27482
27689
|
hoEditorFactory.undoService.commit();
|
|
@@ -27484,12 +27691,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27484
27691
|
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
27485
27692
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
27486
27693
|
}
|
|
27487
|
-
|
|
27694
|
+
|
|
27695
|
+
case 124:
|
|
27696
|
+
case "end":
|
|
27697
|
+
return _context.stop();
|
|
27488
27698
|
}
|
|
27489
27699
|
}
|
|
27490
|
-
}
|
|
27700
|
+
}, _callee, this);
|
|
27701
|
+
}));
|
|
27702
|
+
|
|
27703
|
+
function deleteTextBeforePath(_x) {
|
|
27704
|
+
return _deleteTextBeforePath.apply(this, arguments);
|
|
27491
27705
|
}
|
|
27492
|
-
|
|
27706
|
+
|
|
27707
|
+
return deleteTextBeforePath;
|
|
27708
|
+
}()
|
|
27493
27709
|
}, {
|
|
27494
27710
|
key: "resetEmptyInputFieldNode",
|
|
27495
27711
|
value: function resetEmptyInputFieldNode(hoEditorFactory, node) {
|
|
@@ -27601,7 +27817,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27601
27817
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
27602
27818
|
|
|
27603
27819
|
if (drawArea) {
|
|
27604
|
-
var nodeNeedModifyEvent = new
|
|
27820
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, "dblclick", drawArea.index);
|
|
27605
27821
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
27606
27822
|
return;
|
|
27607
27823
|
} else {
|
|
@@ -28426,7 +28642,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28426
28642
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28427
28643
|
if (cell.table.tableProperty.canAddRow) {
|
|
28428
28644
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
28429
|
-
_cell$table$getCellIn2 = (0,
|
|
28645
|
+
_cell$table$getCellIn2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn, 2),
|
|
28430
28646
|
r = _cell$table$getCellIn2[0],
|
|
28431
28647
|
c = _cell$table$getCellIn2[1];
|
|
28432
28648
|
|
|
@@ -28474,7 +28690,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28474
28690
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28475
28691
|
if (cell.table.tableProperty.canAddRow) {
|
|
28476
28692
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
28477
|
-
_cell$table$getCellIn4 = (0,
|
|
28693
|
+
_cell$table$getCellIn4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn3, 2),
|
|
28478
28694
|
r = _cell$table$getCellIn4[0],
|
|
28479
28695
|
c = _cell$table$getCellIn4[1];
|
|
28480
28696
|
|
|
@@ -28521,7 +28737,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28521
28737
|
|
|
28522
28738
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28523
28739
|
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
28524
|
-
_cell$table$getCellIn6 = (0,
|
|
28740
|
+
_cell$table$getCellIn6 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn5, 2),
|
|
28525
28741
|
r = _cell$table$getCellIn6[0],
|
|
28526
28742
|
c = _cell$table$getCellIn6[1];
|
|
28527
28743
|
|
|
@@ -28569,7 +28785,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28569
28785
|
|
|
28570
28786
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28571
28787
|
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
28572
|
-
_cell$table$getCellIn8 = (0,
|
|
28788
|
+
_cell$table$getCellIn8 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn7, 2),
|
|
28573
28789
|
r = _cell$table$getCellIn8[0],
|
|
28574
28790
|
c = _cell$table$getCellIn8[1];
|
|
28575
28791
|
|
|
@@ -28608,7 +28824,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28608
28824
|
key: "tableDeleteRows",
|
|
28609
28825
|
value: function tableDeleteRows(aRange) {
|
|
28610
28826
|
var _TableNode$getSelectT = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode.getSelectTableRowColInfos */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
28611
|
-
_TableNode$getSelectT2 = (0,
|
|
28827
|
+
_TableNode$getSelectT2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT, 5),
|
|
28612
28828
|
table = _TableNode$getSelectT2[0],
|
|
28613
28829
|
r1 = _TableNode$getSelectT2[1],
|
|
28614
28830
|
c1 = _TableNode$getSelectT2[2],
|
|
@@ -28663,7 +28879,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28663
28879
|
key: "tableDeleteCols",
|
|
28664
28880
|
value: function tableDeleteCols(aRange) {
|
|
28665
28881
|
var _TableNode$getSelectT3 = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode.getSelectTableRowColInfos */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
28666
|
-
_TableNode$getSelectT4 = (0,
|
|
28882
|
+
_TableNode$getSelectT4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT3, 5),
|
|
28667
28883
|
table = _TableNode$getSelectT4[0],
|
|
28668
28884
|
r1 = _TableNode$getSelectT4[1],
|
|
28669
28885
|
c1 = _TableNode$getSelectT4[2],
|
|
@@ -28732,22 +28948,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28732
28948
|
}
|
|
28733
28949
|
|
|
28734
28950
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
28735
|
-
_cell1$table$getCellI2 = (0,
|
|
28951
|
+
_cell1$table$getCellI2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI, 2),
|
|
28736
28952
|
r1 = _cell1$table$getCellI2[0],
|
|
28737
28953
|
c1 = _cell1$table$getCellI2[1];
|
|
28738
28954
|
|
|
28739
28955
|
var _cell1$table$getCellI3 = cell1.table.getCellInfos(cell2),
|
|
28740
|
-
_cell1$table$getCellI4 = (0,
|
|
28956
|
+
_cell1$table$getCellI4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI3, 2),
|
|
28741
28957
|
r2 = _cell1$table$getCellI4[0],
|
|
28742
28958
|
c2 = _cell1$table$getCellI4[1];
|
|
28743
28959
|
|
|
28744
28960
|
var _cell1$table$calcRowS = cell1.table.calcRowSpanColsSpan(r1, c1, r2, c2),
|
|
28745
|
-
_cell1$table$calcRowS2 = (0,
|
|
28961
|
+
_cell1$table$calcRowS2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$calcRowS, 2),
|
|
28746
28962
|
rowSpan = _cell1$table$calcRowS2[0],
|
|
28747
28963
|
colSpan = _cell1$table$calcRowS2[1];
|
|
28748
28964
|
|
|
28749
28965
|
var _cell1$table$canMerge = cell1.table.canMergeCell(r1, c1, rowSpan, colSpan),
|
|
28750
|
-
_cell1$table$canMerge2 = (0,
|
|
28966
|
+
_cell1$table$canMerge2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$canMerge, 3),
|
|
28751
28967
|
ret = _cell1$table$canMerge2[0],
|
|
28752
28968
|
aRowSpan = _cell1$table$canMerge2[1],
|
|
28753
28969
|
aColSpan = _cell1$table$canMerge2[2];
|
|
@@ -28793,24 +29009,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28793
29009
|
var endPath = cell1.table.getNodePath();
|
|
28794
29010
|
|
|
28795
29011
|
var _hoEditorFactory$draw = hoEditorFactory.drawTree.getDrawRootsByPath(endPath),
|
|
28796
|
-
_hoEditorFactory$draw2 = (0,
|
|
29012
|
+
_hoEditorFactory$draw2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_hoEditorFactory$draw, 2),
|
|
28797
29013
|
dcell = _hoEditorFactory$draw2[0],
|
|
28798
29014
|
dRoots = _hoEditorFactory$draw2[1];
|
|
28799
29015
|
|
|
28800
29016
|
var startDline = dRoots.indexOf(cell1.table.drawTable);
|
|
28801
29017
|
|
|
28802
29018
|
var _cell1$table$getCellI5 = cell1.table.getCellInfos(cell1),
|
|
28803
|
-
_cell1$table$getCellI6 = (0,
|
|
29019
|
+
_cell1$table$getCellI6 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI5, 2),
|
|
28804
29020
|
r1 = _cell1$table$getCellI6[0],
|
|
28805
29021
|
c1 = _cell1$table$getCellI6[1];
|
|
28806
29022
|
|
|
28807
29023
|
var _cell1$table$getCellI7 = cell1.table.getCellInfos(cell2),
|
|
28808
|
-
_cell1$table$getCellI8 = (0,
|
|
29024
|
+
_cell1$table$getCellI8 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI7, 2),
|
|
28809
29025
|
r2 = _cell1$table$getCellI8[0],
|
|
28810
29026
|
c2 = _cell1$table$getCellI8[1];
|
|
28811
29027
|
|
|
28812
29028
|
var _cell1$table$calcRowS3 = cell1.table.calcRowSpanColsSpan(r1, c1, r2, c2),
|
|
28813
|
-
_cell1$table$calcRowS4 = (0,
|
|
29029
|
+
_cell1$table$calcRowS4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$calcRowS3, 2),
|
|
28814
29030
|
rowSpan = _cell1$table$calcRowS4[0],
|
|
28815
29031
|
colSpan = _cell1$table$calcRowS4[1]; // cell1.table.mergeCells(r1, c1, rowSpan, colSpan);
|
|
28816
29032
|
|
|
@@ -28988,7 +29204,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28988
29204
|
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .CellProperty */ .$W(objectValues);
|
|
28989
29205
|
cellNode.cellProperty = cellProperty;
|
|
28990
29206
|
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
28991
|
-
pcell.valignTop = pcell.calcValignTop();
|
|
29207
|
+
pcell.valignTop = pcell.calcValignTop()[0];
|
|
28992
29208
|
});
|
|
28993
29209
|
}
|
|
28994
29210
|
/**
|
|
@@ -29209,7 +29425,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29209
29425
|
var nodesMap = object.obj1;
|
|
29210
29426
|
var indexsMap = object.obj2;
|
|
29211
29427
|
|
|
29212
|
-
var _iterator = (0,
|
|
29428
|
+
var _iterator = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(indexsMap.values()),
|
|
29213
29429
|
_step;
|
|
29214
29430
|
|
|
29215
29431
|
try {
|
|
@@ -29599,14 +29815,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29599
29815
|
}, {
|
|
29600
29816
|
key: "initBlankDoc",
|
|
29601
29817
|
value: function () {
|
|
29602
|
-
var _initBlankDoc = (0,
|
|
29818
|
+
var _initBlankDoc = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee2() {
|
|
29603
29819
|
var hoEditorFactory, firstNode, strFirstPath, aPage;
|
|
29604
|
-
return (0,
|
|
29820
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
29605
29821
|
while (1) {
|
|
29606
|
-
switch (
|
|
29822
|
+
switch (_context2.prev = _context2.next) {
|
|
29607
29823
|
case 0:
|
|
29608
29824
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
29609
|
-
|
|
29825
|
+
_context2.next = 3;
|
|
29610
29826
|
return hoEditorFactory.drawPageTree.stopPageEvent();
|
|
29611
29827
|
|
|
29612
29828
|
case 3:
|
|
@@ -29616,15 +29832,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29616
29832
|
hoEditorFactory.docTree.clearDocTree();
|
|
29617
29833
|
hoEditorFactory.drawPageTree.clear();
|
|
29618
29834
|
hoEditorFactory.drawPageTree.initDoc();
|
|
29619
|
-
|
|
29835
|
+
_context2.next = 11;
|
|
29620
29836
|
return hoEditorFactory.drawTree.buildDrawTree(hoEditorFactory.subDocManger.headerDocTree[0].subDocNodes, hoEditorFactory.drawTree.headerDNodes[0]);
|
|
29621
29837
|
|
|
29622
29838
|
case 11:
|
|
29623
|
-
|
|
29839
|
+
_context2.next = 13;
|
|
29624
29840
|
return hoEditorFactory.drawTree.buildDrawTree(hoEditorFactory.subDocManger.footerDocTree[0].subDocNodes, hoEditorFactory.drawTree.footerDNodes[0]);
|
|
29625
29841
|
|
|
29626
29842
|
case 13:
|
|
29627
|
-
|
|
29843
|
+
_context2.next = 15;
|
|
29628
29844
|
return hoEditorFactory.drawTree.buildDrawTree(hoEditorFactory.docTree.mainNodes, hoEditorFactory.drawTree.mainDNodes);
|
|
29629
29845
|
|
|
29630
29846
|
case 15:
|
|
@@ -29649,10 +29865,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29649
29865
|
|
|
29650
29866
|
case 25:
|
|
29651
29867
|
case "end":
|
|
29652
|
-
return
|
|
29868
|
+
return _context2.stop();
|
|
29653
29869
|
}
|
|
29654
29870
|
}
|
|
29655
|
-
},
|
|
29871
|
+
}, _callee2, this);
|
|
29656
29872
|
}));
|
|
29657
29873
|
|
|
29658
29874
|
function initBlankDoc() {
|
|
@@ -29985,7 +30201,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29985
30201
|
|
|
29986
30202
|
hoeditorfactory.undoService.begin();
|
|
29987
30203
|
var newParaPath = paraNode.getNodePath();
|
|
29988
|
-
var separateCharNode = new
|
|
30204
|
+
var separateCharNode = new _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__/* .SeparateCharNode */ .O(this._hoEditorFactoryID, np.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSeparateChar */ .Jq.ntSeparateChar, width, color);
|
|
29989
30205
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, newParaPath, separateCharNode));
|
|
29990
30206
|
hoeditorfactory.undoService.commit();
|
|
29991
30207
|
}
|
|
@@ -30009,7 +30225,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30009
30225
|
if (np) {
|
|
30010
30226
|
var node = np.node;
|
|
30011
30227
|
|
|
30012
|
-
if (node instanceof
|
|
30228
|
+
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G) {
|
|
30013
30229
|
hoEditorFactory.undoService.begin();
|
|
30014
30230
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, "update"));
|
|
30015
30231
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -30018,7 +30234,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30018
30234
|
}
|
|
30019
30235
|
|
|
30020
30236
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
30021
|
-
var gestationNode = new
|
|
30237
|
+
var gestationNode = new _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntGestation */ .Jq.ntGestation, lastMenstruationDate, usedDate, hoEditorFactory.docTree.curStyleIndex); //插入节点
|
|
30022
30238
|
|
|
30023
30239
|
if (operType === "add") {
|
|
30024
30240
|
hoEditorFactory.undoService.begin();
|
|
@@ -30030,12 +30246,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30030
30246
|
}, {
|
|
30031
30247
|
key: "textToLabel",
|
|
30032
30248
|
value: function () {
|
|
30033
|
-
var _textToLabel = (0,
|
|
30249
|
+
var _textToLabel = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee3(range) {
|
|
30034
30250
|
var hoeditorfactory, astart, aend, sChildIndex, eChildIndex, anode, startPath, endPath, drawNode, i, text, pathArr, _pathArr, labelNode, delRange, anodeEndPath, result;
|
|
30035
30251
|
|
|
30036
|
-
return (0,
|
|
30252
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee3$(_context3) {
|
|
30037
30253
|
while (1) {
|
|
30038
|
-
switch (
|
|
30254
|
+
switch (_context3.prev = _context3.next) {
|
|
30039
30255
|
case 0:
|
|
30040
30256
|
hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30041
30257
|
astart = range.npStart.node;
|
|
@@ -30048,12 +30264,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30048
30264
|
|
|
30049
30265
|
case 8:
|
|
30050
30266
|
if (!anode) {
|
|
30051
|
-
|
|
30267
|
+
_context3.next = 34;
|
|
30052
30268
|
break;
|
|
30053
30269
|
}
|
|
30054
30270
|
|
|
30055
30271
|
if (!(anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R)) {
|
|
30056
|
-
|
|
30272
|
+
_context3.next = 32;
|
|
30057
30273
|
break;
|
|
30058
30274
|
}
|
|
30059
30275
|
|
|
@@ -30062,21 +30278,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30062
30278
|
|
|
30063
30279
|
case 12:
|
|
30064
30280
|
if (!(i < anode.drawNodes.length)) {
|
|
30065
|
-
|
|
30281
|
+
_context3.next = 19;
|
|
30066
30282
|
break;
|
|
30067
30283
|
}
|
|
30068
30284
|
|
|
30069
30285
|
if (!(sChildIndex < anode.drawNodes[i].endIndex)) {
|
|
30070
|
-
|
|
30286
|
+
_context3.next = 16;
|
|
30071
30287
|
break;
|
|
30072
30288
|
}
|
|
30073
30289
|
|
|
30074
30290
|
drawNode = anode.drawNodes[i];
|
|
30075
|
-
return
|
|
30291
|
+
return _context3.abrupt("break", 19);
|
|
30076
30292
|
|
|
30077
30293
|
case 16:
|
|
30078
30294
|
i++;
|
|
30079
|
-
|
|
30295
|
+
_context3.next = 12;
|
|
30080
30296
|
break;
|
|
30081
30297
|
|
|
30082
30298
|
case 19:
|
|
@@ -30117,9 +30333,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30117
30333
|
}
|
|
30118
30334
|
}
|
|
30119
30335
|
|
|
30120
|
-
labelNode = new
|
|
30336
|
+
labelNode = new _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__/* .LabelNode */ .P(this._hoEditorFactoryID, range.npStart.roots, anode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntLabel */ .Jq.ntLabel, text, anode.styleIndex);
|
|
30121
30337
|
delRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
30122
|
-
|
|
30338
|
+
_context3.next = 28;
|
|
30123
30339
|
return this.deleteRange(delRange, true);
|
|
30124
30340
|
|
|
30125
30341
|
case 28:
|
|
@@ -30133,7 +30349,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30133
30349
|
|
|
30134
30350
|
if (anode) {
|
|
30135
30351
|
anodeEndPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
30136
|
-
result =
|
|
30352
|
+
result = _NodePosition__WEBPACK_IMPORTED_MODULE_83__/* .NodePosition.treePathCompare */ .F.treePathCompare(anodeEndPath, range.startPath);
|
|
30137
30353
|
|
|
30138
30354
|
if (result <= 0) {
|
|
30139
30355
|
anode = null;
|
|
@@ -30142,19 +30358,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30142
30358
|
|
|
30143
30359
|
case 34:
|
|
30144
30360
|
if (anode && astart.previousLeaf() && anode !== astart.previousLeaf()) {
|
|
30145
|
-
|
|
30361
|
+
_context3.next = 8;
|
|
30146
30362
|
break;
|
|
30147
30363
|
}
|
|
30148
30364
|
|
|
30149
30365
|
case 35:
|
|
30150
30366
|
case "end":
|
|
30151
|
-
return
|
|
30367
|
+
return _context3.stop();
|
|
30152
30368
|
}
|
|
30153
30369
|
}
|
|
30154
|
-
},
|
|
30370
|
+
}, _callee3, this);
|
|
30155
30371
|
}));
|
|
30156
30372
|
|
|
30157
|
-
function textToLabel(
|
|
30373
|
+
function textToLabel(_x2) {
|
|
30158
30374
|
return _textToLabel.apply(this, arguments);
|
|
30159
30375
|
}
|
|
30160
30376
|
|
|
@@ -30198,7 +30414,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30198
30414
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30199
30415
|
var startPath = domRange.startPath;
|
|
30200
30416
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
30201
|
-
var signNode = new
|
|
30417
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar); //插入该表达式节点
|
|
30202
30418
|
|
|
30203
30419
|
hoEditorFactory.undoService.begin();
|
|
30204
30420
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -30228,7 +30444,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30228
30444
|
// }
|
|
30229
30445
|
// }
|
|
30230
30446
|
|
|
30231
|
-
var signNode = new
|
|
30447
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 1, type, name, 0, "医师签名", signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition); //插入该表达式节点
|
|
30232
30448
|
|
|
30233
30449
|
hoEditorFactory.undoService.begin();
|
|
30234
30450
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -30292,7 +30508,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30292
30508
|
}
|
|
30293
30509
|
}
|
|
30294
30510
|
|
|
30295
|
-
var newSignNode = new
|
|
30511
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition); //插入该表达式节点
|
|
30296
30512
|
|
|
30297
30513
|
hoEditorFactory.undoService.begin();
|
|
30298
30514
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -30422,7 +30638,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30422
30638
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30423
30639
|
|
|
30424
30640
|
var _cell$table$canMergeC = cell.table.canMergeCell(r, c, rowSpan, colSpan),
|
|
30425
|
-
_cell$table$canMergeC2 = (0,
|
|
30641
|
+
_cell$table$canMergeC2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$canMergeC, 3),
|
|
30426
30642
|
ret = _cell$table$canMergeC2[0],
|
|
30427
30643
|
aRowSpan = _cell$table$canMergeC2[1],
|
|
30428
30644
|
aColSpan = _cell$table$canMergeC2[2];
|
|
@@ -49482,15 +49698,17 @@ var RowInfos = /*#__PURE__*/function () {
|
|
|
49482
49698
|
|
|
49483
49699
|
var r = this._table.rowInfos.indexOf(this);
|
|
49484
49700
|
|
|
49485
|
-
|
|
49486
|
-
var
|
|
49487
|
-
|
|
49488
|
-
|
|
49489
|
-
|
|
49490
|
-
|
|
49701
|
+
if (r >= 0) {
|
|
49702
|
+
for (var i = 0; i < this._table.colCount; i++) {
|
|
49703
|
+
var _this$_table$getMainC = this._table.getMainCell(r, i),
|
|
49704
|
+
_this$_table$getMainC2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this$_table$getMainC, 3),
|
|
49705
|
+
mainCell = _this$_table$getMainC2[0],
|
|
49706
|
+
mr = _this$_table$getMainC2[1],
|
|
49707
|
+
mc = _this$_table$getMainC2[2];
|
|
49491
49708
|
|
|
49492
|
-
|
|
49493
|
-
|
|
49709
|
+
if (mainCell.cellProperty.align !== _TableProperty__WEBPACK_IMPORTED_MODULE_30__/* .VAlign.vatop */ .TR.vatop) {
|
|
49710
|
+
mainCell.drawCell.needUpdate = true;
|
|
49711
|
+
}
|
|
49494
49712
|
}
|
|
49495
49713
|
}
|
|
49496
49714
|
}
|
|
@@ -55602,6 +55820,8 @@ var UnitConvert = __webpack_require__(55479);
|
|
|
55602
55820
|
var BaseNode = __webpack_require__(92178);
|
|
55603
55821
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawDownListNode.ts
|
|
55604
55822
|
var DrawDownListNode = __webpack_require__(19459);
|
|
55823
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
55824
|
+
var TextInputFieldNode = __webpack_require__(69802);
|
|
55605
55825
|
;// CONCATENATED MODULE: ./src/editor/draw/DrawLine.ts
|
|
55606
55826
|
|
|
55607
55827
|
|
|
@@ -55623,6 +55843,7 @@ var DrawDownListNode = __webpack_require__(19459);
|
|
|
55623
55843
|
|
|
55624
55844
|
|
|
55625
55845
|
|
|
55846
|
+
|
|
55626
55847
|
|
|
55627
55848
|
|
|
55628
55849
|
var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
@@ -56237,6 +56458,10 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
56237
56458
|
break;
|
|
56238
56459
|
}
|
|
56239
56460
|
}
|
|
56461
|
+
|
|
56462
|
+
if (Paragraph/* Align.alright */.xM.alright && this.paragraphNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && this.paragraphNode.parentNode.alignWithBlocked) {
|
|
56463
|
+
usedWidth = 0;
|
|
56464
|
+
}
|
|
56240
56465
|
/**
|
|
56241
56466
|
* 返回字间距
|
|
56242
56467
|
* @param index 字序号
|
|
@@ -63066,9 +63291,12 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63066
63291
|
}
|
|
63067
63292
|
}, {
|
|
63068
63293
|
key: "afterHeightChanged",
|
|
63069
|
-
value: function afterHeightChanged(
|
|
63070
|
-
if (this._cell.cellProperty.align
|
|
63071
|
-
var
|
|
63294
|
+
value: function afterHeightChanged() {
|
|
63295
|
+
if (this._cell.cellProperty.align == TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
63296
|
+
var _this$calcValignTop = this.calcValignTop(),
|
|
63297
|
+
_this$calcValignTop2 = (0,slicedToArray/* default */.Z)(_this$calcValignTop, 2),
|
|
63298
|
+
newValignTop = _this$calcValignTop2[0],
|
|
63299
|
+
topArr = _this$calcValignTop2[1];
|
|
63072
63300
|
|
|
63073
63301
|
if (newValignTop != this._valignTop) {
|
|
63074
63302
|
var adjustValignTop = newValignTop - this._valignTop;
|
|
@@ -63080,6 +63308,56 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63080
63308
|
}
|
|
63081
63309
|
}
|
|
63082
63310
|
}
|
|
63311
|
+
} else if (this._cell.cellProperty.align == TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63312
|
+
var _this$calcValignTop3 = this.calcValignTop(),
|
|
63313
|
+
_this$calcValignTop4 = (0,slicedToArray/* default */.Z)(_this$calcValignTop3, 2),
|
|
63314
|
+
_newValignTop = _this$calcValignTop4[0],
|
|
63315
|
+
rowHeightArr = _this$calcValignTop4[1];
|
|
63316
|
+
|
|
63317
|
+
if (rowHeightArr) {
|
|
63318
|
+
// const getPlace=(dTop:number,dPageCellIndex: number,dHeight:number):[number,number]=>{
|
|
63319
|
+
// let index=0;
|
|
63320
|
+
// let newTop=dTop;
|
|
63321
|
+
// let rowHeight=0;
|
|
63322
|
+
// for (let i=0;i<topArr.length;i++ ){
|
|
63323
|
+
// if (dTop+dHeight<topArr[i]){
|
|
63324
|
+
// index=i;
|
|
63325
|
+
// break;
|
|
63326
|
+
// }
|
|
63327
|
+
// else {
|
|
63328
|
+
// newTop-=topArr[i]
|
|
63329
|
+
// }
|
|
63330
|
+
// }
|
|
63331
|
+
// return [index,newTop]
|
|
63332
|
+
// }
|
|
63333
|
+
if (_newValignTop != this._valignTop) {
|
|
63334
|
+
this._valignTop = _newValignTop;
|
|
63335
|
+
var childCount = this._cell.drawCell.drawLines.length;
|
|
63336
|
+
var pageCellIndex = this._cell.drawCell.drawPageCells.length - 1;
|
|
63337
|
+
var dPageCell = this._cell.drawCell.drawPageCells[pageCellIndex];
|
|
63338
|
+
var cellrestHeight = rowHeightArr[pageCellIndex];
|
|
63339
|
+
|
|
63340
|
+
for (var _i = childCount - 1; _i >= 0; _i--) {
|
|
63341
|
+
var dObj = this._cell.drawCell.drawLines[_i];
|
|
63342
|
+
|
|
63343
|
+
if (dObj instanceof DrawLine/* DrawLine */.a || dObj instanceof DrawPageTable/* DrawPageTable */.ox) {
|
|
63344
|
+
while (pageCellIndex > 0 && cellrestHeight < dObj.dHeight) {
|
|
63345
|
+
pageCellIndex -= 1;
|
|
63346
|
+
dPageCell = this._cell.drawCell.drawPageCells[pageCellIndex];
|
|
63347
|
+
cellrestHeight = rowHeightArr[pageCellIndex];
|
|
63348
|
+
}
|
|
63349
|
+
|
|
63350
|
+
if (!dPageCell.contains(dObj) && dObj.parent && dObj.parent.contains(dObj)) {
|
|
63351
|
+
dObj.parent.removeChild(dObj);
|
|
63352
|
+
}
|
|
63353
|
+
|
|
63354
|
+
dObj.y = cellrestHeight - dObj.dHeight - dObj.paragraphNode.combineParagraph.lineSpace;
|
|
63355
|
+
cellrestHeight = dObj.y;
|
|
63356
|
+
dPageCell.addChild(dObj); // const [pageCellIndex,newTop]=getPlace(dTop,index,dObj.dHeight);
|
|
63357
|
+
}
|
|
63358
|
+
}
|
|
63359
|
+
}
|
|
63360
|
+
}
|
|
63083
63361
|
}
|
|
63084
63362
|
}
|
|
63085
63363
|
}, {
|
|
@@ -63101,9 +63379,12 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63101
63379
|
value: function calcValignTop() {
|
|
63102
63380
|
var index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
63103
63381
|
var innerTop = 0;
|
|
63382
|
+
var toparr = new Array();
|
|
63383
|
+
var aHeight = 0;
|
|
63384
|
+
var hoeditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID);
|
|
63104
63385
|
|
|
63105
63386
|
if (index == 0) {
|
|
63106
|
-
innerTop =
|
|
63387
|
+
innerTop = hoeditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
63107
63388
|
}
|
|
63108
63389
|
|
|
63109
63390
|
var valignTop = innerTop;
|
|
@@ -63111,34 +63392,63 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63111
63392
|
if (this._cell.cellProperty.align === TableProperty/* VAlign.vatop */.TR.vatop) {
|
|
63112
63393
|
valignTop = innerTop;
|
|
63113
63394
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
63114
|
-
var
|
|
63395
|
+
var _this$calcCellHeight = this.calcCellHeight();
|
|
63396
|
+
|
|
63397
|
+
var _this$calcCellHeight2 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight, 2);
|
|
63398
|
+
|
|
63399
|
+
aHeight = _this$calcCellHeight2[0];
|
|
63400
|
+
toparr = _this$calcCellHeight2[1];
|
|
63115
63401
|
if (aHeight > this._cell.drawCell.docHeight) valignTop = (aHeight - this._cell.drawCell.docHeight) / 2;
|
|
63116
63402
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63117
|
-
var
|
|
63403
|
+
var _this$calcCellHeight3 = this.calcCellHeight();
|
|
63404
|
+
|
|
63405
|
+
var _this$calcCellHeight4 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight3, 2);
|
|
63406
|
+
|
|
63407
|
+
aHeight = _this$calcCellHeight4[0];
|
|
63408
|
+
toparr = _this$calcCellHeight4[1];
|
|
63409
|
+
var innerBottom = hoeditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
63410
|
+
var restRowHeight = 0;
|
|
63118
63411
|
|
|
63119
|
-
var
|
|
63120
|
-
|
|
63412
|
+
for (var r = index; r < toparr.length; r++) {
|
|
63413
|
+
restRowHeight += toparr[r];
|
|
63414
|
+
}
|
|
63415
|
+
|
|
63416
|
+
if (aHeight > this._cell.drawCell.docHeight && this._cell.drawCell.docHeight < restRowHeight) {
|
|
63417
|
+
valignTop = restRowHeight - this._cell.drawCell.docHeight - innerBottom;
|
|
63418
|
+
}
|
|
63121
63419
|
}
|
|
63122
63420
|
|
|
63123
|
-
return valignTop;
|
|
63421
|
+
return [valignTop, toparr];
|
|
63124
63422
|
}
|
|
63125
63423
|
}, {
|
|
63126
63424
|
key: "update",
|
|
63127
63425
|
value: function update(prevDrawArea, dlines, startIndex, dTop, restHeight) {
|
|
63128
|
-
var valignTop = dTop;
|
|
63426
|
+
var valignTop = dTop;
|
|
63427
|
+
|
|
63428
|
+
if (this._cell.cellProperty.align == TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63429
|
+
valignTop = this.calcValignTop()[0];
|
|
63430
|
+
this._valignTop = valignTop;
|
|
63431
|
+
} // if (startIndex === 0) {
|
|
63129
63432
|
// valignTop=this.calcValignTop();
|
|
63130
63433
|
// this._valignTop=valignTop;
|
|
63131
63434
|
// }
|
|
63132
63435
|
|
|
63436
|
+
|
|
63133
63437
|
this._startDline = startIndex;
|
|
63134
63438
|
|
|
63135
63439
|
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines, startIndex, valignTop, restHeight);
|
|
63136
63440
|
|
|
63137
|
-
this._docHeight
|
|
63441
|
+
this._docHeight = Math.max(0, this._docHeight - valignTop);
|
|
63138
63442
|
this.updateDHeight();
|
|
63139
63443
|
return ret; // this.updateTouchArea(this._dHeight);
|
|
63140
63444
|
// this.paintCellBackground(this._dHeight);
|
|
63141
63445
|
}
|
|
63446
|
+
/**
|
|
63447
|
+
*
|
|
63448
|
+
* @returns
|
|
63449
|
+
* 返回单元格在所有分页上的总高度,以及每页高度数组
|
|
63450
|
+
*/
|
|
63451
|
+
|
|
63142
63452
|
}, {
|
|
63143
63453
|
key: "calcCellHeight",
|
|
63144
63454
|
value: function calcCellHeight() {
|
|
@@ -63148,16 +63458,55 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63148
63458
|
c = _this$_cell$table$get6[1];
|
|
63149
63459
|
|
|
63150
63460
|
var ret = 0;
|
|
63461
|
+
var hoeditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID);
|
|
63462
|
+
var dTopArr = new Array();
|
|
63463
|
+
|
|
63464
|
+
if (this._cell.cellProperty.align == TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63465
|
+
ret = 0;
|
|
63466
|
+
|
|
63467
|
+
for (var r = row, count = this._cell.rowSpan + row - 1; r <= count; r++) {
|
|
63468
|
+
var rowInfos = this._cell.table.rowInfos[r];
|
|
63469
|
+
|
|
63470
|
+
if (rowInfos) {
|
|
63471
|
+
ret += rowInfos.rowHeight;
|
|
63472
|
+
}
|
|
63473
|
+
}
|
|
63474
|
+
|
|
63475
|
+
var icount = this._cell.table.drawTable.drawPageTables.length;
|
|
63476
|
+
var index = 0;
|
|
63477
|
+
var pageHeight = 0;
|
|
63478
|
+
|
|
63479
|
+
for (var i = 0; i < icount; i++) {
|
|
63480
|
+
dTopArr[index] = 0;
|
|
63481
|
+
|
|
63482
|
+
for (var _r = row, _count = this._cell.rowSpan + row - 1; _r <= _count; _r++) {
|
|
63483
|
+
var dTable = this._cell.table.drawTable.drawPageTables[i];
|
|
63484
|
+
|
|
63485
|
+
if (dTable.parent && dTable.parent.contains(dTable)) {
|
|
63486
|
+
var _rowInfos = dTable.partRowHeights.get(_r);
|
|
63151
63487
|
|
|
63152
|
-
|
|
63153
|
-
|
|
63488
|
+
if (_rowInfos) {
|
|
63489
|
+
if (pageHeight < ret) {
|
|
63490
|
+
pageHeight += _rowInfos.rowHeight;
|
|
63491
|
+
dTopArr[index] += _rowInfos.rowHeight;
|
|
63492
|
+
}
|
|
63493
|
+
}
|
|
63494
|
+
}
|
|
63495
|
+
|
|
63496
|
+
index += 1;
|
|
63497
|
+
}
|
|
63498
|
+
}
|
|
63499
|
+
} else if (this._cell.cellProperty.align == TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
63500
|
+
for (var _r2 = row, _count2 = this._cell.rowSpan + row - 1; _r2 <= _count2; _r2++) {
|
|
63501
|
+
var _rowInfos2 = this._drawPageTable.partRowHeights.get(_r2);
|
|
63154
63502
|
|
|
63155
|
-
|
|
63156
|
-
|
|
63503
|
+
if (_rowInfos2) {
|
|
63504
|
+
ret += _rowInfos2.rowHeight;
|
|
63505
|
+
}
|
|
63157
63506
|
}
|
|
63158
63507
|
}
|
|
63159
63508
|
|
|
63160
|
-
return ret;
|
|
63509
|
+
return [ret, dTopArr];
|
|
63161
63510
|
}
|
|
63162
63511
|
}]);
|
|
63163
63512
|
|
|
@@ -63808,7 +64157,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63808
64157
|
if (partCell) {
|
|
63809
64158
|
var oldHeight = partCell.dHeight;
|
|
63810
64159
|
partCell.dHeight = newHeight;
|
|
63811
|
-
partCell.afterHeightChanged(
|
|
64160
|
+
partCell.afterHeightChanged();
|
|
63812
64161
|
|
|
63813
64162
|
if (partCell.cell.rowSpan > 1) {
|
|
63814
64163
|
var index = partCell.cell.drawCell.drawPageCells.indexOf(partCell) - 1;
|
|
@@ -66678,6 +67027,7 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66678
67027
|
key: "updateRowHeight",
|
|
66679
67028
|
value: function updateRowHeight(r) {
|
|
66680
67029
|
var dHeight = _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .dT;
|
|
67030
|
+
var bottonAlignCell = new Array();
|
|
66681
67031
|
var rowPorpertyHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(this._table.rowInfos[r].rowProperty.rowHeight * 10, false);
|
|
66682
67032
|
|
|
66683
67033
|
if (this._table.rowInfos[r].rowProperty.isSpecifyHeight) {
|
|
@@ -66692,6 +67042,10 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66692
67042
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
66693
67043
|
var aCell = this._table.rows[r][c];
|
|
66694
67044
|
|
|
67045
|
+
if (aCell && aCell.cellProperty.align == _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_11__/* .VAlign.vabottom */ .TR.vabottom) {
|
|
67046
|
+
bottonAlignCell.push(aCell);
|
|
67047
|
+
}
|
|
67048
|
+
|
|
66695
67049
|
if (aCell && aCell.rowSpan === 1 && aCell.drawCell.dHeight > dHeight) {
|
|
66696
67050
|
dHeight = aCell.drawCell.dHeight; // let nextValue = aCell.drawCell.drawPageCells.values().next();
|
|
66697
67051
|
// while (!nextValue.done) {
|
|
@@ -66729,6 +67083,10 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66729
67083
|
if (dHeight > rowPorpertyHeight) this._table.rowInfos[r].rowHeight = rowPorpertyHeight;else this._table.rowInfos[r].rowHeight = dHeight;
|
|
66730
67084
|
} else this._table.rowInfos[r].rowHeight = dHeight;
|
|
66731
67085
|
}
|
|
67086
|
+
|
|
67087
|
+
for (var _c = 0; _c < bottonAlignCell.length; _c++) {
|
|
67088
|
+
bottonAlignCell[_c].drawCell.needUpdate = true;
|
|
67089
|
+
}
|
|
66732
67090
|
} // for (let c = 0; c < this._table.colCount; c++) {
|
|
66733
67091
|
// const aCell = this._table.rows[r][c];
|
|
66734
67092
|
// if (aCell) {
|
|
@@ -66860,7 +67218,24 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66860
67218
|
|
|
66861
67219
|
this.finishUpdate();
|
|
66862
67220
|
}
|
|
66863
|
-
}
|
|
67221
|
+
} // for (let i=0;i<this._drawPageTables.length-1;i++){
|
|
67222
|
+
// let c=0;
|
|
67223
|
+
// while (c<this._table.colCount){
|
|
67224
|
+
// const [cell,mr,mc]= this._table.getMainCell(dPageTable.endRow,c);
|
|
67225
|
+
// let inc=1;
|
|
67226
|
+
// if (cell){
|
|
67227
|
+
// if (cell.cellProperty.align==VAlign.vabottom){
|
|
67228
|
+
// const pageCell= cell.drawCell.getDrawPageCell(dPageTable);
|
|
67229
|
+
// if (pageCell){
|
|
67230
|
+
// pageCell.afterHeightChanged()
|
|
67231
|
+
// }
|
|
67232
|
+
// inc=cell.rowSpan;
|
|
67233
|
+
// }
|
|
67234
|
+
// c+=inc;
|
|
67235
|
+
// }
|
|
67236
|
+
// }
|
|
67237
|
+
// }
|
|
67238
|
+
|
|
66864
67239
|
|
|
66865
67240
|
rowTop = dTop + dPageTable.dHeight;
|
|
66866
67241
|
|
|
@@ -70154,6 +70529,8 @@ var TableFormula = __webpack_require__(72330);
|
|
|
70154
70529
|
var DrawConfig = __webpack_require__(15654);
|
|
70155
70530
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawSignNode.ts
|
|
70156
70531
|
var DrawSignNode = __webpack_require__(23127);
|
|
70532
|
+
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
70533
|
+
var TableProperty = __webpack_require__(74004);
|
|
70157
70534
|
;// CONCATENATED MODULE: ./src/editor/draw/drawTree/DrawTree.ts
|
|
70158
70535
|
|
|
70159
70536
|
|
|
@@ -70216,6 +70593,7 @@ var DrawSignNode = __webpack_require__(23127);
|
|
|
70216
70593
|
|
|
70217
70594
|
|
|
70218
70595
|
|
|
70596
|
+
|
|
70219
70597
|
|
|
70220
70598
|
|
|
70221
70599
|
//当前的显示状态,psDesign为设计状态,psEdit为正常编辑状态 psPreview为打印预览态态 psPrint 正在打印状态, psReview审阅状态
|
|
@@ -72609,20 +72987,38 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72609
72987
|
|
|
72610
72988
|
var _index2 = dPlace.cell.drawCell.drawPageCells.indexOf(dPlace);
|
|
72611
72989
|
|
|
72612
|
-
|
|
72613
|
-
|
|
72990
|
+
if (dPlace.cell.cellProperty.align != TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
72991
|
+
while (_index2 > 0) {
|
|
72992
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index2 - 1];
|
|
72614
72993
|
|
|
72615
|
-
|
|
72616
|
-
|
|
72994
|
+
if (!aPrevPlace.isEmpty()) {
|
|
72995
|
+
var rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
72617
72996
|
|
|
72618
|
-
|
|
72619
|
-
|
|
72997
|
+
if (rootArea) {
|
|
72998
|
+
aPage = this._drawPages[rootArea.index];
|
|
72999
|
+
}
|
|
73000
|
+
|
|
73001
|
+
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
72620
73002
|
}
|
|
72621
73003
|
|
|
72622
|
-
|
|
73004
|
+
_index2 -= 1;
|
|
72623
73005
|
}
|
|
73006
|
+
} else {
|
|
73007
|
+
while (_index2 < dPlace.cell.drawCell.drawPageCells.length - 1) {
|
|
73008
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index2 + 1];
|
|
72624
73009
|
|
|
72625
|
-
|
|
73010
|
+
if (!aPrevPlace.isEmpty()) {
|
|
73011
|
+
var _rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
73012
|
+
|
|
73013
|
+
if (_rootArea) {
|
|
73014
|
+
aPage = this._drawPages[_rootArea.index];
|
|
73015
|
+
}
|
|
73016
|
+
|
|
73017
|
+
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
73018
|
+
}
|
|
73019
|
+
|
|
73020
|
+
_index2 += 1;
|
|
73021
|
+
}
|
|
72626
73022
|
}
|
|
72627
73023
|
} // if (dPlace instanceof DrawCell) {
|
|
72628
73024
|
// dItems = (dPlace as DrawCell).drawLxines;
|
|
@@ -212793,13 +213189,13 @@ var map = {
|
|
|
212793
213189
|
"./qrCode/QrCode.vue": 7049,
|
|
212794
213190
|
"./radioCheckBox/RadioCheckbox.vue": 29385,
|
|
212795
213191
|
"./selectDialog/SelectDialog.vue": 32949,
|
|
212796
|
-
"./sign/Sign.vue":
|
|
212797
|
-
"./table/TableCellPoper.vue":
|
|
213192
|
+
"./sign/Sign.vue": 87043,
|
|
213193
|
+
"./table/TableCellPoper.vue": 9715,
|
|
212798
213194
|
"./table/TableCellProperty.vue": 84650,
|
|
212799
|
-
"./table/TableColProperty.vue":
|
|
213195
|
+
"./table/TableColProperty.vue": 26853,
|
|
212800
213196
|
"./table/TableFormula.vue": 85592,
|
|
212801
213197
|
"./table/TableProperty.vue": 1527,
|
|
212802
|
-
"./table/TableRowProperty.vue":
|
|
213198
|
+
"./table/TableRowProperty.vue": 1429,
|
|
212803
213199
|
"./textDialog/TextDialog.vue": 87847,
|
|
212804
213200
|
"./upload/CanvasImageDialog.vue": 54485,
|
|
212805
213201
|
"./upload/UploadImageDialog.vue": 17621
|
|
@@ -214341,9 +214737,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214341
214737
|
var es_number_constructor = __webpack_require__(9653);
|
|
214342
214738
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214343
214739
|
var es_json_stringify = __webpack_require__(38862);
|
|
214344
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
214345
|
-
var
|
|
214346
|
-
var
|
|
214740
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=6a4e96d0&
|
|
214741
|
+
var HoDocvue_type_template_id_6a4e96d0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
214742
|
+
var HoDocvue_type_template_id_6a4e96d0_staticRenderFns = []
|
|
214347
214743
|
|
|
214348
214744
|
|
|
214349
214745
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -216280,7 +216676,7 @@ var PoperMark = __webpack_require__(39959);
|
|
|
216280
216676
|
|
|
216281
216677
|
|
|
216282
216678
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
216283
|
-
var TableCellPoper = __webpack_require__(
|
|
216679
|
+
var TableCellPoper = __webpack_require__(9715);
|
|
216284
216680
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
216285
216681
|
var DateTimeNode = __webpack_require__(40253);
|
|
216286
216682
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -217984,7 +218380,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
217984
218380
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217985
218381
|
var ParagraphNode = __webpack_require__(13880);
|
|
217986
218382
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217987
|
-
/* harmony default export */ var version = ('2.0.
|
|
218383
|
+
/* harmony default export */ var version = ('2.0.99');
|
|
217988
218384
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217989
218385
|
var PoperTipText = __webpack_require__(97824);
|
|
217990
218386
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218259,7 +218655,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218259
218655
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
218260
218656
|
}
|
|
218261
218657
|
},
|
|
218262
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
218658
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue', 'setControlProperty'],
|
|
218263
218659
|
created: function created() {
|
|
218264
218660
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218265
218661
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -218469,6 +218865,10 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218469
218865
|
};
|
|
218470
218866
|
|
|
218471
218867
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218868
|
+
// if(hoEditorFactory.drawTree.paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
|
|
218869
|
+
// this.setControlProperty('sign', 'update', '');
|
|
218870
|
+
// return;
|
|
218871
|
+
// }
|
|
218472
218872
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
218473
218873
|
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
|
|
218474
218874
|
this.$emit('dblNodeClick', {
|
|
@@ -218763,8 +219163,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218763
219163
|
|
|
218764
219164
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218765
219165
|
components_HoDocvue_type_script_lang_js_,
|
|
218766
|
-
|
|
218767
|
-
|
|
219166
|
+
HoDocvue_type_template_id_6a4e96d0_render,
|
|
219167
|
+
HoDocvue_type_template_id_6a4e96d0_staticRenderFns,
|
|
218768
219168
|
false,
|
|
218769
219169
|
null,
|
|
218770
219170
|
null,
|
|
@@ -218817,6 +219217,7 @@ var TableNode = __webpack_require__(59530);
|
|
|
218817
219217
|
|
|
218818
219218
|
|
|
218819
219219
|
|
|
219220
|
+
|
|
218820
219221
|
|
|
218821
219222
|
|
|
218822
219223
|
var NeedDrawPageInfo = /*#__PURE__*/function () {
|
|
@@ -219021,17 +219422,6 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219021
219422
|
return [ret, isNew];
|
|
219022
219423
|
} //拆分成页
|
|
219023
219424
|
|
|
219024
|
-
}, {
|
|
219025
|
-
key: "clearAfterDTop",
|
|
219026
|
-
value: function clearAfterDTop(dDrawArea, dTop) {
|
|
219027
|
-
var numChildren = dDrawArea.children.length - 1;
|
|
219028
|
-
|
|
219029
|
-
for (var i = numChildren; i >= 0; i--) {
|
|
219030
|
-
if (dDrawArea.children[i].y > dTop) {
|
|
219031
|
-
dDrawArea.removeChildAt(i);
|
|
219032
|
-
}
|
|
219033
|
-
}
|
|
219034
|
-
}
|
|
219035
219425
|
}, {
|
|
219036
219426
|
key: "paint",
|
|
219037
219427
|
value: function paint(aDrawArea, dRoots, startLine, endLine) {
|
|
@@ -219104,7 +219494,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219104
219494
|
}
|
|
219105
219495
|
|
|
219106
219496
|
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
219107
|
-
this.
|
|
219497
|
+
this.clearAreas([mainArea]);
|
|
219108
219498
|
}
|
|
219109
219499
|
|
|
219110
219500
|
var nextLine = startLine;
|
|
@@ -219611,7 +220001,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219611
220001
|
}
|
|
219612
220002
|
|
|
219613
220003
|
var startPaintWithUpdate = this._startNeedUpdatePage === -1 && this._endNeedUpdatePage === -1;
|
|
219614
|
-
var imaxViewPage = Math.max.apply(Math, (0,toConsumableArray/* default */.Z)(hoEditorFactory.drawTree.inViewPages));
|
|
220004
|
+
var imaxViewPage = Math.max.apply(Math, (0,toConsumableArray/* default */.Z)(hoEditorFactory.drawTree.inViewPages).concat([this._drawMainDocs.length - 1]));
|
|
219615
220005
|
|
|
219616
220006
|
try {
|
|
219617
220007
|
if (this._oldPageCount === 0) {
|
|
@@ -220446,8 +220836,6 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
|
220446
220836
|
var es_string_ends_with = __webpack_require__(27852);
|
|
220447
220837
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
220448
220838
|
var es_object_assign = __webpack_require__(19601);
|
|
220449
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
220450
|
-
var es_number_to_fixed = __webpack_require__(56977);
|
|
220451
220839
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
220452
220840
|
var jquery = __webpack_require__(19755);
|
|
220453
220841
|
var jquery_default = /*#__PURE__*/__webpack_require__.n(jquery);
|
|
@@ -220494,7 +220882,6 @@ var Paragraph = __webpack_require__(28275);
|
|
|
220494
220882
|
|
|
220495
220883
|
|
|
220496
220884
|
|
|
220497
|
-
|
|
220498
220885
|
|
|
220499
220886
|
|
|
220500
220887
|
var HTMLconverter2 = /*#__PURE__*/function () {
|
|
@@ -220900,6 +221287,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220900
221287
|
}, {
|
|
220901
221288
|
key: "SetTableProperty",
|
|
220902
221289
|
value: function SetTableProperty(jnode, tableNode) {
|
|
221290
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220903
221291
|
var tconstents = jquery_default()(jnode).children();
|
|
220904
221292
|
var rowInfos = new Array();
|
|
220905
221293
|
var colInfos = new Array();
|
|
@@ -220911,22 +221299,25 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220911
221299
|
|
|
220912
221300
|
for (var j = 0; j < trs.length; j++) {
|
|
220913
221301
|
var rowProperty = new TableProperty/* RowProperty */.Nr("");
|
|
221302
|
+
rowProperty.isSpecifyHeight = true;
|
|
220914
221303
|
var rowInfo = new TableNode/* RowInfos */.ii(tableNode, rowProperty);
|
|
220915
|
-
var height = jquery_default()(trs[
|
|
221304
|
+
var height = jquery_default()(trs[j]).css("height");
|
|
220916
221305
|
|
|
220917
221306
|
if (height && height != "0px") {
|
|
220918
221307
|
var heightNum = 0;
|
|
220919
221308
|
|
|
220920
221309
|
if (height.indexOf("pt") > 0) {
|
|
220921
221310
|
heightNum = parseFloat(height.substring(0, height.indexOf("pt")));
|
|
221311
|
+
heightNum = hoEditorFactory.unitConvert.fontPt2Pix(heightNum);
|
|
220922
221312
|
}
|
|
220923
221313
|
|
|
220924
221314
|
if (height.indexOf("px") > 0) {
|
|
220925
221315
|
heightNum = parseFloat(height.substring(0, height.indexOf("px")));
|
|
220926
|
-
}
|
|
221316
|
+
} //heightNum = parseFloat(((heightNum * 96) / 72).toFixed(2));
|
|
221317
|
+
|
|
220927
221318
|
|
|
220928
|
-
heightNum = parseFloat((heightNum * 96 / 72).toFixed(2));
|
|
220929
221319
|
rowInfo.rowHeight = heightNum;
|
|
221320
|
+
rowInfo.rowProperty.rowHeight = hoEditorFactory.unitConvert.pxConversionMm(heightNum, false) * 0.1;
|
|
220930
221321
|
}
|
|
220931
221322
|
|
|
220932
221323
|
rowInfos.push(rowInfo);
|
|
@@ -220947,17 +221338,18 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220947
221338
|
var widthNum = 0;
|
|
220948
221339
|
|
|
220949
221340
|
if (width.indexOf("pt") > 0) {
|
|
220950
|
-
widthNum = parseFloat(width.substring(0, width.indexOf("pt")));
|
|
221341
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("pt"))); //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
221342
|
+
|
|
221343
|
+
widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
220951
221344
|
}
|
|
220952
221345
|
|
|
220953
221346
|
if (width.indexOf("px") > 0) {
|
|
220954
221347
|
widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
220955
|
-
}
|
|
220956
|
-
|
|
220957
|
-
widthNum = parseFloat((widthNum * 96 / 72).toFixed(2)); // if (widthNum == 0) {
|
|
221348
|
+
} // if (widthNum == 0) {
|
|
220958
221349
|
// widthNum = 20;
|
|
220959
221350
|
// }
|
|
220960
221351
|
|
|
221352
|
+
|
|
220961
221353
|
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
220962
221354
|
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
220963
221355
|
colInfos.push(colInfo);
|
|
@@ -221069,9 +221461,9 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221069
221461
|
this.copyCellNode(cell, lntable, _i4, _j2);
|
|
221070
221462
|
} else lntable.rows[_i4][_j2] = undefined;
|
|
221071
221463
|
}
|
|
221072
|
-
}
|
|
221464
|
+
} //lntable.node2DrawNode();
|
|
221465
|
+
|
|
221073
221466
|
|
|
221074
|
-
lntable.node2DrawNode();
|
|
221075
221467
|
return [lntable];
|
|
221076
221468
|
}
|
|
221077
221469
|
}
|
|
@@ -221248,6 +221640,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221248
221640
|
}();
|
|
221249
221641
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
221250
221642
|
var esm_typeof = __webpack_require__(36768);
|
|
221643
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
221644
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
221251
221645
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
221252
221646
|
var es_array_find = __webpack_require__(69826);
|
|
221253
221647
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace-all.js
|
|
@@ -227279,8 +227673,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227279
227673
|
}, {
|
|
227280
227674
|
key: "getDocXml",
|
|
227281
227675
|
value: function getDocXml(beauty, isValidStyle, clearSign) {
|
|
227282
|
-
var
|
|
227283
|
-
|
|
227676
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227677
|
+
|
|
227678
|
+
if (beauty && isValidStyle) {
|
|
227679
|
+
hoEditorFactory.contentIsModify.isModify = false;
|
|
227680
|
+
var stack = hoEditorFactory.undoService.stack;
|
|
227681
|
+
|
|
227682
|
+
if (stack.length > 0) {
|
|
227683
|
+
var lastUnRedo = stack[stack.length - 1];
|
|
227684
|
+
var undoUnits = lastUnRedo.undoUnits;
|
|
227685
|
+
var undoUnit = undoUnits[undoUnits.length - 1];
|
|
227686
|
+
hoEditorFactory.lastSaveTime = undoUnit.opTime;
|
|
227687
|
+
} else {
|
|
227688
|
+
hoEditorFactory.lastSaveTime = new Date(Date.now());
|
|
227689
|
+
}
|
|
227690
|
+
}
|
|
227691
|
+
|
|
227692
|
+
return hoEditorFactory.structureConvert.doc2Xml('xml', beauty, isValidStyle, clearSign);
|
|
227284
227693
|
}
|
|
227285
227694
|
/**
|
|
227286
227695
|
* 返回编辑后的表单json数据
|
|
@@ -230109,6 +230518,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230109
230518
|
|
|
230110
230519
|
return isModify;
|
|
230111
230520
|
}
|
|
230521
|
+
/**
|
|
230522
|
+
* 文档修改信息
|
|
230523
|
+
*/
|
|
230524
|
+
|
|
230525
|
+
}, {
|
|
230526
|
+
key: "getDocModifyInfo",
|
|
230527
|
+
value: function getDocModifyInfo() {
|
|
230528
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230529
|
+
var modifyInfo = {
|
|
230530
|
+
lastSaveTime: new Date(hoEditorFactory.lastSaveTime).getTime(),
|
|
230531
|
+
lastModifyTime: -1
|
|
230532
|
+
};
|
|
230533
|
+
var stack = hoEditorFactory.undoService.stack;
|
|
230534
|
+
|
|
230535
|
+
if (stack.length > 0) {
|
|
230536
|
+
var lastUnRedo = stack[stack.length - 1];
|
|
230537
|
+
var undoUnits = lastUnRedo.undoUnits;
|
|
230538
|
+
var undoUnit = undoUnits[undoUnits.length - 1];
|
|
230539
|
+
modifyInfo.lastModifyTime = new Date(undoUnit.opTime).getTime();
|
|
230540
|
+
}
|
|
230541
|
+
|
|
230542
|
+
return modifyInfo;
|
|
230543
|
+
}
|
|
230112
230544
|
/**
|
|
230113
230545
|
* 获取当前病历中的所有元素
|
|
230114
230546
|
* @returns 返回元素是{id,name,text,json}的数据
|
|
@@ -236956,12 +237388,13 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
236956
237388
|
|
|
236957
237389
|
var drawPageTables = tableNodeInfo.tableNode.drawTable.drawPageTables;
|
|
236958
237390
|
var drawPageCells = tableNodeInfo.cellNode.drawCell.drawPageCells;
|
|
236959
|
-
|
|
236960
|
-
tableBounds.
|
|
236961
|
-
tableBounds.
|
|
236962
|
-
tableBounds.
|
|
237391
|
+
var currentPageIndex = dPage.drawMainDoc.pageIndex;
|
|
237392
|
+
tableBounds.cellX = drawPageCells[currentPageIndex].x + 20;
|
|
237393
|
+
tableBounds.cellY = drawPageCells[currentPageIndex].y + 20;
|
|
237394
|
+
tableBounds.cellWidth = drawPageCells[currentPageIndex].dWidth;
|
|
237395
|
+
tableBounds.cellHeight = drawPageCells[currentPageIndex].dHeight;
|
|
236963
237396
|
drawPageTables.forEach(function (v, key) {
|
|
236964
|
-
if (v.parent.pageIndex ===
|
|
237397
|
+
if (v.parent.pageIndex === currentPageIndex) {
|
|
236965
237398
|
tableBounds.height = v.dHeight;
|
|
236966
237399
|
tableBounds.y = dPage.drawMainDoc.y + v.y;
|
|
236967
237400
|
|