hoeditor-web 2.0.88 → 2.0.91
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 +1289 -709
- package/lib/hoeditor.css +4 -3
- package/lib/hoeditor.umd.js +1289 -709
- package/lib/hoeditor.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -2084,7 +2084,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2084
2084
|
|
|
2085
2085
|
/***/ }),
|
|
2086
2086
|
|
|
2087
|
-
/***/
|
|
2087
|
+
/***/ 40275:
|
|
2088
2088
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2089
2089
|
|
|
2090
2090
|
"use strict";
|
|
@@ -2096,7 +2096,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2096
2096
|
"default": function() { return /* binding */ ControlModal; }
|
|
2097
2097
|
});
|
|
2098
2098
|
|
|
2099
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
2099
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=013d7f13&
|
|
2100
2100
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[_c(_vm.modalComponent.component,{tag:"component",attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"uploadImageParams":_vm.uploadImageParams,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true},{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true},{key:"hoParagraph",fn:function(){return [_vm._t("hoParagraphModal")]},proxy:true}],null,true)}),_c(_vm.otherComponent.component,{tag:"component",attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}})],1)}
|
|
2101
2101
|
var staticRenderFns = []
|
|
2102
2102
|
|
|
@@ -2207,6 +2207,7 @@ var HOEditorFactorys = __webpack_require__(41005);
|
|
|
2207
2207
|
'table-row': 'table/TableRowProperty',
|
|
2208
2208
|
'table-col': 'table/TableColProperty',
|
|
2209
2209
|
'table-cell': 'table/TableCellProperty',
|
|
2210
|
+
'table-formula': "table/TableFormula",
|
|
2210
2211
|
comment: 'commentDialog/CommentDialog',
|
|
2211
2212
|
pageInfoes: 'pageInfoes/PageInfoes',
|
|
2212
2213
|
delimiter: 'delimiter/Delimiter',
|
|
@@ -5999,7 +6000,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
5999
6000
|
|
|
6000
6001
|
/***/ }),
|
|
6001
6002
|
|
|
6002
|
-
/***/
|
|
6003
|
+
/***/ 23915:
|
|
6003
6004
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6004
6005
|
|
|
6005
6006
|
"use strict";
|
|
@@ -6011,7 +6012,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6011
6012
|
"default": function() { return /* binding */ PoperSelect; }
|
|
6012
6013
|
});
|
|
6013
6014
|
|
|
6014
|
-
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
6015
|
+
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=1331ab94&scoped=true&
|
|
6015
6016
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_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 && !_vm.mutexSelect)?_c('div',{staticStyle:{"padding":"5px"}},[_c('el-input',{attrs:{"placeholder":_vm.currentListNameText + '搜索',"size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}})],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length >= 0)?_c('div',{staticClass:"select-poper"},[_c('div',{staticClass:"list-box"},[(_vm.currentList.length == 0)?_c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])]):_vm._e(),(_vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0)?_c('el-checkbox-group',{on:{"change":_vm.selectItemsChange},model:{value:(_vm.selectedIds),callback:function ($$v) {_vm.selectedIds=$$v},expression:"selectedIds"}},[_c('RecycleScroller',{staticClass:"scroller",attrs:{"items":_vm.currentList,"item-size":32,"key-field":"id"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
6016
6017
|
var item = ref.item;
|
|
6017
6018
|
return [(item.title)?_c('p',{staticClass:"poper-select-title"},[_vm._v(_vm._s(item.text))]):_vm._e(),(!item.title)?_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")]):_vm._e()]}}],null,false,4143456003)})],1):_vm._e(),(_vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0)?[_c('el-checkbox-group',{on:{"change":_vm.mutexSelectItemsChange},model:{value:(_vm.mutexSelectedIds),callback:function ($$v) {_vm.mutexSelectedIds=$$v},expression:"mutexSelectedIds"}},[_vm._l((_vm.currentList),function(item,index){return [(index >= 1 && item.type != _vm.currentList[index - 1].type)?_c('p',{key:index + Math.random(),staticClass:"el-checkbox-mutex-line"}):_vm._e(),_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id,"disabled":_vm.mutexType !== '' && _vm.mutexType != item.type}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])]})],2)]:_vm._e(),(!_vm.isAllowMultiSelect && _vm.currentList.length > 0)?_c('el-radio-group',{model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:"selectedId"}},_vm._l((_vm.currentList),function(item){return _c('el-radio',{key:item.id + Math.random(),attrs:{"label":item.id},nativeOn:{"~click":function($event){return _vm.selectItemsChange(item)}}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])}),1):_vm._e(),(_vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.isCanSearch)?_c('transition-group',{staticClass:"list",attrs:{"name":"drag","tag":"ul"}},[_c('li',{key:"已选择",staticStyle:{"position":"absolute","top":"0px","z-index":"111","background":"#fff"}},[_vm._v("已选择"+_vm._s(_vm.currentListNameText))]),_vm._l((_vm.selectedList),function(item,index){return [_c('li',{key:item.id + Math.random(),staticClass:"drag-item selected",attrs:{"draggable":""},on:{"dragenter":function($event){return _vm.dragenter($event, index)},"dragover":function($event){return _vm.dragover($event, index)},"dragstart":function($event){return _vm.dragstart(index)}}},[_c('span',[_vm._v(_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0]))]),_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){return _vm.deleteItems(item, index)}}})])]})],2):_vm._e()],2)]):_vm._e(),(_vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect)?_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect)?_c('footer',[(!_vm.mutexSelect)?_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.allSelect}},[_vm._v("全选")]):_vm._e(),_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":_vm.cancelSelect}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('MM') && !_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('yyyy') && !_vm.dateTimeStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.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("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)],1):_vm._e()])}
|
|
@@ -8709,6 +8710,7 @@ var popper = __webpack_require__(14519);
|
|
|
8709
8710
|
sureSelect: function sureSelect() {
|
|
8710
8711
|
var _this8 = this;
|
|
8711
8712
|
|
|
8713
|
+
console.time("下拉选中时间");
|
|
8712
8714
|
var text = '';
|
|
8713
8715
|
var keyValue = '';
|
|
8714
8716
|
var currentPoperNode = this.getCurrentPoperNode();
|
|
@@ -8814,11 +8816,8 @@ var popper = __webpack_require__(14519);
|
|
|
8814
8816
|
this.poppernIstance && this.poppernIstance.update();
|
|
8815
8817
|
},
|
|
8816
8818
|
handleClose: function handleClose() {
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
this.$nextTick(function () {
|
|
8820
|
-
return _this9.$emit('poperClose');
|
|
8821
|
-
});
|
|
8819
|
+
this.$emit('poperClose');
|
|
8820
|
+
console.timeEnd("下拉选中时间"); // this.$nextTick(() => this.$emit('poperClose'));
|
|
8822
8821
|
},
|
|
8823
8822
|
beforeDestroy: function beforeDestroy() {
|
|
8824
8823
|
var _document$querySelect2;
|
|
@@ -8830,10 +8829,10 @@ var popper = __webpack_require__(14519);
|
|
|
8830
8829
|
});
|
|
8831
8830
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
8832
8831
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
8833
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
8832
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=1331ab94&lang=scss&scoped=true&
|
|
8834
8833
|
// extracted by mini-css-extract-plugin
|
|
8835
8834
|
|
|
8836
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
8835
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=1331ab94&lang=scss&scoped=true&
|
|
8837
8836
|
|
|
8838
8837
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8839
8838
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -8852,7 +8851,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8852
8851
|
staticRenderFns,
|
|
8853
8852
|
false,
|
|
8854
8853
|
null,
|
|
8855
|
-
"
|
|
8854
|
+
"1331ab94",
|
|
8856
8855
|
null
|
|
8857
8856
|
|
|
8858
8857
|
)
|
|
@@ -10798,7 +10797,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10798
10797
|
|
|
10799
10798
|
/***/ }),
|
|
10800
10799
|
|
|
10801
|
-
/***/
|
|
10800
|
+
/***/ 46787:
|
|
10802
10801
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10803
10802
|
|
|
10804
10803
|
"use strict";
|
|
@@ -10810,8 +10809,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10810
10809
|
"default": function() { return /* binding */ TableCellPoper; }
|
|
10811
10810
|
});
|
|
10812
10811
|
|
|
10813
|
-
;// 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=
|
|
10814
|
-
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',{
|
|
10812
|
+
;// 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=7fecbf90&scoped=true&
|
|
10813
|
+
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","text-align":"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)}
|
|
10815
10814
|
var staticRenderFns = []
|
|
10816
10815
|
|
|
10817
10816
|
|
|
@@ -10916,6 +10915,8 @@ var HOEditorFactorys = __webpack_require__(41005);
|
|
|
10916
10915
|
//
|
|
10917
10916
|
//
|
|
10918
10917
|
//
|
|
10918
|
+
//
|
|
10919
|
+
//
|
|
10919
10920
|
|
|
10920
10921
|
|
|
10921
10922
|
|
|
@@ -11120,9 +11121,9 @@ var HOEditorFactorys = __webpack_require__(41005);
|
|
|
11120
11121
|
this.isCanSearch = true;
|
|
11121
11122
|
}
|
|
11122
11123
|
|
|
11123
|
-
var _height = this.poperList.length * 36 + 36;
|
|
11124
|
+
var _height = this.poperList.length * 36 + 72; // if (this.isAllowMultiSelect) height += 36;
|
|
11125
|
+
|
|
11124
11126
|
|
|
11125
|
-
if (this.isAllowMultiSelect) _height += 36;
|
|
11126
11127
|
if (this.isCanSearch) _height += 28;
|
|
11127
11128
|
|
|
11128
11129
|
if (_height < 360) {
|
|
@@ -11275,10 +11276,10 @@ var HOEditorFactorys = __webpack_require__(41005);
|
|
|
11275
11276
|
});
|
|
11276
11277
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
11277
11278
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
11278
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11279
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=7fecbf90&lang=scss&scoped=true&
|
|
11279
11280
|
// extracted by mini-css-extract-plugin
|
|
11280
11281
|
|
|
11281
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11282
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=7fecbf90&lang=scss&scoped=true&
|
|
11282
11283
|
|
|
11283
11284
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11284
11285
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -11297,7 +11298,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11297
11298
|
staticRenderFns,
|
|
11298
11299
|
false,
|
|
11299
11300
|
null,
|
|
11300
|
-
"
|
|
11301
|
+
"7fecbf90",
|
|
11301
11302
|
null
|
|
11302
11303
|
|
|
11303
11304
|
)
|
|
@@ -12462,7 +12463,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
12462
12463
|
|
|
12463
12464
|
/***/ }),
|
|
12464
12465
|
|
|
12465
|
-
/***/
|
|
12466
|
+
/***/ 53197:
|
|
12466
12467
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12467
12468
|
|
|
12468
12469
|
"use strict";
|
|
@@ -12471,39 +12472,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12471
12472
|
|
|
12472
12473
|
// EXPORTS
|
|
12473
12474
|
__webpack_require__.d(__webpack_exports__, {
|
|
12474
|
-
"default": function() { return /* binding */
|
|
12475
|
+
"default": function() { return /* binding */ table_TableFormula; }
|
|
12475
12476
|
});
|
|
12476
12477
|
|
|
12477
|
-
;// 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/
|
|
12478
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(
|
|
12478
|
+
;// 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/TableFormula.vue?vue&type=template&id=31dfdc04&
|
|
12479
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-formula-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.dialogFormTitle))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"152px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e()]),_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)])}
|
|
12479
12480
|
var staticRenderFns = []
|
|
12480
12481
|
|
|
12481
12482
|
|
|
12482
12483
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
12483
12484
|
var toConsumableArray = __webpack_require__(26982);
|
|
12485
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12486
|
+
var es_array_concat = __webpack_require__(92222);
|
|
12484
12487
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
12485
12488
|
var es_array_filter = __webpack_require__(57327);
|
|
12486
12489
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12487
12490
|
var es_object_to_string = __webpack_require__(41539);
|
|
12488
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
12489
|
-
var
|
|
12490
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
12491
|
-
var
|
|
12492
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
12493
|
-
var
|
|
12494
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.
|
|
12495
|
-
var
|
|
12491
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
12492
|
+
var es_array_map = __webpack_require__(21249);
|
|
12493
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
12494
|
+
var es_regexp_exec = __webpack_require__(74916);
|
|
12495
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
12496
|
+
var es_string_replace = __webpack_require__(15306);
|
|
12497
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
12498
|
+
var es_array_join = __webpack_require__(69600);
|
|
12496
12499
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
12497
12500
|
var es_json_stringify = __webpack_require__(38862);
|
|
12498
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/
|
|
12499
|
-
var
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
// EXTERNAL MODULE: ./src/components/controls/table/getCellNode.ts
|
|
12503
|
-
var getCellNode = __webpack_require__(86257);
|
|
12504
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
12505
|
-
var CellNode = __webpack_require__(15798);
|
|
12506
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
12501
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
12502
|
+
var TableFormula = __webpack_require__(39869);
|
|
12503
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=script&lang=js&
|
|
12504
|
+
|
|
12507
12505
|
|
|
12508
12506
|
|
|
12509
12507
|
|
|
@@ -12557,241 +12555,543 @@ var CellNode = __webpack_require__(15798);
|
|
|
12557
12555
|
//
|
|
12558
12556
|
//
|
|
12559
12557
|
//
|
|
12560
|
-
|
|
12561
|
-
|
|
12562
|
-
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
}
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
}
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
|
|
12738
|
-
|
|
12739
|
-
|
|
12740
|
-
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
//
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
var
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
-
|
|
12792
|
-
|
|
12793
|
-
|
|
12794
|
-
|
|
12558
|
+
//
|
|
12559
|
+
//
|
|
12560
|
+
//
|
|
12561
|
+
//
|
|
12562
|
+
//
|
|
12563
|
+
//
|
|
12564
|
+
//
|
|
12565
|
+
//
|
|
12566
|
+
//
|
|
12567
|
+
//
|
|
12568
|
+
//
|
|
12569
|
+
//
|
|
12570
|
+
//
|
|
12571
|
+
//
|
|
12572
|
+
//
|
|
12573
|
+
//
|
|
12574
|
+
//
|
|
12575
|
+
//
|
|
12576
|
+
//
|
|
12577
|
+
//
|
|
12578
|
+
//
|
|
12579
|
+
//
|
|
12580
|
+
//
|
|
12581
|
+
//
|
|
12582
|
+
//
|
|
12583
|
+
//
|
|
12584
|
+
//
|
|
12585
|
+
//
|
|
12586
|
+
//
|
|
12587
|
+
//
|
|
12588
|
+
//
|
|
12589
|
+
//
|
|
12590
|
+
//
|
|
12591
|
+
//
|
|
12592
|
+
//
|
|
12593
|
+
//
|
|
12594
|
+
//
|
|
12595
|
+
//
|
|
12596
|
+
//
|
|
12597
|
+
//
|
|
12598
|
+
//
|
|
12599
|
+
//
|
|
12600
|
+
|
|
12601
|
+
/* harmony default export */ var TableFormulavue_type_script_lang_js_ = ({
|
|
12602
|
+
name: 'TablePoperty',
|
|
12603
|
+
props: {
|
|
12604
|
+
vueController: {
|
|
12605
|
+
default: function _default() {}
|
|
12606
|
+
},
|
|
12607
|
+
hoEditorFactoryId: {
|
|
12608
|
+
default: ''
|
|
12609
|
+
},
|
|
12610
|
+
controlProperty: {
|
|
12611
|
+
required: true
|
|
12612
|
+
}
|
|
12613
|
+
},
|
|
12614
|
+
data: function data() {
|
|
12615
|
+
return {
|
|
12616
|
+
simpleFormula: '',
|
|
12617
|
+
isCellSplitModal: false,
|
|
12618
|
+
row: 1,
|
|
12619
|
+
column: 1,
|
|
12620
|
+
topRows: 1,
|
|
12621
|
+
bottomRows: 1,
|
|
12622
|
+
leftRows: 1,
|
|
12623
|
+
rightRows: 1,
|
|
12624
|
+
// bmi
|
|
12625
|
+
height: '',
|
|
12626
|
+
weight: '',
|
|
12627
|
+
// 产程
|
|
12628
|
+
laborType: 1,
|
|
12629
|
+
labor1: '',
|
|
12630
|
+
labor2: '',
|
|
12631
|
+
labor3: '',
|
|
12632
|
+
// 预产期 孕周 孕周天
|
|
12633
|
+
expectedDate: '',
|
|
12634
|
+
isHideZero: true,
|
|
12635
|
+
isOnceClick: false,
|
|
12636
|
+
ftScoreMapping: {
|
|
12637
|
+
cell: '',
|
|
12638
|
+
item: [{
|
|
12639
|
+
text: '',
|
|
12640
|
+
range: []
|
|
12641
|
+
}, {
|
|
12642
|
+
text: '',
|
|
12643
|
+
range: []
|
|
12644
|
+
}, {
|
|
12645
|
+
text: '',
|
|
12646
|
+
range: []
|
|
12647
|
+
}]
|
|
12648
|
+
}
|
|
12649
|
+
};
|
|
12650
|
+
},
|
|
12651
|
+
inject: [],
|
|
12652
|
+
computed: {
|
|
12653
|
+
dialogFormTitle: function dialogFormTitle() {
|
|
12654
|
+
if (this.controlProperty && Array.isArray(this.controlProperty.expressStyle)) {
|
|
12655
|
+
return this.controlProperty.expressStyle[0];
|
|
12656
|
+
}
|
|
12657
|
+
|
|
12658
|
+
return '';
|
|
12659
|
+
},
|
|
12660
|
+
formula: function formula() {
|
|
12661
|
+
if (this.controlProperty && Array.isArray(this.controlProperty.expressStyle)) {
|
|
12662
|
+
return this.controlProperty.expressStyle[1];
|
|
12663
|
+
}
|
|
12664
|
+
|
|
12665
|
+
return '';
|
|
12666
|
+
}
|
|
12667
|
+
},
|
|
12668
|
+
methods: {
|
|
12669
|
+
sure: function sure() {
|
|
12670
|
+
if (this.formula === 'bmi') {
|
|
12671
|
+
// bmi计算公式
|
|
12672
|
+
this.vueController.insertTableFormula("".concat(this.weight, ",").concat(this.height).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftBMI */.a.ftBMI);
|
|
12673
|
+
} else if (this.formula === 'a1: a2') {
|
|
12674
|
+
// 求和公式
|
|
12675
|
+
this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftSum */.a.ftSum);
|
|
12676
|
+
} else if (this.formula === '(a1 + a2) * 2') {
|
|
12677
|
+
// 四则运算公式
|
|
12678
|
+
this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftFormular */.a.ftFormular);
|
|
12679
|
+
} else if (this.formula === 'labor') {
|
|
12680
|
+
// 产程公式
|
|
12681
|
+
if (this.laborType === 0) {
|
|
12682
|
+
this.vueController.insertTableFormula("".concat(this.labor1, ",").concat(this.labor2, ",").concat(this.labor3).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess);
|
|
12683
|
+
} else {
|
|
12684
|
+
this.vueController.insertTableFormula("".concat(this.labor1, ",").concat(this.labor2).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess);
|
|
12685
|
+
}
|
|
12686
|
+
} else if (this.formula === 'expectedDate') {
|
|
12687
|
+
// 预产期公式
|
|
12688
|
+
this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate);
|
|
12689
|
+
} else if (this.formula === 'pregnantWeeks') {
|
|
12690
|
+
// 孕周公式
|
|
12691
|
+
this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks);
|
|
12692
|
+
} else if (this.formula === 'pregnantDays') {// this.vueController.insertTableFormula(`${this.expectedDate}`.toLocaleLowerCase(), this.isHideZero, FormularType.ftPregnantDays)
|
|
12693
|
+
} else if (this.formula === 'ftScoreMapping') {
|
|
12694
|
+
var item = (0,toConsumableArray/* default */.Z)(this.ftScoreMapping.item);
|
|
12695
|
+
|
|
12696
|
+
var ftScoreMapping = {
|
|
12697
|
+
cell: this.ftScoreMapping.cell,
|
|
12698
|
+
items: item.map(function (v) {
|
|
12699
|
+
if (v.text.replace(/\s*/g, '') === '') {
|
|
12700
|
+
return '';
|
|
12701
|
+
}
|
|
12702
|
+
|
|
12703
|
+
return {
|
|
12704
|
+
text: v.text,
|
|
12705
|
+
range: v.range.join('-')
|
|
12706
|
+
};
|
|
12707
|
+
}).filter(function (v) {
|
|
12708
|
+
return v;
|
|
12709
|
+
})
|
|
12710
|
+
};
|
|
12711
|
+
this.vueController.insertTableFormula(JSON.stringify(ftScoreMapping).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping);
|
|
12712
|
+
}
|
|
12713
|
+
|
|
12714
|
+
this.handleClose();
|
|
12715
|
+
},
|
|
12716
|
+
handleClose: function handleClose() {
|
|
12717
|
+
this.$emit('closed');
|
|
12718
|
+
},
|
|
12719
|
+
addFtScoreMappingItem: function addFtScoreMappingItem() {
|
|
12720
|
+
this.ftScoreMapping.item.push({
|
|
12721
|
+
text: '',
|
|
12722
|
+
range: []
|
|
12723
|
+
});
|
|
12724
|
+
},
|
|
12725
|
+
laborTypeChange: function laborTypeChange() {
|
|
12726
|
+
this.labor1 = '';
|
|
12727
|
+
this.labor2 = '';
|
|
12728
|
+
this.labor3 = '';
|
|
12729
|
+
}
|
|
12730
|
+
}
|
|
12731
|
+
});
|
|
12732
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=script&lang=js&
|
|
12733
|
+
/* harmony default export */ var table_TableFormulavue_type_script_lang_js_ = (TableFormulavue_type_script_lang_js_);
|
|
12734
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&lang=scss&
|
|
12735
|
+
// extracted by mini-css-extract-plugin
|
|
12736
|
+
|
|
12737
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&lang=scss&
|
|
12738
|
+
|
|
12739
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12740
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
12741
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue
|
|
12742
|
+
|
|
12743
|
+
|
|
12744
|
+
|
|
12745
|
+
;
|
|
12746
|
+
|
|
12747
|
+
|
|
12748
|
+
/* normalize component */
|
|
12749
|
+
|
|
12750
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
12751
|
+
table_TableFormulavue_type_script_lang_js_,
|
|
12752
|
+
render,
|
|
12753
|
+
staticRenderFns,
|
|
12754
|
+
false,
|
|
12755
|
+
null,
|
|
12756
|
+
null,
|
|
12757
|
+
null
|
|
12758
|
+
|
|
12759
|
+
)
|
|
12760
|
+
|
|
12761
|
+
/* harmony default export */ var table_TableFormula = (component.exports);
|
|
12762
|
+
|
|
12763
|
+
/***/ }),
|
|
12764
|
+
|
|
12765
|
+
/***/ 44680:
|
|
12766
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12767
|
+
|
|
12768
|
+
"use strict";
|
|
12769
|
+
// ESM COMPAT FLAG
|
|
12770
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12771
|
+
|
|
12772
|
+
// EXPORTS
|
|
12773
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12774
|
+
"default": function() { return /* binding */ TableProperty; }
|
|
12775
|
+
});
|
|
12776
|
+
|
|
12777
|
+
;// 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/TableProperty.vue?vue&type=template&id=e8367174&scoped=true&
|
|
12778
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-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('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:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAdjustRowHeight),callback:function ($$v) {_vm.canAdjustRowHeight=$$v},expression:"canAdjustRowHeight"}},[_vm._v("用户可调整行高")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAdjustRowWidth),callback:function ($$v) {_vm.canAdjustRowWidth=$$v},expression:"canAdjustRowWidth"}},[_vm._v("用户可调整列宽")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAddRow),callback:function ($$v) {_vm.canAddRow=$$v},expression:"canAddRow"}},[_vm._v("用户可新增表格行列")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canDeleteRow),callback:function ($$v) {_vm.canDeleteRow=$$v},expression:"canDeleteRow"}},[_vm._v("用户可删除表格行列")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canDeleteTable),callback:function ($$v) {_vm.canDeleteTable=$$v},expression:"canDeleteTable"}},[_vm._v("用户可删除表格")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.continuePrintBorders),callback:function ($$v) {_vm.continuePrintBorders=$$v},expression:"continuePrintBorders"}},[_vm._v("续打时打印所有单元格边框")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.isAutoChangeLine),callback:function ($$v) {_vm.isAutoChangeLine=$$v},expression:"isAutoChangeLine"}},[_vm._v("表格内自动换行")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.fixedOnePage),callback:function ($$v) {_vm.fixedOnePage=$$v},expression:"fixedOnePage"}},[_vm._v("表格固定在一页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('span',{staticStyle:{"padding":"0 10px 0 23px"}},[_vm._v("表格内自动换行行高")]),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isAutoChangeLine,"step":1,"min":0,"precision":2,"controls":false},model:{value:(_vm.autoLineHeight),callback:function ($$v) {_vm.autoLineHeight=$$v},expression:"autoLineHeight"}}),_c('span',{staticStyle:{"padding-left":"6px"}},[_vm._v(" 厘米")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('span',{staticStyle:{"padding":"0 10px 0 23px"}},[_vm._v("当前光标所在行行高 "+_vm._s(_vm.rowHeightMm)+" 厘米")])])])])]),_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)])}
|
|
12779
|
+
var staticRenderFns = []
|
|
12780
|
+
|
|
12781
|
+
|
|
12782
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
12783
|
+
var toConsumableArray = __webpack_require__(26982);
|
|
12784
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
12785
|
+
var es_array_filter = __webpack_require__(57327);
|
|
12786
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12787
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
12788
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
12789
|
+
var es_function_name = __webpack_require__(68309);
|
|
12790
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
12791
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
12792
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
12793
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
12794
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12795
|
+
var es_array_concat = __webpack_require__(92222);
|
|
12796
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
12797
|
+
var es_json_stringify = __webpack_require__(38862);
|
|
12798
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
12799
|
+
var TableNode = __webpack_require__(95883);
|
|
12800
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
12801
|
+
var HOEditorFactorys = __webpack_require__(41005);
|
|
12802
|
+
// EXTERNAL MODULE: ./src/components/controls/table/getCellNode.ts
|
|
12803
|
+
var getCellNode = __webpack_require__(86257);
|
|
12804
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
12805
|
+
var CellNode = __webpack_require__(15798);
|
|
12806
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
12807
|
+
|
|
12808
|
+
|
|
12809
|
+
|
|
12810
|
+
|
|
12811
|
+
|
|
12812
|
+
|
|
12813
|
+
|
|
12814
|
+
|
|
12815
|
+
//
|
|
12816
|
+
//
|
|
12817
|
+
//
|
|
12818
|
+
//
|
|
12819
|
+
//
|
|
12820
|
+
//
|
|
12821
|
+
//
|
|
12822
|
+
//
|
|
12823
|
+
//
|
|
12824
|
+
//
|
|
12825
|
+
//
|
|
12826
|
+
//
|
|
12827
|
+
//
|
|
12828
|
+
//
|
|
12829
|
+
//
|
|
12830
|
+
//
|
|
12831
|
+
//
|
|
12832
|
+
//
|
|
12833
|
+
//
|
|
12834
|
+
//
|
|
12835
|
+
//
|
|
12836
|
+
//
|
|
12837
|
+
//
|
|
12838
|
+
//
|
|
12839
|
+
//
|
|
12840
|
+
//
|
|
12841
|
+
//
|
|
12842
|
+
//
|
|
12843
|
+
//
|
|
12844
|
+
//
|
|
12845
|
+
//
|
|
12846
|
+
//
|
|
12847
|
+
//
|
|
12848
|
+
//
|
|
12849
|
+
//
|
|
12850
|
+
//
|
|
12851
|
+
//
|
|
12852
|
+
//
|
|
12853
|
+
//
|
|
12854
|
+
//
|
|
12855
|
+
//
|
|
12856
|
+
//
|
|
12857
|
+
//
|
|
12858
|
+
//
|
|
12859
|
+
//
|
|
12860
|
+
|
|
12861
|
+
|
|
12862
|
+
|
|
12863
|
+
|
|
12864
|
+
/* harmony default export */ var TablePropertyvue_type_script_lang_js_ = ({
|
|
12865
|
+
name: 'TablePoperty',
|
|
12866
|
+
props: {
|
|
12867
|
+
vueController: {
|
|
12868
|
+
default: function _default() {}
|
|
12869
|
+
},
|
|
12870
|
+
hoEditorFactoryId: {
|
|
12871
|
+
default: ''
|
|
12872
|
+
}
|
|
12873
|
+
},
|
|
12874
|
+
data: function data() {
|
|
12875
|
+
return {
|
|
12876
|
+
id: '',
|
|
12877
|
+
// 编号
|
|
12878
|
+
canAdjustRowHeight: false,
|
|
12879
|
+
//用户可调整行高
|
|
12880
|
+
canAdjustRowWidth: false,
|
|
12881
|
+
//用户可调整列宽
|
|
12882
|
+
canAddRow: true,
|
|
12883
|
+
//用户可新增表格行列
|
|
12884
|
+
canDeleteRow: true,
|
|
12885
|
+
//用户可删除表格行列
|
|
12886
|
+
canDeleteTable: true,
|
|
12887
|
+
//用户可删除表格
|
|
12888
|
+
continuePrintBorders: false,
|
|
12889
|
+
//续打时打印所有单元格边框
|
|
12890
|
+
layoutFullLine: true,
|
|
12891
|
+
//排版时占据整行
|
|
12892
|
+
tightLineSpace: false,
|
|
12893
|
+
//压缩表格上下行间距
|
|
12894
|
+
isAutoChangeLine: false,
|
|
12895
|
+
//表格内自动换行
|
|
12896
|
+
fixedOnePage: false,
|
|
12897
|
+
//表格固定在一页
|
|
12898
|
+
autoLineHeight: 0,
|
|
12899
|
+
// 表格内自动换行行高
|
|
12900
|
+
rowHeightMm: 0,
|
|
12901
|
+
// 当前光标所在行行高
|
|
12902
|
+
endPath: ''
|
|
12903
|
+
};
|
|
12904
|
+
},
|
|
12905
|
+
inject: ['setIsCustoms', 'getCustomsValue', 'setCustomsValue', 'getActiveDocId'],
|
|
12906
|
+
computed: {
|
|
12907
|
+
customProperties: function customProperties() {
|
|
12908
|
+
return this.getCustomsValue().filter(function (v) {
|
|
12909
|
+
if (v.name || v.value) return v;
|
|
12910
|
+
});
|
|
12911
|
+
}
|
|
12912
|
+
},
|
|
12913
|
+
created: function created() {
|
|
12914
|
+
var activeDocId = this.getActiveDocId();
|
|
12915
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(activeDocId);
|
|
12916
|
+
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
12917
|
+
var tableNode = this.getTableNodes();
|
|
12918
|
+
|
|
12919
|
+
if (tableNode) {
|
|
12920
|
+
this.id = tableNode.tableProperty.id ? tableNode.tableProperty.id : this.vueController.generateID('TB');
|
|
12921
|
+
this.canAdjustRowHeight = tableNode.tableProperty.canAdjustRowHeight;
|
|
12922
|
+
this.canAdjustRowWidth = tableNode.tableProperty.canAdjustRowWidth;
|
|
12923
|
+
this.canAddRow = tableNode.tableProperty.canAddRow;
|
|
12924
|
+
this.canDeleteRow = tableNode.tableProperty.canDeleteRow;
|
|
12925
|
+
this.canDeleteTable = tableNode.tableProperty.canDeleteTable;
|
|
12926
|
+
this.continuePrintBorders = tableNode.tableProperty.continuePrintBorders;
|
|
12927
|
+
this.layoutFullLine = tableNode.tableProperty.layoutFullLine;
|
|
12928
|
+
this.tightLineSpace = tableNode.tableProperty.tightLineSpace;
|
|
12929
|
+
this.isAutoChangeLine = tableNode.tableProperty.isAutoChangeLine;
|
|
12930
|
+
this.fixedOnePage = tableNode.tableProperty.fixedOnePage;
|
|
12931
|
+
this.autoLineHeight = tableNode.tableProperty.autoLineHeight;
|
|
12932
|
+
}
|
|
12933
|
+
},
|
|
12934
|
+
methods: {
|
|
12935
|
+
getTableNodes: function getTableNodes() {
|
|
12936
|
+
var _tableNode$tablePrope;
|
|
12937
|
+
|
|
12938
|
+
var nodes = this.vueController.findNodebyPath(this.endPath).node;
|
|
12939
|
+
var cellNode = (0,getCellNode/* getCellNode */.p)(nodes);
|
|
12940
|
+
var tableNode = cellNode === null || cellNode === void 0 ? void 0 : cellNode.table;
|
|
12941
|
+
var currentRows = cellNode === null || cellNode === void 0 ? void 0 : cellNode.table.rows.indexOf(cellNode === null || cellNode === void 0 ? void 0 : cellNode.row);
|
|
12942
|
+
|
|
12943
|
+
if (currentRows !== undefined) {
|
|
12944
|
+
var rowInfoes = cellNode === null || cellNode === void 0 ? void 0 : cellNode.table.rowInfos[currentRows];
|
|
12945
|
+
|
|
12946
|
+
if (rowInfoes) {
|
|
12947
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
12948
|
+
|
|
12949
|
+
if (rowInfoes.rowProperty.rowHeight) {
|
|
12950
|
+
this.rowHeightMm = Number(rowInfoes.rowProperty.rowHeight.toFixed(2));
|
|
12951
|
+
} else {
|
|
12952
|
+
this.rowHeightMm = Number((hoEditorFactory.unitConvert.pxConversionMm(rowInfoes.rowHeight, false) / 10).toFixed(2));
|
|
12953
|
+
}
|
|
12954
|
+
}
|
|
12955
|
+
}
|
|
12956
|
+
|
|
12957
|
+
var customProperties = tableNode === null || tableNode === void 0 ? void 0 : (_tableNode$tablePrope = tableNode.tableProperty) === null || _tableNode$tablePrope === void 0 ? void 0 : _tableNode$tablePrope.customProperties;
|
|
12958
|
+
|
|
12959
|
+
if (Array.isArray(customProperties) && customProperties.length > 0) {
|
|
12960
|
+
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties), [{
|
|
12961
|
+
name: '',
|
|
12962
|
+
value: ''
|
|
12963
|
+
}]));
|
|
12964
|
+
} else if (customProperties && Array.isArray(customProperties.customProperty) && customProperties.customProperty.length > 0) {
|
|
12965
|
+
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties.customProperty), [{
|
|
12966
|
+
name: '',
|
|
12967
|
+
value: '',
|
|
12968
|
+
description: ''
|
|
12969
|
+
}]));
|
|
12970
|
+
}
|
|
12971
|
+
|
|
12972
|
+
return tableNode;
|
|
12973
|
+
},
|
|
12974
|
+
// 打开自定义属性弹窗
|
|
12975
|
+
openCustomsModal: function openCustomsModal() {
|
|
12976
|
+
this.setIsCustoms(true, true);
|
|
12977
|
+
},
|
|
12978
|
+
sure: function sure() {
|
|
12979
|
+
var _this = this;
|
|
12980
|
+
|
|
12981
|
+
var params = {
|
|
12982
|
+
id: this.id,
|
|
12983
|
+
customProperties: this.customProperties,
|
|
12984
|
+
canAdjustRowHeight: this.canAdjustRowHeight,
|
|
12985
|
+
canAdjustRowWidth: this.canAdjustRowWidth,
|
|
12986
|
+
canAddRow: this.canAddRow,
|
|
12987
|
+
canDeleteRow: this.canDeleteRow,
|
|
12988
|
+
canDeleteTable: this.canDeleteTable,
|
|
12989
|
+
continuePrintBorders: this.continuePrintBorders,
|
|
12990
|
+
layoutFullLine: this.layoutFullLine,
|
|
12991
|
+
tightLineSpace: this.tightLineSpace,
|
|
12992
|
+
isAutoChangeLine: this.isAutoChangeLine,
|
|
12993
|
+
fixedOnePage: this.fixedOnePage,
|
|
12994
|
+
autoLineHeight: this.autoLineHeight
|
|
12995
|
+
};
|
|
12996
|
+
var tableNode = this.getTableNodes();
|
|
12997
|
+
this.vueController.tableProperty(JSON.stringify(params), tableNode);
|
|
12998
|
+
this.$nextTick(function () {
|
|
12999
|
+
return _this.handleClose();
|
|
13000
|
+
});
|
|
13001
|
+
},
|
|
13002
|
+
handleClose: function handleClose() {
|
|
13003
|
+
this.$emit('closed');
|
|
13004
|
+
}
|
|
13005
|
+
}
|
|
13006
|
+
});
|
|
13007
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
13008
|
+
/* harmony default export */ var table_TablePropertyvue_type_script_lang_js_ = (TablePropertyvue_type_script_lang_js_);
|
|
13009
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=e8367174&lang=scss&scoped=true&
|
|
13010
|
+
// extracted by mini-css-extract-plugin
|
|
13011
|
+
|
|
13012
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=e8367174&lang=scss&scoped=true&
|
|
13013
|
+
|
|
13014
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13015
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
13016
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue
|
|
13017
|
+
|
|
13018
|
+
|
|
13019
|
+
|
|
13020
|
+
;
|
|
13021
|
+
|
|
13022
|
+
|
|
13023
|
+
/* normalize component */
|
|
13024
|
+
|
|
13025
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
13026
|
+
table_TablePropertyvue_type_script_lang_js_,
|
|
13027
|
+
render,
|
|
13028
|
+
staticRenderFns,
|
|
13029
|
+
false,
|
|
13030
|
+
null,
|
|
13031
|
+
"e8367174",
|
|
13032
|
+
null
|
|
13033
|
+
|
|
13034
|
+
)
|
|
13035
|
+
|
|
13036
|
+
/* harmony default export */ var TableProperty = (component.exports);
|
|
13037
|
+
|
|
13038
|
+
/***/ }),
|
|
13039
|
+
|
|
13040
|
+
/***/ 74456:
|
|
13041
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13042
|
+
|
|
13043
|
+
"use strict";
|
|
13044
|
+
// ESM COMPAT FLAG
|
|
13045
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13046
|
+
|
|
13047
|
+
// EXPORTS
|
|
13048
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
13049
|
+
"default": function() { return /* binding */ TableRowProperty; }
|
|
13050
|
+
});
|
|
13051
|
+
|
|
13052
|
+
;// 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=3bd61b91&scoped=true&
|
|
13053
|
+
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)])}
|
|
13054
|
+
var staticRenderFns = []
|
|
13055
|
+
|
|
13056
|
+
|
|
13057
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
13058
|
+
var toConsumableArray = __webpack_require__(26982);
|
|
13059
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
13060
|
+
var es_array_filter = __webpack_require__(57327);
|
|
13061
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
13062
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
13063
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13064
|
+
var es_function_name = __webpack_require__(68309);
|
|
13065
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
13066
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
13067
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
13068
|
+
var es_array_concat = __webpack_require__(92222);
|
|
13069
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
13070
|
+
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
13071
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
13072
|
+
var es_object_keys = __webpack_require__(47941);
|
|
13073
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
13074
|
+
var es_json_stringify = __webpack_require__(38862);
|
|
13075
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
13076
|
+
var CellNode = __webpack_require__(15798);
|
|
13077
|
+
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
13078
|
+
var TableProperty = __webpack_require__(68183);
|
|
13079
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
13080
|
+
var HOEditorFactorys = __webpack_require__(41005);
|
|
13081
|
+
// EXTERNAL MODULE: ./src/components/controls/table/getCellNode.ts
|
|
13082
|
+
var getCellNode = __webpack_require__(86257);
|
|
13083
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
13084
|
+
var TableNode = __webpack_require__(95883);
|
|
13085
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
13086
|
+
|
|
13087
|
+
|
|
13088
|
+
|
|
13089
|
+
|
|
13090
|
+
|
|
13091
|
+
|
|
13092
|
+
|
|
13093
|
+
|
|
13094
|
+
|
|
12795
13095
|
//
|
|
12796
13096
|
//
|
|
12797
13097
|
//
|
|
@@ -16024,6 +16324,36 @@ var HOEditorFactorys = /*#__PURE__*/function () {
|
|
|
16024
16324
|
return HOEditorFactorys;
|
|
16025
16325
|
}();
|
|
16026
16326
|
|
|
16327
|
+
/***/ }),
|
|
16328
|
+
|
|
16329
|
+
/***/ 82089:
|
|
16330
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16331
|
+
|
|
16332
|
+
"use strict";
|
|
16333
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16334
|
+
/* harmony export */ "G": function() { return /* binding */ commonParamList; }
|
|
16335
|
+
/* harmony export */ });
|
|
16336
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66992);
|
|
16337
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
16338
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51532);
|
|
16339
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
16340
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41539);
|
|
16341
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
16342
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78783);
|
|
16343
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
16344
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33948);
|
|
16345
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
16346
|
+
|
|
16347
|
+
|
|
16348
|
+
|
|
16349
|
+
|
|
16350
|
+
|
|
16351
|
+
var commonParamList = new Map();
|
|
16352
|
+
["viewBlack"].forEach(function (key) {
|
|
16353
|
+
commonParamList.set(key, false);
|
|
16354
|
+
});
|
|
16355
|
+
|
|
16356
|
+
|
|
16027
16357
|
/***/ }),
|
|
16028
16358
|
|
|
16029
16359
|
/***/ 45480:
|
|
@@ -26863,7 +27193,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26863
27193
|
aPromise = aPromise.then(function (res) {
|
|
26864
27194
|
strPath = res;
|
|
26865
27195
|
return new Promise(function (resolve, reject) {
|
|
26866
|
-
if (text === '') {
|
|
27196
|
+
if (text === '' && index < lines.length - 1) {
|
|
26867
27197
|
strPath = insertParagraph(strPath);
|
|
26868
27198
|
resolve(strPath);
|
|
26869
27199
|
} else {
|
|
@@ -54920,7 +55250,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
54920
55250
|
this.styleIndex = 0;
|
|
54921
55251
|
}
|
|
54922
55252
|
|
|
54923
|
-
if (
|
|
55253
|
+
if (!isCopy && combineStyle.script !== 0) {
|
|
54924
55254
|
if (combineStyle.script === 1) {
|
|
54925
55255
|
copytxt = "<下标>" + copytxt + "</下标>";
|
|
54926
55256
|
}
|
|
@@ -59836,8 +60166,6 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59836
60166
|
// const dPage = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[pageIndex];
|
|
59837
60167
|
// if (dPage && dPage.drawDomLevel) {
|
|
59838
60168
|
var cc = subDocArea.clone(true);
|
|
59839
|
-
var index = subDocArea.getChildIndex(subDocArea.borderShape);
|
|
59840
|
-
if (index >= 0) cc.removeChildAt(index);
|
|
59841
60169
|
var destSubDocArea;
|
|
59842
60170
|
|
|
59843
60171
|
if (destArea) {
|
|
@@ -59859,8 +60187,19 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59859
60187
|
this._cell.drawCell.drawPageCells.push(destSubDocArea);
|
|
59860
60188
|
}
|
|
59861
60189
|
|
|
60190
|
+
destSubDocArea.removeAllChildren();
|
|
59862
60191
|
destSubDocArea.children = cc.children;
|
|
59863
|
-
|
|
60192
|
+
var tindex = subDocArea.getChildIndex(subDocArea.touchArea);
|
|
60193
|
+
|
|
60194
|
+
if (tindex >= 0) {
|
|
60195
|
+
destSubDocArea.removeChildAt(tindex);
|
|
60196
|
+
} // const index = subDocArea.getChildIndex(subDocArea.backImage);
|
|
60197
|
+
// if (index >= 0){
|
|
60198
|
+
// destSubDocArea.removeChildAt(index);
|
|
60199
|
+
// }
|
|
60200
|
+
// destSubDocArea.removeChildAt(0);
|
|
60201
|
+
// destSubDocArea.drawLines = subDocArea.drawLines;
|
|
60202
|
+
|
|
59864
60203
|
|
|
59865
60204
|
destSubDocArea.dHeight = subDocArea.dHeight;
|
|
59866
60205
|
destSubDocArea.dLeft = subDocArea.dLeft;
|
|
@@ -62157,6 +62496,16 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62157
62496
|
|
|
62158
62497
|
|
|
62159
62498
|
(0,createClass/* default */.Z)(DrawPageCell, [{
|
|
62499
|
+
key: "backImage",
|
|
62500
|
+
get: function get() {
|
|
62501
|
+
return this._backImg;
|
|
62502
|
+
}
|
|
62503
|
+
}, {
|
|
62504
|
+
key: "touchArea",
|
|
62505
|
+
get: function get() {
|
|
62506
|
+
return this._touchArea;
|
|
62507
|
+
}
|
|
62508
|
+
}, {
|
|
62160
62509
|
key: "startDline",
|
|
62161
62510
|
get: function get() {
|
|
62162
62511
|
return this._startDline;
|
|
@@ -62406,7 +62755,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62406
62755
|
// return true;
|
|
62407
62756
|
// }
|
|
62408
62757
|
|
|
62409
|
-
if (this._startDline >= this.cell.drawCell.drawLines.length) {
|
|
62758
|
+
if (this._startDline >= this.cell.drawCell.drawLines.length || index == -1) {
|
|
62410
62759
|
return true;
|
|
62411
62760
|
} // if (this._lastDrawLine instanceof DrawPageTable) {
|
|
62412
62761
|
// index = this._cell.drawCell.drawLines.indexOf(
|
|
@@ -62563,14 +62912,14 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62563
62912
|
// const markerLine1 = new createjs.Shape();
|
|
62564
62913
|
// const markerLine2 = new createjs.Shape();
|
|
62565
62914
|
// const markerLine3 = new createjs.Shape();
|
|
62566
|
-
// const markerLine4 = new createjs.Shape();
|
|
62915
|
+
// const markerLine4 = new createjs.Shape();
|
|
62567
62916
|
var width = this.dWidth;
|
|
62568
62917
|
var height = this.dHeight; // markerLine1.name = "markline1";
|
|
62569
62918
|
// markerLine2.name = "markline2";
|
|
62570
62919
|
// markerLine3.name = "markline3";
|
|
62571
62920
|
// markerLine4.name = "markline4";
|
|
62572
62921
|
|
|
62573
|
-
this._backImg.graphics.beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
|
|
62922
|
+
this._backImg.graphics.clear().beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
|
|
62574
62923
|
|
|
62575
62924
|
this._backImg.graphics.endStroke(); // this.addChild(markerLine1);
|
|
62576
62925
|
|
|
@@ -63588,7 +63937,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63588
63937
|
var colInfo = this._table.colInfos[c];
|
|
63589
63938
|
|
|
63590
63939
|
if (partCell.cell.cellProperty.editorProperty !== 0 || colInfo.colProperty.editorProperty !== 0) {
|
|
63591
|
-
partCell.paintMarker("#
|
|
63940
|
+
partCell.paintMarker("#FF0000");
|
|
63592
63941
|
}
|
|
63593
63942
|
|
|
63594
63943
|
var isHasTableFormula = false;
|
|
@@ -63611,7 +63960,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63611
63960
|
loopNodes(partCell.cell.childNodes);
|
|
63612
63961
|
|
|
63613
63962
|
if (isHasTableFormula) {
|
|
63614
|
-
partCell.paintMarker("#
|
|
63963
|
+
partCell.paintMarker("#0000FF");
|
|
63615
63964
|
}
|
|
63616
63965
|
|
|
63617
63966
|
partCell.paintCellBackground(newHeight, r, c);
|
|
@@ -64324,16 +64673,15 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64324
64673
|
cellRestHeight = Math.min(cell.drawCell.getCellRestHeight(0), pageRestHeight);
|
|
64325
64674
|
}
|
|
64326
64675
|
|
|
64327
|
-
var destCell = cell.drawCell.copyPaintCell(this, r, aTop);
|
|
64328
|
-
|
|
64329
|
-
|
|
64330
|
-
|
|
64331
|
-
|
|
64676
|
+
var destCell = cell.drawCell.copyPaintCell(this, r, aTop); // if (destCell) {
|
|
64677
|
+
// destCell.paintCellBackground(destCell.dHeight, mr, mc);
|
|
64678
|
+
// // destCell.updateTouchArea(newHeight);}
|
|
64679
|
+
// }
|
|
64680
|
+
// if (this.stage){
|
|
64332
64681
|
// const dPage= this._table.hoEditorFactory.drawTree.getDrawPageByDomStage(this.stage);
|
|
64333
64682
|
// if (dPage){}
|
|
64334
64683
|
// }
|
|
64335
64684
|
// cell.drawCell.copyPaintCell(this.dPage.pageIndex, this, aTop);
|
|
64336
|
-
|
|
64337
64685
|
}
|
|
64338
64686
|
}
|
|
64339
64687
|
|
|
@@ -65383,7 +65731,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65383
65731
|
/*
|
|
65384
65732
|
* @Author: your name
|
|
65385
65733
|
* @Date: 2021-09-01 16:51:49
|
|
65386
|
-
* @LastEditTime: 2022-08-
|
|
65734
|
+
* @LastEditTime: 2022-08-18 14:08:29
|
|
65387
65735
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65388
65736
|
* @Description: In User Settings Edit
|
|
65389
65737
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -65497,7 +65845,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65497
65845
|
}
|
|
65498
65846
|
}
|
|
65499
65847
|
|
|
65500
|
-
if (
|
|
65848
|
+
if ((imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
65501
65849
|
_this.drawWriteSignNode(node);
|
|
65502
65850
|
} else {
|
|
65503
65851
|
_this.drawSignNode();
|
|
@@ -67181,6 +67529,8 @@ var SpecialCharsNode = __webpack_require__(98729);
|
|
|
67181
67529
|
var es_string_replace = __webpack_require__(15306);
|
|
67182
67530
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
67183
67531
|
var es_error_cause = __webpack_require__(21703);
|
|
67532
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
67533
|
+
var commonParamList = __webpack_require__(82089);
|
|
67184
67534
|
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
67185
67535
|
var UnitConvert = __webpack_require__(38100);
|
|
67186
67536
|
;// CONCATENATED MODULE: ./src/editor/utils/DrawText.ts
|
|
@@ -67192,6 +67542,7 @@ var UnitConvert = __webpack_require__(38100);
|
|
|
67192
67542
|
|
|
67193
67543
|
|
|
67194
67544
|
|
|
67545
|
+
|
|
67195
67546
|
var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
67196
67547
|
(0,inherits/* default */.Z)(DrawText, _createjs$Text);
|
|
67197
67548
|
|
|
@@ -67343,9 +67694,14 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
67343
67694
|
|
|
67344
67695
|
|
|
67345
67696
|
ctx.imageSmoothingEnabled = true;
|
|
67346
|
-
var col = this.color || "#000";
|
|
67697
|
+
var col = this.color || "#000";
|
|
67698
|
+
|
|
67699
|
+
if (commonParamList/* commonParamList.get */.G.get('viewBlack')) {
|
|
67700
|
+
col = "#000";
|
|
67701
|
+
} // const strLowFont = this.font.toLowerCase();
|
|
67347
67702
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
67348
67703
|
|
|
67704
|
+
|
|
67349
67705
|
if (this.outline) {
|
|
67350
67706
|
ctx.strokeStyle = col;
|
|
67351
67707
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -71086,7 +71442,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71086
71442
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
71087
71443
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex, // inLineIndex,
|
|
71088
71444
|
node, startChildIndex + 1, e.afterChangePath);
|
|
71089
|
-
var endIndex = alines.
|
|
71445
|
+
var endIndex = alines.length - 1; // if (paragraphNode.parentNode === null) {
|
|
71090
71446
|
// const darea = this.getDrawA(dline);
|
|
71091
71447
|
|
|
71092
71448
|
if (e.repaintImmediate) {
|
|
@@ -75304,7 +75660,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
75304
75660
|
/*
|
|
75305
75661
|
* @Author: your name
|
|
75306
75662
|
* @Date: 2020-09-24 15:56:09
|
|
75307
|
-
* @LastEditTime: 2022-
|
|
75663
|
+
* @LastEditTime: 2022-08-17 09:27:01
|
|
75308
75664
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
75309
75665
|
* @Description: In User Settings Edit
|
|
75310
75666
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
@@ -75495,19 +75851,23 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
75495
75851
|
|
|
75496
75852
|
if (this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j && this.node.MarkNodeType === _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNodeType.mtContent */ .q.mtContent) {//变更文本域时,删除原内容插入标题时不移动光标
|
|
75497
75853
|
} else {
|
|
75498
|
-
setTimeout(
|
|
75499
|
-
|
|
75500
|
-
|
|
75501
|
-
|
|
75854
|
+
// setTimeout(
|
|
75855
|
+
// () => {
|
|
75856
|
+
// //等待变更完成
|
|
75857
|
+
hoEditorFactory.drawTree.moveCaretToPath(strAfterPath); // },
|
|
75858
|
+
// this.node.rootPath.startsWith(gMainPath) ? 0 : 110
|
|
75859
|
+
// );
|
|
75502
75860
|
}
|
|
75503
75861
|
|
|
75504
|
-
|
|
75862
|
+
_context2.next = 9;
|
|
75863
|
+
return this.ParentRepaint();
|
|
75505
75864
|
|
|
75865
|
+
case 9:
|
|
75506
75866
|
if (this.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_12__/* .TextNode */ .R) {
|
|
75507
75867
|
hoEditorFactory.timeStamp.update();
|
|
75508
75868
|
}
|
|
75509
75869
|
|
|
75510
|
-
case
|
|
75870
|
+
case 10:
|
|
75511
75871
|
case "end":
|
|
75512
75872
|
return _context2.stop();
|
|
75513
75873
|
}
|
|
@@ -76143,9 +76503,9 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
76143
76503
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
76144
76504
|
/* harmony export */ "F": function() { return /* binding */ NodesDeleteUndoUnit; }
|
|
76145
76505
|
/* harmony export */ });
|
|
76146
|
-
/* harmony import */ var
|
|
76147
|
-
/* harmony import */ var
|
|
76148
|
-
/* harmony import */ var
|
|
76506
|
+
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86769);
|
|
76507
|
+
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__);
|
|
76508
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86160);
|
|
76149
76509
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39873);
|
|
76150
76510
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37174);
|
|
76151
76511
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
|
|
@@ -76276,73 +76636,96 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76276
76636
|
}
|
|
76277
76637
|
}, {
|
|
76278
76638
|
key: "doUndo",
|
|
76279
|
-
value: function
|
|
76280
|
-
var
|
|
76281
|
-
|
|
76282
|
-
|
|
76283
|
-
|
|
76639
|
+
value: function () {
|
|
76640
|
+
var _doUndo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee() {
|
|
76641
|
+
var arr, i, prevIsTable, hoEditorFactory, value, np, aendPaht, changeEvent, newRange, cgEvent;
|
|
76642
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
76643
|
+
while (1) {
|
|
76644
|
+
switch (_context.prev = _context.next) {
|
|
76645
|
+
case 0:
|
|
76646
|
+
arr = Array.from(this._undoNodes).reverse();
|
|
76647
|
+
i = 0;
|
|
76648
|
+
prevIsTable = false;
|
|
76649
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
76284
76650
|
|
|
76285
|
-
|
|
76286
|
-
|
|
76651
|
+
while (i < arr.length) {
|
|
76652
|
+
value = arr[i];
|
|
76287
76653
|
|
|
76288
|
-
|
|
76289
|
-
|
|
76290
|
-
|
|
76291
|
-
|
|
76292
|
-
|
|
76293
|
-
|
|
76294
|
-
|
|
76654
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
76655
|
+
} else {
|
|
76656
|
+
if (prevIsTable) {
|
|
76657
|
+
hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
|
|
76658
|
+
} else {
|
|
76659
|
+
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
76660
|
+
}
|
|
76295
76661
|
|
|
76296
|
-
|
|
76297
|
-
|
|
76298
|
-
|
|
76662
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
|
|
76663
|
+
prevIsTable = true; // value[1].clearDrawNodes();
|
|
76664
|
+
// value[1].drawTable.drawPageTables.length = 0;
|
|
76299
76665
|
|
|
76300
|
-
|
|
76301
|
-
|
|
76302
|
-
|
|
76303
|
-
|
|
76304
|
-
|
|
76305
|
-
|
|
76666
|
+
np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
76667
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
76668
|
+
} else {
|
|
76669
|
+
prevIsTable = false;
|
|
76670
|
+
}
|
|
76671
|
+
}
|
|
76306
76672
|
|
|
76307
|
-
|
|
76308
|
-
|
|
76673
|
+
i += 1;
|
|
76674
|
+
}
|
|
76309
76675
|
|
|
76310
|
-
|
|
76311
|
-
|
|
76312
|
-
|
|
76676
|
+
aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
|
|
76677
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
|
|
76678
|
+
_context.next = 9;
|
|
76679
|
+
return hoEditorFactory.docTree.change(changeEvent);
|
|
76313
76680
|
|
|
76314
|
-
|
|
76315
|
-
|
|
76316
|
-
|
|
76317
|
-
|
|
76318
|
-
|
|
76319
|
-
|
|
76320
|
-
|
|
76321
|
-
|
|
76322
|
-
|
|
76323
|
-
|
|
76324
|
-
|
|
76325
|
-
|
|
76326
|
-
|
|
76327
|
-
|
|
76328
|
-
|
|
76329
|
-
|
|
76330
|
-
|
|
76331
|
-
|
|
76332
|
-
|
|
76333
|
-
|
|
76334
|
-
|
|
76335
|
-
|
|
76336
|
-
|
|
76681
|
+
case 9:
|
|
76682
|
+
//3.合并拆分节点
|
|
76683
|
+
while (!this._undo.atBottom()) {
|
|
76684
|
+
this._undo.undo();
|
|
76685
|
+
} // let startPath = this._startPath;
|
|
76686
|
+
// let endPath = this._endPath;
|
|
76687
|
+
// if (NodePosition.treePathCompare(this._startPath, this._endPath) > 0) {
|
|
76688
|
+
// startPath = this._endPath;
|
|
76689
|
+
// endPath = this._startPath;
|
|
76690
|
+
// }
|
|
76691
|
+
// if (startPath !== "" && endPath !== "") {
|
|
76692
|
+
// const arange = new DomRange(
|
|
76693
|
+
// this._hoEditorFactoryID,
|
|
76694
|
+
// startPath,
|
|
76695
|
+
// endPath
|
|
76696
|
+
// ).normalize();
|
|
76697
|
+
// const changeEvent = new NodeChangeEvent(
|
|
76698
|
+
// this._hoEditorFactoryID,
|
|
76699
|
+
// DocAction.daInsert,
|
|
76700
|
+
// arange.startPath,
|
|
76701
|
+
// arange.endPath
|
|
76702
|
+
// );
|
|
76703
|
+
// hoEditorFactory.docTree.change(changeEvent);
|
|
76704
|
+
// }
|
|
76705
|
+
//选中范围变化事件
|
|
76337
76706
|
|
|
76338
76707
|
|
|
76339
|
-
|
|
76340
|
-
|
|
76341
|
-
|
|
76342
|
-
|
|
76708
|
+
newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
76709
|
+
hoEditorFactory.docTree.curDomRange = newRange;
|
|
76710
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
76711
|
+
hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
|
|
76343
76712
|
|
|
76344
|
-
|
|
76345
|
-
|
|
76713
|
+
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
76714
|
+
|
|
76715
|
+
case 15:
|
|
76716
|
+
case "end":
|
|
76717
|
+
return _context.stop();
|
|
76718
|
+
}
|
|
76719
|
+
}
|
|
76720
|
+
}, _callee, this);
|
|
76721
|
+
}));
|
|
76722
|
+
|
|
76723
|
+
function doUndo() {
|
|
76724
|
+
return _doUndo.apply(this, arguments);
|
|
76725
|
+
}
|
|
76726
|
+
|
|
76727
|
+
return doUndo;
|
|
76728
|
+
}()
|
|
76346
76729
|
/**
|
|
76347
76730
|
* @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
|
|
76348
76731
|
*/
|
|
@@ -76714,14 +77097,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76714
77097
|
}, {
|
|
76715
77098
|
key: "doRedo",
|
|
76716
77099
|
value: function () {
|
|
76717
|
-
var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,
|
|
77100
|
+
var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee2() {
|
|
76718
77101
|
var _currRange$npEnd$node;
|
|
76719
77102
|
|
|
76720
77103
|
var currRange, hoEditorFactory, textStyle, nodes, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
76721
77104
|
|
|
76722
|
-
return (0,
|
|
77105
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
76723
77106
|
while (1) {
|
|
76724
|
-
switch (
|
|
77107
|
+
switch (_context2.prev = _context2.next) {
|
|
76725
77108
|
case 0:
|
|
76726
77109
|
this.initParam();
|
|
76727
77110
|
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
@@ -76729,26 +77112,26 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76729
77112
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
76730
77113
|
|
|
76731
77114
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
76732
|
-
|
|
77115
|
+
_context2.next = 11;
|
|
76733
77116
|
break;
|
|
76734
77117
|
}
|
|
76735
77118
|
|
|
76736
77119
|
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
|
|
76737
|
-
|
|
77120
|
+
_context2.next = 11;
|
|
76738
77121
|
break;
|
|
76739
77122
|
}
|
|
76740
77123
|
|
|
76741
77124
|
textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
|
|
76742
77125
|
|
|
76743
77126
|
if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
|
|
76744
|
-
|
|
77127
|
+
_context2.next = 11;
|
|
76745
77128
|
break;
|
|
76746
77129
|
}
|
|
76747
77130
|
|
|
76748
|
-
|
|
77131
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该内容当前已处于删除状态!");
|
|
76749
77132
|
|
|
76750
77133
|
this._isError = true;
|
|
76751
|
-
return
|
|
77134
|
+
return _context2.abrupt("return");
|
|
76752
77135
|
|
|
76753
77136
|
case 11:
|
|
76754
77137
|
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
@@ -76763,7 +77146,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76763
77146
|
//if(nodes.length == 0) return;
|
|
76764
77147
|
|
|
76765
77148
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
76766
|
-
|
|
77149
|
+
_context2.next = 38;
|
|
76767
77150
|
break;
|
|
76768
77151
|
}
|
|
76769
77152
|
|
|
@@ -76771,21 +77154,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76771
77154
|
|
|
76772
77155
|
case 14:
|
|
76773
77156
|
if (!(n < nodes.length)) {
|
|
76774
|
-
|
|
77157
|
+
_context2.next = 38;
|
|
76775
77158
|
break;
|
|
76776
77159
|
}
|
|
76777
77160
|
|
|
76778
77161
|
node = nodes[n];
|
|
76779
77162
|
|
|
76780
77163
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
|
|
76781
|
-
|
|
77164
|
+
_context2.next = 20;
|
|
76782
77165
|
break;
|
|
76783
77166
|
}
|
|
76784
77167
|
|
|
76785
|
-
|
|
77168
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
76786
77169
|
|
|
76787
77170
|
this._isError = true;
|
|
76788
|
-
return
|
|
77171
|
+
return _context2.abrupt("return");
|
|
76789
77172
|
|
|
76790
77173
|
case 20:
|
|
76791
77174
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
@@ -76793,12 +77176,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76793
77176
|
}
|
|
76794
77177
|
|
|
76795
77178
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
76796
|
-
|
|
77179
|
+
_context2.next = 31;
|
|
76797
77180
|
break;
|
|
76798
77181
|
}
|
|
76799
77182
|
|
|
76800
77183
|
if (node.isAllowDelete) {
|
|
76801
|
-
|
|
77184
|
+
_context2.next = 31;
|
|
76802
77185
|
break;
|
|
76803
77186
|
}
|
|
76804
77187
|
|
|
@@ -76820,32 +77203,32 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76820
77203
|
tip = "下拉列表";
|
|
76821
77204
|
}
|
|
76822
77205
|
|
|
76823
|
-
|
|
77206
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
76824
77207
|
|
|
76825
77208
|
this._isError = true;
|
|
76826
|
-
return
|
|
77209
|
+
return _context2.abrupt("return");
|
|
76827
77210
|
|
|
76828
77211
|
case 31:
|
|
76829
77212
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
76830
|
-
|
|
77213
|
+
_context2.next = 35;
|
|
76831
77214
|
break;
|
|
76832
77215
|
}
|
|
76833
77216
|
|
|
76834
|
-
|
|
77217
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该签名元素不允许删除!", "系统提示");
|
|
76835
77218
|
|
|
76836
77219
|
this._isError = true;
|
|
76837
|
-
return
|
|
77220
|
+
return _context2.abrupt("return");
|
|
76838
77221
|
|
|
76839
77222
|
case 35:
|
|
76840
77223
|
n++;
|
|
76841
|
-
|
|
77224
|
+
_context2.next = 14;
|
|
76842
77225
|
break;
|
|
76843
77226
|
|
|
76844
77227
|
case 38:
|
|
76845
77228
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
76846
77229
|
|
|
76847
77230
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
76848
|
-
|
|
77231
|
+
_context2.next = 44;
|
|
76849
77232
|
break;
|
|
76850
77233
|
}
|
|
76851
77234
|
|
|
@@ -76858,18 +77241,18 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76858
77241
|
});
|
|
76859
77242
|
|
|
76860
77243
|
if (_res[0]) {
|
|
76861
|
-
|
|
77244
|
+
_context2.next = 44;
|
|
76862
77245
|
break;
|
|
76863
77246
|
}
|
|
76864
77247
|
|
|
76865
|
-
return
|
|
77248
|
+
return _context2.abrupt("return");
|
|
76866
77249
|
|
|
76867
77250
|
case 44:
|
|
76868
77251
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
76869
77252
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
76870
77253
|
|
|
76871
77254
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
76872
|
-
|
|
77255
|
+
_context2.next = 47;
|
|
76873
77256
|
break;
|
|
76874
77257
|
}
|
|
76875
77258
|
|
|
@@ -76888,13 +77271,13 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76888
77271
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
76889
77272
|
|
|
76890
77273
|
if (!(res == 1)) {
|
|
76891
|
-
|
|
77274
|
+
_context2.next = 59;
|
|
76892
77275
|
break;
|
|
76893
77276
|
}
|
|
76894
77277
|
|
|
76895
77278
|
changeEvent.beforeChangePath = startPath;
|
|
76896
77279
|
changeEvent.afterChangePath = this._tmp.start;
|
|
76897
|
-
|
|
77280
|
+
_context2.next = 57;
|
|
76898
77281
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
76899
77282
|
|
|
76900
77283
|
case 57:
|
|
@@ -76907,19 +77290,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76907
77290
|
aNode = currRange.npStart.node;
|
|
76908
77291
|
|
|
76909
77292
|
if (!(aNode && pnode)) {
|
|
76910
|
-
|
|
77293
|
+
_context2.next = 65;
|
|
76911
77294
|
break;
|
|
76912
77295
|
}
|
|
76913
77296
|
|
|
76914
|
-
|
|
77297
|
+
_context2.next = 65;
|
|
76915
77298
|
return this.ParentRepaint(pnode);
|
|
76916
77299
|
|
|
76917
77300
|
case 65:
|
|
76918
77301
|
case "end":
|
|
76919
|
-
return
|
|
77302
|
+
return _context2.stop();
|
|
76920
77303
|
}
|
|
76921
77304
|
}
|
|
76922
|
-
},
|
|
77305
|
+
}, _callee2, this);
|
|
76923
77306
|
}));
|
|
76924
77307
|
|
|
76925
77308
|
function doRedo() {
|
|
@@ -79553,7 +79936,7 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79553
79936
|
/* harmony export */ "b": function() { return /* binding */ DrawSimpleText; }
|
|
79554
79937
|
/* harmony export */ });
|
|
79555
79938
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
|
|
79556
|
-
/* harmony import */ var
|
|
79939
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22342);
|
|
79557
79940
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
|
|
79558
79941
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
|
|
79559
79942
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74916);
|
|
@@ -79562,7 +79945,9 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79562
79945
|
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
79563
79946
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
|
|
79564
79947
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
79565
|
-
/* harmony import */ var
|
|
79948
|
+
/* harmony import */ var _commonParamList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(82089);
|
|
79949
|
+
/* harmony import */ var _UnitConvert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38100);
|
|
79950
|
+
|
|
79566
79951
|
|
|
79567
79952
|
|
|
79568
79953
|
|
|
@@ -79603,7 +79988,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79603
79988
|
return _this;
|
|
79604
79989
|
}
|
|
79605
79990
|
|
|
79606
|
-
(0,
|
|
79991
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(DrawSimpleText, [{
|
|
79607
79992
|
key: "docWidth",
|
|
79608
79993
|
get: function get() {
|
|
79609
79994
|
return this._docWidth;
|
|
@@ -79648,9 +80033,15 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79648
80033
|
|
|
79649
80034
|
|
|
79650
80035
|
ctx.imageSmoothingEnabled = true;
|
|
79651
|
-
var col = this.color || "#000";
|
|
80036
|
+
var col = this.color || "#000";
|
|
80037
|
+
|
|
80038
|
+
if (_commonParamList__WEBPACK_IMPORTED_MODULE_6__/* .commonParamList.get */ .G.get('viewBlack')) {
|
|
80039
|
+
// 预览时设置全部
|
|
80040
|
+
col = "#000";
|
|
80041
|
+
} // const strLowFont = this.font.toLowerCase();
|
|
79652
80042
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
79653
80043
|
|
|
80044
|
+
|
|
79654
80045
|
if (this.outline) {
|
|
79655
80046
|
ctx.strokeStyle = col;
|
|
79656
80047
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -79847,7 +80238,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79847
80238
|
}
|
|
79848
80239
|
|
|
79849
80240
|
for (var j = 0, jlen = text.length; j < jlen; j++) {
|
|
79850
|
-
if (!
|
|
80241
|
+
if (!_UnitConvert__WEBPACK_IMPORTED_MODULE_7__/* .UnitConvert.isNumEnglish */ .P.isNumEnglish(text[j])) {
|
|
79851
80242
|
return false;
|
|
79852
80243
|
}
|
|
79853
80244
|
}
|
|
@@ -80655,7 +81046,7 @@ var isMap = function isMap(map) {
|
|
|
80655
81046
|
var isDate = function isDate(date) {
|
|
80656
81047
|
if (date === null || date === undefined) {
|
|
80657
81048
|
return false;
|
|
80658
|
-
} else if (typeof date ===
|
|
81049
|
+
} else if (typeof date === 'string') {
|
|
80659
81050
|
if (isNaN(new Date(date).getTime())) {
|
|
80660
81051
|
return false;
|
|
80661
81052
|
} else {
|
|
@@ -80687,35 +81078,35 @@ var toDate = function toDate(date) {
|
|
|
80687
81078
|
// };
|
|
80688
81079
|
|
|
80689
81080
|
|
|
80690
|
-
var dateFormatList = [
|
|
81081
|
+
var dateFormatList = ['HH:mm', 'HH:mm:ss', 'MM/dd', 'yyyy/MM/dd', 'yyyy/MM/dd HH:mm', 'yyyy/MM/dd HH:mm:ss', 'HH时mm分', 'HH时mm分ss秒', 'MM月dd日', 'yyyy年MM月dd日', 'yyyy年MM月dd日 HH时mm分', 'yyyy年MM月dd日 HH时mm分ss秒', 'MM-dd', 'yyyy-MM-dd', 'yyyy-MM-dd HH:mm', 'yyyy-MM-dd HH:mm:ss'];
|
|
80691
81082
|
var dateFormatValueList = [{
|
|
80692
|
-
value:
|
|
81083
|
+
value: 'HH:mm'
|
|
80693
81084
|
}, {
|
|
80694
|
-
value:
|
|
81085
|
+
value: 'HH:mm:ss'
|
|
80695
81086
|
}, {
|
|
80696
|
-
value:
|
|
81087
|
+
value: 'yyyy/MM/dd'
|
|
80697
81088
|
}, {
|
|
80698
|
-
value:
|
|
81089
|
+
value: 'yyyy/MM/dd HH:mm'
|
|
80699
81090
|
}, {
|
|
80700
|
-
value:
|
|
81091
|
+
value: 'yyyy/MM/dd HH:mm:ss'
|
|
80701
81092
|
}, {
|
|
80702
|
-
value:
|
|
81093
|
+
value: 'HH时mm分'
|
|
80703
81094
|
}, {
|
|
80704
|
-
value:
|
|
81095
|
+
value: 'HH时mm分ss秒'
|
|
80705
81096
|
}, {
|
|
80706
|
-
value:
|
|
81097
|
+
value: 'yyyy年MM月dd日'
|
|
80707
81098
|
}, {
|
|
80708
|
-
value:
|
|
81099
|
+
value: 'yyyy年MM月dd日 HH时mm分'
|
|
80709
81100
|
}, {
|
|
80710
|
-
value:
|
|
81101
|
+
value: 'yyyy年MM月dd日 HH时mm分ss秒'
|
|
80711
81102
|
}, {
|
|
80712
|
-
value:
|
|
81103
|
+
value: 'MM-dd'
|
|
80713
81104
|
}, {
|
|
80714
|
-
value:
|
|
81105
|
+
value: 'yyyy-MM-dd'
|
|
80715
81106
|
}, {
|
|
80716
|
-
value:
|
|
81107
|
+
value: 'yyyy-MM-dd HH:mm'
|
|
80717
81108
|
}, {
|
|
80718
|
-
value:
|
|
81109
|
+
value: 'yyyy-MM-dd HH:mm:ss'
|
|
80719
81110
|
}];
|
|
80720
81111
|
/**
|
|
80721
81112
|
* 日期格式化
|
|
@@ -80726,23 +81117,23 @@ var dateFormatValueList = [{
|
|
|
80726
81117
|
var dateFormat = function dateFormat(date, format) {
|
|
80727
81118
|
var _date;
|
|
80728
81119
|
|
|
80729
|
-
if (date && typeof date ===
|
|
80730
|
-
var stringDate = date.replace(/[年|月|-]/g,
|
|
80731
|
-
stringDate = stringDate.replace(/[点|时|分]/g,
|
|
80732
|
-
stringDate = stringDate.replace(/[日|秒]/g,
|
|
81120
|
+
if (date && typeof date === 'string') {
|
|
81121
|
+
var stringDate = date.replace(/[年|月|-]/g, '/');
|
|
81122
|
+
stringDate = stringDate.replace(/[点|时|分]/g, ':');
|
|
81123
|
+
stringDate = stringDate.replace(/[日|秒]/g, '');
|
|
80733
81124
|
|
|
80734
81125
|
if (isNaN(new Date(stringDate).getTime())) {
|
|
80735
|
-
if (format && format.includes(
|
|
80736
|
-
stringDate =
|
|
81126
|
+
if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
81127
|
+
stringDate = '2021/' + stringDate;
|
|
80737
81128
|
}
|
|
80738
81129
|
|
|
80739
|
-
if (format && format.includes(
|
|
80740
|
-
stringDate = stringDate +
|
|
80741
|
-
stringDate = stringDate.replace(
|
|
81130
|
+
if (format && format.includes('HH') && !format.includes('ss')) {
|
|
81131
|
+
stringDate = stringDate + ':00';
|
|
81132
|
+
stringDate = stringDate.replace('::', ':');
|
|
80742
81133
|
}
|
|
80743
81134
|
|
|
80744
|
-
if (!stringDate.includes(
|
|
80745
|
-
stringDate =
|
|
81135
|
+
if (!stringDate.includes('/')) {
|
|
81136
|
+
stringDate = '2021/10/01 ' + stringDate;
|
|
80746
81137
|
}
|
|
80747
81138
|
}
|
|
80748
81139
|
|
|
@@ -80762,7 +81153,7 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
80762
81153
|
if (minutes.length === 1) minutes = "0".concat(minutes);
|
|
80763
81154
|
var seconds = "".concat(_date.getSeconds());
|
|
80764
81155
|
if (seconds.length === 1) seconds = "0".concat(seconds);
|
|
80765
|
-
return (format ||
|
|
81156
|
+
return (format || 'yyyy-MM-dd HH:mm:ss').replace(/yyyy/g, year).replace(/MM/g, month).replace(/dd/g, day).replace(/HH|hh/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
80766
81157
|
};
|
|
80767
81158
|
/**
|
|
80768
81159
|
* 弹窗拖动
|
|
@@ -80776,18 +81167,18 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80776
81167
|
var y = 0;
|
|
80777
81168
|
|
|
80778
81169
|
var move = function move(event) {
|
|
80779
|
-
modalElement.style.left = event.pageX - x +
|
|
80780
|
-
modalElement.style.top = event.pageY - y +
|
|
81170
|
+
modalElement.style.left = event.pageX - x + 'px';
|
|
81171
|
+
modalElement.style.top = event.pageY - y + 'px';
|
|
80781
81172
|
};
|
|
80782
81173
|
|
|
80783
81174
|
var target = event.target;
|
|
80784
81175
|
|
|
80785
|
-
if (typeof target.className ===
|
|
81176
|
+
if (typeof target.className === 'string' && target.className.indexOf(openMoveClassName) !== -1) {
|
|
80786
81177
|
x = event.pageX - modalElement.offsetLeft;
|
|
80787
81178
|
y = event.pageY - modalElement.offsetTop;
|
|
80788
|
-
document.addEventListener(
|
|
80789
|
-
document.addEventListener(
|
|
80790
|
-
document.removeEventListener(
|
|
81179
|
+
document.addEventListener('mousemove', move);
|
|
81180
|
+
document.addEventListener('mouseup', function () {
|
|
81181
|
+
document.removeEventListener('mousemove', move);
|
|
80791
81182
|
});
|
|
80792
81183
|
} else {
|
|
80793
81184
|
return false;
|
|
@@ -80806,38 +81197,38 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80806
81197
|
*/
|
|
80807
81198
|
|
|
80808
81199
|
var computedPoperPosition = function computedPoperPosition(maxHeight, poperPos, offsetHeight) {
|
|
80809
|
-
var doc = Array.from(document.querySelectorAll(
|
|
81200
|
+
var doc = Array.from(document.querySelectorAll('.edit-area'))[poperPos.docIndex];
|
|
80810
81201
|
var offsetHeights = offsetHeight ? offsetHeight : 0;
|
|
80811
81202
|
var pos = {
|
|
80812
|
-
left:
|
|
80813
|
-
top:
|
|
80814
|
-
right:
|
|
80815
|
-
bottom:
|
|
80816
|
-
height: maxHeight +
|
|
81203
|
+
left: '',
|
|
81204
|
+
top: '',
|
|
81205
|
+
right: '',
|
|
81206
|
+
bottom: '',
|
|
81207
|
+
height: maxHeight + 'px'
|
|
80817
81208
|
};
|
|
80818
|
-
var selectCanvas = Array.from(doc.querySelectorAll(
|
|
81209
|
+
var selectCanvas = Array.from(doc.querySelectorAll('.selectcanvas'))[poperPos.pageIndex];
|
|
80819
81210
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80820
81211
|
var screenHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
80821
81212
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80822
81213
|
var y = selectCanvasSize.top + poperPos.y;
|
|
80823
|
-
pos.left = x +
|
|
81214
|
+
pos.left = x + 'px';
|
|
80824
81215
|
|
|
80825
81216
|
if (screenHeight - y - poperPos.height + 30 < maxHeight) {
|
|
80826
81217
|
if (y + poperPos.height < maxHeight) {
|
|
80827
81218
|
// 可用高度不足时,暂定遮挡元素内容,保证控件能显示完整
|
|
80828
|
-
pos.bottom =
|
|
81219
|
+
pos.bottom = '0px';
|
|
80829
81220
|
} else {
|
|
80830
|
-
pos.bottom = screenHeight - y - offsetHeights + poperPos.height +
|
|
81221
|
+
pos.bottom = screenHeight - y - offsetHeights + poperPos.height + 'px';
|
|
80831
81222
|
}
|
|
80832
81223
|
} else {
|
|
80833
|
-
pos.top = y + offsetHeights +
|
|
81224
|
+
pos.top = y + offsetHeights + 'px';
|
|
80834
81225
|
}
|
|
80835
81226
|
|
|
80836
81227
|
return pos;
|
|
80837
81228
|
};
|
|
80838
81229
|
var generateGetBoundingClientRect = function generateGetBoundingClientRect(poperPos, offsetHeight) {
|
|
80839
|
-
var doc = Array.from(document.querySelectorAll(
|
|
80840
|
-
var selectCanvas = Array.from(doc.querySelectorAll(
|
|
81230
|
+
var doc = Array.from(document.querySelectorAll('.edit-area'))[poperPos.docIndex];
|
|
81231
|
+
var selectCanvas = Array.from(doc.querySelectorAll('.selectcanvas'))[poperPos.pageIndex];
|
|
80841
81232
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80842
81233
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80843
81234
|
var y = selectCanvasSize.top + poperPos.y;
|
|
@@ -80859,7 +81250,7 @@ var generateGetBoundingClientRect = function generateGetBoundingClientRect(poper
|
|
|
80859
81250
|
|
|
80860
81251
|
var generateID = function generateID(type) {
|
|
80861
81252
|
if (type === undefined) {
|
|
80862
|
-
type =
|
|
81253
|
+
type = '';
|
|
80863
81254
|
}
|
|
80864
81255
|
|
|
80865
81256
|
var date = new Date();
|
|
@@ -80871,23 +81262,23 @@ var generateID = function generateID(type) {
|
|
|
80871
81262
|
var second = date.getSeconds().toString();
|
|
80872
81263
|
|
|
80873
81264
|
if (month.length === 1) {
|
|
80874
|
-
month =
|
|
81265
|
+
month = '0' + month;
|
|
80875
81266
|
}
|
|
80876
81267
|
|
|
80877
81268
|
if (day.length === 1) {
|
|
80878
|
-
day =
|
|
81269
|
+
day = '0' + day;
|
|
80879
81270
|
}
|
|
80880
81271
|
|
|
80881
81272
|
if (hour.length === 1) {
|
|
80882
|
-
hour =
|
|
81273
|
+
hour = '0' + hour;
|
|
80883
81274
|
}
|
|
80884
81275
|
|
|
80885
81276
|
if (minute.length === 1) {
|
|
80886
|
-
minute =
|
|
81277
|
+
minute = '0' + minute;
|
|
80887
81278
|
}
|
|
80888
81279
|
|
|
80889
81280
|
if (second.length === 1) {
|
|
80890
|
-
second =
|
|
81281
|
+
second = '0' + second;
|
|
80891
81282
|
}
|
|
80892
81283
|
|
|
80893
81284
|
var randomNumber = Math.floor(Math.random() * 1000000).toString();
|
|
@@ -80916,11 +81307,11 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80916
81307
|
getBoundingClientRect: generateGetBoundingClientRect(clientX, clientY)
|
|
80917
81308
|
};
|
|
80918
81309
|
(0,_popperjs_core__WEBPACK_IMPORTED_MODULE_12__/* .createPopper */ .fi)(virtualElement, rightMenuModal, {
|
|
80919
|
-
placement:
|
|
81310
|
+
placement: 'bottom-start',
|
|
80920
81311
|
modifiers: [{
|
|
80921
|
-
name:
|
|
81312
|
+
name: 'flip',
|
|
80922
81313
|
options: {
|
|
80923
|
-
fallbackPlacements: [
|
|
81314
|
+
fallbackPlacements: ['bottom-start', 'bottom', 'right', 'left'],
|
|
80924
81315
|
padding: 10
|
|
80925
81316
|
}
|
|
80926
81317
|
}]
|
|
@@ -80932,10 +81323,10 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80932
81323
|
*/
|
|
80933
81324
|
|
|
80934
81325
|
var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation) {
|
|
80935
|
-
var printStyle = document.createElement(
|
|
81326
|
+
var printStyle = document.createElement('style'); // css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
|
|
80936
81327
|
|
|
80937
|
-
printStyle.type =
|
|
80938
|
-
printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation ===
|
|
81328
|
+
printStyle.type = 'text/css';
|
|
81329
|
+
printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n }\n ");
|
|
80939
81330
|
return printStyle;
|
|
80940
81331
|
};
|
|
80941
81332
|
/**
|
|
@@ -80946,23 +81337,23 @@ var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation)
|
|
|
80946
81337
|
var createPrintHTMLIframe = function createPrintHTMLIframe(printStyle) {
|
|
80947
81338
|
var _printIframe$contentW;
|
|
80948
81339
|
|
|
80949
|
-
var printIframe = document.createElement(
|
|
80950
|
-
printIframe.id =
|
|
80951
|
-
printIframe.style.position =
|
|
80952
|
-
printIframe.style.margin =
|
|
80953
|
-
printIframe.style.padding =
|
|
80954
|
-
printIframe.style.width =
|
|
80955
|
-
printIframe.style.height =
|
|
80956
|
-
printIframe.style.visibility =
|
|
81340
|
+
var printIframe = document.createElement('iframe');
|
|
81341
|
+
printIframe.id = 'ho-print-svg-boxIframe';
|
|
81342
|
+
printIframe.style.position = 'fixed';
|
|
81343
|
+
printIframe.style.margin = '0';
|
|
81344
|
+
printIframe.style.padding = '0';
|
|
81345
|
+
printIframe.style.width = '0px';
|
|
81346
|
+
printIframe.style.height = '0px';
|
|
81347
|
+
printIframe.style.visibility = 'hidden';
|
|
80957
81348
|
document.body.appendChild(printIframe);
|
|
80958
81349
|
printIframe === null || printIframe === void 0 ? void 0 : (_printIframe$contentW = printIframe.contentWindow) === null || _printIframe$contentW === void 0 ? void 0 : _printIframe$contentW.document.head.appendChild(printStyle);
|
|
80959
81350
|
return printIframe;
|
|
80960
81351
|
};
|
|
80961
81352
|
var resetScale = function resetScale() {
|
|
80962
|
-
var bodyElement = document.querySelector(
|
|
81353
|
+
var bodyElement = document.querySelector('body');
|
|
80963
81354
|
|
|
80964
|
-
if (Object.prototype.hasOwnProperty.call(bodyElement.style,
|
|
80965
|
-
bodyElement.style.zoom =
|
|
81355
|
+
if (Object.prototype.hasOwnProperty.call(bodyElement.style, 'zoom')) {
|
|
81356
|
+
bodyElement.style.zoom = 'reset';
|
|
80966
81357
|
}
|
|
80967
81358
|
|
|
80968
81359
|
document.onkeydown = function (event) {
|
|
@@ -80978,12 +81369,12 @@ var resetScale = function resetScale() {
|
|
|
80978
81369
|
//Firefox滑轮事件
|
|
80979
81370
|
if (e.detail > 0) {
|
|
80980
81371
|
//当滑轮向上滚动时
|
|
80981
|
-
alert(
|
|
81372
|
+
alert('滑轮向下滚动');
|
|
80982
81373
|
}
|
|
80983
81374
|
|
|
80984
81375
|
if (e.detail < 0) {
|
|
80985
81376
|
//当滑轮向下滚动时
|
|
80986
|
-
alert(
|
|
81377
|
+
alert('滑轮向上滚动');
|
|
80987
81378
|
}
|
|
80988
81379
|
}
|
|
80989
81380
|
};
|
|
@@ -80991,29 +81382,29 @@ var resetScale = function resetScale() {
|
|
|
80991
81382
|
var getBrowser = function getBrowser() {
|
|
80992
81383
|
var sUsrAg = window.navigator.userAgent;
|
|
80993
81384
|
|
|
80994
|
-
if (sUsrAg.indexOf(
|
|
80995
|
-
return
|
|
80996
|
-
} else if (sUsrAg.indexOf(
|
|
80997
|
-
return
|
|
80998
|
-
} else if (sUsrAg.indexOf(
|
|
80999
|
-
return
|
|
81000
|
-
} else if (sUsrAg.indexOf(
|
|
81001
|
-
return
|
|
81002
|
-
} else if (sUsrAg.indexOf(
|
|
81003
|
-
return
|
|
81004
|
-
} else if (sUsrAg.indexOf(
|
|
81005
|
-
return
|
|
81385
|
+
if (sUsrAg.indexOf('Firefox') > -1) {
|
|
81386
|
+
return 'Mozilla Firefox'; // 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0'
|
|
81387
|
+
} else if (sUsrAg.indexOf('Opera') > -1 || sUsrAg.indexOf('OPR') > -1) {
|
|
81388
|
+
return 'Opera'; // 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 OPR/57.0.3098.106'
|
|
81389
|
+
} else if (sUsrAg.indexOf('Trident') > -1) {
|
|
81390
|
+
return 'Microsoft Internet Explorer'; // 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; Zoom 3.6.0; wbx 1.0.0; rv:11.0) like Gecko'
|
|
81391
|
+
} else if (sUsrAg.indexOf('Edge') > -1) {
|
|
81392
|
+
return 'Microsoft Edge'; // 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299'
|
|
81393
|
+
} else if (sUsrAg.indexOf('Chrome') > -1) {
|
|
81394
|
+
return 'Google Chrome or Chromium'; // 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.181 Chrome/66.0.3359.181 Safari/537.36'
|
|
81395
|
+
} else if (sUsrAg.indexOf('Safari') > -1) {
|
|
81396
|
+
return 'Apple Safari'; // 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1 980x1306'
|
|
81006
81397
|
} else {
|
|
81007
|
-
return
|
|
81398
|
+
return 'unknown';
|
|
81008
81399
|
}
|
|
81009
81400
|
}; //给页面绑定滑轮滚动事件
|
|
81010
81401
|
|
|
81011
81402
|
|
|
81012
|
-
if (getBrowser() ===
|
|
81403
|
+
if (getBrowser() === 'Mozilla Firefox') {
|
|
81013
81404
|
//火狐使用DOMMouseScroll绑定
|
|
81014
|
-
document.addEventListener(
|
|
81405
|
+
document.addEventListener('DOMMouseScroll', windowAddMouseWheel, false);
|
|
81015
81406
|
} else {
|
|
81016
|
-
document.addEventListener(
|
|
81407
|
+
document.addEventListener('onmousewheel', windowAddMouseWheel, false);
|
|
81017
81408
|
}
|
|
81018
81409
|
};
|
|
81019
81410
|
var getUserIP = function getUserIP(onNewIP) {
|
|
@@ -81022,7 +81413,7 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81022
81413
|
var myPeerConnection = window.RTCPeerConnection;
|
|
81023
81414
|
var pc = new myPeerConnection({
|
|
81024
81415
|
iceServers: [{
|
|
81025
|
-
urls:
|
|
81416
|
+
urls: 'stun:stun.l.google.com:19302'
|
|
81026
81417
|
}]
|
|
81027
81418
|
});
|
|
81028
81419
|
var localIPs = {};
|
|
@@ -81033,13 +81424,13 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81033
81424
|
localIPs[ip] = true;
|
|
81034
81425
|
};
|
|
81035
81426
|
|
|
81036
|
-
pc.createDataChannel(
|
|
81427
|
+
pc.createDataChannel('');
|
|
81037
81428
|
pc.createOffer().then(function (sdp) {
|
|
81038
81429
|
if (sdp && sdp.sdp) {
|
|
81039
|
-
sdp.sdp.split(
|
|
81430
|
+
sdp.sdp.split('\n').forEach(function (line) {
|
|
81040
81431
|
var _line$match;
|
|
81041
81432
|
|
|
81042
|
-
if (line.indexOf(
|
|
81433
|
+
if (line.indexOf('candidate') < 0) return;
|
|
81043
81434
|
(_line$match = line.match(ipRegex)) === null || _line$match === void 0 ? void 0 : _line$match.forEach(iterateIP);
|
|
81044
81435
|
});
|
|
81045
81436
|
}
|
|
@@ -81060,15 +81451,15 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81060
81451
|
var newImage = new Image();
|
|
81061
81452
|
var quality = qualitys ? qualitys : 1;
|
|
81062
81453
|
newImage.src = base64;
|
|
81063
|
-
newImage.setAttribute(
|
|
81454
|
+
newImage.setAttribute('crossOrigin', 'Anonymous'); //url为外域时需要
|
|
81064
81455
|
|
|
81065
81456
|
var imgWidth, imgHeight;
|
|
81066
81457
|
|
|
81067
81458
|
newImage.onload = function () {
|
|
81068
81459
|
imgWidth = newImage.naturalWidth;
|
|
81069
81460
|
imgHeight = newImage.naturalHeight;
|
|
81070
|
-
var canvas = document.createElement(
|
|
81071
|
-
var ctx = canvas.getContext(
|
|
81461
|
+
var canvas = document.createElement('canvas');
|
|
81462
|
+
var ctx = canvas.getContext('2d');
|
|
81072
81463
|
|
|
81073
81464
|
if (img) {
|
|
81074
81465
|
canvas.width = img[0] * 2;
|
|
@@ -81078,19 +81469,19 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81078
81469
|
canvas.height = imgHeight * 2;
|
|
81079
81470
|
}
|
|
81080
81471
|
|
|
81081
|
-
canvas.style.width = canvas.width / 2 +
|
|
81082
|
-
canvas.style.height = canvas.height / 2 +
|
|
81472
|
+
canvas.style.width = canvas.width / 2 + 'px';
|
|
81473
|
+
canvas.style.height = canvas.height / 2 + 'px';
|
|
81083
81474
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
81084
|
-
ctx.fillStyle =
|
|
81475
|
+
ctx.fillStyle = '#FFFFFF';
|
|
81085
81476
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
81086
81477
|
ctx.drawImage(newImage, 0, 0, canvas.width, canvas.height);
|
|
81087
|
-
var base64 = canvas.toDataURL(
|
|
81478
|
+
var base64 = canvas.toDataURL('image/jpeg', quality); //压缩语句
|
|
81088
81479
|
// 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
|
|
81089
81480
|
|
|
81090
81481
|
if (size) {
|
|
81091
81482
|
while (base64.length / 1024 > size) {
|
|
81092
81483
|
quality -= 0.01;
|
|
81093
|
-
base64 = canvas.toDataURL(
|
|
81484
|
+
base64 = canvas.toDataURL('image/jpeg', quality);
|
|
81094
81485
|
}
|
|
81095
81486
|
}
|
|
81096
81487
|
|
|
@@ -212340,7 +212731,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
212340
212731
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
212341
212732
|
|
|
212342
212733
|
var map = {
|
|
212343
|
-
"./ControlModal.vue":
|
|
212734
|
+
"./ControlModal.vue": 40275,
|
|
212344
212735
|
"./barCode/BarCodes.vue": 51185,
|
|
212345
212736
|
"./colorPicker/HoColorPicker.vue": 47328,
|
|
212346
212737
|
"./commentDialog/CommentDialog.vue": 23737,
|
|
@@ -212357,7 +212748,7 @@ var map = {
|
|
|
212357
212748
|
"./pageInfoes/PageInfoes.vue": 67977,
|
|
212358
212749
|
"./paragraph/ParagraphDialog.vue": 32679,
|
|
212359
212750
|
"./poperSelect/PoperMark.vue": 93069,
|
|
212360
|
-
"./poperSelect/PoperSelect.vue":
|
|
212751
|
+
"./poperSelect/PoperSelect.vue": 23915,
|
|
212361
212752
|
"./poperTipText/PoperTipText.vue": 91831,
|
|
212362
212753
|
"./popers/Poper.vue": 96012,
|
|
212363
212754
|
"./popers/Title.vue": 40168,
|
|
@@ -212366,9 +212757,10 @@ var map = {
|
|
|
212366
212757
|
"./radioCheckBox/RadioCheckbox.vue": 48961,
|
|
212367
212758
|
"./selectDialog/SelectDialog.vue": 54891,
|
|
212368
212759
|
"./sign/Sign.vue": 44801,
|
|
212369
|
-
"./table/TableCellPoper.vue":
|
|
212760
|
+
"./table/TableCellPoper.vue": 46787,
|
|
212370
212761
|
"./table/TableCellProperty.vue": 52445,
|
|
212371
212762
|
"./table/TableColProperty.vue": 97160,
|
|
212763
|
+
"./table/TableFormula.vue": 53197,
|
|
212372
212764
|
"./table/TableProperty.vue": 44680,
|
|
212373
212765
|
"./table/TableRowProperty.vue": 74456,
|
|
212374
212766
|
"./textDialog/TextDialog.vue": 74796,
|
|
@@ -213885,7 +214277,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
213885
214277
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
213886
214278
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
213887
214279
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
213888
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
214280
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=2edbffe6&
|
|
213889
214281
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
213890
214282
|
var staticRenderFns = []
|
|
213891
214283
|
|
|
@@ -213912,14 +214304,11 @@ var es_string_match = __webpack_require__(4723);
|
|
|
213912
214304
|
var es_number_constructor = __webpack_require__(9653);
|
|
213913
214305
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
213914
214306
|
var es_json_stringify = __webpack_require__(38862);
|
|
213915
|
-
;// 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=
|
|
213916
|
-
var
|
|
213917
|
-
var
|
|
214307
|
+
;// 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=7f445433&
|
|
214308
|
+
var HoDocvue_type_template_id_7f445433_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)}
|
|
214309
|
+
var HoDocvue_type_template_id_7f445433_staticRenderFns = []
|
|
213918
214310
|
|
|
213919
214311
|
|
|
213920
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
213921
|
-
var message_box = __webpack_require__(86769);
|
|
213922
|
-
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
213923
214312
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
213924
214313
|
var es_array_filter = __webpack_require__(57327);
|
|
213925
214314
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -214794,15 +215183,13 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214794
215183
|
this._domStage.scaleY = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
214795
215184
|
var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
|
|
214796
215185
|
|
|
214797
|
-
|
|
214798
|
-
|
|
214799
|
-
|
|
214800
|
-
|
|
214801
|
-
|
|
214802
|
-
|
|
214803
|
-
|
|
214804
|
-
|
|
214805
|
-
var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort();
|
|
215186
|
+
var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
|
|
215187
|
+
if (a > b) {
|
|
215188
|
+
return 1;
|
|
215189
|
+
} else {
|
|
215190
|
+
return -1;
|
|
215191
|
+
}
|
|
215192
|
+
});
|
|
214806
215193
|
|
|
214807
215194
|
if (keys.length > 0) {
|
|
214808
215195
|
for (var index = keys[0]; index <= keys[keys.length - 1]; index++) {
|
|
@@ -214815,8 +215202,15 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214815
215202
|
(_hoeditorfactory$draw = hoeditorfactory.drawPageTree.needUpdateMainDocInfo.get(index)) === null || _hoeditorfactory$draw === void 0 ? void 0 : _hoeditorfactory$draw.callUpdate();
|
|
214816
215203
|
hoeditorfactory.drawPageTree.needUpdateMainDocInfo.delete(index);
|
|
214817
215204
|
}
|
|
214818
|
-
}
|
|
215205
|
+
}
|
|
215206
|
+
|
|
215207
|
+
this._domStage.addChild(dPage.drawDocContainer);
|
|
214819
215208
|
|
|
215209
|
+
dPage.paintBackGround();
|
|
215210
|
+
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
215211
|
+
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawHeader, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
215212
|
+
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
215213
|
+
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawFooter, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot); // dPage.drawDocContainer.addChild(dPage.drawHeader);
|
|
214820
215214
|
|
|
214821
215215
|
dPage.drawHeader.x = hoeditorfactory.pageProperty.leftMarginPixes; // dPage.drawHeader.y = hoeditorfactory.pageProperty.headerYPixes;
|
|
214822
215216
|
// // this._domStage.addChildAt(this._drawMainDoc, 0);
|
|
@@ -215241,9 +215635,9 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
215241
215635
|
return NodeMouseMoveEvent;
|
|
215242
215636
|
}();
|
|
215243
215637
|
NodeMouseMoveEvent.eventName = "nodeMouseMove";
|
|
215244
|
-
;// 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/HoHeadFoot.vue?vue&type=template&id=
|
|
215245
|
-
var
|
|
215246
|
-
var
|
|
215638
|
+
;// 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/HoHeadFoot.vue?vue&type=template&id=47bfb5b0&
|
|
215639
|
+
var HoHeadFootvue_type_template_id_47bfb5b0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('ul',{staticClass:"ho-headfoot-list ho-head-list",style:(_vm.headTop)},[_c('li',{staticClass:"ho-headfoot-item"},[_vm._v("页眉")]),_c('span',{staticStyle:{"flex":"1"}}),_vm._t("head")],2),_c('ul',{staticClass:"ho-headfoot-list ho-head-list",style:(_vm.footerTop)},[_c('li',{staticClass:"ho-headfoot-item"},[_vm._v("页脚")]),_c('span',{staticStyle:{"flex":"1"}}),_vm._t("foot")],2)])}
|
|
215640
|
+
var HoHeadFootvue_type_template_id_47bfb5b0_staticRenderFns = []
|
|
215247
215641
|
|
|
215248
215642
|
|
|
215249
215643
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoHeadFoot.vue?vue&type=script&lang=js&
|
|
@@ -215263,6 +215657,7 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215263
215657
|
//
|
|
215264
215658
|
//
|
|
215265
215659
|
//
|
|
215660
|
+
|
|
215266
215661
|
/* harmony default export */ var HoHeadFootvue_type_script_lang_js_ = ({
|
|
215267
215662
|
name: 'HoHeadFoot',
|
|
215268
215663
|
props: {
|
|
@@ -215277,10 +215672,10 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215277
215672
|
},
|
|
215278
215673
|
computed: {
|
|
215279
215674
|
headTop: function headTop() {
|
|
215280
|
-
return 'top: ' + (this.headerFooterPosition.headerY + 1) + 'px;border-top: 2px dotted #66b3ff;';
|
|
215675
|
+
return 'top: ' + (this.headerFooterPosition.headerY * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 1) + 'px;border-top: 2px dotted #66b3ff;';
|
|
215281
215676
|
},
|
|
215282
215677
|
footerTop: function footerTop() {
|
|
215283
|
-
return 'bottom: ' + (this.headerFooterPosition.footerY + 1) + 'px;border-bottom: 2px dotted #66b3ff;';
|
|
215678
|
+
return 'bottom: ' + (this.headerFooterPosition.footerY * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 1) + 'px;border-bottom: 2px dotted #66b3ff;';
|
|
215284
215679
|
}
|
|
215285
215680
|
}
|
|
215286
215681
|
});
|
|
@@ -215304,8 +215699,8 @@ var componentNormalizer = __webpack_require__(1001);
|
|
|
215304
215699
|
|
|
215305
215700
|
var component = (0,componentNormalizer/* default */.Z)(
|
|
215306
215701
|
components_HoHeadFootvue_type_script_lang_js_,
|
|
215307
|
-
|
|
215308
|
-
|
|
215702
|
+
HoHeadFootvue_type_template_id_47bfb5b0_render,
|
|
215703
|
+
HoHeadFootvue_type_template_id_47bfb5b0_staticRenderFns,
|
|
215309
215704
|
false,
|
|
215310
215705
|
null,
|
|
215311
215706
|
null,
|
|
@@ -215840,7 +216235,7 @@ var DrawPage = __webpack_require__(65870);
|
|
|
215840
216235
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
215841
216236
|
var util = __webpack_require__(33913);
|
|
215842
216237
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
215843
|
-
var PoperSelect = __webpack_require__(
|
|
216238
|
+
var PoperSelect = __webpack_require__(23915);
|
|
215844
216239
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
215845
216240
|
var PoperMark = __webpack_require__(93069);
|
|
215846
216241
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -215848,7 +216243,7 @@ var PoperMark = __webpack_require__(93069);
|
|
|
215848
216243
|
|
|
215849
216244
|
|
|
215850
216245
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
215851
|
-
var TableCellPoper = __webpack_require__(
|
|
216246
|
+
var TableCellPoper = __webpack_require__(46787);
|
|
215852
216247
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
215853
216248
|
var DateTimeNode = __webpack_require__(36395);
|
|
215854
216249
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -217552,7 +217947,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
217552
217947
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217553
217948
|
var ParagraphNode = __webpack_require__(14208);
|
|
217554
217949
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217555
|
-
/* harmony default export */ var version = ('2.0.
|
|
217950
|
+
/* harmony default export */ var version = ('2.0.91');
|
|
217556
217951
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217557
217952
|
var PoperTipText = __webpack_require__(91831);
|
|
217558
217953
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217574,9 +217969,6 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217574
217969
|
|
|
217575
217970
|
|
|
217576
217971
|
|
|
217577
|
-
|
|
217578
|
-
|
|
217579
|
-
|
|
217580
217972
|
//
|
|
217581
217973
|
//
|
|
217582
217974
|
//
|
|
@@ -217770,6 +218162,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217770
218162
|
drawPageLength: 0,
|
|
217771
218163
|
isCreateRightMenuModal: false,
|
|
217772
218164
|
// 是否创建右键弹窗 只显示编辑器版本
|
|
218165
|
+
showDeleteSignMenu: false,
|
|
218166
|
+
// 审阅模式显示删除签名菜单
|
|
217773
218167
|
version: version,
|
|
217774
218168
|
isHideComments: false,
|
|
217775
218169
|
showCommentsBtn: false,
|
|
@@ -217828,7 +218222,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217828
218222
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
217829
218223
|
}
|
|
217830
218224
|
},
|
|
217831
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue',
|
|
218225
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
217832
218226
|
created: function created() {
|
|
217833
218227
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
217834
218228
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -217875,23 +218269,17 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217875
218269
|
},
|
|
217876
218270
|
methods: {
|
|
217877
218271
|
deleteSignNode: function deleteSignNode() {
|
|
217878
|
-
var
|
|
217879
|
-
var signUserId = this.currentNode.customProperty.bce01 || '';
|
|
218272
|
+
var _this$getRightClickNo;
|
|
217880
218273
|
|
|
217881
|
-
|
|
217882
|
-
|
|
217883
|
-
|
|
217884
|
-
this.eleNode = null;
|
|
217885
|
-
this.currentNode = null;
|
|
217886
|
-
this.isCreateRightMenuModal = false;
|
|
217887
|
-
return;
|
|
217888
|
-
} // hoEditorFactory.elementController.deleteNode(this.eleNode.node());
|
|
218274
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218275
|
+
var node = (_this$getRightClickNo = this.getRightClickNodeValue()) === null || _this$getRightClickNo === void 0 ? void 0 : _this$getRightClickNo.node();
|
|
217889
218276
|
|
|
218277
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218278
|
+
hoEditorFactory.elementController.deleteNode(node);
|
|
218279
|
+
}
|
|
217890
218280
|
|
|
217891
|
-
hoEditorFactory.vueController.forceDelete();
|
|
217892
|
-
this.eleNode = null;
|
|
217893
|
-
this.currentNode = null;
|
|
217894
218281
|
this.isCreateRightMenuModal = false;
|
|
218282
|
+
this.showDeleteSignMenu = false;
|
|
217895
218283
|
},
|
|
217896
218284
|
beforeDestroy: function beforeDestroy() {
|
|
217897
218285
|
var _this$viewableAreaObs,
|
|
@@ -217928,7 +218316,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217928
218316
|
|
|
217929
218317
|
if (v.intersectionRatio === 0) {
|
|
217930
218318
|
inViewPages = inViewPages.filter(function (v) {
|
|
217931
|
-
return
|
|
218319
|
+
return v !== pageIndex;
|
|
217932
218320
|
});
|
|
217933
218321
|
} else {
|
|
217934
218322
|
inViewPages.includes(dPage.pageIndex) ? null : inViewPages.push(dPage.pageIndex);
|
|
@@ -218013,7 +218401,9 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218013
218401
|
|
|
218014
218402
|
if (node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
218015
218403
|
value = node.parentNode;
|
|
218016
|
-
}
|
|
218404
|
+
}
|
|
218405
|
+
|
|
218406
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218017
218407
|
value = node;
|
|
218018
218408
|
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
218019
218409
|
value = node;
|
|
@@ -218235,28 +218625,42 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218235
218625
|
var _hoEditorFactory$vueC2;
|
|
218236
218626
|
|
|
218237
218627
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218238
|
-
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
218239
|
-
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
218240
|
-
this.setRightClickNodeValue(node);
|
|
218241
|
-
this.eleNode = this.getRightClickNodeValue();
|
|
218242
|
-
this.currentNode = node;
|
|
218243
218628
|
var rightPosition = {
|
|
218244
218629
|
clientX: e.clientX || e.pageX,
|
|
218245
218630
|
clientY: e.clientY || e.pageY
|
|
218246
|
-
};
|
|
218631
|
+
};
|
|
218632
|
+
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
218633
|
+
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
218634
|
+
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
218635
|
+
|
|
218636
|
+
if (startPos) {
|
|
218637
|
+
var _hoEditorFactory$docT;
|
|
218638
|
+
|
|
218639
|
+
var npNode = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
218640
|
+
|
|
218641
|
+
if (npNode instanceof SignNode/* SignNode */.N && npNode.type == 3) {
|
|
218642
|
+
node = npNode;
|
|
218643
|
+
}
|
|
218644
|
+
} // psDesign, // 设计状态
|
|
218247
218645
|
// psEdit, // 编辑状态
|
|
218248
218646
|
// psPreview, // 打印预览
|
|
218249
218647
|
// psPrint, // 打印
|
|
218250
218648
|
// psReview, // 审阅
|
|
218251
218649
|
// psReadOnly, // 预览
|
|
218252
218650
|
|
|
218253
|
-
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218254
|
-
var _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218255
218651
|
|
|
218652
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218256
218653
|
this.isCreateRightMenuModal = true;
|
|
218257
218654
|
|
|
218258
|
-
if (
|
|
218259
|
-
|
|
218655
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
|
|
218656
|
+
if (node instanceof SignNode/* SignNode */.N && node.number > 0) {
|
|
218657
|
+
this.showDeleteSignMenu = true;
|
|
218658
|
+
this.setRightClickNodeValue(node);
|
|
218659
|
+
} else {
|
|
218660
|
+
this.showDeleteSignMenu = false;
|
|
218661
|
+
}
|
|
218662
|
+
} else {
|
|
218663
|
+
this.isHideComments = hoEditorFactory.isHideComments;
|
|
218260
218664
|
this.showCommentsBtn = true;
|
|
218261
218665
|
}
|
|
218262
218666
|
|
|
@@ -218264,18 +218668,6 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218264
218668
|
return;
|
|
218265
218669
|
}
|
|
218266
218670
|
|
|
218267
|
-
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
218268
|
-
|
|
218269
|
-
if (startPos) {
|
|
218270
|
-
var _hoEditorFactory$docT;
|
|
218271
|
-
|
|
218272
|
-
var npNode = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
218273
|
-
|
|
218274
|
-
if (npNode instanceof SignNode/* SignNode */.N && npNode.type == 3) {
|
|
218275
|
-
node = npNode;
|
|
218276
|
-
}
|
|
218277
|
-
}
|
|
218278
|
-
|
|
218279
218671
|
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
218280
218672
|
this.setRightClickNodeValue(node);
|
|
218281
218673
|
}
|
|
@@ -218289,6 +218681,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218289
218681
|
*/
|
|
218290
218682
|
hideComments: function hideComments() {
|
|
218291
218683
|
this.isCreateRightMenuModal = false;
|
|
218684
|
+
this.showDeleteSignMenu = false;
|
|
218292
218685
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218293
218686
|
hoEditorFactory.vueController.hideComments(!hoEditorFactory.isHideComments);
|
|
218294
218687
|
},
|
|
@@ -218332,8 +218725,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218332
218725
|
|
|
218333
218726
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218334
218727
|
components_HoDocvue_type_script_lang_js_,
|
|
218335
|
-
|
|
218336
|
-
|
|
218728
|
+
HoDocvue_type_template_id_7f445433_render,
|
|
218729
|
+
HoDocvue_type_template_id_7f445433_staticRenderFns,
|
|
218337
218730
|
false,
|
|
218338
218731
|
null,
|
|
218339
218732
|
null,
|
|
@@ -218563,6 +218956,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218563
218956
|
value: function getNextDrawArea(drawArea, singlePage) {
|
|
218564
218957
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218565
218958
|
var ret = drawArea;
|
|
218959
|
+
var isNew = false;
|
|
218566
218960
|
|
|
218567
218961
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
218568
218962
|
var index = this._drawMainDocs.indexOf(drawArea);
|
|
@@ -218571,6 +218965,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218571
218965
|
ret = this._drawMainDocs[index + 1];
|
|
218572
218966
|
} else {
|
|
218573
218967
|
var dMainDocArea = new DrawPageMainDoc/* DrawPageMainDoc */.$(this._hoEditorFactoryID, "main", index + 1, 0);
|
|
218968
|
+
isNew = true;
|
|
218574
218969
|
|
|
218575
218970
|
this._drawMainDocs.push(dMainDocArea);
|
|
218576
218971
|
|
|
@@ -218585,9 +218980,20 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218585
218980
|
}
|
|
218586
218981
|
}
|
|
218587
218982
|
|
|
218588
|
-
return ret;
|
|
218983
|
+
return [ret, isNew];
|
|
218589
218984
|
} //拆分成页
|
|
218590
218985
|
|
|
218986
|
+
}, {
|
|
218987
|
+
key: "clearAfterDTop",
|
|
218988
|
+
value: function clearAfterDTop(dDrawArea, dTop) {
|
|
218989
|
+
var numChildren = dDrawArea.children.length - 1;
|
|
218990
|
+
|
|
218991
|
+
for (var i = numChildren; i >= 0; i--) {
|
|
218992
|
+
if (dDrawArea.children[i].y > dTop) {
|
|
218993
|
+
dDrawArea.removeChildAt(i);
|
|
218994
|
+
}
|
|
218995
|
+
}
|
|
218996
|
+
}
|
|
218591
218997
|
}, {
|
|
218592
218998
|
key: "paint",
|
|
218593
218999
|
value: function paint(aDrawArea, dRoots, startLine, endLine) {
|
|
@@ -218608,6 +219014,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218608
219014
|
var aline = dRoots[startLine];
|
|
218609
219015
|
var dLine;
|
|
218610
219016
|
var dTop = 0;
|
|
219017
|
+
var mainDTop = 0;
|
|
218611
219018
|
|
|
218612
219019
|
if (aline instanceof DrawTable/* DrawTable */.t) {
|
|
218613
219020
|
if (aline.drawPageTables.length > 0) {
|
|
@@ -218658,6 +219065,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218658
219065
|
return;
|
|
218659
219066
|
}
|
|
218660
219067
|
|
|
219068
|
+
this.clearAfterDTop(mainArea, dTop);
|
|
218661
219069
|
var nextLine = startLine;
|
|
218662
219070
|
var pageIsFull = new Map();
|
|
218663
219071
|
|
|
@@ -218673,7 +219081,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218673
219081
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218674
219082
|
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex + 1, dline.paragraphNode.docId);
|
|
218675
219083
|
pageIsFull.set(drawArea.index, true);
|
|
218676
|
-
drawArea = this.getNextDrawArea(drawArea, true);
|
|
219084
|
+
drawArea = this.getNextDrawArea(drawArea, true)[0];
|
|
218677
219085
|
dTop = 0;
|
|
218678
219086
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
218679
219087
|
}
|
|
@@ -218699,12 +219107,23 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218699
219107
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218700
219108
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218701
219109
|
pageIsFull.set(drawArea.index, true);
|
|
218702
|
-
|
|
219110
|
+
var isNew = false;
|
|
219111
|
+
|
|
219112
|
+
var _this$getNextDrawArea = this.getNextDrawArea(drawArea);
|
|
219113
|
+
|
|
219114
|
+
var _this$getNextDrawArea2 = (0,slicedToArray/* default */.Z)(_this$getNextDrawArea, 2);
|
|
219115
|
+
|
|
219116
|
+
drawArea = _this$getNextDrawArea2[0];
|
|
219117
|
+
isNew = _this$getNextDrawArea2[1];
|
|
218703
219118
|
dTop = 0;
|
|
218704
219119
|
|
|
218705
219120
|
if (drawArea.allowAcrossPage) {
|
|
218706
219121
|
restHeight = drawArea.maxHeight - dTop;
|
|
218707
219122
|
}
|
|
219123
|
+
|
|
219124
|
+
if (!isNew) {
|
|
219125
|
+
break;
|
|
219126
|
+
}
|
|
218708
219127
|
}
|
|
218709
219128
|
}
|
|
218710
219129
|
|
|
@@ -218743,7 +219162,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218743
219162
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218744
219163
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218745
219164
|
pageIsFull.set(drawArea.index, true);
|
|
218746
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219165
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218747
219166
|
dTop = 0;
|
|
218748
219167
|
|
|
218749
219168
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218765,7 +219184,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218765
219184
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218766
219185
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage); // drawArea.stage.update();
|
|
218767
219186
|
|
|
218768
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219187
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218769
219188
|
dTop = 0;
|
|
218770
219189
|
|
|
218771
219190
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218789,7 +219208,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218789
219208
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218790
219209
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218791
219210
|
pageIsFull.set(drawArea.index, true);
|
|
218792
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219211
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218793
219212
|
dTop = 0;
|
|
218794
219213
|
|
|
218795
219214
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218869,7 +219288,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218869
219288
|
var index = this._drawMainDocs.indexOf(mainArea);
|
|
218870
219289
|
|
|
218871
219290
|
if (index === this._drawMainDocs.length - 1) {
|
|
218872
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219291
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
218873
219292
|
} else {
|
|
218874
219293
|
mainArea = this._drawMainDocs[index + 1];
|
|
218875
219294
|
}
|
|
@@ -219110,7 +219529,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219110
219529
|
var _index = this._drawMainDocs.indexOf(mainArea);
|
|
219111
219530
|
|
|
219112
219531
|
if (_index === this._drawMainDocs.length - 1) {
|
|
219113
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219532
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
219114
219533
|
} else {
|
|
219115
219534
|
this.updateDrawPage(drawArea.index);
|
|
219116
219535
|
mainArea = this._drawMainDocs[_index + 1];
|
|
@@ -219212,13 +219631,17 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219212
219631
|
// startDline.paragraphNode.combineParagraph.lineSpace;
|
|
219213
219632
|
|
|
219214
219633
|
|
|
219215
|
-
if (
|
|
219216
|
-
|
|
219217
|
-
|
|
219218
|
-
|
|
219634
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
219635
|
+
// 启用绘制优化 默认开启
|
|
219636
|
+
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && !(hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psPreview */.Dh.psPreview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psPrint */.Dh.psPrint)) {
|
|
219637
|
+
if (drawArea.pageIndex > imaxViewPage) {
|
|
219638
|
+
this.addNeedUpdateArea(drawArea.pageIndex, drawArea, dRoots, dTop, startIndex, dRoots.length - 1);
|
|
219639
|
+
return;
|
|
219640
|
+
}
|
|
219219
219641
|
}
|
|
219220
219642
|
}
|
|
219221
219643
|
|
|
219644
|
+
this.clearAfterDTop(drawArea, dTop);
|
|
219222
219645
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
219223
219646
|
this.afterAreaFinishPaint(drawArea);
|
|
219224
219647
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
@@ -219248,7 +219671,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219248
219671
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219249
219672
|
if (startIndex <= aEndLine) {
|
|
219250
219673
|
prevArea = drawArea;
|
|
219251
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219674
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
219252
219675
|
dTop = 0;
|
|
219253
219676
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight;
|
|
219254
219677
|
}
|
|
@@ -219633,16 +220056,15 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219633
220056
|
}
|
|
219634
220057
|
|
|
219635
220058
|
for (var j = 0; j < hoEditorFactory.drawTree.inViewPages.length; j++) {
|
|
219636
|
-
var
|
|
220059
|
+
var aPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.inViewPages[j]];
|
|
219637
220060
|
|
|
219638
|
-
if (
|
|
219639
|
-
|
|
219640
|
-
|
|
219641
|
-
this.updateDrawPage(_dPage.pageIndex);
|
|
220061
|
+
if (aPage.drawDomLevel && !aPage.drawDomLevel.stage) {
|
|
220062
|
+
aPage.drawDomLevel.bindStage();
|
|
220063
|
+
this.updateDrawPage(aPage.pageIndex);
|
|
219642
220064
|
}
|
|
219643
220065
|
|
|
219644
|
-
if (
|
|
219645
|
-
|
|
220066
|
+
if (aPage.drawSelectLevel && !aPage.drawSelectLevel.stage) {
|
|
220067
|
+
aPage.drawSelectLevel.bindStage();
|
|
219646
220068
|
}
|
|
219647
220069
|
}
|
|
219648
220070
|
}
|
|
@@ -219977,6 +220399,9 @@ var GenerateCode = /*#__PURE__*/function () {
|
|
|
219977
220399
|
|
|
219978
220400
|
return GenerateCode;
|
|
219979
220401
|
}();
|
|
220402
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
220403
|
+
var message_box = __webpack_require__(86769);
|
|
220404
|
+
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
219980
220405
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
219981
220406
|
var es_string_ends_with = __webpack_require__(27852);
|
|
219982
220407
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -220381,7 +220806,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220381
220806
|
key: "TransHTMLIMG",
|
|
220382
220807
|
value: function TransHTMLIMG(jnode, style) {
|
|
220383
220808
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
220384
|
-
var src = jquery_default()(jnode).attr("src") || "";
|
|
220809
|
+
var src = jquery_default()(jnode).attr("src") || "";
|
|
220810
|
+
|
|
220811
|
+
if (src.toString().substring(0, 5) == "file:") {
|
|
220812
|
+
return [];
|
|
220813
|
+
} //FIXME:这里测试从本地转入文件后转base64地提示无法从本地加载
|
|
220385
220814
|
//TODO:图片转base64
|
|
220386
220815
|
// const getImgToBase64 = (url: any, callback: any) => {//将图片转换为Base64
|
|
220387
220816
|
// const canvas = document.createElement('canvas');
|
|
@@ -220404,6 +220833,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220404
220833
|
// console.log(data);
|
|
220405
220834
|
// });
|
|
220406
220835
|
|
|
220836
|
+
|
|
220407
220837
|
var width = styleobj.width ? styleobj.width.replace("px", "") : 20;
|
|
220408
220838
|
var height = styleobj.height ? styleobj.height.replace("px", "") : 20;
|
|
220409
220839
|
var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, null, BaseNode/* NodeType.ntImage */.Jq.ntImage, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"), jquery_default()(jnode).attr("src") || "", Number(width), Number(height));
|
|
@@ -222589,8 +223019,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222589
223019
|
}
|
|
222590
223020
|
|
|
222591
223021
|
this._comments = [];
|
|
222592
|
-
|
|
222593
|
-
|
|
223022
|
+
|
|
223023
|
+
if (!isClearSign) {
|
|
223024
|
+
var comments = xx.comments;
|
|
223025
|
+
this._comments = comments.comment;
|
|
223026
|
+
} // if (xx.logs) {
|
|
222594
223027
|
// const logs = xx.logs;
|
|
222595
223028
|
// let logsArr = [];
|
|
222596
223029
|
// if (logs.log.length === undefined) {
|
|
@@ -222608,6 +223041,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222608
223041
|
// }
|
|
222609
223042
|
// }
|
|
222610
223043
|
|
|
223044
|
+
|
|
222611
223045
|
hoEditorFactory.docTree.userHistories = [];
|
|
222612
223046
|
var histories = xx.userHistories;
|
|
222613
223047
|
var historiesArr = histories.userHistory;
|
|
@@ -224832,6 +225266,8 @@ var NodeInsertUndoUnit = __webpack_require__(12019);
|
|
|
224832
225266
|
var MedicalExpressionNode = __webpack_require__(8623);
|
|
224833
225267
|
// EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
|
|
224834
225268
|
var StagePosition = __webpack_require__(57674);
|
|
225269
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
225270
|
+
var commonParamList = __webpack_require__(82089);
|
|
224835
225271
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
224836
225272
|
|
|
224837
225273
|
|
|
@@ -224918,6 +225354,7 @@ var StagePosition = __webpack_require__(57674);
|
|
|
224918
225354
|
|
|
224919
225355
|
|
|
224920
225356
|
|
|
225357
|
+
|
|
224921
225358
|
|
|
224922
225359
|
|
|
224923
225360
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -231151,11 +231588,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231151
231588
|
}
|
|
231152
231589
|
}, {
|
|
231153
231590
|
key: "setHoEditorFactoryParams",
|
|
231154
|
-
value: function setHoEditorFactoryParams(params) {
|
|
231155
|
-
|
|
231156
|
-
|
|
231157
|
-
|
|
231158
|
-
|
|
231591
|
+
value: function setHoEditorFactoryParams(params, commonParams) {
|
|
231592
|
+
if (params) {
|
|
231593
|
+
var _hoEditorFactory4 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231594
|
+
|
|
231595
|
+
Object.keys(params).forEach(function (key) {
|
|
231596
|
+
_hoEditorFactory4[key] = params[key];
|
|
231597
|
+
});
|
|
231598
|
+
}
|
|
231599
|
+
|
|
231600
|
+
if (commonParams) {
|
|
231601
|
+
Object.keys(commonParams).forEach(function (key) {
|
|
231602
|
+
commonParamList/* commonParamList.set */.G.set(key, commonParams[key]);
|
|
231603
|
+
});
|
|
231604
|
+
}
|
|
231159
231605
|
}
|
|
231160
231606
|
}]);
|
|
231161
231607
|
|
|
@@ -234367,6 +234813,8 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
234367
234813
|
|
|
234368
234814
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
234369
234815
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
234816
|
+
var _window, _window$chrome, _window$chrome$webvie;
|
|
234817
|
+
|
|
234370
234818
|
(0,classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
234371
234819
|
|
|
234372
234820
|
this._intervalsTime = 30000; // 间隔时间 ms
|
|
@@ -234375,6 +234823,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234375
234823
|
|
|
234376
234824
|
this._storeName = 'web_list'; // 当前 key
|
|
234377
234825
|
|
|
234826
|
+
this._localXmlContent = ''; //当前缓存的xml文件列表
|
|
234827
|
+
|
|
234828
|
+
var _this = this;
|
|
234829
|
+
|
|
234378
234830
|
this._hoEditorFactoryID = hoEditorFactoryID; // 设置今天的 storeName
|
|
234379
234831
|
// this._storeName = String(new Date().getTime());
|
|
234380
234832
|
// 创建当前时段
|
|
@@ -234382,6 +234834,32 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234382
234834
|
// name: "_ho_web",
|
|
234383
234835
|
// storeName: this._storeName,
|
|
234384
234836
|
// });
|
|
234837
|
+
|
|
234838
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener("message", function (e) {
|
|
234839
|
+
var res = JSON.parse(e.data);
|
|
234840
|
+
|
|
234841
|
+
if (res.result == true && res.res.cmd == "GetList") {
|
|
234842
|
+
var _this$callBack;
|
|
234843
|
+
|
|
234844
|
+
_this._localXmlList = res.res.EMR;
|
|
234845
|
+
(_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
|
|
234846
|
+
}
|
|
234847
|
+
|
|
234848
|
+
;
|
|
234849
|
+
|
|
234850
|
+
if (res.result == true && res.res.cmd == "Load") {
|
|
234851
|
+
var _this$callBackForLoad;
|
|
234852
|
+
|
|
234853
|
+
_this._localXmlContent = res.res.EMR;
|
|
234854
|
+
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
234855
|
+
}
|
|
234856
|
+
|
|
234857
|
+
;
|
|
234858
|
+
|
|
234859
|
+
if (res.res.cmd == "save") {} else {
|
|
234860
|
+
return false;
|
|
234861
|
+
}
|
|
234862
|
+
});
|
|
234385
234863
|
} // set ho_web(value: any) {
|
|
234386
234864
|
// this._ho_web = value;
|
|
234387
234865
|
// }
|
|
@@ -234391,17 +234869,37 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234391
234869
|
key: "initHoWebSql",
|
|
234392
234870
|
value: function initHoWebSql() {
|
|
234393
234871
|
this._ho_web = localforage_default().createInstance({
|
|
234394
|
-
name:
|
|
234872
|
+
name: '_ho_web',
|
|
234395
234873
|
storeName: this._storeName
|
|
234396
234874
|
});
|
|
234397
234875
|
this._print_font = localforage_default().createInstance({
|
|
234398
|
-
name:
|
|
234399
|
-
storeName:
|
|
234876
|
+
name: '_ho_web',
|
|
234877
|
+
storeName: '_print_font'
|
|
234400
234878
|
});
|
|
234401
234879
|
this._cache_clear_time = localforage_default().createInstance({
|
|
234402
|
-
name:
|
|
234403
|
-
storeName:
|
|
234880
|
+
name: '_ho_web',
|
|
234881
|
+
storeName: '_cache_clear_time'
|
|
234404
234882
|
});
|
|
234883
|
+
} //获取localXmlList
|
|
234884
|
+
|
|
234885
|
+
}, {
|
|
234886
|
+
key: "getLocalXmlList",
|
|
234887
|
+
value: function getLocalXmlList(callBack) {
|
|
234888
|
+
var _window2, _window2$chrome, _window2$chrome$webvi;
|
|
234889
|
+
|
|
234890
|
+
this.callBack = callBack;
|
|
234891
|
+
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234892
|
+
var data = {
|
|
234893
|
+
exec: "emr",
|
|
234894
|
+
data: {
|
|
234895
|
+
cmd: "getlist",
|
|
234896
|
+
content: {
|
|
234897
|
+
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
234898
|
+
EMRName: hoEitfactory.docTree.docProperty.title
|
|
234899
|
+
}
|
|
234900
|
+
}
|
|
234901
|
+
};
|
|
234902
|
+
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$chrome = _window2.chrome) === null || _window2$chrome === void 0 ? void 0 : (_window2$chrome$webvi = _window2$chrome.webview) === null || _window2$chrome$webvi === void 0 ? void 0 : _window2$chrome$webvi.postMessage(data);
|
|
234405
234903
|
} // 获取key的数据 => { data, keyInfo }
|
|
234406
234904
|
|
|
234407
234905
|
}, {
|
|
@@ -234410,22 +234908,41 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234410
234908
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234411
234909
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234412
234910
|
return this._ho_web.getItem(this._key);
|
|
234911
|
+
} //获取Xml
|
|
234912
|
+
|
|
234913
|
+
}, {
|
|
234914
|
+
key: "loadLocalXml",
|
|
234915
|
+
value: function loadLocalXml(item, callBack) {
|
|
234916
|
+
var _window3, _window3$chrome, _window3$chrome$webvi;
|
|
234917
|
+
|
|
234918
|
+
this.callBackForLoad = callBack;
|
|
234919
|
+
var data = {
|
|
234920
|
+
exec: "emr",
|
|
234921
|
+
data: {
|
|
234922
|
+
cmd: "load",
|
|
234923
|
+
content: {
|
|
234924
|
+
PatientID: item.PatientID,
|
|
234925
|
+
FileName: item.FileName
|
|
234926
|
+
}
|
|
234927
|
+
}
|
|
234928
|
+
};
|
|
234929
|
+
(_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$chrome = _window3.chrome) === null || _window3$chrome === void 0 ? void 0 : (_window3$chrome$webvi = _window3$chrome.webview) === null || _window3$chrome$webvi === void 0 ? void 0 : _window3$chrome$webvi.postMessage(data);
|
|
234413
234930
|
}
|
|
234414
234931
|
}, {
|
|
234415
234932
|
key: "removeLocalStorage",
|
|
234416
234933
|
value: function removeLocalStorage(lastClearTime) {
|
|
234417
|
-
var
|
|
234934
|
+
var _this2 = this;
|
|
234418
234935
|
|
|
234419
234936
|
this._ho_web.keys().then(function (keys) {
|
|
234420
234937
|
keys.forEach(function (key) {
|
|
234421
|
-
|
|
234938
|
+
_this2._ho_web.getItem(key).then(function (value) {
|
|
234422
234939
|
if (Array.isArray(value)) {
|
|
234423
234940
|
if (new Date().getTime() - new Date(value[0].saveTime).getTime()) {
|
|
234424
|
-
|
|
234941
|
+
_this2._ho_web.removeItem(key);
|
|
234425
234942
|
}
|
|
234426
234943
|
} else {
|
|
234427
234944
|
if (new Date().getTime() - new Date(value.saveTime).getTime()) {
|
|
234428
|
-
|
|
234945
|
+
_this2._ho_web.removeItem(key);
|
|
234429
234946
|
}
|
|
234430
234947
|
}
|
|
234431
234948
|
});
|
|
@@ -234435,93 +234952,114 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234435
234952
|
}, {
|
|
234436
234953
|
key: "clearLocalStorage",
|
|
234437
234954
|
value: function clearLocalStorage() {
|
|
234438
|
-
var
|
|
234955
|
+
var _this3 = this;
|
|
234439
234956
|
|
|
234440
234957
|
this._ho_web.clear().then(function () {});
|
|
234441
234958
|
}
|
|
234442
234959
|
}, {
|
|
234443
234960
|
key: "autoSaveLocalStorage",
|
|
234444
234961
|
value: function autoSaveLocalStorage() {
|
|
234445
|
-
var
|
|
234962
|
+
var _window4,
|
|
234963
|
+
_window4$chrome,
|
|
234964
|
+
_this4 = this;
|
|
234446
234965
|
|
|
234447
234966
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
234448
234967
|
return;
|
|
234449
234968
|
}
|
|
234450
234969
|
|
|
234970
|
+
var HoBrowser = (_window4 = window) === null || _window4 === void 0 ? void 0 : (_window4$chrome = _window4.chrome) === null || _window4$chrome === void 0 ? void 0 : _window4$chrome.webview;
|
|
234971
|
+
var saveTime = (0,util/* dateFormat */.vc)(new Date());
|
|
234451
234972
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234452
234973
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234453
234974
|
|
|
234454
|
-
|
|
234455
|
-
|
|
234456
|
-
|
|
234457
|
-
if (
|
|
234458
|
-
|
|
234459
|
-
|
|
234460
|
-
|
|
234461
|
-
|
|
234975
|
+
if (HoBrowser) {
|
|
234976
|
+
this._lastSaveTime = new Date(saveTime).getTime();
|
|
234977
|
+
|
|
234978
|
+
if (hoEitfactory && hoEitfactory.vueController.isModifyDoc()) {
|
|
234979
|
+
var data = {
|
|
234980
|
+
exec: "emr",
|
|
234981
|
+
data: {
|
|
234982
|
+
cmd: "save",
|
|
234983
|
+
content: {
|
|
234984
|
+
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
234985
|
+
EMRName: hoEitfactory.docTree.docProperty.title,
|
|
234986
|
+
EMR: hoEitfactory.structureConvert.doc2Xml('xml', true)
|
|
234987
|
+
}
|
|
234988
|
+
}
|
|
234989
|
+
};
|
|
234990
|
+
window.chrome.webview.postMessage(data);
|
|
234991
|
+
}
|
|
234992
|
+
} else {
|
|
234993
|
+
this._ho_web.getItem(this._key).then(function (historyLogs) {
|
|
234994
|
+
if (!historyLogs) {
|
|
234995
|
+
_this4._lastSaveTime = new Date(saveTime).getTime();
|
|
234462
234996
|
} else {
|
|
234463
|
-
|
|
234464
|
-
|
|
234997
|
+
if (Array.isArray(historyLogs)) {
|
|
234998
|
+
_this4._lastSaveTime = new Date(historyLogs[0].saveTime).getTime();
|
|
234999
|
+
} else {
|
|
235000
|
+
_this4._lastSaveTime = new Date(historyLogs.saveTime).getTime();
|
|
235001
|
+
}
|
|
234465
235002
|
|
|
234466
|
-
|
|
234467
|
-
|
|
235003
|
+
if (new Date().getTime() - _this4._lastSaveTime <= _this4._intervalsTime) {
|
|
235004
|
+
return;
|
|
235005
|
+
}
|
|
234468
235006
|
}
|
|
234469
|
-
}
|
|
234470
235007
|
|
|
234471
|
-
|
|
235008
|
+
var logs = (0,toConsumableArray/* default */.Z)(hoEitfactory.domController.getLogs());
|
|
234472
235009
|
|
|
234473
|
-
|
|
234474
|
-
|
|
234475
|
-
|
|
234476
|
-
|
|
234477
|
-
|
|
234478
|
-
|
|
234479
|
-
|
|
234480
|
-
|
|
235010
|
+
if (historyLogs) {
|
|
235011
|
+
if (Array.isArray(historyLogs)) {
|
|
235012
|
+
historyLogs.unshift({
|
|
235013
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
235014
|
+
saveTime: saveTime,
|
|
235015
|
+
logs: logs
|
|
235016
|
+
});
|
|
235017
|
+
if (historyLogs.length === 3) historyLogs.pop();
|
|
234481
235018
|
|
|
234482
|
-
|
|
235019
|
+
_this4._ho_web.setItem(_this4._key, historyLogs);
|
|
235020
|
+
} else {
|
|
235021
|
+
var arr = [];
|
|
235022
|
+
arr.push({
|
|
235023
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
235024
|
+
saveTime: saveTime,
|
|
235025
|
+
logs: logs
|
|
235026
|
+
});
|
|
235027
|
+
arr.push(historyLogs);
|
|
235028
|
+
|
|
235029
|
+
_this4._ho_web.setItem(_this4._key, arr);
|
|
235030
|
+
}
|
|
234483
235031
|
} else {
|
|
234484
|
-
var
|
|
234485
|
-
|
|
234486
|
-
|
|
235032
|
+
var _arr = [];
|
|
235033
|
+
|
|
235034
|
+
_arr.push({
|
|
235035
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
234487
235036
|
saveTime: saveTime,
|
|
234488
235037
|
logs: logs
|
|
234489
235038
|
});
|
|
234490
|
-
arr.push(historyLogs);
|
|
234491
235039
|
|
|
234492
|
-
|
|
235040
|
+
_this4._ho_web.setItem(_this4._key, _arr);
|
|
234493
235041
|
}
|
|
234494
|
-
}
|
|
234495
|
-
|
|
234496
|
-
|
|
234497
|
-
_arr.push({
|
|
234498
|
-
xml: hoEitfactory.structureConvert.doc2Xml("xml", true),
|
|
234499
|
-
saveTime: saveTime,
|
|
234500
|
-
logs: logs
|
|
234501
|
-
});
|
|
234502
|
-
|
|
234503
|
-
_this3._ho_web.setItem(_this3._key, _arr);
|
|
234504
|
-
}
|
|
235042
|
+
});
|
|
235043
|
+
}
|
|
234505
235044
|
|
|
234506
|
-
|
|
234507
|
-
|
|
235045
|
+
this._cache_clear_time.getItem('_cache_clear_time').then(function (lastClearTime) {
|
|
235046
|
+
var _lastClearTime = lastClearTime;
|
|
234508
235047
|
|
|
234509
|
-
|
|
234510
|
-
|
|
235048
|
+
if (!lastClearTime) {
|
|
235049
|
+
_lastClearTime = new Date().getTime();
|
|
234511
235050
|
|
|
234512
|
-
|
|
234513
|
-
|
|
235051
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', _lastClearTime);
|
|
235052
|
+
}
|
|
234514
235053
|
|
|
234515
|
-
|
|
235054
|
+
_this4._lastClearTime = _lastClearTime;
|
|
234516
235055
|
|
|
234517
|
-
|
|
234518
|
-
|
|
235056
|
+
if (new Date().getTime() - lastClearTime >= _this4._expirationTime) {
|
|
235057
|
+
_this4.removeLocalStorage(lastClearTime);
|
|
234519
235058
|
|
|
234520
|
-
|
|
234521
|
-
|
|
234522
|
-
|
|
234523
|
-
|
|
234524
|
-
});
|
|
235059
|
+
setTimeout(function () {
|
|
235060
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', new Date().getTime());
|
|
235061
|
+
}, 0);
|
|
235062
|
+
}
|
|
234525
235063
|
});
|
|
234526
235064
|
}
|
|
234527
235065
|
}, {
|
|
@@ -234589,6 +235127,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
234589
235127
|
|
|
234590
235128
|
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
234591
235129
|
|
|
235130
|
+
this._isUseDrawingOptimization = true; // 是否启用绘制优化 默认启用
|
|
235131
|
+
|
|
234592
235132
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
234593
235133
|
|
|
234594
235134
|
this._loadImageCallback = null; // 图片加载完成回调
|
|
@@ -235358,6 +235898,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235358
235898
|
this._isCanUseTableProperty = value;
|
|
235359
235899
|
}
|
|
235360
235900
|
}
|
|
235901
|
+
}, {
|
|
235902
|
+
key: "isUseDrawingOptimization",
|
|
235903
|
+
get: function get() {
|
|
235904
|
+
return this._isUseDrawingOptimization;
|
|
235905
|
+
},
|
|
235906
|
+
set: function set(value) {
|
|
235907
|
+
if (this._isUseDrawingOptimization !== value) {
|
|
235908
|
+
this._isUseDrawingOptimization = value;
|
|
235909
|
+
}
|
|
235910
|
+
}
|
|
235361
235911
|
}, {
|
|
235362
235912
|
key: "clear",
|
|
235363
235913
|
value: function clear() {
|
|
@@ -235519,7 +236069,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
235519
236069
|
|
|
235520
236070
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
235521
236071
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
235522
|
-
var ControlModal = __webpack_require__(
|
|
236072
|
+
var ControlModal = __webpack_require__(40275);
|
|
235523
236073
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
235524
236074
|
var FindReplace = __webpack_require__(73553);
|
|
235525
236075
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -236577,10 +237127,14 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236577
237127
|
default: undefined
|
|
236578
237128
|
},
|
|
236579
237129
|
customProperty: {
|
|
236580
|
-
default: function _default() {
|
|
237130
|
+
default: function _default() {
|
|
237131
|
+
return {};
|
|
237132
|
+
}
|
|
236581
237133
|
},
|
|
236582
237134
|
paragraphCustomProperty: {
|
|
236583
|
-
default: function _default() {
|
|
237135
|
+
default: function _default() {
|
|
237136
|
+
return {};
|
|
237137
|
+
}
|
|
236584
237138
|
},
|
|
236585
237139
|
deleteImageNodeList: {
|
|
236586
237140
|
default: undefined
|
|
@@ -237348,9 +237902,9 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
237348
237902
|
)
|
|
237349
237903
|
|
|
237350
237904
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
237351
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=
|
|
237352
|
-
var
|
|
237353
|
-
var
|
|
237905
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=8cc7b3e4&
|
|
237906
|
+
var ToolBarvue_type_template_id_8cc7b3e4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "显示批注" : "隐藏批注"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
|
|
237907
|
+
var ToolBarvue_type_template_id_8cc7b3e4_staticRenderFns = []
|
|
237354
237908
|
|
|
237355
237909
|
|
|
237356
237910
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=beffa98c&scoped=true&
|
|
@@ -240295,9 +240849,9 @@ var UpdateDocument_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240295
240849
|
)
|
|
240296
240850
|
|
|
240297
240851
|
/* harmony default export */ var UpdateDocument = (UpdateDocument_component.exports);
|
|
240298
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolTable.vue?vue&type=template&id=
|
|
240299
|
-
var
|
|
240300
|
-
var
|
|
240852
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolTable.vue?vue&type=template&id=7df5f581&
|
|
240853
|
+
var ToolTablevue_type_template_id_7df5f581_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-submenu',{attrs:{"popper-class":"insert-menus","index":"tables"}},[_c('template',{slot:"title"},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","viewBox":"0 0 16 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-4 -4)"}},[_c('path',{attrs:{"stroke":"none","d":"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),_c('span',[_vm._v("表格")])]),_c('el-submenu',{attrs:{"index":"insertTable","popper-append-to-body":true}},[_c('template',{slot:"title"},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","viewBox":"0 0 16 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-4 -4)"}},[_c('path',{attrs:{"stroke":"none","d":"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),_c('span',[_vm._v("插入表格")])]),_c('el-menu-item',{staticClass:"table-menus",attrs:{"index":"0"}},[_c('div',{staticClass:"columns",on:{"mouseleave":_vm.clearData}},[_c('p',{staticClass:"table-title"},[_vm._v(_vm._s(_vm.rows ? _vm.rows + ' x ' + _vm.columns : '插入')+" 表格")]),_vm._l((10),function(row_index){return _c('div',{key:'row_' + row_index,staticClass:"rows",on:{"mousemove":_vm.mouse,"click":_vm.createdTables}},_vm._l((10),function(column_index){return _c('span',{key:'column_index' + column_index,class:row_index <= _vm.rows && column_index <= _vm.columns ? 'selected' : '',attrs:{"data-column":column_index,"data-row":row_index},on:{"touchstart":_vm.touch,"touchmove":_vm.touch,"touchend":_vm.touchend}})}),0)}),_c('p',{staticClass:"table-bottom-title",on:{"click":function($event){_vm.dialogFormVisible = true}}},[_vm._v("自定义行列数")])],2)])],2),(_vm.isOpen)?_c('TableFeatures',{attrs:{"className":"insert-rows-columns-menu","vueController":_vm.vueController,"table":_vm.table},on:{"closeMenu":_vm.closeMenu}}):_vm._e(),_c('el-dialog',{attrs:{"title":"自定义表格行列","width":"320px","visible":_vm.dialogFormVisible,"top":"200px","append-to-body":"","center":""},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{"model":_vm.form}},[_c('el-form-item',{attrs:{"label":"行数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.rows),callback:function ($$v) {_vm.$set(_vm.form, "rows", $$v)},expression:"form.rows"}})],1),_c('el-form-item',{attrs:{"label":"列数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.columns),callback:function ($$v) {_vm.$set(_vm.form, "columns", $$v)},expression:"form.columns"}})],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")]),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")])],1)],1)],2)}
|
|
240854
|
+
var ToolTablevue_type_template_id_7df5f581_staticRenderFns = []
|
|
240301
240855
|
|
|
240302
240856
|
|
|
240303
240857
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=template&id=624de6d8&
|
|
@@ -240519,7 +241073,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240519
241073
|
rows: 1,
|
|
240520
241074
|
columns: 1
|
|
240521
241075
|
};
|
|
240522
|
-
_this.formLabelWidth =
|
|
241076
|
+
_this.formLabelWidth = '72px';
|
|
240523
241077
|
return _this;
|
|
240524
241078
|
}
|
|
240525
241079
|
|
|
@@ -240549,7 +241103,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240549
241103
|
value: function mouse(e) {
|
|
240550
241104
|
var target = e.target;
|
|
240551
241105
|
|
|
240552
|
-
if (target.nodeName ===
|
|
241106
|
+
if (target.nodeName === 'SPAN') {
|
|
240553
241107
|
var data = target.dataset;
|
|
240554
241108
|
this.rows = parseInt(data.row);
|
|
240555
241109
|
this.columns = parseInt(data.column);
|
|
@@ -240564,7 +241118,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240564
241118
|
value: function touch(e) {
|
|
240565
241119
|
var ele = document.elementFromPoint(e.changedTouches[0].pageX, e.changedTouches[0].pageY);
|
|
240566
241120
|
|
|
240567
|
-
if (ele.nodeName ===
|
|
241121
|
+
if (ele.nodeName === 'SPAN') {
|
|
240568
241122
|
var data = ele.dataset;
|
|
240569
241123
|
this.rows = parseInt(data.row);
|
|
240570
241124
|
this.columns = parseInt(data.column);
|
|
@@ -240585,7 +241139,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240585
241139
|
}, {
|
|
240586
241140
|
key: "closeMenu",
|
|
240587
241141
|
value: function closeMenu() {
|
|
240588
|
-
this.$emit(
|
|
241142
|
+
this.$emit('closeMenu');
|
|
240589
241143
|
}
|
|
240590
241144
|
}]);
|
|
240591
241145
|
|
|
@@ -240599,7 +241153,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240599
241153
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolTables.prototype, "isOpen", void 0);
|
|
240600
241154
|
|
|
240601
241155
|
ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Component */.wA)({
|
|
240602
|
-
name:
|
|
241156
|
+
name: 'ToolTables',
|
|
240603
241157
|
components: {
|
|
240604
241158
|
TableFeatures: toolbar_TableFeatures
|
|
240605
241159
|
}
|
|
@@ -240623,8 +241177,8 @@ ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Compo
|
|
|
240623
241177
|
|
|
240624
241178
|
var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
240625
241179
|
toolbar_ToolTablevue_type_script_lang_ts_,
|
|
240626
|
-
|
|
240627
|
-
|
|
241180
|
+
ToolTablevue_type_template_id_7df5f581_render,
|
|
241181
|
+
ToolTablevue_type_template_id_7df5f581_staticRenderFns,
|
|
240628
241182
|
false,
|
|
240629
241183
|
null,
|
|
240630
241184
|
null,
|
|
@@ -240924,9 +241478,9 @@ var UploadFile_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240924
241478
|
)
|
|
240925
241479
|
|
|
240926
241480
|
/* harmony default export */ var toolbar_UploadFile = (UploadFile_component.exports);
|
|
240927
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=template&id=
|
|
240928
|
-
var
|
|
240929
|
-
var
|
|
241481
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=template&id=8d9c8a42&scoped=true&
|
|
241482
|
+
var HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"sub-bar-items item-history-logs"},[_c('span',{staticStyle:{"padding":"0 10px"},on:{"click":_vm.openHistoryLogs}},[_vm._v("历史记录")]),(_vm.showHistoryLogs && (_vm.historyLog || _vm.xmlLog))?_c('div',{staticClass:"document-item animation-in"},[_c('p',{staticStyle:{"text-align":"left","border-bottom":"1px solid #ccc"}},[_c('i',{staticClass:"el-icon-circle-close"}),_c('span',{on:{"click":_vm.closeHistoryLogs}},[_vm._v("关闭历史记录")])]),(Array.isArray(_vm.historyLog) && _vm.historyLog.length > 0)?_c('ul',_vm._l((_vm.historyLog),function(history,auto_save_index){return _c('li',{key:history.saveTime + Math.random(0, 1)},[_c('div',[_c('p',{staticClass:"flex-rows"},[_c('span',{staticStyle:{"padding-left":"4px"}},[_vm._v("缓存时间:"+_vm._s(history.saveTime))]),_c('span',{staticClass:"cover",on:{"click":function($event){return _vm.manualSaveLocalStorage(auto_save_index)}}},[_vm._v("恢复")])]),_vm._l((history.logs),function(logs){return [_c('p',{key:logs.operTime},[_c('span',[_vm._v("操作类型:"+_vm._s(logs._operType))]),_c('span',[_vm._v("操作时间:"+_vm._s(_vm.dateFormat(logs._operTime)))]),_c('span',[_vm._v("操作内容:"+_vm._s(logs._operText))])])]})],2)])}),0):(Array.isArray(_vm.xmlLog) && _vm.xmlLog.length > 0)?_c('ul',_vm._l((_vm.xmlLog),function(xml){return _c('li',{key:xml.SaveDate + Math.random(0, 1)},[_c('div',[_c('p',{staticClass:"flex-rows",staticStyle:{"display":"flex","align-items":"center"}},[_c('span',{staticStyle:{"padding-left":"4px"}},[_c('p',[_vm._v("文件名称:"+_vm._s(xml.FileName))]),_c('p',[_vm._v("缓存时间:"+_vm._s(xml.SaveDate))])]),_c('span',{staticClass:"cover",on:{"click":function($event){return _vm.manualSaveLocalXml(xml)}}},[_vm._v("恢复")])])])])}),0):_vm._e()]):_vm._e()])}
|
|
241483
|
+
var HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_staticRenderFns = []
|
|
240930
241484
|
|
|
240931
241485
|
|
|
240932
241486
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=script&lang=ts&
|
|
@@ -240954,12 +241508,12 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240954
241508
|
_this = _super.apply(this, arguments);
|
|
240955
241509
|
_this.showHistoryLogs = false;
|
|
240956
241510
|
_this.historyLog = null;
|
|
241511
|
+
_this.xmlLog = null;
|
|
241512
|
+
_this.xmlContent = '';
|
|
240957
241513
|
_this.dateFormat = util/* dateFormat */.vc;
|
|
240958
241514
|
return _this;
|
|
240959
241515
|
} // created() {
|
|
240960
|
-
//
|
|
240961
|
-
// console.log(e);
|
|
240962
|
-
// });
|
|
241516
|
+
// console.log(this.logs);
|
|
240963
241517
|
// }
|
|
240964
241518
|
// 撤销恢复
|
|
240965
241519
|
// public cancelManualSaveLocalStorage(auto_save_index: number) {
|
|
@@ -240978,6 +241532,17 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240978
241532
|
_this2.vueController.openXml(historyLog[auto_save_index].xml);
|
|
240979
241533
|
});
|
|
240980
241534
|
}
|
|
241535
|
+
}, {
|
|
241536
|
+
key: "manualSaveLocalXml",
|
|
241537
|
+
value: function manualSaveLocalXml(item) {
|
|
241538
|
+
this.vueController.hoLocalStorage().loadLocalXml(item, this.getXmlContent);
|
|
241539
|
+
}
|
|
241540
|
+
}, {
|
|
241541
|
+
key: "getXmlContent",
|
|
241542
|
+
value: function getXmlContent(xmlContent) {
|
|
241543
|
+
this.xmlContent = xmlContent;
|
|
241544
|
+
this.vueController.openXml(this.xmlContent);
|
|
241545
|
+
}
|
|
240981
241546
|
}, {
|
|
240982
241547
|
key: "getLocalStorage",
|
|
240983
241548
|
value: function getLocalStorage() {
|
|
@@ -240985,7 +241550,7 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240985
241550
|
|
|
240986
241551
|
this.historyLog = [];
|
|
240987
241552
|
this.vueController.hoLocalStorage().getLocalStorage().then(function (historyLog) {
|
|
240988
|
-
historyLog.forEach(function (log) {
|
|
241553
|
+
historyLog === null || historyLog === void 0 ? void 0 : historyLog.forEach(function (log) {
|
|
240989
241554
|
_this3.historyLog.push({
|
|
240990
241555
|
saveTime: log.saveTime,
|
|
240991
241556
|
logs: log.logs
|
|
@@ -240996,8 +241561,20 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240996
241561
|
}, {
|
|
240997
241562
|
key: "openHistoryLogs",
|
|
240998
241563
|
value: function openHistoryLogs() {
|
|
241564
|
+
var _window,
|
|
241565
|
+
_window$chrome,
|
|
241566
|
+
_this4 = this;
|
|
241567
|
+
|
|
241568
|
+
var HoBrowser = (_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : _window$chrome.webview;
|
|
240999
241569
|
this.showHistoryLogs = !this.showHistoryLogs;
|
|
241000
|
-
|
|
241570
|
+
|
|
241571
|
+
if (HoBrowser) {
|
|
241572
|
+
this.vueController.hoLocalStorage().getLocalXmlList(function (logs) {
|
|
241573
|
+
_this4.xmlLog = logs;
|
|
241574
|
+
});
|
|
241575
|
+
} else {
|
|
241576
|
+
this.getLocalStorage();
|
|
241577
|
+
}
|
|
241001
241578
|
}
|
|
241002
241579
|
}, {
|
|
241003
241580
|
key: "closeHistoryLogs",
|
|
@@ -241018,10 +241595,10 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241018
241595
|
/* harmony default export */ var HistoryLogsvue_type_script_lang_ts_ = (HistoryLogs);
|
|
241019
241596
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=script&lang=ts&
|
|
241020
241597
|
/* harmony default export */ var insert_HistoryLogsvue_type_script_lang_ts_ = (HistoryLogsvue_type_script_lang_ts_);
|
|
241021
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=
|
|
241598
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=8d9c8a42&lang=scss&scoped=true&
|
|
241022
241599
|
// extracted by mini-css-extract-plugin
|
|
241023
241600
|
|
|
241024
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=
|
|
241601
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=8d9c8a42&lang=scss&scoped=true&
|
|
241025
241602
|
|
|
241026
241603
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue
|
|
241027
241604
|
|
|
@@ -241034,11 +241611,11 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241034
241611
|
|
|
241035
241612
|
var HistoryLogs_component = (0,componentNormalizer/* default */.Z)(
|
|
241036
241613
|
insert_HistoryLogsvue_type_script_lang_ts_,
|
|
241037
|
-
|
|
241038
|
-
|
|
241614
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_render,
|
|
241615
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_staticRenderFns,
|
|
241039
241616
|
false,
|
|
241040
241617
|
null,
|
|
241041
|
-
"
|
|
241618
|
+
"8d9c8a42",
|
|
241042
241619
|
null
|
|
241043
241620
|
|
|
241044
241621
|
)
|
|
@@ -242443,14 +243020,14 @@ var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
|
242443
243020
|
)
|
|
242444
243021
|
|
|
242445
243022
|
/* harmony default export */ var insert_ToolControl = (ToolControl_component.exports);
|
|
242446
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolTable.vue?vue&type=template&id=
|
|
242447
|
-
var
|
|
242448
|
-
var
|
|
243023
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolTable.vue?vue&type=template&id=3884e3aa&
|
|
243024
|
+
var ToolTablevue_type_template_id_3884e3aa_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"sub-bar table-bar"},[_c('el-dialog',{attrs:{"title":"自定义表格行列","width":"320px","visible":_vm.dialogFormVisible,"top":"200px","append-to-body":"","center":""},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{"model":_vm.form}},[_c('el-form-item',{attrs:{"label":"行数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.rows),callback:function ($$v) {_vm.$set(_vm.form, "rows", $$v)},expression:"form.rows"}})],1),_c('el-form-item',{attrs:{"label":"列数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.columns),callback:function ($$v) {_vm.$set(_vm.form, "columns", $$v)},expression:"form.columns"}})],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)],1),_vm._t("insertBefore"),(_vm.table.insertTable)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("插入表格")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{staticClass:"ho-insert-table-item",attrs:{"disabled":""}},[_c('div',{staticClass:"columns",on:{"mouseleave":_vm.clearData}},[_c('p',{staticClass:"table-title"},[_vm._v(_vm._s(_vm.rows ? _vm.rows + ' x ' + _vm.columns : '插入')+" 表格")]),_vm._l((10),function(row_index){return _c('div',{key:'row_' + row_index,staticClass:"rows",on:{"mousemove":_vm.mouse,"click":_vm.createdTables}},_vm._l((10),function(column_index){return _c('span',{key:'column_index' + column_index,class:row_index <= _vm.rows && column_index <= _vm.columns ? 'selected' : '',attrs:{"data-column":column_index,"data-row":row_index},on:{"touchstart":_vm.touch,"touchmove":_vm.touch,"touchend":_vm.touchend}})}),0)})],2),_c('p',{staticClass:"table-bottom-title",on:{"click":function($event){_vm.dialogFormVisible = true}}},[_vm._v("自定义行列数")])])],1)],1)],1):_vm._e(),_c('HoTableFeatures',{attrs:{"vueController":_vm.vueController,"tableProperty":_vm.tableProperty,"dropdownClassName":_vm.dropdownClassName,"table":_vm.table},on:{"setModalStatus":_vm.setModalStatus}}),_vm._t("hoTableItem")],2)}
|
|
243025
|
+
var ToolTablevue_type_template_id_3884e3aa_staticRenderFns = []
|
|
242449
243026
|
|
|
242450
243027
|
|
|
242451
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=
|
|
242452
|
-
var HoTableFeaturesvue_type_template_id_02d0c560_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
|
|
242453
|
-
var
|
|
243028
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=2e225ab7&
|
|
243029
|
+
var HoTableFeaturesvue_type_template_id_2e225ab7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
|
|
243030
|
+
var HoTableFeaturesvue_type_template_id_2e225ab7_staticRenderFns = []
|
|
242454
243031
|
|
|
242455
243032
|
|
|
242456
243033
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=script&lang=js&
|
|
@@ -242662,7 +243239,6 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242662
243239
|
data: function data() {
|
|
242663
243240
|
return {
|
|
242664
243241
|
hoTableFeatures: null,
|
|
242665
|
-
tableFormulaValue: [],
|
|
242666
243242
|
tableCellCode: false,
|
|
242667
243243
|
dialogFormVisible: false,
|
|
242668
243244
|
dialogFormTitle: '',
|
|
@@ -242778,9 +243354,10 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242778
243354
|
},
|
|
242779
243355
|
// 打开计算公式熟入弹窗
|
|
242780
243356
|
openFormula: function openFormula(params) {
|
|
242781
|
-
this.dialogFormVisible = true;
|
|
242782
|
-
this.dialogFormTitle = params[0];
|
|
242783
|
-
this.formula = params[1];
|
|
243357
|
+
// this.dialogFormVisible = true;
|
|
243358
|
+
// this.dialogFormTitle = params[0];
|
|
243359
|
+
// this.formula = params[1];
|
|
243360
|
+
this.$emit('setModalStatus', ['table-formula', 'add', params]);
|
|
242784
243361
|
},
|
|
242785
243362
|
// 计算公式
|
|
242786
243363
|
sure: function sure() {
|
|
@@ -242854,8 +243431,8 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242854
243431
|
|
|
242855
243432
|
var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
242856
243433
|
insert_HoTableFeaturesvue_type_script_lang_js_,
|
|
242857
|
-
|
|
242858
|
-
|
|
243434
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_render,
|
|
243435
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_staticRenderFns,
|
|
242859
243436
|
false,
|
|
242860
243437
|
null,
|
|
242861
243438
|
null,
|
|
@@ -242999,6 +243576,9 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
242999
243576
|
},
|
|
243000
243577
|
closeMenu: function closeMenu() {
|
|
243001
243578
|
this.$emit('closeMenu');
|
|
243579
|
+
},
|
|
243580
|
+
setModalStatus: function setModalStatus(str) {
|
|
243581
|
+
this.$emit('setModalStatus', str);
|
|
243002
243582
|
}
|
|
243003
243583
|
}
|
|
243004
243584
|
});
|
|
@@ -243020,8 +243600,8 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243020
243600
|
|
|
243021
243601
|
var insert_ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
243022
243602
|
insert_ToolTablevue_type_script_lang_js_,
|
|
243023
|
-
|
|
243024
|
-
|
|
243603
|
+
ToolTablevue_type_template_id_3884e3aa_render,
|
|
243604
|
+
ToolTablevue_type_template_id_3884e3aa_staticRenderFns,
|
|
243025
243605
|
false,
|
|
243026
243606
|
null,
|
|
243027
243607
|
null,
|
|
@@ -243677,8 +244257,8 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
243677
244257
|
|
|
243678
244258
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
243679
244259
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
243680
|
-
|
|
243681
|
-
|
|
244260
|
+
ToolBarvue_type_template_id_8cc7b3e4_render,
|
|
244261
|
+
ToolBarvue_type_template_id_8cc7b3e4_staticRenderFns,
|
|
243682
244262
|
false,
|
|
243683
244263
|
null,
|
|
243684
244264
|
null,
|