hoeditor-web 2.0.90 → 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 +878 -339
- package/lib/hoeditor.css +827 -2
- package/lib/hoeditor.umd.js +878 -339
- 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
|
|
|
@@ -11122,9 +11121,9 @@ var HOEditorFactorys = __webpack_require__(41005);
|
|
|
11122
11121
|
this.isCanSearch = true;
|
|
11123
11122
|
}
|
|
11124
11123
|
|
|
11125
|
-
var _height = this.poperList.length * 36 + 36;
|
|
11124
|
+
var _height = this.poperList.length * 36 + 72; // if (this.isAllowMultiSelect) height += 36;
|
|
11125
|
+
|
|
11126
11126
|
|
|
11127
|
-
if (this.isAllowMultiSelect) _height += 36;
|
|
11128
11127
|
if (this.isCanSearch) _height += 28;
|
|
11129
11128
|
|
|
11130
11129
|
if (_height < 360) {
|
|
@@ -11277,10 +11276,10 @@ var HOEditorFactorys = __webpack_require__(41005);
|
|
|
11277
11276
|
});
|
|
11278
11277
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
11279
11278
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
11280
|
-
;// 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&
|
|
11281
11280
|
// extracted by mini-css-extract-plugin
|
|
11282
11281
|
|
|
11283
|
-
;// 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&
|
|
11284
11283
|
|
|
11285
11284
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11286
11285
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -11299,7 +11298,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11299
11298
|
staticRenderFns,
|
|
11300
11299
|
false,
|
|
11301
11300
|
null,
|
|
11302
|
-
"
|
|
11301
|
+
"7fecbf90",
|
|
11303
11302
|
null
|
|
11304
11303
|
|
|
11305
11304
|
)
|
|
@@ -12464,6 +12463,305 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
12464
12463
|
|
|
12465
12464
|
/***/ }),
|
|
12466
12465
|
|
|
12466
|
+
/***/ 53197:
|
|
12467
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12468
|
+
|
|
12469
|
+
"use strict";
|
|
12470
|
+
// ESM COMPAT FLAG
|
|
12471
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12472
|
+
|
|
12473
|
+
// EXPORTS
|
|
12474
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12475
|
+
"default": function() { return /* binding */ table_TableFormula; }
|
|
12476
|
+
});
|
|
12477
|
+
|
|
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)])}
|
|
12480
|
+
var staticRenderFns = []
|
|
12481
|
+
|
|
12482
|
+
|
|
12483
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
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);
|
|
12487
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
12488
|
+
var es_array_filter = __webpack_require__(57327);
|
|
12489
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12490
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
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);
|
|
12499
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
12500
|
+
var es_json_stringify = __webpack_require__(38862);
|
|
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
|
+
|
|
12505
|
+
|
|
12506
|
+
|
|
12507
|
+
|
|
12508
|
+
|
|
12509
|
+
|
|
12510
|
+
|
|
12511
|
+
|
|
12512
|
+
|
|
12513
|
+
//
|
|
12514
|
+
//
|
|
12515
|
+
//
|
|
12516
|
+
//
|
|
12517
|
+
//
|
|
12518
|
+
//
|
|
12519
|
+
//
|
|
12520
|
+
//
|
|
12521
|
+
//
|
|
12522
|
+
//
|
|
12523
|
+
//
|
|
12524
|
+
//
|
|
12525
|
+
//
|
|
12526
|
+
//
|
|
12527
|
+
//
|
|
12528
|
+
//
|
|
12529
|
+
//
|
|
12530
|
+
//
|
|
12531
|
+
//
|
|
12532
|
+
//
|
|
12533
|
+
//
|
|
12534
|
+
//
|
|
12535
|
+
//
|
|
12536
|
+
//
|
|
12537
|
+
//
|
|
12538
|
+
//
|
|
12539
|
+
//
|
|
12540
|
+
//
|
|
12541
|
+
//
|
|
12542
|
+
//
|
|
12543
|
+
//
|
|
12544
|
+
//
|
|
12545
|
+
//
|
|
12546
|
+
//
|
|
12547
|
+
//
|
|
12548
|
+
//
|
|
12549
|
+
//
|
|
12550
|
+
//
|
|
12551
|
+
//
|
|
12552
|
+
//
|
|
12553
|
+
//
|
|
12554
|
+
//
|
|
12555
|
+
//
|
|
12556
|
+
//
|
|
12557
|
+
//
|
|
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
|
+
|
|
12467
12765
|
/***/ 44680:
|
|
12468
12766
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12469
12767
|
|
|
@@ -16026,6 +16324,36 @@ var HOEditorFactorys = /*#__PURE__*/function () {
|
|
|
16026
16324
|
return HOEditorFactorys;
|
|
16027
16325
|
}();
|
|
16028
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
|
+
|
|
16029
16357
|
/***/ }),
|
|
16030
16358
|
|
|
16031
16359
|
/***/ 45480:
|
|
@@ -26865,7 +27193,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26865
27193
|
aPromise = aPromise.then(function (res) {
|
|
26866
27194
|
strPath = res;
|
|
26867
27195
|
return new Promise(function (resolve, reject) {
|
|
26868
|
-
if (text === '') {
|
|
27196
|
+
if (text === '' && index < lines.length - 1) {
|
|
26869
27197
|
strPath = insertParagraph(strPath);
|
|
26870
27198
|
resolve(strPath);
|
|
26871
27199
|
} else {
|
|
@@ -54922,7 +55250,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
54922
55250
|
this.styleIndex = 0;
|
|
54923
55251
|
}
|
|
54924
55252
|
|
|
54925
|
-
if (
|
|
55253
|
+
if (!isCopy && combineStyle.script !== 0) {
|
|
54926
55254
|
if (combineStyle.script === 1) {
|
|
54927
55255
|
copytxt = "<下标>" + copytxt + "</下标>";
|
|
54928
55256
|
}
|
|
@@ -59838,8 +60166,6 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59838
60166
|
// const dPage = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[pageIndex];
|
|
59839
60167
|
// if (dPage && dPage.drawDomLevel) {
|
|
59840
60168
|
var cc = subDocArea.clone(true);
|
|
59841
|
-
var index = subDocArea.getChildIndex(subDocArea.borderShape);
|
|
59842
|
-
if (index >= 0) cc.removeChildAt(index);
|
|
59843
60169
|
var destSubDocArea;
|
|
59844
60170
|
|
|
59845
60171
|
if (destArea) {
|
|
@@ -59861,8 +60187,19 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59861
60187
|
this._cell.drawCell.drawPageCells.push(destSubDocArea);
|
|
59862
60188
|
}
|
|
59863
60189
|
|
|
60190
|
+
destSubDocArea.removeAllChildren();
|
|
59864
60191
|
destSubDocArea.children = cc.children;
|
|
59865
|
-
|
|
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
|
+
|
|
59866
60203
|
|
|
59867
60204
|
destSubDocArea.dHeight = subDocArea.dHeight;
|
|
59868
60205
|
destSubDocArea.dLeft = subDocArea.dLeft;
|
|
@@ -62159,6 +62496,16 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62159
62496
|
|
|
62160
62497
|
|
|
62161
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
|
+
}, {
|
|
62162
62509
|
key: "startDline",
|
|
62163
62510
|
get: function get() {
|
|
62164
62511
|
return this._startDline;
|
|
@@ -64326,16 +64673,15 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64326
64673
|
cellRestHeight = Math.min(cell.drawCell.getCellRestHeight(0), pageRestHeight);
|
|
64327
64674
|
}
|
|
64328
64675
|
|
|
64329
|
-
var destCell = cell.drawCell.copyPaintCell(this, r, aTop);
|
|
64330
|
-
|
|
64331
|
-
|
|
64332
|
-
|
|
64333
|
-
|
|
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){
|
|
64334
64681
|
// const dPage= this._table.hoEditorFactory.drawTree.getDrawPageByDomStage(this.stage);
|
|
64335
64682
|
// if (dPage){}
|
|
64336
64683
|
// }
|
|
64337
64684
|
// cell.drawCell.copyPaintCell(this.dPage.pageIndex, this, aTop);
|
|
64338
|
-
|
|
64339
64685
|
}
|
|
64340
64686
|
}
|
|
64341
64687
|
|
|
@@ -67183,6 +67529,8 @@ var SpecialCharsNode = __webpack_require__(98729);
|
|
|
67183
67529
|
var es_string_replace = __webpack_require__(15306);
|
|
67184
67530
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
67185
67531
|
var es_error_cause = __webpack_require__(21703);
|
|
67532
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
67533
|
+
var commonParamList = __webpack_require__(82089);
|
|
67186
67534
|
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
67187
67535
|
var UnitConvert = __webpack_require__(38100);
|
|
67188
67536
|
;// CONCATENATED MODULE: ./src/editor/utils/DrawText.ts
|
|
@@ -67194,6 +67542,7 @@ var UnitConvert = __webpack_require__(38100);
|
|
|
67194
67542
|
|
|
67195
67543
|
|
|
67196
67544
|
|
|
67545
|
+
|
|
67197
67546
|
var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
67198
67547
|
(0,inherits/* default */.Z)(DrawText, _createjs$Text);
|
|
67199
67548
|
|
|
@@ -67345,9 +67694,14 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
67345
67694
|
|
|
67346
67695
|
|
|
67347
67696
|
ctx.imageSmoothingEnabled = true;
|
|
67348
|
-
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();
|
|
67349
67702
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
67350
67703
|
|
|
67704
|
+
|
|
67351
67705
|
if (this.outline) {
|
|
67352
67706
|
ctx.strokeStyle = col;
|
|
67353
67707
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -71088,7 +71442,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71088
71442
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
71089
71443
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex, // inLineIndex,
|
|
71090
71444
|
node, startChildIndex + 1, e.afterChangePath);
|
|
71091
|
-
var endIndex = alines.
|
|
71445
|
+
var endIndex = alines.length - 1; // if (paragraphNode.parentNode === null) {
|
|
71092
71446
|
// const darea = this.getDrawA(dline);
|
|
71093
71447
|
|
|
71094
71448
|
if (e.repaintImmediate) {
|
|
@@ -79582,7 +79936,7 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79582
79936
|
/* harmony export */ "b": function() { return /* binding */ DrawSimpleText; }
|
|
79583
79937
|
/* harmony export */ });
|
|
79584
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);
|
|
79585
|
-
/* 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);
|
|
79586
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);
|
|
79587
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);
|
|
79588
79942
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74916);
|
|
@@ -79591,7 +79945,9 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79591
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__);
|
|
79592
79946
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
|
|
79593
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__);
|
|
79594
|
-
/* 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
|
+
|
|
79595
79951
|
|
|
79596
79952
|
|
|
79597
79953
|
|
|
@@ -79632,7 +79988,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79632
79988
|
return _this;
|
|
79633
79989
|
}
|
|
79634
79990
|
|
|
79635
|
-
(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, [{
|
|
79636
79992
|
key: "docWidth",
|
|
79637
79993
|
get: function get() {
|
|
79638
79994
|
return this._docWidth;
|
|
@@ -79677,9 +80033,15 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79677
80033
|
|
|
79678
80034
|
|
|
79679
80035
|
ctx.imageSmoothingEnabled = true;
|
|
79680
|
-
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();
|
|
79681
80042
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
79682
80043
|
|
|
80044
|
+
|
|
79683
80045
|
if (this.outline) {
|
|
79684
80046
|
ctx.strokeStyle = col;
|
|
79685
80047
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -79876,7 +80238,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79876
80238
|
}
|
|
79877
80239
|
|
|
79878
80240
|
for (var j = 0, jlen = text.length; j < jlen; j++) {
|
|
79879
|
-
if (!
|
|
80241
|
+
if (!_UnitConvert__WEBPACK_IMPORTED_MODULE_7__/* .UnitConvert.isNumEnglish */ .P.isNumEnglish(text[j])) {
|
|
79880
80242
|
return false;
|
|
79881
80243
|
}
|
|
79882
80244
|
}
|
|
@@ -80684,7 +81046,7 @@ var isMap = function isMap(map) {
|
|
|
80684
81046
|
var isDate = function isDate(date) {
|
|
80685
81047
|
if (date === null || date === undefined) {
|
|
80686
81048
|
return false;
|
|
80687
|
-
} else if (typeof date ===
|
|
81049
|
+
} else if (typeof date === 'string') {
|
|
80688
81050
|
if (isNaN(new Date(date).getTime())) {
|
|
80689
81051
|
return false;
|
|
80690
81052
|
} else {
|
|
@@ -80716,35 +81078,35 @@ var toDate = function toDate(date) {
|
|
|
80716
81078
|
// };
|
|
80717
81079
|
|
|
80718
81080
|
|
|
80719
|
-
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'];
|
|
80720
81082
|
var dateFormatValueList = [{
|
|
80721
|
-
value:
|
|
81083
|
+
value: 'HH:mm'
|
|
80722
81084
|
}, {
|
|
80723
|
-
value:
|
|
81085
|
+
value: 'HH:mm:ss'
|
|
80724
81086
|
}, {
|
|
80725
|
-
value:
|
|
81087
|
+
value: 'yyyy/MM/dd'
|
|
80726
81088
|
}, {
|
|
80727
|
-
value:
|
|
81089
|
+
value: 'yyyy/MM/dd HH:mm'
|
|
80728
81090
|
}, {
|
|
80729
|
-
value:
|
|
81091
|
+
value: 'yyyy/MM/dd HH:mm:ss'
|
|
80730
81092
|
}, {
|
|
80731
|
-
value:
|
|
81093
|
+
value: 'HH时mm分'
|
|
80732
81094
|
}, {
|
|
80733
|
-
value:
|
|
81095
|
+
value: 'HH时mm分ss秒'
|
|
80734
81096
|
}, {
|
|
80735
|
-
value:
|
|
81097
|
+
value: 'yyyy年MM月dd日'
|
|
80736
81098
|
}, {
|
|
80737
|
-
value:
|
|
81099
|
+
value: 'yyyy年MM月dd日 HH时mm分'
|
|
80738
81100
|
}, {
|
|
80739
|
-
value:
|
|
81101
|
+
value: 'yyyy年MM月dd日 HH时mm分ss秒'
|
|
80740
81102
|
}, {
|
|
80741
|
-
value:
|
|
81103
|
+
value: 'MM-dd'
|
|
80742
81104
|
}, {
|
|
80743
|
-
value:
|
|
81105
|
+
value: 'yyyy-MM-dd'
|
|
80744
81106
|
}, {
|
|
80745
|
-
value:
|
|
81107
|
+
value: 'yyyy-MM-dd HH:mm'
|
|
80746
81108
|
}, {
|
|
80747
|
-
value:
|
|
81109
|
+
value: 'yyyy-MM-dd HH:mm:ss'
|
|
80748
81110
|
}];
|
|
80749
81111
|
/**
|
|
80750
81112
|
* 日期格式化
|
|
@@ -80755,23 +81117,23 @@ var dateFormatValueList = [{
|
|
|
80755
81117
|
var dateFormat = function dateFormat(date, format) {
|
|
80756
81118
|
var _date;
|
|
80757
81119
|
|
|
80758
|
-
if (date && typeof date ===
|
|
80759
|
-
var stringDate = date.replace(/[年|月|-]/g,
|
|
80760
|
-
stringDate = stringDate.replace(/[点|时|分]/g,
|
|
80761
|
-
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, '');
|
|
80762
81124
|
|
|
80763
81125
|
if (isNaN(new Date(stringDate).getTime())) {
|
|
80764
|
-
if (format && format.includes(
|
|
80765
|
-
stringDate =
|
|
81126
|
+
if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
81127
|
+
stringDate = '2021/' + stringDate;
|
|
80766
81128
|
}
|
|
80767
81129
|
|
|
80768
|
-
if (format && format.includes(
|
|
80769
|
-
stringDate = stringDate +
|
|
80770
|
-
stringDate = stringDate.replace(
|
|
81130
|
+
if (format && format.includes('HH') && !format.includes('ss')) {
|
|
81131
|
+
stringDate = stringDate + ':00';
|
|
81132
|
+
stringDate = stringDate.replace('::', ':');
|
|
80771
81133
|
}
|
|
80772
81134
|
|
|
80773
|
-
if (!stringDate.includes(
|
|
80774
|
-
stringDate =
|
|
81135
|
+
if (!stringDate.includes('/')) {
|
|
81136
|
+
stringDate = '2021/10/01 ' + stringDate;
|
|
80775
81137
|
}
|
|
80776
81138
|
}
|
|
80777
81139
|
|
|
@@ -80791,7 +81153,7 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
80791
81153
|
if (minutes.length === 1) minutes = "0".concat(minutes);
|
|
80792
81154
|
var seconds = "".concat(_date.getSeconds());
|
|
80793
81155
|
if (seconds.length === 1) seconds = "0".concat(seconds);
|
|
80794
|
-
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);
|
|
80795
81157
|
};
|
|
80796
81158
|
/**
|
|
80797
81159
|
* 弹窗拖动
|
|
@@ -80805,18 +81167,18 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80805
81167
|
var y = 0;
|
|
80806
81168
|
|
|
80807
81169
|
var move = function move(event) {
|
|
80808
|
-
modalElement.style.left = event.pageX - x +
|
|
80809
|
-
modalElement.style.top = event.pageY - y +
|
|
81170
|
+
modalElement.style.left = event.pageX - x + 'px';
|
|
81171
|
+
modalElement.style.top = event.pageY - y + 'px';
|
|
80810
81172
|
};
|
|
80811
81173
|
|
|
80812
81174
|
var target = event.target;
|
|
80813
81175
|
|
|
80814
|
-
if (typeof target.className ===
|
|
81176
|
+
if (typeof target.className === 'string' && target.className.indexOf(openMoveClassName) !== -1) {
|
|
80815
81177
|
x = event.pageX - modalElement.offsetLeft;
|
|
80816
81178
|
y = event.pageY - modalElement.offsetTop;
|
|
80817
|
-
document.addEventListener(
|
|
80818
|
-
document.addEventListener(
|
|
80819
|
-
document.removeEventListener(
|
|
81179
|
+
document.addEventListener('mousemove', move);
|
|
81180
|
+
document.addEventListener('mouseup', function () {
|
|
81181
|
+
document.removeEventListener('mousemove', move);
|
|
80820
81182
|
});
|
|
80821
81183
|
} else {
|
|
80822
81184
|
return false;
|
|
@@ -80835,38 +81197,38 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80835
81197
|
*/
|
|
80836
81198
|
|
|
80837
81199
|
var computedPoperPosition = function computedPoperPosition(maxHeight, poperPos, offsetHeight) {
|
|
80838
|
-
var doc = Array.from(document.querySelectorAll(
|
|
81200
|
+
var doc = Array.from(document.querySelectorAll('.edit-area'))[poperPos.docIndex];
|
|
80839
81201
|
var offsetHeights = offsetHeight ? offsetHeight : 0;
|
|
80840
81202
|
var pos = {
|
|
80841
|
-
left:
|
|
80842
|
-
top:
|
|
80843
|
-
right:
|
|
80844
|
-
bottom:
|
|
80845
|
-
height: maxHeight +
|
|
81203
|
+
left: '',
|
|
81204
|
+
top: '',
|
|
81205
|
+
right: '',
|
|
81206
|
+
bottom: '',
|
|
81207
|
+
height: maxHeight + 'px'
|
|
80846
81208
|
};
|
|
80847
|
-
var selectCanvas = Array.from(doc.querySelectorAll(
|
|
81209
|
+
var selectCanvas = Array.from(doc.querySelectorAll('.selectcanvas'))[poperPos.pageIndex];
|
|
80848
81210
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80849
81211
|
var screenHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
80850
81212
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80851
81213
|
var y = selectCanvasSize.top + poperPos.y;
|
|
80852
|
-
pos.left = x +
|
|
81214
|
+
pos.left = x + 'px';
|
|
80853
81215
|
|
|
80854
81216
|
if (screenHeight - y - poperPos.height + 30 < maxHeight) {
|
|
80855
81217
|
if (y + poperPos.height < maxHeight) {
|
|
80856
81218
|
// 可用高度不足时,暂定遮挡元素内容,保证控件能显示完整
|
|
80857
|
-
pos.bottom =
|
|
81219
|
+
pos.bottom = '0px';
|
|
80858
81220
|
} else {
|
|
80859
|
-
pos.bottom = screenHeight - y - offsetHeights + poperPos.height +
|
|
81221
|
+
pos.bottom = screenHeight - y - offsetHeights + poperPos.height + 'px';
|
|
80860
81222
|
}
|
|
80861
81223
|
} else {
|
|
80862
|
-
pos.top = y + offsetHeights +
|
|
81224
|
+
pos.top = y + offsetHeights + 'px';
|
|
80863
81225
|
}
|
|
80864
81226
|
|
|
80865
81227
|
return pos;
|
|
80866
81228
|
};
|
|
80867
81229
|
var generateGetBoundingClientRect = function generateGetBoundingClientRect(poperPos, offsetHeight) {
|
|
80868
|
-
var doc = Array.from(document.querySelectorAll(
|
|
80869
|
-
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];
|
|
80870
81232
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80871
81233
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80872
81234
|
var y = selectCanvasSize.top + poperPos.y;
|
|
@@ -80888,7 +81250,7 @@ var generateGetBoundingClientRect = function generateGetBoundingClientRect(poper
|
|
|
80888
81250
|
|
|
80889
81251
|
var generateID = function generateID(type) {
|
|
80890
81252
|
if (type === undefined) {
|
|
80891
|
-
type =
|
|
81253
|
+
type = '';
|
|
80892
81254
|
}
|
|
80893
81255
|
|
|
80894
81256
|
var date = new Date();
|
|
@@ -80900,23 +81262,23 @@ var generateID = function generateID(type) {
|
|
|
80900
81262
|
var second = date.getSeconds().toString();
|
|
80901
81263
|
|
|
80902
81264
|
if (month.length === 1) {
|
|
80903
|
-
month =
|
|
81265
|
+
month = '0' + month;
|
|
80904
81266
|
}
|
|
80905
81267
|
|
|
80906
81268
|
if (day.length === 1) {
|
|
80907
|
-
day =
|
|
81269
|
+
day = '0' + day;
|
|
80908
81270
|
}
|
|
80909
81271
|
|
|
80910
81272
|
if (hour.length === 1) {
|
|
80911
|
-
hour =
|
|
81273
|
+
hour = '0' + hour;
|
|
80912
81274
|
}
|
|
80913
81275
|
|
|
80914
81276
|
if (minute.length === 1) {
|
|
80915
|
-
minute =
|
|
81277
|
+
minute = '0' + minute;
|
|
80916
81278
|
}
|
|
80917
81279
|
|
|
80918
81280
|
if (second.length === 1) {
|
|
80919
|
-
second =
|
|
81281
|
+
second = '0' + second;
|
|
80920
81282
|
}
|
|
80921
81283
|
|
|
80922
81284
|
var randomNumber = Math.floor(Math.random() * 1000000).toString();
|
|
@@ -80945,11 +81307,11 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80945
81307
|
getBoundingClientRect: generateGetBoundingClientRect(clientX, clientY)
|
|
80946
81308
|
};
|
|
80947
81309
|
(0,_popperjs_core__WEBPACK_IMPORTED_MODULE_12__/* .createPopper */ .fi)(virtualElement, rightMenuModal, {
|
|
80948
|
-
placement:
|
|
81310
|
+
placement: 'bottom-start',
|
|
80949
81311
|
modifiers: [{
|
|
80950
|
-
name:
|
|
81312
|
+
name: 'flip',
|
|
80951
81313
|
options: {
|
|
80952
|
-
fallbackPlacements: [
|
|
81314
|
+
fallbackPlacements: ['bottom-start', 'bottom', 'right', 'left'],
|
|
80953
81315
|
padding: 10
|
|
80954
81316
|
}
|
|
80955
81317
|
}]
|
|
@@ -80961,10 +81323,10 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80961
81323
|
*/
|
|
80962
81324
|
|
|
80963
81325
|
var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation) {
|
|
80964
|
-
var printStyle = document.createElement(
|
|
81326
|
+
var printStyle = document.createElement('style'); // css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
|
|
80965
81327
|
|
|
80966
|
-
printStyle.type =
|
|
80967
|
-
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 ");
|
|
80968
81330
|
return printStyle;
|
|
80969
81331
|
};
|
|
80970
81332
|
/**
|
|
@@ -80975,23 +81337,23 @@ var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation)
|
|
|
80975
81337
|
var createPrintHTMLIframe = function createPrintHTMLIframe(printStyle) {
|
|
80976
81338
|
var _printIframe$contentW;
|
|
80977
81339
|
|
|
80978
|
-
var printIframe = document.createElement(
|
|
80979
|
-
printIframe.id =
|
|
80980
|
-
printIframe.style.position =
|
|
80981
|
-
printIframe.style.margin =
|
|
80982
|
-
printIframe.style.padding =
|
|
80983
|
-
printIframe.style.width =
|
|
80984
|
-
printIframe.style.height =
|
|
80985
|
-
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';
|
|
80986
81348
|
document.body.appendChild(printIframe);
|
|
80987
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);
|
|
80988
81350
|
return printIframe;
|
|
80989
81351
|
};
|
|
80990
81352
|
var resetScale = function resetScale() {
|
|
80991
|
-
var bodyElement = document.querySelector(
|
|
81353
|
+
var bodyElement = document.querySelector('body');
|
|
80992
81354
|
|
|
80993
|
-
if (Object.prototype.hasOwnProperty.call(bodyElement.style,
|
|
80994
|
-
bodyElement.style.zoom =
|
|
81355
|
+
if (Object.prototype.hasOwnProperty.call(bodyElement.style, 'zoom')) {
|
|
81356
|
+
bodyElement.style.zoom = 'reset';
|
|
80995
81357
|
}
|
|
80996
81358
|
|
|
80997
81359
|
document.onkeydown = function (event) {
|
|
@@ -81007,12 +81369,12 @@ var resetScale = function resetScale() {
|
|
|
81007
81369
|
//Firefox滑轮事件
|
|
81008
81370
|
if (e.detail > 0) {
|
|
81009
81371
|
//当滑轮向上滚动时
|
|
81010
|
-
alert(
|
|
81372
|
+
alert('滑轮向下滚动');
|
|
81011
81373
|
}
|
|
81012
81374
|
|
|
81013
81375
|
if (e.detail < 0) {
|
|
81014
81376
|
//当滑轮向下滚动时
|
|
81015
|
-
alert(
|
|
81377
|
+
alert('滑轮向上滚动');
|
|
81016
81378
|
}
|
|
81017
81379
|
}
|
|
81018
81380
|
};
|
|
@@ -81020,29 +81382,29 @@ var resetScale = function resetScale() {
|
|
|
81020
81382
|
var getBrowser = function getBrowser() {
|
|
81021
81383
|
var sUsrAg = window.navigator.userAgent;
|
|
81022
81384
|
|
|
81023
|
-
if (sUsrAg.indexOf(
|
|
81024
|
-
return
|
|
81025
|
-
} else if (sUsrAg.indexOf(
|
|
81026
|
-
return
|
|
81027
|
-
} else if (sUsrAg.indexOf(
|
|
81028
|
-
return
|
|
81029
|
-
} else if (sUsrAg.indexOf(
|
|
81030
|
-
return
|
|
81031
|
-
} else if (sUsrAg.indexOf(
|
|
81032
|
-
return
|
|
81033
|
-
} else if (sUsrAg.indexOf(
|
|
81034
|
-
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'
|
|
81035
81397
|
} else {
|
|
81036
|
-
return
|
|
81398
|
+
return 'unknown';
|
|
81037
81399
|
}
|
|
81038
81400
|
}; //给页面绑定滑轮滚动事件
|
|
81039
81401
|
|
|
81040
81402
|
|
|
81041
|
-
if (getBrowser() ===
|
|
81403
|
+
if (getBrowser() === 'Mozilla Firefox') {
|
|
81042
81404
|
//火狐使用DOMMouseScroll绑定
|
|
81043
|
-
document.addEventListener(
|
|
81405
|
+
document.addEventListener('DOMMouseScroll', windowAddMouseWheel, false);
|
|
81044
81406
|
} else {
|
|
81045
|
-
document.addEventListener(
|
|
81407
|
+
document.addEventListener('onmousewheel', windowAddMouseWheel, false);
|
|
81046
81408
|
}
|
|
81047
81409
|
};
|
|
81048
81410
|
var getUserIP = function getUserIP(onNewIP) {
|
|
@@ -81051,7 +81413,7 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81051
81413
|
var myPeerConnection = window.RTCPeerConnection;
|
|
81052
81414
|
var pc = new myPeerConnection({
|
|
81053
81415
|
iceServers: [{
|
|
81054
|
-
urls:
|
|
81416
|
+
urls: 'stun:stun.l.google.com:19302'
|
|
81055
81417
|
}]
|
|
81056
81418
|
});
|
|
81057
81419
|
var localIPs = {};
|
|
@@ -81062,13 +81424,13 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81062
81424
|
localIPs[ip] = true;
|
|
81063
81425
|
};
|
|
81064
81426
|
|
|
81065
|
-
pc.createDataChannel(
|
|
81427
|
+
pc.createDataChannel('');
|
|
81066
81428
|
pc.createOffer().then(function (sdp) {
|
|
81067
81429
|
if (sdp && sdp.sdp) {
|
|
81068
|
-
sdp.sdp.split(
|
|
81430
|
+
sdp.sdp.split('\n').forEach(function (line) {
|
|
81069
81431
|
var _line$match;
|
|
81070
81432
|
|
|
81071
|
-
if (line.indexOf(
|
|
81433
|
+
if (line.indexOf('candidate') < 0) return;
|
|
81072
81434
|
(_line$match = line.match(ipRegex)) === null || _line$match === void 0 ? void 0 : _line$match.forEach(iterateIP);
|
|
81073
81435
|
});
|
|
81074
81436
|
}
|
|
@@ -81089,15 +81451,15 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81089
81451
|
var newImage = new Image();
|
|
81090
81452
|
var quality = qualitys ? qualitys : 1;
|
|
81091
81453
|
newImage.src = base64;
|
|
81092
|
-
newImage.setAttribute(
|
|
81454
|
+
newImage.setAttribute('crossOrigin', 'Anonymous'); //url为外域时需要
|
|
81093
81455
|
|
|
81094
81456
|
var imgWidth, imgHeight;
|
|
81095
81457
|
|
|
81096
81458
|
newImage.onload = function () {
|
|
81097
81459
|
imgWidth = newImage.naturalWidth;
|
|
81098
81460
|
imgHeight = newImage.naturalHeight;
|
|
81099
|
-
var canvas = document.createElement(
|
|
81100
|
-
var ctx = canvas.getContext(
|
|
81461
|
+
var canvas = document.createElement('canvas');
|
|
81462
|
+
var ctx = canvas.getContext('2d');
|
|
81101
81463
|
|
|
81102
81464
|
if (img) {
|
|
81103
81465
|
canvas.width = img[0] * 2;
|
|
@@ -81107,19 +81469,19 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81107
81469
|
canvas.height = imgHeight * 2;
|
|
81108
81470
|
}
|
|
81109
81471
|
|
|
81110
|
-
canvas.style.width = canvas.width / 2 +
|
|
81111
|
-
canvas.style.height = canvas.height / 2 +
|
|
81472
|
+
canvas.style.width = canvas.width / 2 + 'px';
|
|
81473
|
+
canvas.style.height = canvas.height / 2 + 'px';
|
|
81112
81474
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
81113
|
-
ctx.fillStyle =
|
|
81475
|
+
ctx.fillStyle = '#FFFFFF';
|
|
81114
81476
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
81115
81477
|
ctx.drawImage(newImage, 0, 0, canvas.width, canvas.height);
|
|
81116
|
-
var base64 = canvas.toDataURL(
|
|
81478
|
+
var base64 = canvas.toDataURL('image/jpeg', quality); //压缩语句
|
|
81117
81479
|
// 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
|
|
81118
81480
|
|
|
81119
81481
|
if (size) {
|
|
81120
81482
|
while (base64.length / 1024 > size) {
|
|
81121
81483
|
quality -= 0.01;
|
|
81122
|
-
base64 = canvas.toDataURL(
|
|
81484
|
+
base64 = canvas.toDataURL('image/jpeg', quality);
|
|
81123
81485
|
}
|
|
81124
81486
|
}
|
|
81125
81487
|
|
|
@@ -212369,7 +212731,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
212369
212731
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
212370
212732
|
|
|
212371
212733
|
var map = {
|
|
212372
|
-
"./ControlModal.vue":
|
|
212734
|
+
"./ControlModal.vue": 40275,
|
|
212373
212735
|
"./barCode/BarCodes.vue": 51185,
|
|
212374
212736
|
"./colorPicker/HoColorPicker.vue": 47328,
|
|
212375
212737
|
"./commentDialog/CommentDialog.vue": 23737,
|
|
@@ -212386,7 +212748,7 @@ var map = {
|
|
|
212386
212748
|
"./pageInfoes/PageInfoes.vue": 67977,
|
|
212387
212749
|
"./paragraph/ParagraphDialog.vue": 32679,
|
|
212388
212750
|
"./poperSelect/PoperMark.vue": 93069,
|
|
212389
|
-
"./poperSelect/PoperSelect.vue":
|
|
212751
|
+
"./poperSelect/PoperSelect.vue": 23915,
|
|
212390
212752
|
"./poperTipText/PoperTipText.vue": 91831,
|
|
212391
212753
|
"./popers/Poper.vue": 96012,
|
|
212392
212754
|
"./popers/Title.vue": 40168,
|
|
@@ -212395,9 +212757,10 @@ var map = {
|
|
|
212395
212757
|
"./radioCheckBox/RadioCheckbox.vue": 48961,
|
|
212396
212758
|
"./selectDialog/SelectDialog.vue": 54891,
|
|
212397
212759
|
"./sign/Sign.vue": 44801,
|
|
212398
|
-
"./table/TableCellPoper.vue":
|
|
212760
|
+
"./table/TableCellPoper.vue": 46787,
|
|
212399
212761
|
"./table/TableCellProperty.vue": 52445,
|
|
212400
212762
|
"./table/TableColProperty.vue": 97160,
|
|
212763
|
+
"./table/TableFormula.vue": 53197,
|
|
212401
212764
|
"./table/TableProperty.vue": 44680,
|
|
212402
212765
|
"./table/TableRowProperty.vue": 74456,
|
|
212403
212766
|
"./textDialog/TextDialog.vue": 74796,
|
|
@@ -213914,7 +214277,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
213914
214277
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
213915
214278
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
213916
214279
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
213917
|
-
;// 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&
|
|
213918
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()}
|
|
213919
214282
|
var staticRenderFns = []
|
|
213920
214283
|
|
|
@@ -213941,14 +214304,11 @@ var es_string_match = __webpack_require__(4723);
|
|
|
213941
214304
|
var es_number_constructor = __webpack_require__(9653);
|
|
213942
214305
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
213943
214306
|
var es_json_stringify = __webpack_require__(38862);
|
|
213944
|
-
;// 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=
|
|
213945
|
-
var
|
|
213946
|
-
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 = []
|
|
213947
214310
|
|
|
213948
214311
|
|
|
213949
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
213950
|
-
var message_box = __webpack_require__(86769);
|
|
213951
|
-
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
213952
214312
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
213953
214313
|
var es_array_filter = __webpack_require__(57327);
|
|
213954
214314
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -214823,14 +215183,6 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214823
215183
|
this._domStage.scaleY = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
214824
215184
|
var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
|
|
214825
215185
|
|
|
214826
|
-
this._domStage.addChild(dPage.drawDocContainer);
|
|
214827
|
-
|
|
214828
|
-
dPage.paintBackGround();
|
|
214829
|
-
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
214830
|
-
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawHeader, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
214831
|
-
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
214832
|
-
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawFooter, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
214833
|
-
|
|
214834
215186
|
var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
|
|
214835
215187
|
if (a > b) {
|
|
214836
215188
|
return 1;
|
|
@@ -214850,8 +215202,15 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214850
215202
|
(_hoeditorfactory$draw = hoeditorfactory.drawPageTree.needUpdateMainDocInfo.get(index)) === null || _hoeditorfactory$draw === void 0 ? void 0 : _hoeditorfactory$draw.callUpdate();
|
|
214851
215203
|
hoeditorfactory.drawPageTree.needUpdateMainDocInfo.delete(index);
|
|
214852
215204
|
}
|
|
214853
|
-
}
|
|
215205
|
+
}
|
|
215206
|
+
|
|
215207
|
+
this._domStage.addChild(dPage.drawDocContainer);
|
|
214854
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);
|
|
214855
215214
|
|
|
214856
215215
|
dPage.drawHeader.x = hoeditorfactory.pageProperty.leftMarginPixes; // dPage.drawHeader.y = hoeditorfactory.pageProperty.headerYPixes;
|
|
214857
215216
|
// // this._domStage.addChildAt(this._drawMainDoc, 0);
|
|
@@ -215276,9 +215635,9 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
215276
215635
|
return NodeMouseMoveEvent;
|
|
215277
215636
|
}();
|
|
215278
215637
|
NodeMouseMoveEvent.eventName = "nodeMouseMove";
|
|
215279
|
-
;// 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=
|
|
215280
|
-
var
|
|
215281
|
-
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 = []
|
|
215282
215641
|
|
|
215283
215642
|
|
|
215284
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&
|
|
@@ -215298,6 +215657,7 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215298
215657
|
//
|
|
215299
215658
|
//
|
|
215300
215659
|
//
|
|
215660
|
+
|
|
215301
215661
|
/* harmony default export */ var HoHeadFootvue_type_script_lang_js_ = ({
|
|
215302
215662
|
name: 'HoHeadFoot',
|
|
215303
215663
|
props: {
|
|
@@ -215312,10 +215672,10 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215312
215672
|
},
|
|
215313
215673
|
computed: {
|
|
215314
215674
|
headTop: function headTop() {
|
|
215315
|
-
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;';
|
|
215316
215676
|
},
|
|
215317
215677
|
footerTop: function footerTop() {
|
|
215318
|
-
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;';
|
|
215319
215679
|
}
|
|
215320
215680
|
}
|
|
215321
215681
|
});
|
|
@@ -215339,8 +215699,8 @@ var componentNormalizer = __webpack_require__(1001);
|
|
|
215339
215699
|
|
|
215340
215700
|
var component = (0,componentNormalizer/* default */.Z)(
|
|
215341
215701
|
components_HoHeadFootvue_type_script_lang_js_,
|
|
215342
|
-
|
|
215343
|
-
|
|
215702
|
+
HoHeadFootvue_type_template_id_47bfb5b0_render,
|
|
215703
|
+
HoHeadFootvue_type_template_id_47bfb5b0_staticRenderFns,
|
|
215344
215704
|
false,
|
|
215345
215705
|
null,
|
|
215346
215706
|
null,
|
|
@@ -215875,7 +216235,7 @@ var DrawPage = __webpack_require__(65870);
|
|
|
215875
216235
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
215876
216236
|
var util = __webpack_require__(33913);
|
|
215877
216237
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
215878
|
-
var PoperSelect = __webpack_require__(
|
|
216238
|
+
var PoperSelect = __webpack_require__(23915);
|
|
215879
216239
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
215880
216240
|
var PoperMark = __webpack_require__(93069);
|
|
215881
216241
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -215883,7 +216243,7 @@ var PoperMark = __webpack_require__(93069);
|
|
|
215883
216243
|
|
|
215884
216244
|
|
|
215885
216245
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
215886
|
-
var TableCellPoper = __webpack_require__(
|
|
216246
|
+
var TableCellPoper = __webpack_require__(46787);
|
|
215887
216247
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
215888
216248
|
var DateTimeNode = __webpack_require__(36395);
|
|
215889
216249
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -217587,7 +217947,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
217587
217947
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217588
217948
|
var ParagraphNode = __webpack_require__(14208);
|
|
217589
217949
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217590
|
-
/* harmony default export */ var version = ('2.0.
|
|
217950
|
+
/* harmony default export */ var version = ('2.0.91');
|
|
217591
217951
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217592
217952
|
var PoperTipText = __webpack_require__(91831);
|
|
217593
217953
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217609,9 +217969,6 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217609
217969
|
|
|
217610
217970
|
|
|
217611
217971
|
|
|
217612
|
-
|
|
217613
|
-
|
|
217614
|
-
|
|
217615
217972
|
//
|
|
217616
217973
|
//
|
|
217617
217974
|
//
|
|
@@ -217805,6 +218162,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217805
218162
|
drawPageLength: 0,
|
|
217806
218163
|
isCreateRightMenuModal: false,
|
|
217807
218164
|
// 是否创建右键弹窗 只显示编辑器版本
|
|
218165
|
+
showDeleteSignMenu: false,
|
|
218166
|
+
// 审阅模式显示删除签名菜单
|
|
217808
218167
|
version: version,
|
|
217809
218168
|
isHideComments: false,
|
|
217810
218169
|
showCommentsBtn: false,
|
|
@@ -217863,7 +218222,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217863
218222
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
217864
218223
|
}
|
|
217865
218224
|
},
|
|
217866
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue',
|
|
218225
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
217867
218226
|
created: function created() {
|
|
217868
218227
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
217869
218228
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -217910,26 +218269,17 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217910
218269
|
},
|
|
217911
218270
|
methods: {
|
|
217912
218271
|
deleteSignNode: function deleteSignNode() {
|
|
217913
|
-
var
|
|
217914
|
-
// if (hoEditorFactory.userInfo.id != signUserId) {
|
|
217915
|
-
// MessageBox.alert("不是本人签名,不允许删除!");
|
|
217916
|
-
// this.eleNode = null;
|
|
217917
|
-
// this.currentNode = null;
|
|
217918
|
-
// this.isCreateRightMenuModal = false;
|
|
217919
|
-
// return;
|
|
217920
|
-
// }
|
|
218272
|
+
var _this$getRightClickNo;
|
|
217921
218273
|
|
|
217922
|
-
|
|
217923
|
-
|
|
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();
|
|
217924
218276
|
|
|
217925
|
-
|
|
218277
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218278
|
+
hoEditorFactory.elementController.deleteNode(node);
|
|
217926
218279
|
}
|
|
217927
218280
|
|
|
217928
|
-
hoEditorFactory.elementController.deleteNode(this.currentNode); // hoEditorFactory.vueController.forceDelete();
|
|
217929
|
-
|
|
217930
|
-
this.eleNode = null;
|
|
217931
|
-
this.currentNode = null;
|
|
217932
218281
|
this.isCreateRightMenuModal = false;
|
|
218282
|
+
this.showDeleteSignMenu = false;
|
|
217933
218283
|
},
|
|
217934
218284
|
beforeDestroy: function beforeDestroy() {
|
|
217935
218285
|
var _this$viewableAreaObs,
|
|
@@ -218051,7 +218401,9 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218051
218401
|
|
|
218052
218402
|
if (node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
218053
218403
|
value = node.parentNode;
|
|
218054
|
-
}
|
|
218404
|
+
}
|
|
218405
|
+
|
|
218406
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218055
218407
|
value = node;
|
|
218056
218408
|
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
218057
218409
|
value = node;
|
|
@@ -218273,28 +218625,42 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218273
218625
|
var _hoEditorFactory$vueC2;
|
|
218274
218626
|
|
|
218275
218627
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218276
|
-
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
218277
|
-
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
218278
|
-
this.setRightClickNodeValue(node);
|
|
218279
|
-
this.eleNode = this.getRightClickNodeValue();
|
|
218280
|
-
this.currentNode = node;
|
|
218281
218628
|
var rightPosition = {
|
|
218282
218629
|
clientX: e.clientX || e.pageX,
|
|
218283
218630
|
clientY: e.clientY || e.pageY
|
|
218284
|
-
};
|
|
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, // 设计状态
|
|
218285
218645
|
// psEdit, // 编辑状态
|
|
218286
218646
|
// psPreview, // 打印预览
|
|
218287
218647
|
// psPrint, // 打印
|
|
218288
218648
|
// psReview, // 审阅
|
|
218289
218649
|
// psReadOnly, // 预览
|
|
218290
218650
|
|
|
218291
|
-
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218292
|
-
var _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218293
218651
|
|
|
218652
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218294
218653
|
this.isCreateRightMenuModal = true;
|
|
218295
218654
|
|
|
218296
|
-
if (
|
|
218297
|
-
|
|
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;
|
|
218298
218664
|
this.showCommentsBtn = true;
|
|
218299
218665
|
}
|
|
218300
218666
|
|
|
@@ -218302,18 +218668,6 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218302
218668
|
return;
|
|
218303
218669
|
}
|
|
218304
218670
|
|
|
218305
|
-
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
218306
|
-
|
|
218307
|
-
if (startPos) {
|
|
218308
|
-
var _hoEditorFactory$docT;
|
|
218309
|
-
|
|
218310
|
-
var npNode = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
218311
|
-
|
|
218312
|
-
if (npNode instanceof SignNode/* SignNode */.N && npNode.type == 3) {
|
|
218313
|
-
node = npNode;
|
|
218314
|
-
}
|
|
218315
|
-
}
|
|
218316
|
-
|
|
218317
218671
|
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
218318
218672
|
this.setRightClickNodeValue(node);
|
|
218319
218673
|
}
|
|
@@ -218327,6 +218681,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218327
218681
|
*/
|
|
218328
218682
|
hideComments: function hideComments() {
|
|
218329
218683
|
this.isCreateRightMenuModal = false;
|
|
218684
|
+
this.showDeleteSignMenu = false;
|
|
218330
218685
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218331
218686
|
hoEditorFactory.vueController.hideComments(!hoEditorFactory.isHideComments);
|
|
218332
218687
|
},
|
|
@@ -218370,8 +218725,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218370
218725
|
|
|
218371
218726
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218372
218727
|
components_HoDocvue_type_script_lang_js_,
|
|
218373
|
-
|
|
218374
|
-
|
|
218728
|
+
HoDocvue_type_template_id_7f445433_render,
|
|
218729
|
+
HoDocvue_type_template_id_7f445433_staticRenderFns,
|
|
218375
218730
|
false,
|
|
218376
218731
|
null,
|
|
218377
218732
|
null,
|
|
@@ -218601,6 +218956,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218601
218956
|
value: function getNextDrawArea(drawArea, singlePage) {
|
|
218602
218957
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218603
218958
|
var ret = drawArea;
|
|
218959
|
+
var isNew = false;
|
|
218604
218960
|
|
|
218605
218961
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
218606
218962
|
var index = this._drawMainDocs.indexOf(drawArea);
|
|
@@ -218609,6 +218965,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218609
218965
|
ret = this._drawMainDocs[index + 1];
|
|
218610
218966
|
} else {
|
|
218611
218967
|
var dMainDocArea = new DrawPageMainDoc/* DrawPageMainDoc */.$(this._hoEditorFactoryID, "main", index + 1, 0);
|
|
218968
|
+
isNew = true;
|
|
218612
218969
|
|
|
218613
218970
|
this._drawMainDocs.push(dMainDocArea);
|
|
218614
218971
|
|
|
@@ -218623,9 +218980,20 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218623
218980
|
}
|
|
218624
218981
|
}
|
|
218625
218982
|
|
|
218626
|
-
return ret;
|
|
218983
|
+
return [ret, isNew];
|
|
218627
218984
|
} //拆分成页
|
|
218628
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
|
+
}
|
|
218629
218997
|
}, {
|
|
218630
218998
|
key: "paint",
|
|
218631
218999
|
value: function paint(aDrawArea, dRoots, startLine, endLine) {
|
|
@@ -218646,6 +219014,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218646
219014
|
var aline = dRoots[startLine];
|
|
218647
219015
|
var dLine;
|
|
218648
219016
|
var dTop = 0;
|
|
219017
|
+
var mainDTop = 0;
|
|
218649
219018
|
|
|
218650
219019
|
if (aline instanceof DrawTable/* DrawTable */.t) {
|
|
218651
219020
|
if (aline.drawPageTables.length > 0) {
|
|
@@ -218696,6 +219065,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218696
219065
|
return;
|
|
218697
219066
|
}
|
|
218698
219067
|
|
|
219068
|
+
this.clearAfterDTop(mainArea, dTop);
|
|
218699
219069
|
var nextLine = startLine;
|
|
218700
219070
|
var pageIsFull = new Map();
|
|
218701
219071
|
|
|
@@ -218711,7 +219081,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218711
219081
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218712
219082
|
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex + 1, dline.paragraphNode.docId);
|
|
218713
219083
|
pageIsFull.set(drawArea.index, true);
|
|
218714
|
-
drawArea = this.getNextDrawArea(drawArea, true);
|
|
219084
|
+
drawArea = this.getNextDrawArea(drawArea, true)[0];
|
|
218715
219085
|
dTop = 0;
|
|
218716
219086
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
218717
219087
|
}
|
|
@@ -218737,12 +219107,23 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218737
219107
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218738
219108
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218739
219109
|
pageIsFull.set(drawArea.index, true);
|
|
218740
|
-
|
|
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];
|
|
218741
219118
|
dTop = 0;
|
|
218742
219119
|
|
|
218743
219120
|
if (drawArea.allowAcrossPage) {
|
|
218744
219121
|
restHeight = drawArea.maxHeight - dTop;
|
|
218745
219122
|
}
|
|
219123
|
+
|
|
219124
|
+
if (!isNew) {
|
|
219125
|
+
break;
|
|
219126
|
+
}
|
|
218746
219127
|
}
|
|
218747
219128
|
}
|
|
218748
219129
|
|
|
@@ -218781,7 +219162,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218781
219162
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218782
219163
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218783
219164
|
pageIsFull.set(drawArea.index, true);
|
|
218784
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219165
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218785
219166
|
dTop = 0;
|
|
218786
219167
|
|
|
218787
219168
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218803,7 +219184,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218803
219184
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218804
219185
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage); // drawArea.stage.update();
|
|
218805
219186
|
|
|
218806
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219187
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218807
219188
|
dTop = 0;
|
|
218808
219189
|
|
|
218809
219190
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218827,7 +219208,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218827
219208
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218828
219209
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218829
219210
|
pageIsFull.set(drawArea.index, true);
|
|
218830
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219211
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218831
219212
|
dTop = 0;
|
|
218832
219213
|
|
|
218833
219214
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218907,7 +219288,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218907
219288
|
var index = this._drawMainDocs.indexOf(mainArea);
|
|
218908
219289
|
|
|
218909
219290
|
if (index === this._drawMainDocs.length - 1) {
|
|
218910
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219291
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
218911
219292
|
} else {
|
|
218912
219293
|
mainArea = this._drawMainDocs[index + 1];
|
|
218913
219294
|
}
|
|
@@ -219148,7 +219529,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219148
219529
|
var _index = this._drawMainDocs.indexOf(mainArea);
|
|
219149
219530
|
|
|
219150
219531
|
if (_index === this._drawMainDocs.length - 1) {
|
|
219151
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219532
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
219152
219533
|
} else {
|
|
219153
219534
|
this.updateDrawPage(drawArea.index);
|
|
219154
219535
|
mainArea = this._drawMainDocs[_index + 1];
|
|
@@ -219250,13 +219631,17 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219250
219631
|
// startDline.paragraphNode.combineParagraph.lineSpace;
|
|
219251
219632
|
|
|
219252
219633
|
|
|
219253
|
-
if (
|
|
219254
|
-
|
|
219255
|
-
|
|
219256
|
-
|
|
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
|
+
}
|
|
219257
219641
|
}
|
|
219258
219642
|
}
|
|
219259
219643
|
|
|
219644
|
+
this.clearAfterDTop(drawArea, dTop);
|
|
219260
219645
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
219261
219646
|
this.afterAreaFinishPaint(drawArea);
|
|
219262
219647
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
@@ -219286,7 +219671,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219286
219671
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219287
219672
|
if (startIndex <= aEndLine) {
|
|
219288
219673
|
prevArea = drawArea;
|
|
219289
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219674
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
219290
219675
|
dTop = 0;
|
|
219291
219676
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight;
|
|
219292
219677
|
}
|
|
@@ -220014,6 +220399,9 @@ var GenerateCode = /*#__PURE__*/function () {
|
|
|
220014
220399
|
|
|
220015
220400
|
return GenerateCode;
|
|
220016
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);
|
|
220017
220405
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
220018
220406
|
var es_string_ends_with = __webpack_require__(27852);
|
|
220019
220407
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -220418,7 +220806,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220418
220806
|
key: "TransHTMLIMG",
|
|
220419
220807
|
value: function TransHTMLIMG(jnode, style) {
|
|
220420
220808
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
220421
|
-
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地提示无法从本地加载
|
|
220422
220814
|
//TODO:图片转base64
|
|
220423
220815
|
// const getImgToBase64 = (url: any, callback: any) => {//将图片转换为Base64
|
|
220424
220816
|
// const canvas = document.createElement('canvas');
|
|
@@ -220441,6 +220833,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220441
220833
|
// console.log(data);
|
|
220442
220834
|
// });
|
|
220443
220835
|
|
|
220836
|
+
|
|
220444
220837
|
var width = styleobj.width ? styleobj.width.replace("px", "") : 20;
|
|
220445
220838
|
var height = styleobj.height ? styleobj.height.replace("px", "") : 20;
|
|
220446
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));
|
|
@@ -224873,6 +225266,8 @@ var NodeInsertUndoUnit = __webpack_require__(12019);
|
|
|
224873
225266
|
var MedicalExpressionNode = __webpack_require__(8623);
|
|
224874
225267
|
// EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
|
|
224875
225268
|
var StagePosition = __webpack_require__(57674);
|
|
225269
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
225270
|
+
var commonParamList = __webpack_require__(82089);
|
|
224876
225271
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
224877
225272
|
|
|
224878
225273
|
|
|
@@ -224959,6 +225354,7 @@ var StagePosition = __webpack_require__(57674);
|
|
|
224959
225354
|
|
|
224960
225355
|
|
|
224961
225356
|
|
|
225357
|
+
|
|
224962
225358
|
|
|
224963
225359
|
|
|
224964
225360
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -231192,11 +231588,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231192
231588
|
}
|
|
231193
231589
|
}, {
|
|
231194
231590
|
key: "setHoEditorFactoryParams",
|
|
231195
|
-
value: function setHoEditorFactoryParams(params) {
|
|
231196
|
-
|
|
231197
|
-
|
|
231198
|
-
|
|
231199
|
-
|
|
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
|
+
}
|
|
231200
231605
|
}
|
|
231201
231606
|
}]);
|
|
231202
231607
|
|
|
@@ -234408,6 +234813,8 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
234408
234813
|
|
|
234409
234814
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
234410
234815
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
234816
|
+
var _window, _window$chrome, _window$chrome$webvie;
|
|
234817
|
+
|
|
234411
234818
|
(0,classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
234412
234819
|
|
|
234413
234820
|
this._intervalsTime = 30000; // 间隔时间 ms
|
|
@@ -234416,6 +234823,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234416
234823
|
|
|
234417
234824
|
this._storeName = 'web_list'; // 当前 key
|
|
234418
234825
|
|
|
234826
|
+
this._localXmlContent = ''; //当前缓存的xml文件列表
|
|
234827
|
+
|
|
234828
|
+
var _this = this;
|
|
234829
|
+
|
|
234419
234830
|
this._hoEditorFactoryID = hoEditorFactoryID; // 设置今天的 storeName
|
|
234420
234831
|
// this._storeName = String(new Date().getTime());
|
|
234421
234832
|
// 创建当前时段
|
|
@@ -234423,6 +234834,32 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234423
234834
|
// name: "_ho_web",
|
|
234424
234835
|
// storeName: this._storeName,
|
|
234425
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
|
+
});
|
|
234426
234863
|
} // set ho_web(value: any) {
|
|
234427
234864
|
// this._ho_web = value;
|
|
234428
234865
|
// }
|
|
@@ -234432,17 +234869,37 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234432
234869
|
key: "initHoWebSql",
|
|
234433
234870
|
value: function initHoWebSql() {
|
|
234434
234871
|
this._ho_web = localforage_default().createInstance({
|
|
234435
|
-
name:
|
|
234872
|
+
name: '_ho_web',
|
|
234436
234873
|
storeName: this._storeName
|
|
234437
234874
|
});
|
|
234438
234875
|
this._print_font = localforage_default().createInstance({
|
|
234439
|
-
name:
|
|
234440
|
-
storeName:
|
|
234876
|
+
name: '_ho_web',
|
|
234877
|
+
storeName: '_print_font'
|
|
234441
234878
|
});
|
|
234442
234879
|
this._cache_clear_time = localforage_default().createInstance({
|
|
234443
|
-
name:
|
|
234444
|
-
storeName:
|
|
234880
|
+
name: '_ho_web',
|
|
234881
|
+
storeName: '_cache_clear_time'
|
|
234445
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);
|
|
234446
234903
|
} // 获取key的数据 => { data, keyInfo }
|
|
234447
234904
|
|
|
234448
234905
|
}, {
|
|
@@ -234451,22 +234908,41 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234451
234908
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234452
234909
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234453
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);
|
|
234454
234930
|
}
|
|
234455
234931
|
}, {
|
|
234456
234932
|
key: "removeLocalStorage",
|
|
234457
234933
|
value: function removeLocalStorage(lastClearTime) {
|
|
234458
|
-
var
|
|
234934
|
+
var _this2 = this;
|
|
234459
234935
|
|
|
234460
234936
|
this._ho_web.keys().then(function (keys) {
|
|
234461
234937
|
keys.forEach(function (key) {
|
|
234462
|
-
|
|
234938
|
+
_this2._ho_web.getItem(key).then(function (value) {
|
|
234463
234939
|
if (Array.isArray(value)) {
|
|
234464
234940
|
if (new Date().getTime() - new Date(value[0].saveTime).getTime()) {
|
|
234465
|
-
|
|
234941
|
+
_this2._ho_web.removeItem(key);
|
|
234466
234942
|
}
|
|
234467
234943
|
} else {
|
|
234468
234944
|
if (new Date().getTime() - new Date(value.saveTime).getTime()) {
|
|
234469
|
-
|
|
234945
|
+
_this2._ho_web.removeItem(key);
|
|
234470
234946
|
}
|
|
234471
234947
|
}
|
|
234472
234948
|
});
|
|
@@ -234476,93 +234952,114 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234476
234952
|
}, {
|
|
234477
234953
|
key: "clearLocalStorage",
|
|
234478
234954
|
value: function clearLocalStorage() {
|
|
234479
|
-
var
|
|
234955
|
+
var _this3 = this;
|
|
234480
234956
|
|
|
234481
234957
|
this._ho_web.clear().then(function () {});
|
|
234482
234958
|
}
|
|
234483
234959
|
}, {
|
|
234484
234960
|
key: "autoSaveLocalStorage",
|
|
234485
234961
|
value: function autoSaveLocalStorage() {
|
|
234486
|
-
var
|
|
234962
|
+
var _window4,
|
|
234963
|
+
_window4$chrome,
|
|
234964
|
+
_this4 = this;
|
|
234487
234965
|
|
|
234488
234966
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
234489
234967
|
return;
|
|
234490
234968
|
}
|
|
234491
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());
|
|
234492
234972
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234493
234973
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234494
234974
|
|
|
234495
|
-
|
|
234496
|
-
|
|
234497
|
-
|
|
234498
|
-
if (
|
|
234499
|
-
|
|
234500
|
-
|
|
234501
|
-
|
|
234502
|
-
|
|
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();
|
|
234503
234996
|
} else {
|
|
234504
|
-
|
|
234505
|
-
|
|
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
|
+
}
|
|
234506
235002
|
|
|
234507
|
-
|
|
234508
|
-
|
|
235003
|
+
if (new Date().getTime() - _this4._lastSaveTime <= _this4._intervalsTime) {
|
|
235004
|
+
return;
|
|
235005
|
+
}
|
|
234509
235006
|
}
|
|
234510
|
-
}
|
|
234511
235007
|
|
|
234512
|
-
|
|
235008
|
+
var logs = (0,toConsumableArray/* default */.Z)(hoEitfactory.domController.getLogs());
|
|
234513
235009
|
|
|
234514
|
-
|
|
234515
|
-
|
|
234516
|
-
|
|
234517
|
-
|
|
234518
|
-
|
|
234519
|
-
|
|
234520
|
-
|
|
234521
|
-
|
|
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();
|
|
235018
|
+
|
|
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);
|
|
234522
235028
|
|
|
234523
|
-
|
|
235029
|
+
_this4._ho_web.setItem(_this4._key, arr);
|
|
235030
|
+
}
|
|
234524
235031
|
} else {
|
|
234525
|
-
var
|
|
234526
|
-
|
|
234527
|
-
|
|
235032
|
+
var _arr = [];
|
|
235033
|
+
|
|
235034
|
+
_arr.push({
|
|
235035
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
234528
235036
|
saveTime: saveTime,
|
|
234529
235037
|
logs: logs
|
|
234530
235038
|
});
|
|
234531
|
-
arr.push(historyLogs);
|
|
234532
235039
|
|
|
234533
|
-
|
|
235040
|
+
_this4._ho_web.setItem(_this4._key, _arr);
|
|
234534
235041
|
}
|
|
234535
|
-
}
|
|
234536
|
-
|
|
234537
|
-
|
|
234538
|
-
_arr.push({
|
|
234539
|
-
xml: hoEitfactory.structureConvert.doc2Xml("xml", true),
|
|
234540
|
-
saveTime: saveTime,
|
|
234541
|
-
logs: logs
|
|
234542
|
-
});
|
|
234543
|
-
|
|
234544
|
-
_this3._ho_web.setItem(_this3._key, _arr);
|
|
234545
|
-
}
|
|
235042
|
+
});
|
|
235043
|
+
}
|
|
234546
235044
|
|
|
234547
|
-
|
|
234548
|
-
|
|
235045
|
+
this._cache_clear_time.getItem('_cache_clear_time').then(function (lastClearTime) {
|
|
235046
|
+
var _lastClearTime = lastClearTime;
|
|
234549
235047
|
|
|
234550
|
-
|
|
234551
|
-
|
|
235048
|
+
if (!lastClearTime) {
|
|
235049
|
+
_lastClearTime = new Date().getTime();
|
|
234552
235050
|
|
|
234553
|
-
|
|
234554
|
-
|
|
235051
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', _lastClearTime);
|
|
235052
|
+
}
|
|
234555
235053
|
|
|
234556
|
-
|
|
235054
|
+
_this4._lastClearTime = _lastClearTime;
|
|
234557
235055
|
|
|
234558
|
-
|
|
234559
|
-
|
|
235056
|
+
if (new Date().getTime() - lastClearTime >= _this4._expirationTime) {
|
|
235057
|
+
_this4.removeLocalStorage(lastClearTime);
|
|
234560
235058
|
|
|
234561
|
-
|
|
234562
|
-
|
|
234563
|
-
|
|
234564
|
-
|
|
234565
|
-
});
|
|
235059
|
+
setTimeout(function () {
|
|
235060
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', new Date().getTime());
|
|
235061
|
+
}, 0);
|
|
235062
|
+
}
|
|
234566
235063
|
});
|
|
234567
235064
|
}
|
|
234568
235065
|
}, {
|
|
@@ -234630,6 +235127,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
234630
235127
|
|
|
234631
235128
|
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
234632
235129
|
|
|
235130
|
+
this._isUseDrawingOptimization = true; // 是否启用绘制优化 默认启用
|
|
235131
|
+
|
|
234633
235132
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
234634
235133
|
|
|
234635
235134
|
this._loadImageCallback = null; // 图片加载完成回调
|
|
@@ -235399,6 +235898,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235399
235898
|
this._isCanUseTableProperty = value;
|
|
235400
235899
|
}
|
|
235401
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
|
+
}
|
|
235402
235911
|
}, {
|
|
235403
235912
|
key: "clear",
|
|
235404
235913
|
value: function clear() {
|
|
@@ -235560,7 +236069,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
235560
236069
|
|
|
235561
236070
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
235562
236071
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
235563
|
-
var ControlModal = __webpack_require__(
|
|
236072
|
+
var ControlModal = __webpack_require__(40275);
|
|
235564
236073
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
235565
236074
|
var FindReplace = __webpack_require__(73553);
|
|
235566
236075
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -236618,10 +237127,14 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236618
237127
|
default: undefined
|
|
236619
237128
|
},
|
|
236620
237129
|
customProperty: {
|
|
236621
|
-
default: function _default() {
|
|
237130
|
+
default: function _default() {
|
|
237131
|
+
return {};
|
|
237132
|
+
}
|
|
236622
237133
|
},
|
|
236623
237134
|
paragraphCustomProperty: {
|
|
236624
|
-
default: function _default() {
|
|
237135
|
+
default: function _default() {
|
|
237136
|
+
return {};
|
|
237137
|
+
}
|
|
236625
237138
|
},
|
|
236626
237139
|
deleteImageNodeList: {
|
|
236627
237140
|
default: undefined
|
|
@@ -237389,9 +237902,9 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
237389
237902
|
)
|
|
237390
237903
|
|
|
237391
237904
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
237392
|
-
;// 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=
|
|
237393
|
-
var
|
|
237394
|
-
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 = []
|
|
237395
237908
|
|
|
237396
237909
|
|
|
237397
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&
|
|
@@ -240336,9 +240849,9 @@ var UpdateDocument_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240336
240849
|
)
|
|
240337
240850
|
|
|
240338
240851
|
/* harmony default export */ var UpdateDocument = (UpdateDocument_component.exports);
|
|
240339
|
-
;// 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=
|
|
240340
|
-
var
|
|
240341
|
-
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 = []
|
|
240342
240855
|
|
|
240343
240856
|
|
|
240344
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&
|
|
@@ -240560,7 +241073,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240560
241073
|
rows: 1,
|
|
240561
241074
|
columns: 1
|
|
240562
241075
|
};
|
|
240563
|
-
_this.formLabelWidth =
|
|
241076
|
+
_this.formLabelWidth = '72px';
|
|
240564
241077
|
return _this;
|
|
240565
241078
|
}
|
|
240566
241079
|
|
|
@@ -240590,7 +241103,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240590
241103
|
value: function mouse(e) {
|
|
240591
241104
|
var target = e.target;
|
|
240592
241105
|
|
|
240593
|
-
if (target.nodeName ===
|
|
241106
|
+
if (target.nodeName === 'SPAN') {
|
|
240594
241107
|
var data = target.dataset;
|
|
240595
241108
|
this.rows = parseInt(data.row);
|
|
240596
241109
|
this.columns = parseInt(data.column);
|
|
@@ -240605,7 +241118,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240605
241118
|
value: function touch(e) {
|
|
240606
241119
|
var ele = document.elementFromPoint(e.changedTouches[0].pageX, e.changedTouches[0].pageY);
|
|
240607
241120
|
|
|
240608
|
-
if (ele.nodeName ===
|
|
241121
|
+
if (ele.nodeName === 'SPAN') {
|
|
240609
241122
|
var data = ele.dataset;
|
|
240610
241123
|
this.rows = parseInt(data.row);
|
|
240611
241124
|
this.columns = parseInt(data.column);
|
|
@@ -240626,7 +241139,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240626
241139
|
}, {
|
|
240627
241140
|
key: "closeMenu",
|
|
240628
241141
|
value: function closeMenu() {
|
|
240629
|
-
this.$emit(
|
|
241142
|
+
this.$emit('closeMenu');
|
|
240630
241143
|
}
|
|
240631
241144
|
}]);
|
|
240632
241145
|
|
|
@@ -240640,7 +241153,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240640
241153
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolTables.prototype, "isOpen", void 0);
|
|
240641
241154
|
|
|
240642
241155
|
ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Component */.wA)({
|
|
240643
|
-
name:
|
|
241156
|
+
name: 'ToolTables',
|
|
240644
241157
|
components: {
|
|
240645
241158
|
TableFeatures: toolbar_TableFeatures
|
|
240646
241159
|
}
|
|
@@ -240664,8 +241177,8 @@ ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Compo
|
|
|
240664
241177
|
|
|
240665
241178
|
var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
240666
241179
|
toolbar_ToolTablevue_type_script_lang_ts_,
|
|
240667
|
-
|
|
240668
|
-
|
|
241180
|
+
ToolTablevue_type_template_id_7df5f581_render,
|
|
241181
|
+
ToolTablevue_type_template_id_7df5f581_staticRenderFns,
|
|
240669
241182
|
false,
|
|
240670
241183
|
null,
|
|
240671
241184
|
null,
|
|
@@ -240965,9 +241478,9 @@ var UploadFile_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240965
241478
|
)
|
|
240966
241479
|
|
|
240967
241480
|
/* harmony default export */ var toolbar_UploadFile = (UploadFile_component.exports);
|
|
240968
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=template&id=
|
|
240969
|
-
var
|
|
240970
|
-
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 = []
|
|
240971
241484
|
|
|
240972
241485
|
|
|
240973
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&
|
|
@@ -240995,12 +241508,12 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240995
241508
|
_this = _super.apply(this, arguments);
|
|
240996
241509
|
_this.showHistoryLogs = false;
|
|
240997
241510
|
_this.historyLog = null;
|
|
241511
|
+
_this.xmlLog = null;
|
|
241512
|
+
_this.xmlContent = '';
|
|
240998
241513
|
_this.dateFormat = util/* dateFormat */.vc;
|
|
240999
241514
|
return _this;
|
|
241000
241515
|
} // created() {
|
|
241001
|
-
//
|
|
241002
|
-
// console.log(e);
|
|
241003
|
-
// });
|
|
241516
|
+
// console.log(this.logs);
|
|
241004
241517
|
// }
|
|
241005
241518
|
// 撤销恢复
|
|
241006
241519
|
// public cancelManualSaveLocalStorage(auto_save_index: number) {
|
|
@@ -241019,6 +241532,17 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241019
241532
|
_this2.vueController.openXml(historyLog[auto_save_index].xml);
|
|
241020
241533
|
});
|
|
241021
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
|
+
}
|
|
241022
241546
|
}, {
|
|
241023
241547
|
key: "getLocalStorage",
|
|
241024
241548
|
value: function getLocalStorage() {
|
|
@@ -241026,7 +241550,7 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241026
241550
|
|
|
241027
241551
|
this.historyLog = [];
|
|
241028
241552
|
this.vueController.hoLocalStorage().getLocalStorage().then(function (historyLog) {
|
|
241029
|
-
historyLog.forEach(function (log) {
|
|
241553
|
+
historyLog === null || historyLog === void 0 ? void 0 : historyLog.forEach(function (log) {
|
|
241030
241554
|
_this3.historyLog.push({
|
|
241031
241555
|
saveTime: log.saveTime,
|
|
241032
241556
|
logs: log.logs
|
|
@@ -241037,8 +241561,20 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241037
241561
|
}, {
|
|
241038
241562
|
key: "openHistoryLogs",
|
|
241039
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;
|
|
241040
241569
|
this.showHistoryLogs = !this.showHistoryLogs;
|
|
241041
|
-
|
|
241570
|
+
|
|
241571
|
+
if (HoBrowser) {
|
|
241572
|
+
this.vueController.hoLocalStorage().getLocalXmlList(function (logs) {
|
|
241573
|
+
_this4.xmlLog = logs;
|
|
241574
|
+
});
|
|
241575
|
+
} else {
|
|
241576
|
+
this.getLocalStorage();
|
|
241577
|
+
}
|
|
241042
241578
|
}
|
|
241043
241579
|
}, {
|
|
241044
241580
|
key: "closeHistoryLogs",
|
|
@@ -241059,10 +241595,10 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241059
241595
|
/* harmony default export */ var HistoryLogsvue_type_script_lang_ts_ = (HistoryLogs);
|
|
241060
241596
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=script&lang=ts&
|
|
241061
241597
|
/* harmony default export */ var insert_HistoryLogsvue_type_script_lang_ts_ = (HistoryLogsvue_type_script_lang_ts_);
|
|
241062
|
-
;// 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&
|
|
241063
241599
|
// extracted by mini-css-extract-plugin
|
|
241064
241600
|
|
|
241065
|
-
;// 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&
|
|
241066
241602
|
|
|
241067
241603
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue
|
|
241068
241604
|
|
|
@@ -241075,11 +241611,11 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241075
241611
|
|
|
241076
241612
|
var HistoryLogs_component = (0,componentNormalizer/* default */.Z)(
|
|
241077
241613
|
insert_HistoryLogsvue_type_script_lang_ts_,
|
|
241078
|
-
|
|
241079
|
-
|
|
241614
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_render,
|
|
241615
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_staticRenderFns,
|
|
241080
241616
|
false,
|
|
241081
241617
|
null,
|
|
241082
|
-
"
|
|
241618
|
+
"8d9c8a42",
|
|
241083
241619
|
null
|
|
241084
241620
|
|
|
241085
241621
|
)
|
|
@@ -242484,14 +243020,14 @@ var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
|
242484
243020
|
)
|
|
242485
243021
|
|
|
242486
243022
|
/* harmony default export */ var insert_ToolControl = (ToolControl_component.exports);
|
|
242487
|
-
;// 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=
|
|
242488
|
-
var
|
|
242489
|
-
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 = []
|
|
242490
243026
|
|
|
242491
243027
|
|
|
242492
|
-
;// 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=
|
|
242493
|
-
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)}
|
|
242494
|
-
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 = []
|
|
242495
243031
|
|
|
242496
243032
|
|
|
242497
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&
|
|
@@ -242703,7 +243239,6 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242703
243239
|
data: function data() {
|
|
242704
243240
|
return {
|
|
242705
243241
|
hoTableFeatures: null,
|
|
242706
|
-
tableFormulaValue: [],
|
|
242707
243242
|
tableCellCode: false,
|
|
242708
243243
|
dialogFormVisible: false,
|
|
242709
243244
|
dialogFormTitle: '',
|
|
@@ -242819,9 +243354,10 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242819
243354
|
},
|
|
242820
243355
|
// 打开计算公式熟入弹窗
|
|
242821
243356
|
openFormula: function openFormula(params) {
|
|
242822
|
-
this.dialogFormVisible = true;
|
|
242823
|
-
this.dialogFormTitle = params[0];
|
|
242824
|
-
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]);
|
|
242825
243361
|
},
|
|
242826
243362
|
// 计算公式
|
|
242827
243363
|
sure: function sure() {
|
|
@@ -242895,8 +243431,8 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242895
243431
|
|
|
242896
243432
|
var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
242897
243433
|
insert_HoTableFeaturesvue_type_script_lang_js_,
|
|
242898
|
-
|
|
242899
|
-
|
|
243434
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_render,
|
|
243435
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_staticRenderFns,
|
|
242900
243436
|
false,
|
|
242901
243437
|
null,
|
|
242902
243438
|
null,
|
|
@@ -243040,6 +243576,9 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243040
243576
|
},
|
|
243041
243577
|
closeMenu: function closeMenu() {
|
|
243042
243578
|
this.$emit('closeMenu');
|
|
243579
|
+
},
|
|
243580
|
+
setModalStatus: function setModalStatus(str) {
|
|
243581
|
+
this.$emit('setModalStatus', str);
|
|
243043
243582
|
}
|
|
243044
243583
|
}
|
|
243045
243584
|
});
|
|
@@ -243061,8 +243600,8 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243061
243600
|
|
|
243062
243601
|
var insert_ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
243063
243602
|
insert_ToolTablevue_type_script_lang_js_,
|
|
243064
|
-
|
|
243065
|
-
|
|
243603
|
+
ToolTablevue_type_template_id_3884e3aa_render,
|
|
243604
|
+
ToolTablevue_type_template_id_3884e3aa_staticRenderFns,
|
|
243066
243605
|
false,
|
|
243067
243606
|
null,
|
|
243068
243607
|
null,
|
|
@@ -243718,8 +244257,8 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
243718
244257
|
|
|
243719
244258
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
243720
244259
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
243721
|
-
|
|
243722
|
-
|
|
244260
|
+
ToolBarvue_type_template_id_8cc7b3e4_render,
|
|
244261
|
+
ToolBarvue_type_template_id_8cc7b3e4_staticRenderFns,
|
|
243723
244262
|
false,
|
|
243724
244263
|
null,
|
|
243725
244264
|
null,
|